@livetiles/reach-components-react 0.4.0-preview.66 → 0.4.0-preview.72

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.
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export declare const NewsItemPreviewContextProvider: FC<{
3
+ itemId: string;
4
+ versionId?: string;
5
+ }>;
package/README.md CHANGED
@@ -1,7 +1,24 @@
1
- # reach-components-react
1
+ # Reach Components React
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ The Reach Components for React allows one to render data from LiveTiles Reach in custom third party web applications.
4
4
 
5
- ## Running unit tests
5
+ ## Getting Started
6
6
 
7
- Run `nx test reach-components-react` to execute the unit tests via [Jest](https://jestjs.io).
7
+ `$ npm i reach-components-react`
8
+
9
+ ```
10
+ const App = () => {
11
+ const token = "A JWT bearer token";
12
+ const subscriptionId = "the subscription ID";
13
+ const itemId = "some item ID";
14
+
15
+ return (
16
+ <ReachContextProvider
17
+ subscriptionId={subscriptionId}
18
+ onRequestToken={async () => token}
19
+ >
20
+ <NewsDetail itemId={itemId} />
21
+ </ReachContextProvider>
22
+ )
23
+ }
24
+ ```
@@ -513,6 +513,9 @@ var en = {
513
513
  "ContentEditor.keywords.emptySubpagesAndDocumentsList": "No pages or documents match the selected keywords",
514
514
  "ContentEditor.keywords.emptySubpagesList": "No pages match the selected keywords",
515
515
  "ContentEditor.keywords.emptyDocumentsList": "No documents match the selected keywords",
516
+ "TranslationManagement.callout.changeLanguage": "Change the language of this tab",
517
+ "TranslationManagement.callout.removePrimary": "Remove this Translation",
518
+ "TranslationManagement.callout.removeSecondary": "Content will be hidden but not deleted",
516
519
  "MetadataEditor.selectDate": "Select date ...",
517
520
  "MetadataEditor.publishingDate": "Publishing Date",
518
521
  "MetadataEditor.expiryDate": "Expiry Date",
@@ -527,7 +530,7 @@ var en = {
527
530
  "MetadataEditor.keywordTitle": "Select keywords",
528
531
  "MetadataEditor.customProperties": "Custom Fields",
529
532
  "MetadataEditor.channelsLabel": "Channels",
530
- "MetadataEditor.addATranslationTitle": "Add a translation",
533
+ "MetadataEditor.addATranslationTitle": "Manage languages",
531
534
  "MetadataEditor.newsGroupTooltip": "This article is part of the group {group}",
532
535
  "MetadataEditor.alerts.title": "Alert",
533
536
  "MetadataEditor.alerts.enable": "Display an alert banner to readers of the selected channels",
@@ -1009,6 +1012,7 @@ var en = {
1009
1012
  "Languages.language": "Language",
1010
1013
  "Languages.limitReached": "All translations have been added for the available languages.",
1011
1014
  "Languages.setDefaultLanguage": "Set default language",
1015
+ "Languages.selectionPrompt": "In which languages do you want to offer this article to the readers?",
1012
1016
  "Audience.title": "Audience Targeting",
1013
1017
  "Audience.backToChannels": "Back to Channels",
1014
1018
  "Audience.infoMsg1": "With audience targeting you can configure channel settings for specific user groups.",
package/index.d.ts CHANGED
@@ -723,4 +723,9 @@ interface NewsDetailPreviewProps {
723
723
  }
724
724
  declare const NewsDetailPreview: FC<NewsDetailPreviewProps>;
725
725
 
726
- export { Avatar, Props as AvatarProps, EventDetail, EventDetailProps, ItemLayoutMode, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PublishableItem, ReachContextProps, ReachContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, UserDetails, UserDetailsProps, useCurrentUser };
726
+ declare const NewsItemPreviewContextProvider: FC<{
727
+ itemId: string;
728
+ versionId?: string;
729
+ }>;
730
+
731
+ export { Avatar, Props as AvatarProps, EventDetail, EventDetailProps, 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, 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, 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, h as NewsList, g as PageDetail, R as ReachContextProvider, n as Toolbar, p as ToolbarChannelSelector, s as ToolbarCloseButton, 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, 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, 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';