@livetiles/reach-components-react 0.4.0-preview.210 → 0.4.0-preview.214

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.
@@ -2,10 +2,10 @@ import { IndexableFilterDefinition } from '@livetiles/reach/feature/content';
2
2
  import { FC } from 'react';
3
3
  export interface FilterProps {
4
4
  filter: IndexableFilterDefinition;
5
- onChange: (filter: Partial<IndexableFilterDefinition>) => void;
5
+ onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
6
6
  }
7
7
  export declare const FilterContext: import("react").Context<FilterProps>;
8
8
  export declare const FilterContextProvider: FC<{
9
9
  filter: IndexableFilterDefinition;
10
- onChange: (filter: Partial<IndexableFilterDefinition>) => void;
10
+ onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
11
11
  }>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const PublishingDateFilter: FC;
@@ -1,3 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { FilterProps } from './FilterContext';
3
- export declare const ToolbarFilterPanel: FC<FilterProps>;
3
+ export declare const ToolbarFilterPanel: FC<FilterProps & {
4
+ hideClearAllFiltersButton?: boolean;
5
+ }>;
@@ -999,6 +999,15 @@ var en = {
999
999
  "FilterPanel.condense": "LiveTiles Reach",
1000
1000
  "FilterPanel.external": "External",
1001
1001
  "FilterPanel.channels": "Channels",
1002
+ "FilterPanel.publishingDate": "Publishing date",
1003
+ "FilterPanel.publishingDateFrom": "From",
1004
+ "FilterPanel.publishingDateTo": "To",
1005
+ "FilterPanel.publishingDatePlaceholder": "Date",
1006
+ "FilterPanel.publishingDateShortcuts": "Date range shortcuts",
1007
+ "FilterPanel.publishingDateShortcuts.yesterday": "Yesterday",
1008
+ "FilterPanel.publishingDateShortcuts.thisWeek": "This week",
1009
+ "FilterPanel.publishingDateShortcuts.lastWeek": "Last week",
1010
+ "FilterPanel.publishingDateShortcuts.lastMonth": "Last month",
1002
1011
  "FilterPanel.itemType": "Items",
1003
1012
  "Themes.title": "Color Theme",
1004
1013
  "Themes.selectorDescription": "Select a color theme for LiveTiles Reach.",
package/index.d.ts CHANGED
@@ -746,14 +746,18 @@ declare const NewsItemPreviewContextProvider: FC<{
746
746
 
747
747
  interface FilterProps {
748
748
  filter: IndexableFilterDefinition;
749
- onChange: (filter: Partial<IndexableFilterDefinition>) => void;
749
+ onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
750
750
  }
751
751
 
752
- declare const ToolbarFilterPanel: FC<FilterProps>;
752
+ declare const ToolbarFilterPanel: FC<FilterProps & {
753
+ hideClearAllFiltersButton?: boolean;
754
+ }>;
753
755
 
754
756
  interface ChannelFilterProps {
755
757
  channels?: string[];
756
758
  }
757
759
  declare const ChannelFilter: FC<ChannelFilterProps>;
758
760
 
759
- export { Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, EventDetail, EventDetailProps, FilterProps, ItemLayoutMode, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PublishableItem, ReachContextProps, ReachContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarFilterPanel, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, UserDetails, UserDetailsProps, useCurrentUser };
761
+ declare const PublishingDateFilter: FC;
762
+
763
+ export { Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, EventDetail, EventDetailProps, FilterProps, ItemLayoutMode, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PublishableItem, PublishingDateFilter, ReachContextProps, ReachContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarFilterPanel, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, UserDetails, UserDetailsProps, useCurrentUser };
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Avatar, C as ChannelFilter, E as EventDetail, I as ItemLayoutMode, M as ManageChannels, N as NewsDetail, x as NewsDetailPreview, l as NewsEditorDashboard, i as NewsGrid, k as NewsHero, t as NewsItemContextProvider, y as NewsItemPreviewContextProvider, h as NewsList, g as PageDetail, R as ReachContextProvider, n as Toolbar, p as ToolbarChannelSelector, s as ToolbarCloseButton, z as ToolbarFilterPanel, o as ToolbarIconButton, w as ToolbarManageNewsItemButton, q as ToolbarMarkAllEventsAsReadButton, r as ToolbarMarkAllNewsAsReadButton, v as ToolbarNewsLanguageSelector, U as UserDetails, j as useCurrentUser } from './index.esm2.js';
1
+ export { A as Avatar, C as ChannelFilter, E as EventDetail, I as ItemLayoutMode, M as ManageChannels, N as NewsDetail, x as NewsDetailPreview, l as NewsEditorDashboard, i as NewsGrid, k as NewsHero, t as NewsItemContextProvider, y as NewsItemPreviewContextProvider, h as NewsList, g as PageDetail, B as PublishingDateFilter, R as ReachContextProvider, n as Toolbar, p as ToolbarChannelSelector, s as ToolbarCloseButton, z as ToolbarFilterPanel, o as ToolbarIconButton, w as ToolbarManageNewsItemButton, q as ToolbarMarkAllEventsAsReadButton, r as ToolbarMarkAllNewsAsReadButton, v as ToolbarNewsLanguageSelector, U as UserDetails, j as useCurrentUser } from './index.esm2.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'events';
4
4
  import 'react';