@livetiles/reach-plugin-types 0.4.0-preview.7 → 0.4.0-preview.73

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 +52 -67
  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" {
@@ -3181,8 +3186,6 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
3181
3186
  }
3182
3187
  declare module "libs/reach/ui/common/src/NotificationBar" {
3183
3188
  import { FC } from 'react';
3184
- import './Notification.scss';
3185
- import 'react-toastify/dist/ReactToastify.min.css';
3186
3189
  export const NotificationBar: FC;
3187
3190
  }
3188
3191
  declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
@@ -3429,6 +3432,7 @@ declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
3429
3432
  export function useFileAccessTokenApi(): {
3430
3433
  exchangeShortLivedToken: (fileAccessToken: string) => Promise<string>;
3431
3434
  getPublishableItemShortLivedToken: (basePath: string, itemId: string) => Promise<string>;
3435
+ createDownloadClickHandler: (target: string, getUrl: () => Promise<string>) => () => Promise<void>;
3432
3436
  };
3433
3437
  }
3434
3438
  declare module "libs/reach/ui/common/src/common/FileAttachmentList" {
@@ -3496,7 +3500,6 @@ declare module "libs/reach/ui/common/src/common/GroupedByDateTitles" {
3496
3500
  }
3497
3501
  declare module "libs/reach/ui/common/src/common/IconHeaderButton" {
3498
3502
  import { FC } from 'react';
3499
- import './IconHeaderButton.scss';
3500
3503
  export const IconHeaderButton: FC<{
3501
3504
  icon: string;
3502
3505
  isActive?: boolean;
@@ -3625,7 +3628,8 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarIconButtonWithToo
3625
3628
  import { FC } from 'react';
3626
3629
  export interface ToolbarIconButtonProps {
3627
3630
  iconName: string;
3628
- ariaLabelResourceKey: string;
3631
+ ariaLabel?: string;
3632
+ ariaLabelResourceKey?: string;
3629
3633
  onClick?: () => unknown;
3630
3634
  to?: string;
3631
3635
  target?: string;
@@ -5203,6 +5207,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
5203
5207
  getCurrentEmailInternal(): Promise<string>;
5204
5208
  private tryGetMsalV1Token;
5205
5209
  private removeMsalV1IdToken;
5210
+ private tryGetGuestTenantId;
5206
5211
  private handleAuthClientCallback;
5207
5212
  private handleAuthClientErrorCallback;
5208
5213
  private ensureAuthority;
@@ -5488,6 +5493,26 @@ declare module "apps/reach-app/src/app/common/GoToAdminConsentButton" {
5488
5493
  }
5489
5494
  export const GoToAdminConsentButton: React.FC<Props>;
5490
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
+ }
5491
5516
  declare module "apps/reach-app/src/app/admin/audience/AudienceSettingsDialog" {
5492
5517
  import { FC } from 'react';
5493
5518
  import { Audience } from "libs/reach/util/common/src/index";
@@ -5999,24 +6024,6 @@ declare module "apps/reach-app/src/app/admin/groups/GroupListPage" {
5999
6024
  import { FC } from 'react';
6000
6025
  export const GroupListPage: FC;
6001
6026
  }
6002
- declare module "apps/reach-app/src/app/admin/groups/accountUtils" {
6003
- import { IntlShape } from 'react-intl';
6004
- import { Account } from "libs/reach/util/common/src/index";
6005
- import { GroupUser } from "libs/reach/util/common/src/index";
6006
- import { Group, GroupRule } from "libs/reach/util/common/src/index";
6007
- export const systemAccountGroupIds: {
6008
- everyone: string;
6009
- directoryUsers: string;
6010
- nonDirectoryUsers: string;
6011
- allGroups: string[];
6012
- };
6013
- export const getSystemAccountGroups: (useEveryoneGroup: boolean, intl: IntlShape) => Account[];
6014
- export function extractSystemGroups(group: Group, useEveryoneGroup: boolean, intl: IntlShape): Generator<GroupUser, void, unknown>;
6015
- export function createRuleFromAddedAccounts(currentRule: GroupRule, users: Account[]): Partial<GroupRule> | null;
6016
- export function createRuleFromRemovedAccount(currentRule: GroupRule, account: GroupUser): Partial<GroupRule> | null;
6017
- export const isAdGroup: (account: Account) => boolean;
6018
- export const isUser: (account: Account) => boolean;
6019
- }
6020
6027
  declare module "apps/reach-app/src/app/admin/groups/UserRolePicker" {
6021
6028
  import { FC } from 'react';
6022
6029
  import { Account } from "libs/reach/util/common/src/index";
@@ -6400,6 +6407,7 @@ declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
6400
6407
  export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
6401
6408
  groupId?: string;
6402
6409
  bookmarksOnly?: boolean;
6410
+ unreadOnly?: boolean;
6403
6411
  }
6404
6412
  }
6405
6413
  declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
@@ -6697,6 +6705,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
6697
6705
  import { LanguageBase } from "libs/reach/util/common/src/index";
6698
6706
  import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
6699
6707
  export class NewsService {
6708
+ static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6700
6709
  static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
6701
6710
  static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
6702
6711
  static getContentLanguages(contents: {
@@ -7435,7 +7444,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7435
7444
  dateLabelResourceKey?: string;
7436
7445
  buttons?: ReactNode;
7437
7446
  openTargetInNewWindow?: boolean;
7438
- onClick?: (event: React.MouseEvent<unknown>) => unknown;
7447
+ onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7439
7448
  styleDefinition?: StyleDefinition;
7440
7449
  readOnly?: boolean;
7441
7450
  className?: string;
@@ -8656,7 +8665,6 @@ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8656
8665
  }
8657
8666
  declare module "libs/reach/feature/content/src/common/cards/Card" {
8658
8667
  import { FC, ReactNode } from 'react';
8659
- import './Card.scss';
8660
8668
  import { PublishableItem } from "libs/reach/util/common/src/index";
8661
8669
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8662
8670
  import { CurrentUser } from "libs/reach/util/common/src/index";
@@ -8789,7 +8797,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/controls/Page
8789
8797
  }
8790
8798
  declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
8791
8799
  import { FC } from 'react';
8792
- import './LanguageSelector.scss';
8793
8800
  interface LanguageSelectorProps {
8794
8801
  languages: string[];
8795
8802
  selectedLanguage: string;
@@ -9145,7 +9152,6 @@ declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicke
9145
9152
  declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
9146
9153
  import { FC } from 'react';
9147
9154
  import { Keyword } from "libs/reach/util/common/src/index";
9148
- import './KeywordPicker.scss';
9149
9155
  interface Props {
9150
9156
  value?: Keyword[] | string[];
9151
9157
  onChange: (keywords: Keyword[]) => void;
@@ -9179,7 +9185,6 @@ declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
9179
9185
  }
9180
9186
  declare module "libs/reach/feature/content/src/forms/Textarea" {
9181
9187
  import { FC, MutableRefObject } from 'react';
9182
- import './Textarea.scss';
9183
9188
  export interface TextareaProps {
9184
9189
  rows?: number;
9185
9190
  placeholder?: string;
@@ -9207,7 +9212,6 @@ declare module "libs/reach/feature/content/src/forms/Textarea" {
9207
9212
  }
9208
9213
  declare module "libs/reach/feature/content/src/forms/DateTimePicker" {
9209
9214
  import { FC } from 'react';
9210
- import './DateTimePicker.scss';
9211
9215
  interface DateTimePickerProps {
9212
9216
  date: string;
9213
9217
  maxDate?: string;
@@ -9269,7 +9273,6 @@ declare module "libs/reach/feature/content/src/forms/DateRange" {
9269
9273
  declare module "libs/reach/feature/content/src/forms/DateRangeSlider" {
9270
9274
  import { FC } from 'react';
9271
9275
  import { DateRange } from "libs/reach/feature/content/src/forms/DateRange";
9272
- import './DateRangeSlider.scss';
9273
9276
  export const DateRangeSlider: FC<{
9274
9277
  value?: DateRange;
9275
9278
  onChange: (range: DateRange) => unknown;
@@ -9522,6 +9525,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
9522
9525
  interface Props {
9523
9526
  className?: string;
9524
9527
  post: Post;
9528
+ initialPageSize?: number;
9525
9529
  comments?: PaginatedList<Comment>;
9526
9530
  autoFocusReplyField?: boolean;
9527
9531
  onReplyAdded: () => void;
@@ -9572,6 +9576,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
9572
9576
  threadId?: string;
9573
9577
  onCustomPostDelete?: () => void;
9574
9578
  comments?: PaginatedList<Comment>;
9579
+ initialCommentsPageSize?: number;
9575
9580
  onEditActiveChange?: (isEditMode: boolean) => void;
9576
9581
  onShowCommentsChange?: (showComments: boolean) => void;
9577
9582
  onThreadCommentDelete?: () => void;
@@ -9634,10 +9639,10 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
9634
9639
  declare module "libs/reach/feature/content/src/stream/stream-utils" {
9635
9640
  export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
9636
9641
  }
9637
- declare module "libs/reach/feature/content/src/posts/useMarkPostsAsRead" {
9642
+ declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
9638
9643
  import { Post } from "libs/reach/feature/content/src/posts/utils";
9639
9644
  import { DependencyList } from 'react';
9640
- 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;
9641
9646
  }
9642
9647
  declare module "libs/reach/feature/content/src/posts/usePostKeywordSettings" {
9643
9648
  import { UserGroup } from "libs/reach/util/common/src/index";
@@ -9655,7 +9660,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
9655
9660
  export * from "libs/reach/feature/content/src/posts/PostListItem";
9656
9661
  export * from "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling";
9657
9662
  export * from "libs/reach/feature/content/src/posts/useAttachmentUploader";
9658
- export * from "libs/reach/feature/content/src/posts/useMarkPostsAsRead";
9663
+ export * from "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead";
9659
9664
  export * from "libs/reach/feature/content/src/posts/usePostKeywordSettings";
9660
9665
  export * from "libs/reach/feature/content/src/posts/usePostsApi";
9661
9666
  export * from "libs/reach/feature/content/src/posts/utils";
@@ -9720,12 +9725,8 @@ declare module "libs/reach/feature/content/src/editor/editorUtils" {
9720
9725
  }
9721
9726
  }
9722
9727
  declare module "libs/reach/feature/content/src/editor/useEditorApi" {
9723
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9728
+ import { ItemResourceTypes, ItemVersionSummary, PaginatedList, PublishableItem, PublishableItemContent, PublishableItemVersion, ResponseItem, WorkflowStatus } from "libs/reach/util/common/src/index";
9724
9729
  import { NewsFilterDefinition } from "libs/reach/feature/content/src/index";
9725
- import { PaginatedList } from "libs/reach/util/common/src/index";
9726
- import { PublishableItem, ItemVersionSummary, PublishableItemVersion } from "libs/reach/util/common/src/index";
9727
- import { WorkflowStatus } from "libs/reach/util/common/src/index";
9728
- import { ResponseItem } from "libs/reach/util/common/src/index";
9729
9730
  import { Observable } from 'rxjs';
9730
9731
  import { KeepAliveHandle } from "libs/reach/feature/content/src/editor/editorUtils";
9731
9732
  export function useEditorApi(): {
@@ -9745,6 +9746,7 @@ declare module "libs/reach/feature/content/src/editor/useEditorApi" {
9745
9746
  keepLeaseAlive: (itemId: string, leaseId: string, token: string, subscriptionId: string) => KeepAliveHandle;
9746
9747
  saveItem: (subscriptionId: string, type: ItemResourceTypes | null, item: PublishableItem, createLease?: boolean) => Observable<any>;
9747
9748
  updateGroups: (itemType: ItemResourceTypes, itemId: string, groupIds: string[]) => Promise<PublishableItem>;
9749
+ translateContent: (itemId: string, translateFrom: string, translateTo: string[]) => Promise<PublishableItemContent[]>;
9748
9750
  };
9749
9751
  }
9750
9752
  declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
@@ -9844,18 +9846,6 @@ declare module "apps/reach-app/src/app/admin/users/self-registration/SelfRegistr
9844
9846
  import { FC } from 'react';
9845
9847
  export const SelfRegistrationSettingsPage: FC;
9846
9848
  }
9847
- declare module "apps/reach-app/src/app/Intercom/Intercom" {
9848
- export interface Intercom {
9849
- (action: string, settings?: IntercomSettings): void;
9850
- }
9851
- export interface IntercomSettings {
9852
- app_id: string;
9853
- product_id: string;
9854
- name?: string;
9855
- email?: string;
9856
- }
9857
- export function create(settings: IntercomSettings): Intercom;
9858
- }
9859
9849
  declare module "apps/reach-app/src/app/AppLoader" {
9860
9850
  import { FC } from 'react';
9861
9851
  export const AppLoader: FC;
@@ -9901,21 +9891,16 @@ declare module "apps/reach-app/src/app/teams/TeamsContext" {
9901
9891
  }>;
9902
9892
  export const TeamsContextProvider: FC;
9903
9893
  }
9904
- declare module "apps/reach-app/src/app/Intercom/useIntercom" {
9905
- export enum IntercomArea {
9906
- Authenticated = 0,
9907
- UnAuthenticated = 1
9908
- }
9909
- export enum IntercomInitialState {
9894
+ declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
9895
+ export enum ZendeskInitialState {
9910
9896
  Minimized = 0,
9911
9897
  MobileHidden = 1
9912
9898
  }
9913
- export function shutdownIntercom(): void;
9914
- export interface IntercomProps {
9915
- showChat: () => void;
9899
+ export function shutdownZendesk(): void;
9900
+ export function useZendesk(initialState?: ZendeskInitialState): {
9901
+ showZendeskChat: () => void;
9916
9902
  toggleIcon: (show: boolean) => void;
9917
- }
9918
- export function useIntercom(area: IntercomArea, initialState?: IntercomInitialState): IntercomProps;
9903
+ };
9919
9904
  }
9920
9905
  declare module "apps/reach-app/src/app/admin/terms-and-conditions/TermsAndConditionsPage" {
9921
9906
  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.7",
7
+ "version": "0.4.0-preview.73",
8
8
  "dependencies": {}
9
9
  }