@medipha/feed 0.1.0 → 0.1.2

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 (68) hide show
  1. package/dist/app/runtime/feed-runtime-context.d.ts +1 -1
  2. package/dist/app/runtime/feed-session.d.ts +1 -1
  3. package/dist/core/content.d.ts +19 -0
  4. package/dist/core/errors.d.ts +8 -0
  5. package/dist/core/feed-api.d.ts +134 -0
  6. package/dist/core/formatting.d.ts +55 -0
  7. package/dist/core/http.d.ts +18 -0
  8. package/dist/core/index.d.ts +16 -0
  9. package/dist/core/media-limits.d.ts +7 -0
  10. package/dist/core/mention.d.ts +10 -0
  11. package/dist/core/query-string.d.ts +3 -0
  12. package/dist/core/types.d.ts +208 -0
  13. package/dist/features/comments/comment-composer.d.ts +1 -1
  14. package/dist/features/comments/comment-item.d.ts +1 -1
  15. package/dist/features/comments/comment-thread.d.ts +1 -1
  16. package/dist/features/comments/mention-box.d.ts +1 -1
  17. package/dist/features/comments/mention-filter.d.ts +1 -1
  18. package/dist/features/comments/mention-input.d.ts +1 -1
  19. package/dist/features/comments/mention-options.d.ts +1 -1
  20. package/dist/features/comments/post-comments-modal.d.ts +1 -1
  21. package/dist/features/comments/use-mention-search.d.ts +1 -1
  22. package/dist/features/composer/category-select.d.ts +1 -1
  23. package/dist/features/composer/composer-form.d.ts +1 -1
  24. package/dist/features/composer/create-post-button.d.ts +1 -1
  25. package/dist/features/composer/create-post-modal.d.ts +1 -1
  26. package/dist/features/composer/format-text.d.ts +1 -1
  27. package/dist/features/composer/format-toolbar.d.ts +1 -1
  28. package/dist/features/composer/media-picker.d.ts +1 -1
  29. package/dist/features/composer/post-preview-modal.d.ts +1 -1
  30. package/dist/features/feed/left-rail.d.ts +1 -1
  31. package/dist/features/feed/sidebar/category-nav.d.ts +1 -1
  32. package/dist/features/feed/sidebar/discussion-channels.d.ts +1 -1
  33. package/dist/features/feed/widgets/post-detail-modal.d.ts +1 -1
  34. package/dist/features/feed/widgets/trending-hashtags-widget.d.ts +1 -1
  35. package/dist/features/manage/posts/post-summary-cell.d.ts +1 -1
  36. package/dist/features/manage/posts/review-drawer.d.ts +1 -1
  37. package/dist/features/manage/reports/overview-cards.d.ts +1 -1
  38. package/dist/features/manage/reports/top-posts-table.d.ts +1 -1
  39. package/dist/features/manage/reports/top-users-table.d.ts +1 -1
  40. package/dist/features/manage/reports/trend-chart.d.ts +1 -1
  41. package/dist/features/post/card/post-actions-menu.d.ts +1 -1
  42. package/dist/features/post/card/post-card.d.ts +1 -1
  43. package/dist/features/post/card/post-delete-button.d.ts +1 -1
  44. package/dist/features/post/card/post-header.d.ts +1 -1
  45. package/dist/features/post/card/post-status-tag.d.ts +1 -1
  46. package/dist/features/post/card/post-status.d.ts +1 -1
  47. package/dist/features/post/content/document-preview-url.d.ts +1 -1
  48. package/dist/features/post/content/mention-card.d.ts +1 -1
  49. package/dist/features/post/content/post-documents.d.ts +1 -1
  50. package/dist/features/post/content/post-images.d.ts +1 -1
  51. package/dist/features/post/content/post-videos.d.ts +1 -1
  52. package/dist/features/post/content/rich-content.d.ts +1 -1
  53. package/dist/features/post/content/use-link-preview.d.ts +1 -1
  54. package/dist/features/post/interactions/post-engagement-stats.d.ts +1 -1
  55. package/dist/features/post/interactions/post-reaction-bar.d.ts +1 -1
  56. package/dist/features/post/interactions/reaction-button.d.ts +1 -1
  57. package/dist/features/post/interactions/reaction-picker.d.ts +1 -1
  58. package/dist/features/post/interactions/share-button.d.ts +1 -1
  59. package/dist/features/post/list/post-list.d.ts +1 -1
  60. package/dist/index.cjs +21 -18
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +2761 -2325
  63. package/dist/shared/components/user-avatar.d.ts +1 -1
  64. package/dist/shared/hooks/use-cursor-list.d.ts +1 -1
  65. package/dist/shared/hooks/use-optimistic-reaction.d.ts +1 -1
  66. package/dist/shared/utils/date-range.d.ts +1 -1
  67. package/dist/shared/utils/reactions.d.ts +1 -1
  68. package/package.json +5 -9
@@ -1,4 +1,4 @@
1
- import { TrendingHashtag } from '@medipha/feed-core';
1
+ import { TrendingHashtag } from '../../../core';
2
2
  import { FeedFilters } from '../use-feed-filters';
3
3
  interface TrendingHashtagsWidgetProps {
4
4
  hashtags: TrendingHashtag[];
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface PostSummaryCellProps {
3
3
  post: FeedPost;
4
4
  onOpen: (post: FeedPost) => void;
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface ReviewDrawerProps {
3
3
  post: FeedPost | null;
4
4
  onClose: () => void;
@@ -1,4 +1,4 @@
1
- import { ReportsOverview } from '@medipha/feed-core';
1
+ import { ReportsOverview } from '../../../core';
2
2
  interface OverviewCardsProps {
3
3
  overview: ReportsOverview | undefined;
4
4
  loading: boolean;
@@ -1,4 +1,4 @@
1
- import { ReportFilterParams } from '@medipha/feed-core';
1
+ import { ReportFilterParams } from '../../../core';
2
2
  /**
3
3
  * Tab content of the reports page. `range` is the page filter (dates + department); the tab can
4
4
  * narrow the dates and search the text without touching the rest of the page.
@@ -1,4 +1,4 @@
1
- import { ReportFilterParams } from '@medipha/feed-core';
1
+ import { ReportFilterParams } from '../../../core';
2
2
  /** Tab content: the most active people, or one chosen employee's numbers. */
3
3
  export declare function TopUsersTable({ range }: {
4
4
  range: ReportFilterParams;
@@ -1,4 +1,4 @@
1
- import { ReportFilterParams } from '@medipha/feed-core';
1
+ import { ReportFilterParams } from '../../../core';
2
2
  export declare function TrendChart({ range }: {
3
3
  range: ReportFilterParams;
4
4
  }): import('react/jsx-runtime').JSX.Element;
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface PostActionsMenuProps {
3
3
  post: FeedPost;
4
4
  onChange: (post: FeedPost) => void;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { FeedPost } from '@medipha/feed-core';
2
+ import { FeedPost } from '../../../core';
3
3
  export interface PostCardProps {
4
4
  post: FeedPost;
5
5
  /** modal: the full post inside the comments modal, comments open with the composer at the bottom. */
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface PostDeleteButtonProps {
3
3
  post: FeedPost;
4
4
  onRemoved: (postId: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { FeedPost } from '@medipha/feed-core';
2
+ import { FeedPost } from '../../../core';
3
3
  interface PostHeaderProps {
4
4
  post: FeedPost;
5
5
  linkToDetail: boolean;
@@ -1,4 +1,4 @@
1
- import { PostStatus } from '@medipha/feed-core';
1
+ import { PostStatus } from '../../../core';
2
2
  export declare function PostStatusTag({ status, short }: {
3
3
  status: PostStatus;
4
4
  short?: boolean;
@@ -1,4 +1,4 @@
1
- import { FeedMe, FeedPost, PostStatus } from '@medipha/feed-core';
1
+ import { FeedMe, FeedPost, PostStatus } from '../../../core';
2
2
  export declare const POST_STATUS_META: Record<PostStatus, {
3
3
  label: string;
4
4
  shortLabel: string;
@@ -1,4 +1,4 @@
1
- import { FeedMedia } from '@medipha/feed-core';
1
+ import { FeedMedia } from '../../../core';
2
2
  /**
3
3
  * The page that shows the file: PDFs open in the browser's own viewer, Office files in Microsoft's
4
4
  * online viewer (it fetches the file itself, so the file URL must be reachable from the internet).
@@ -1,4 +1,4 @@
1
- import { FeedUser } from '@medipha/feed-core';
1
+ import { FeedUser } from '../../../core';
2
2
  interface MentionTagProps {
3
3
  /** Null when the tagged person is no longer known: the tag stays plain text. */
4
4
  user: FeedUser | null;
@@ -1,4 +1,4 @@
1
- import { FeedMedia } from '@medipha/feed-core';
1
+ import { FeedMedia } from '../../../core';
2
2
  export declare function PostDocuments({ documents }: {
3
3
  documents: FeedMedia[];
4
4
  }): import('react/jsx-runtime').JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { FeedMedia } from '@medipha/feed-core';
1
+ import { FeedMedia } from '../../../core';
2
2
  export declare function PostImages({ images }: {
3
3
  images: FeedMedia[];
4
4
  }): import('react/jsx-runtime').JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { FeedMedia } from '@medipha/feed-core';
1
+ import { FeedMedia } from '../../../core';
2
2
  export declare function PostVideos({ videos }: {
3
3
  videos: FeedMedia[];
4
4
  }): import('react/jsx-runtime').JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { FeedUser } from '@medipha/feed-core';
1
+ import { FeedUser } from '../../../core';
2
2
  interface RichContentProps {
3
3
  content: string;
4
4
  mentionedUsers: FeedUser[];
@@ -1,4 +1,4 @@
1
- import { FeedApi, LinkPreview } from '@medipha/feed-core';
1
+ import { FeedApi, LinkPreview } from '../../../core';
2
2
  export declare function useLinkPreview(api: FeedApi, url: string): import('../../../shared/hooks/use-async-data').AsyncData<LinkPreview | null>;
3
3
  export declare function hostnameOf(url: string): string;
4
4
  /** Google Maps links (long and short forms): shown neither as a card nor as text. */
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  /** Read-only counters for the admin side, in place of the Like / Comment / Share row. */
3
3
  export declare function PostEngagementStats({ post }: {
4
4
  post: FeedPost;
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface PostReactionBarProps {
3
3
  post: FeedPost;
4
4
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '@medipha/feed-core';
1
+ import { ReactionType } from '../../../core';
2
2
  interface ReactionButtonProps {
3
3
  myReaction: ReactionType | null;
4
4
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '@medipha/feed-core';
1
+ import { ReactionType } from '../../../core';
2
2
  export declare function ReactionPicker({ onPick }: {
3
3
  onPick: (type: ReactionType) => void;
4
4
  }): import('react/jsx-runtime').JSX.Element;
@@ -1,4 +1,4 @@
1
- import { FeedPost } from '@medipha/feed-core';
1
+ import { FeedPost } from '../../../core';
2
2
  interface ShareButtonProps {
3
3
  post: FeedPost;
4
4
  label?: string;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { FeedPost } from '@medipha/feed-core';
2
+ import { FeedPost } from '../../../core';
3
3
  import { CursorList } from '../../../shared/hooks/use-cursor-list';
4
4
  interface PostListProps {
5
5
  list: CursorList<FeedPost>;