@livetiles/reach-plugin-types 0.4.0-preview.194 → 0.4.0-preview.198
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.
- package/lib/index.d.ts +23 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1716,6 +1716,19 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
|
|
|
1716
1716
|
id?: string;
|
|
1717
1717
|
statistics?: ItemStatistics;
|
|
1718
1718
|
poll?: Poll;
|
|
1719
|
+
searchHighlights?: SearchHighlightSummary;
|
|
1720
|
+
}
|
|
1721
|
+
export interface SearchHighlightSummary {
|
|
1722
|
+
title: SearchHighlight[];
|
|
1723
|
+
content: SearchHighlight[];
|
|
1724
|
+
}
|
|
1725
|
+
export interface SearchHighlight {
|
|
1726
|
+
language: string;
|
|
1727
|
+
texts: {
|
|
1728
|
+
value: string;
|
|
1729
|
+
type: 'text' | 'hit';
|
|
1730
|
+
}[];
|
|
1731
|
+
score: number;
|
|
1719
1732
|
}
|
|
1720
1733
|
export interface Poll {
|
|
1721
1734
|
questions: PollQuestion[];
|
|
@@ -9343,6 +9356,14 @@ declare module "libs/reach/feature/content/src/news/index" {
|
|
|
9343
9356
|
export * from "libs/reach/feature/content/src/news/useNewsApi";
|
|
9344
9357
|
export * from "libs/reach/feature/content/src/news/useTranslateApi";
|
|
9345
9358
|
}
|
|
9359
|
+
declare module "libs/reach/feature/content/src/pages/SearchHighlighter" {
|
|
9360
|
+
import { FC } from 'react';
|
|
9361
|
+
import { SearchHighlight } from "libs/reach/util/common/src/index";
|
|
9362
|
+
export const SearchHighlighter: FC<{
|
|
9363
|
+
highlight: SearchHighlight;
|
|
9364
|
+
}>;
|
|
9365
|
+
export function tryFindHighlight(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight;
|
|
9366
|
+
}
|
|
9346
9367
|
declare module "libs/reach/feature/content/src/pages/PageTitle" {
|
|
9347
9368
|
import { FC } from 'react';
|
|
9348
9369
|
import { PageItem } from "libs/reach/util/common/src/index";
|
|
@@ -9371,11 +9392,9 @@ declare module "libs/reach/feature/content/src/pages/PageCard" {
|
|
|
9371
9392
|
}
|
|
9372
9393
|
declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
|
|
9373
9394
|
import { FC } from 'react';
|
|
9374
|
-
import {
|
|
9395
|
+
import { PageItem } from "libs/reach/util/common/src/index";
|
|
9375
9396
|
export const PageListItemBody: FC<{
|
|
9376
|
-
|
|
9377
|
-
[key: string]: PublishableItemContent;
|
|
9378
|
-
};
|
|
9397
|
+
page: PageItem;
|
|
9379
9398
|
search?: string;
|
|
9380
9399
|
}>;
|
|
9381
9400
|
}
|