@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 { FeedUser } from '@medipha/feed-core';
1
+ import { FeedUser } from '../../core';
2
2
  interface UserAvatarProps {
3
3
  user: Pick<FeedUser, 'id' | 'fullName' | 'avatarUrl'>;
4
4
  size?: number;
@@ -1,4 +1,4 @@
1
- import { CursorPage } from '@medipha/feed-core';
1
+ import { CursorPage } from '../../core';
2
2
  type LoadPage<T> = (cursor: string | null) => Promise<CursorPage<T>>;
3
3
  export interface CursorList<T> {
4
4
  items: T[];
@@ -1,4 +1,4 @@
1
- import { ReactionSummary, ReactionType } from '@medipha/feed-core';
1
+ import { ReactionSummary, ReactionType } from '../../core';
2
2
  export declare function applyReaction(summary: ReactionSummary, nextReaction: ReactionType | null): ReactionSummary;
3
3
  interface OptimisticReactionOptions {
4
4
  summary: ReactionSummary;
@@ -1,4 +1,4 @@
1
- import { DateRangeParams } from '@medipha/feed-core';
1
+ import { DateRangeParams } from '../../core';
2
2
  export type DateRangePreset = '7d' | '30d' | '90d' | 'this-month' | 'this-year';
3
3
  export declare const DATE_RANGE_LABELS: Record<DateRangePreset, string>;
4
4
  /** A preset, or a custom from–to picked in the calendar (YYYY-MM-DD, inclusive). */
@@ -1,4 +1,4 @@
1
- import { ReactionType } from '@medipha/feed-core';
1
+ import { ReactionType } from '../../core';
2
2
  export interface ReactionMeta {
3
3
  emoji: string;
4
4
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/feed",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Embeddable Medic-ERP newsfeed module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -38,8 +38,7 @@
38
38
  "@ant-design/icons": "^6.3.4",
39
39
  "apexcharts": "^7.8.0",
40
40
  "emoji-picker-react": "^5.0.0",
41
- "react-apexcharts": "^2.1.1",
42
- "@medipha/feed-core": "0.1.0"
41
+ "react-apexcharts": "^2.1.1"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@eslint/js": "^10.0.1",
@@ -71,18 +70,15 @@
71
70
  "node": ">=20.19.0 || >=22.12.0"
72
71
  },
73
72
  "scripts": {
74
- "predev": "pnpm --filter @medipha/feed-core build",
75
73
  "dev": "vite",
76
- "pretypecheck": "pnpm --filter @medipha/feed-core build",
77
- "typecheck": "tsc --noEmit && pnpm --filter @medipha/feed-core typecheck",
78
- "prebuild": "pnpm --filter @medipha/feed-core build",
74
+ "typecheck": "tsc --noEmit",
79
75
  "build": "tsc -p tsconfig.build.json && vite build",
80
- "test": "pnpm --filter @medipha/feed-core test && vitest run",
76
+ "test": "vitest run",
81
77
  "pack:check": "npm pack --dry-run",
82
78
  "lint": "eslint .",
83
79
  "lint:fix": "eslint . --fix",
84
80
  "format:check": "prettier . --check",
85
81
  "format": "prettier . --write",
86
- "publish_ui:npm": "pnpm typecheck && pnpm build && pnpm publish --dry-run && pnpm publish"
82
+ "publish_ui:npm": "npm login --registry=https://registry.npmjs.org/ --scope=@meditech && pnpm typecheck && pnpm build && pnpm publish --dry-run && pnpm publish"
87
83
  }
88
84
  }