@livetiles/reach-plugin-types 0.4.0-preview.6 → 0.4.0-preview.64

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 +50 -63
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -38,12 +38,10 @@ declare module "libs/shared/util/common/src/JwtHelper" {
38
38
  declare module "libs/shared/util/common/src/redirect" {
39
39
  export function redirectWithReload(redirectUrl: string): void;
40
40
  }
41
- declare module "libs/shared/util/environment/src/IntercomConfig" {
42
- export interface IntercomConfig {
43
- appId: string;
41
+ declare module "libs/shared/util/environment/src/ZendeskConfig" {
42
+ export interface ZendeskConfig {
43
+ apiKey: string;
44
44
  enable: boolean;
45
- productId: string;
46
- unauthenticatedProductId: string;
47
45
  }
48
46
  }
49
47
  declare module "libs/shared/util/authentication/src/AuthenticationType" {
@@ -216,7 +214,7 @@ declare module "libs/shared/util/environment/src/MsalConfiguration" {
216
214
  }
217
215
  }
218
216
  declare module "libs/shared/util/environment/src/AppConfiguration" {
219
- import { IntercomConfig } from "libs/shared/util/environment/src/IntercomConfig";
217
+ import { ZendeskConfig } from "libs/shared/util/environment/src/ZendeskConfig";
220
218
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
221
219
  import { KeycloakConfiguration } from "libs/shared/util/environment/src/KeycloakConfiguration";
222
220
  import { MsalConfiguration } from "libs/shared/util/environment/src/MsalConfiguration";
@@ -260,7 +258,7 @@ declare module "libs/shared/util/environment/src/AppConfiguration" {
260
258
  resource: string;
261
259
  };
262
260
  };
263
- intercom: IntercomConfig;
261
+ zendeskMessaging: ZendeskConfig;
264
262
  singleSubscriptionMode: boolean;
265
263
  oneSignal?: {
266
264
  appId: string;
@@ -1070,6 +1068,8 @@ declare module "libs/reach/util/common/src/user/Audience" {
1070
1068
  [key: string]: string;
1071
1069
  };
1072
1070
  mode: AudienceMatchMode;
1071
+ includeDirectoryUsers?: boolean;
1072
+ includeNonDirectoryUsers?: boolean;
1073
1073
  }
1074
1074
  }
1075
1075
  declare module "libs/reach/util/common/src/content/Language" {
@@ -2807,6 +2807,10 @@ declare module "libs/reach/util/common/src/Variables" {
2807
2807
  ready: string;
2808
2808
  rejected: string;
2809
2809
  };
2810
+ export const cardWidthS = 260;
2811
+ export const cardWidthM = 354;
2812
+ export const cardWidthL = 314;
2813
+ export const cardWidthXL = 423;
2810
2814
  }
2811
2815
  declare module "libs/reach/util/common/src/notification/NotificationContext" {
2812
2816
  import { FC, ReactNode } from 'react';
@@ -2838,6 +2842,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
2838
2842
  }
2839
2843
  declare module "libs/reach/util/common/src/notification/ToastNotificationHost" {
2840
2844
  import { FC } from 'react';
2845
+ import 'react-toastify/dist/ReactToastify.min.css';
2841
2846
  export const ToastNotificationHost: FC;
2842
2847
  }
2843
2848
  declare module "libs/reach/util/common/src/notification/index" {
@@ -3127,7 +3132,6 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3127
3132
  import { FC } from 'react';
3128
3133
  import { SelectionMode } from 'office-ui-fabric-react';
3129
3134
  import { Account, AccountType } from "libs/reach/util/common/src/index";
3130
- import './PeoplePicker.scss';
3131
3135
  interface Props {
3132
3136
  defaultSelectedItems?: Account[];
3133
3137
  localOnly?: boolean;
@@ -3182,8 +3186,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
3182
3186
  }
3183
3187
  declare module "libs/reach/ui/common/src/NotificationBar" {
3184
3188
  import { FC } from 'react';
3185
- import './Notification.scss';
3186
- import 'react-toastify/dist/ReactToastify.min.css';
3187
3189
  export const NotificationBar: FC;
3188
3190
  }
3189
3191
  declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
@@ -3430,6 +3432,7 @@ declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3430
3432
  export function useFileAccessTokenApi(): {
3431
3433
  exchangeShortLivedToken: (fileAccessToken: string) => Promise<string>;
3432
3434
  getPublishableItemShortLivedToken: (basePath: string, itemId: string) => Promise<string>;
3435
+ createDownloadClickHandler: (target: string, getUrl: () => Promise<string>) => () => Promise<void>;
3433
3436
  };
3434
3437
  }
3435
3438
  declare module "libs/reach/ui/common/src/common/FileAttachmentList" {
@@ -3497,7 +3500,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
3497
3500
  }
3498
3501
  declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
3499
3502
  import { FC } from 'react';
3500
- import './IconHeaderButton.scss';
3501
3503
  export const IconHeaderButton: FC<{
3502
3504
  icon: string;
3503
3505
  isActive?: boolean;
@@ -3626,7 +3628,8 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToo
3626
3628
  import { FC } from 'react';
3627
3629
  export interface ToolbarIconButtonProps {
3628
3630
  iconName: string;
3629
- ariaLabelResourceKey: string;
3631
+ ariaLabel?: string;
3632
+ ariaLabelResourceKey?: string;
3630
3633
  onClick?: () => unknown;
3631
3634
  to?: string;
3632
3635
  target?: string;
@@ -5204,6 +5207,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
5204
5207
  getCurrentEmailInternal(): Promise<string>;
5205
5208
  private tryGetMsalV1Token;
5206
5209
  private removeMsalV1IdToken;
5210
+ private tryGetGuestTenantId;
5207
5211
  private handleAuthClientCallback;
5208
5212
  private handleAuthClientErrorCallback;
5209
5213
  private ensureAuthority;
@@ -5489,6 +5493,26 @@ declare module "apps/reach-app/src/app/common/GoToAdminConsentButton" {
5489
5493
  }
5490
5494
  export const GoToAdminConsentButton: React.FC<Props>;
5491
5495
  }
5496
+ declare module "apps/reach-app/src/app/admin/groups/accountUtils" {
5497
+ import { IntlShape } from 'react-intl';
5498
+ import { Account } from "libs/reach/util/common/src/index";
5499
+ import { GroupUser } from "libs/reach/util/common/src/index";
5500
+ import { Group, GroupRule } from "libs/reach/util/common/src/index";
5501
+ export const systemAccountGroupIds: {
5502
+ everyone: string;
5503
+ directoryUsers: string;
5504
+ nonDirectoryUsers: string;
5505
+ allGroups: string[];
5506
+ };
5507
+ export function getDirectoryUsersGroup(intl: IntlShape): Account;
5508
+ export function getNonDirectoryUsersGroup(intl: IntlShape): Account;
5509
+ export const getSystemAccountGroups: (useEveryoneGroup: boolean, intl: IntlShape) => Account[];
5510
+ export function extractSystemGroups(group: Group, useEveryoneGroup: boolean, intl: IntlShape): Generator<GroupUser, void, unknown>;
5511
+ export function createRuleFromAddedAccounts(currentRule: GroupRule, users: Account[]): Partial<GroupRule> | null;
5512
+ export function createRuleFromRemovedAccount(currentRule: GroupRule, account: GroupUser): Partial<GroupRule> | null;
5513
+ export const isAdGroup: (account: Account) => boolean;
5514
+ export const isUser: (account: Account) => boolean;
5515
+ }
5492
5516
  declare module "apps/reach-app/src/app/admin/audience/AudienceSettingsDialog" {
5493
5517
  import { FC } from 'react';
5494
5518
  import { Audience } from "libs/reach/util/common/src/index";
@@ -6000,24 +6024,6 @@ declare module "apps/reach-app/src/app/admin/groups/GroupListPage" {
6000
6024
  import { FC } from 'react';
6001
6025
  export const GroupListPage: FC;
6002
6026
  }
6003
- declare module "apps/reach-app/src/app/admin/groups/accountUtils" {
6004
- import { IntlShape } from 'react-intl';
6005
- import { Account } from "libs/reach/util/common/src/index";
6006
- import { GroupUser } from "libs/reach/util/common/src/index";
6007
- import { Group, GroupRule } from "libs/reach/util/common/src/index";
6008
- export const systemAccountGroupIds: {
6009
- everyone: string;
6010
- directoryUsers: string;
6011
- nonDirectoryUsers: string;
6012
- allGroups: string[];
6013
- };
6014
- export const getSystemAccountGroups: (useEveryoneGroup: boolean, intl: IntlShape) => Account[];
6015
- export function extractSystemGroups(group: Group, useEveryoneGroup: boolean, intl: IntlShape): Generator<GroupUser, void, unknown>;
6016
- export function createRuleFromAddedAccounts(currentRule: GroupRule, users: Account[]): Partial<GroupRule> | null;
6017
- export function createRuleFromRemovedAccount(currentRule: GroupRule, account: GroupUser): Partial<GroupRule> | null;
6018
- export const isAdGroup: (account: Account) => boolean;
6019
- export const isUser: (account: Account) => boolean;
6020
- }
6021
6027
  declare module "apps/reach-app/src/app/admin/groups/UserRolePicker" {
6022
6028
  import { FC } from 'react';
6023
6029
  import { Account } from "libs/reach/util/common/src/index";
@@ -6401,6 +6407,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
6401
6407
  export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
6402
6408
  groupId?: string;
6403
6409
  bookmarksOnly?: boolean;
6410
+ unreadOnly?: boolean;
6404
6411
  }
6405
6412
  }
6406
6413
  declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
@@ -6698,6 +6705,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
6698
6705
  import { LanguageBase } from "libs/reach/util/common/src/index";
6699
6706
  import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
6700
6707
  export class NewsService {
6708
+ static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6701
6709
  static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6702
6710
  static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
6703
6711
  static getContentLanguages(contents: {
@@ -7436,7 +7444,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7436
7444
  dateLabelResourceKey?: string;
7437
7445
  buttons?: ReactNode;
7438
7446
  openTargetInNewWindow?: boolean;
7439
- onClick?: (event: React.MouseEvent<unknown>) => unknown;
7447
+ onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7440
7448
  styleDefinition?: StyleDefinition;
7441
7449
  readOnly?: boolean;
7442
7450
  className?: string;
@@ -8657,7 +8665,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8657
8665
  }
8658
8666
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8659
8667
  import { FC, ReactNode } from 'react';
8660
- import './Card.scss';
8661
8668
  import { PublishableItem } from "libs/reach/util/common/src/index";
8662
8669
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8663
8670
  import { CurrentUser } from "libs/reach/util/common/src/index";
@@ -8790,7 +8797,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
8790
8797
  }
8791
8798
  declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
8792
8799
  import { FC } from 'react';
8793
- import './LanguageSelector.scss';
8794
8800
  interface LanguageSelectorProps {
8795
8801
  languages: string[];
8796
8802
  selectedLanguage: string;
@@ -9146,7 +9152,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
9146
9152
  declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
9147
9153
  import { FC } from 'react';
9148
9154
  import { Keyword } from "libs/reach/util/common/src/index";
9149
- import './KeywordPicker.scss';
9150
9155
  interface Props {
9151
9156
  value?: Keyword[] | string[];
9152
9157
  onChange: (keywords: Keyword[]) => void;
@@ -9180,7 +9185,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
9180
9185
  }
9181
9186
  declare module "libs/reach/feature/content/src/forms/Textarea" {
9182
9187
  import { FC, MutableRefObject } from 'react';
9183
- import './Textarea.scss';
9184
9188
  export interface TextareaProps {
9185
9189
  rows?: number;
9186
9190
  placeholder?: string;
@@ -9208,7 +9212,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
9208
9212
  }
9209
9213
  declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
9210
9214
  import { FC } from 'react';
9211
- import './DateTimePicker.scss';
9212
9215
  interface DateTimePickerProps {
9213
9216
  date: string;
9214
9217
  maxDate?: string;
@@ -9270,7 +9273,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
9270
9273
  declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9271
9274
  import { FC } from 'react';
9272
9275
  import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
9273
- import './DateRangeSlider.scss';
9274
9276
  export const DateRangeSlider: FC<{
9275
9277
  value?: DateRange;
9276
9278
  onChange: (range: DateRange) => unknown;
@@ -9523,6 +9525,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
9523
9525
  interface Props {
9524
9526
  className?: string;
9525
9527
  post: Post;
9528
+ initialPageSize?: number;
9526
9529
  comments?: PaginatedList<Comment>;
9527
9530
  autoFocusReplyField?: boolean;
9528
9531
  onReplyAdded: () => void;
@@ -9573,6 +9576,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
9573
9576
  threadId?: string;
9574
9577
  onCustomPostDelete?: () => void;
9575
9578
  comments?: PaginatedList<Comment>;
9579
+ initialCommentsPageSize?: number;
9576
9580
  onEditActiveChange?: (isEditMode: boolean) => void;
9577
9581
  onShowCommentsChange?: (showComments: boolean) => void;
9578
9582
  onThreadCommentDelete?: () => void;
@@ -9635,10 +9639,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
9635
9639
  declare module "libs/reach/feature/content/src/stream/stream-utils" {
9636
9640
  export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
9637
9641
  }
9638
- declare module "libs/reach/feature/content/src/posts/useMarkPostsAsRead" {
9642
+ declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
9639
9643
  import { Post } from "libs/reach/feature/content/src/posts/utils";
9640
9644
  import { DependencyList } from 'react';
9641
- export function useMarkPostsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
9645
+ export function useMarkPostsAndCommentsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
9642
9646
  }
9643
9647
  declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
9644
9648
  import { UserGroup } from "libs/reach/util/common/src/index";
@@ -9656,7 +9660,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
9656
9660
  export * from "libs/reach/feature/content/src/posts/PostListItem";
9657
9661
  export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
9658
9662
  export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
9659
- export * from "libs/reach/feature/content/src/posts/useMarkPostsAsRead";
9663
+ export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
9660
9664
  export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
9661
9665
  export * from "libs/reach/feature/content/src/posts/usePostsApi";
9662
9666
  export * from "libs/reach/feature/content/src/posts/utils";
@@ -9845,18 +9849,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
9845
9849
  import { FC } from 'react';
9846
9850
  export const SelfRegistrationSettingsPage: FC;
9847
9851
  }
9848
- declare module "apps/reach-app/src/app/Intercom/Intercom" {
9849
- export interface Intercom {
9850
- (action: string, settings?: IntercomSettings): void;
9851
- }
9852
- export interface IntercomSettings {
9853
- app_id: string;
9854
- product_id: string;
9855
- name?: string;
9856
- email?: string;
9857
- }
9858
- export function create(settings: IntercomSettings): Intercom;
9859
- }
9860
9852
  declare module "apps/reach-app/src/app/AppLoader" {
9861
9853
  import { FC } from 'react';
9862
9854
  export const AppLoader: FC;
@@ -9902,21 +9894,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
9902
9894
  }>;
9903
9895
  export const TeamsContextProvider: FC;
9904
9896
  }
9905
- declare module "apps/reach-app/src/app/Intercom/useIntercom" {
9906
- export enum IntercomArea {
9907
- Authenticated = 0,
9908
- UnAuthenticated = 1
9909
- }
9910
- export enum IntercomInitialState {
9897
+ declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
9898
+ export enum ZendeskInitialState {
9911
9899
  Minimized = 0,
9912
9900
  MobileHidden = 1
9913
9901
  }
9914
- export function shutdownIntercom(): void;
9915
- export interface IntercomProps {
9916
- showChat: () => void;
9902
+ export function shutdownZendesk(): void;
9903
+ export function useZendesk(initialState?: ZendeskInitialState): {
9904
+ showZendeskChat: () => void;
9917
9905
  toggleIcon: (show: boolean) => void;
9918
- }
9919
- export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
9906
+ };
9920
9907
  }
9921
9908
  declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
9922
9909
  import { FC } from 'react';
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.6",
7
+ "version": "0.4.0-preview.64",
8
8
  "dependencies": {}
9
9
  }