@livetiles/reach-plugin-types 0.4.0-preview.5 → 0.4.0-preview.50

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 +28 -46
  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;
@@ -2807,6 +2805,10 @@ declare module "libs/reach/util/common/src/Variables" {
2807
2805
  ready: string;
2808
2806
  rejected: string;
2809
2807
  };
2808
+ export const cardWidthS = 260;
2809
+ export const cardWidthM = 354;
2810
+ export const cardWidthL = 314;
2811
+ export const cardWidthXL = 423;
2810
2812
  }
2811
2813
  declare module "libs/reach/util/common/src/notification/NotificationContext" {
2812
2814
  import { FC, ReactNode } from 'react';
@@ -2838,6 +2840,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
2838
2840
  }
2839
2841
  declare module "libs/reach/util/common/src/notification/ToastNotificationHost" {
2840
2842
  import { FC } from 'react';
2843
+ import 'react-toastify/dist/ReactToastify.min.css';
2841
2844
  export const ToastNotificationHost: FC;
2842
2845
  }
2843
2846
  declare module "libs/reach/util/common/src/notification/index" {
@@ -3127,7 +3130,6 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3127
3130
  import { FC } from 'react';
3128
3131
  import { SelectionMode } from 'office-ui-fabric-react';
3129
3132
  import { Account, AccountType } from "libs/reach/util/common/src/index";
3130
- import './PeoplePicker.scss';
3131
3133
  interface Props {
3132
3134
  defaultSelectedItems?: Account[];
3133
3135
  localOnly?: boolean;
@@ -3182,8 +3184,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
3182
3184
  }
3183
3185
  declare module "libs/reach/ui/common/src/NotificationBar" {
3184
3186
  import { FC } from 'react';
3185
- import './Notification.scss';
3186
- import 'react-toastify/dist/ReactToastify.min.css';
3187
3187
  export const NotificationBar: FC;
3188
3188
  }
3189
3189
  declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
@@ -3430,6 +3430,7 @@ declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3430
3430
  export function useFileAccessTokenApi(): {
3431
3431
  exchangeShortLivedToken: (fileAccessToken: string) => Promise<string>;
3432
3432
  getPublishableItemShortLivedToken: (basePath: string, itemId: string) => Promise<string>;
3433
+ createDownloadClickHandler: (target: string, getUrl: () => Promise<string>) => () => Promise<void>;
3433
3434
  };
3434
3435
  }
3435
3436
  declare module "libs/reach/ui/common/src/common/FileAttachmentList" {
@@ -3497,7 +3498,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
3497
3498
  }
3498
3499
  declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
3499
3500
  import { FC } from 'react';
3500
- import './IconHeaderButton.scss';
3501
3501
  export const IconHeaderButton: FC<{
3502
3502
  icon: string;
3503
3503
  isActive?: boolean;
@@ -3626,7 +3626,8 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToo
3626
3626
  import { FC } from 'react';
3627
3627
  export interface ToolbarIconButtonProps {
3628
3628
  iconName: string;
3629
- ariaLabelResourceKey: string;
3629
+ ariaLabel?: string;
3630
+ ariaLabelResourceKey?: string;
3630
3631
  onClick?: () => unknown;
3631
3632
  to?: string;
3632
3633
  target?: string;
@@ -4119,7 +4120,6 @@ declare module "libs/reach/ui/common/src/common/paging/useItemLoaderWithPreFetch
4119
4120
  }
4120
4121
  declare module "libs/reach/ui/common/src/common/pull-to-refresh/PullToRefresh" {
4121
4122
  import { FC, ReactNode } from 'react';
4122
- import './PullToRefresh.scss';
4123
4123
  export const PullToRefreshContext: import("react").Context<{
4124
4124
  refreshToken: string;
4125
4125
  setEnabled: (enabled: boolean) => unknown;
@@ -5205,6 +5205,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
5205
5205
  getCurrentEmailInternal(): Promise<string>;
5206
5206
  private tryGetMsalV1Token;
5207
5207
  private removeMsalV1IdToken;
5208
+ private tryGetGuestTenantId;
5208
5209
  private handleAuthClientCallback;
5209
5210
  private handleAuthClientErrorCallback;
5210
5211
  private ensureAuthority;
@@ -6402,6 +6403,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
6402
6403
  export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
6403
6404
  groupId?: string;
6404
6405
  bookmarksOnly?: boolean;
6406
+ unreadOnly?: boolean;
6405
6407
  }
6406
6408
  }
6407
6409
  declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
@@ -6699,6 +6701,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
6699
6701
  import { LanguageBase } from "libs/reach/util/common/src/index";
6700
6702
  import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
6701
6703
  export class NewsService {
6704
+ static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6702
6705
  static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6703
6706
  static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
6704
6707
  static getContentLanguages(contents: {
@@ -7437,7 +7440,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7437
7440
  dateLabelResourceKey?: string;
7438
7441
  buttons?: ReactNode;
7439
7442
  openTargetInNewWindow?: boolean;
7440
- onClick?: (event: React.MouseEvent<unknown>) => unknown;
7443
+ onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7441
7444
  styleDefinition?: StyleDefinition;
7442
7445
  readOnly?: boolean;
7443
7446
  className?: string;
@@ -8658,7 +8661,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8658
8661
  }
8659
8662
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8660
8663
  import { FC, ReactNode } from 'react';
8661
- import './Card.scss';
8662
8664
  import { PublishableItem } from "libs/reach/util/common/src/index";
8663
8665
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8664
8666
  import { CurrentUser } from "libs/reach/util/common/src/index";
@@ -8791,7 +8793,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
8791
8793
  }
8792
8794
  declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
8793
8795
  import { FC } from 'react';
8794
- import './LanguageSelector.scss';
8795
8796
  interface LanguageSelectorProps {
8796
8797
  languages: string[];
8797
8798
  selectedLanguage: string;
@@ -9147,7 +9148,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
9147
9148
  declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
9148
9149
  import { FC } from 'react';
9149
9150
  import { Keyword } from "libs/reach/util/common/src/index";
9150
- import './KeywordPicker.scss';
9151
9151
  interface Props {
9152
9152
  value?: Keyword[] | string[];
9153
9153
  onChange: (keywords: Keyword[]) => void;
@@ -9181,7 +9181,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
9181
9181
  }
9182
9182
  declare module "libs/reach/feature/content/src/forms/Textarea" {
9183
9183
  import { FC, MutableRefObject } from 'react';
9184
- import './Textarea.scss';
9185
9184
  export interface TextareaProps {
9186
9185
  rows?: number;
9187
9186
  placeholder?: string;
@@ -9209,7 +9208,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
9209
9208
  }
9210
9209
  declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
9211
9210
  import { FC } from 'react';
9212
- import './DateTimePicker.scss';
9213
9211
  interface DateTimePickerProps {
9214
9212
  date: string;
9215
9213
  maxDate?: string;
@@ -9271,7 +9269,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
9271
9269
  declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9272
9270
  import { FC } from 'react';
9273
9271
  import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
9274
- import './DateRangeSlider.scss';
9275
9272
  export const DateRangeSlider: FC<{
9276
9273
  value?: DateRange;
9277
9274
  onChange: (range: DateRange) => unknown;
@@ -9524,6 +9521,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
9524
9521
  interface Props {
9525
9522
  className?: string;
9526
9523
  post: Post;
9524
+ initialPageSize?: number;
9527
9525
  comments?: PaginatedList<Comment>;
9528
9526
  autoFocusReplyField?: boolean;
9529
9527
  onReplyAdded: () => void;
@@ -9574,6 +9572,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
9574
9572
  threadId?: string;
9575
9573
  onCustomPostDelete?: () => void;
9576
9574
  comments?: PaginatedList<Comment>;
9575
+ initialCommentsPageSize?: number;
9577
9576
  onEditActiveChange?: (isEditMode: boolean) => void;
9578
9577
  onShowCommentsChange?: (showComments: boolean) => void;
9579
9578
  onThreadCommentDelete?: () => void;
@@ -9636,10 +9635,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
9636
9635
  declare module "libs/reach/feature/content/src/stream/stream-utils" {
9637
9636
  export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
9638
9637
  }
9639
- declare module "libs/reach/feature/content/src/posts/useMarkPostsAsRead" {
9638
+ declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
9640
9639
  import { Post } from "libs/reach/feature/content/src/posts/utils";
9641
9640
  import { DependencyList } from 'react';
9642
- export function useMarkPostsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
9641
+ export function useMarkPostsAndCommentsAsRead(area: 'CACHE_ONLY' | 'CACHE_AND_SERVER', posts: Post[], deps?: DependencyList): void;
9643
9642
  }
9644
9643
  declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
9645
9644
  import { UserGroup } from "libs/reach/util/common/src/index";
@@ -9657,7 +9656,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
9657
9656
  export * from "libs/reach/feature/content/src/posts/PostListItem";
9658
9657
  export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
9659
9658
  export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
9660
- export * from "libs/reach/feature/content/src/posts/useMarkPostsAsRead";
9659
+ export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
9661
9660
  export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
9662
9661
  export * from "libs/reach/feature/content/src/posts/usePostsApi";
9663
9662
  export * from "libs/reach/feature/content/src/posts/utils";
@@ -9846,18 +9845,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
9846
9845
  import { FC } from 'react';
9847
9846
  export const SelfRegistrationSettingsPage: FC;
9848
9847
  }
9849
- declare module "apps/reach-app/src/app/Intercom/Intercom" {
9850
- export interface Intercom {
9851
- (action: string, settings?: IntercomSettings): void;
9852
- }
9853
- export interface IntercomSettings {
9854
- app_id: string;
9855
- product_id: string;
9856
- name?: string;
9857
- email?: string;
9858
- }
9859
- export function create(settings: IntercomSettings): Intercom;
9860
- }
9861
9848
  declare module "apps/reach-app/src/app/AppLoader" {
9862
9849
  import { FC } from 'react';
9863
9850
  export const AppLoader: FC;
@@ -9903,21 +9890,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
9903
9890
  }>;
9904
9891
  export const TeamsContextProvider: FC;
9905
9892
  }
9906
- declare module "apps/reach-app/src/app/Intercom/useIntercom" {
9907
- export enum IntercomArea {
9908
- Authenticated = 0,
9909
- UnAuthenticated = 1
9910
- }
9911
- export enum IntercomInitialState {
9893
+ declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
9894
+ export enum ZendeskInitialState {
9912
9895
  Minimized = 0,
9913
9896
  MobileHidden = 1
9914
9897
  }
9915
- export function shutdownIntercom(): void;
9916
- export interface IntercomProps {
9917
- showChat: () => void;
9898
+ export function shutdownZendesk(): void;
9899
+ export function useZendesk(initialState?: ZendeskInitialState): {
9900
+ showZendeskChat: () => void;
9918
9901
  toggleIcon: (show: boolean) => void;
9919
- }
9920
- export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
9902
+ };
9921
9903
  }
9922
9904
  declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
9923
9905
  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.5",
7
+ "version": "0.4.0-preview.50",
8
8
  "dependencies": {}
9
9
  }