@livetiles/reach-plugin-types 0.4.0-preview.197 → 0.4.0-preview.200

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 +29 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1134,6 +1134,7 @@ declare module "libs/reach/util/common/src/user/Subscription" {
1134
1134
  theme?: Theme;
1135
1135
  allowPublicAccess?: boolean;
1136
1136
  redirectToContent?: boolean;
1137
+ allowZendesk?: boolean;
1137
1138
  }
1138
1139
  export interface SignInSettings {
1139
1140
  customIdentityProviders: IdentityProviderSettings[];
@@ -1716,6 +1717,19 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1716
1717
  id?: string;
1717
1718
  statistics?: ItemStatistics;
1718
1719
  poll?: Poll;
1720
+ searchHighlights?: SearchHighlightSummary;
1721
+ }
1722
+ export interface SearchHighlightSummary {
1723
+ title: SearchHighlight[];
1724
+ content: SearchHighlight[];
1725
+ }
1726
+ export interface SearchHighlight {
1727
+ language: string;
1728
+ texts: {
1729
+ value: string;
1730
+ type: 'text' | 'hit';
1731
+ }[];
1732
+ score: number;
1719
1733
  }
1720
1734
  export interface Poll {
1721
1735
  questions: PollQuestion[];
@@ -9343,6 +9357,14 @@ declare module "libs/reach/feature/content/src/news/index" {
9343
9357
  export * from "libs/reach/feature/content/src/news/useNewsApi";
9344
9358
  export * from "libs/reach/feature/content/src/news/useTranslateApi";
9345
9359
  }
9360
+ declare module "libs/reach/feature/content/src/pages/SearchHighlighter" {
9361
+ import { FC } from 'react';
9362
+ import { SearchHighlight } from "libs/reach/util/common/src/index";
9363
+ export const SearchHighlighter: FC<{
9364
+ highlight: SearchHighlight;
9365
+ }>;
9366
+ export function tryFindHighlight(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight;
9367
+ }
9346
9368
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
9347
9369
  import { FC } from 'react';
9348
9370
  import { PageItem } from "libs/reach/util/common/src/index";
@@ -9371,11 +9393,9 @@ declare module "libs/reach/feature/content/src/pages/PageCard" {
9371
9393
  }
9372
9394
  declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
9373
9395
  import { FC } from 'react';
9374
- import { PublishableItemContent } from "libs/reach/util/common/src/index";
9396
+ import { PageItem } from "libs/reach/util/common/src/index";
9375
9397
  export const PageListItemBody: FC<{
9376
- contents: {
9377
- [key: string]: PublishableItemContent;
9378
- };
9398
+ page: PageItem;
9379
9399
  search?: string;
9380
9400
  }>;
9381
9401
  }
@@ -9835,7 +9855,11 @@ declare module "apps/reach-app/src/app/Zendesk/useZendesk" {
9835
9855
  MobileHidden = 1
9836
9856
  }
9837
9857
  export function shutdownZendesk(): void;
9838
- export function useZendesk(initialState?: ZendeskInitialState): {
9858
+ export function useZendeskWithSubscription(): {
9859
+ showZendeskChat: () => void;
9860
+ toggleIcon: (show: boolean) => void;
9861
+ };
9862
+ export function useZendesk(showZendesk?: boolean, initialState?: ZendeskInitialState): {
9839
9863
  showZendeskChat: () => void;
9840
9864
  toggleIcon: (show: boolean) => void;
9841
9865
  };
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.197",
7
+ "version": "0.4.0-preview.200",
8
8
  "dependencies": {}
9
9
  }