@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.
- package/dist/app/runtime/feed-runtime-context.d.ts +1 -1
- package/dist/app/runtime/feed-session.d.ts +1 -1
- package/dist/core/content.d.ts +19 -0
- package/dist/core/errors.d.ts +8 -0
- package/dist/core/feed-api.d.ts +134 -0
- package/dist/core/formatting.d.ts +55 -0
- package/dist/core/http.d.ts +18 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/media-limits.d.ts +7 -0
- package/dist/core/mention.d.ts +10 -0
- package/dist/core/query-string.d.ts +3 -0
- package/dist/core/types.d.ts +208 -0
- package/dist/features/comments/comment-composer.d.ts +1 -1
- package/dist/features/comments/comment-item.d.ts +1 -1
- package/dist/features/comments/comment-thread.d.ts +1 -1
- package/dist/features/comments/mention-box.d.ts +1 -1
- package/dist/features/comments/mention-filter.d.ts +1 -1
- package/dist/features/comments/mention-input.d.ts +1 -1
- package/dist/features/comments/mention-options.d.ts +1 -1
- package/dist/features/comments/post-comments-modal.d.ts +1 -1
- package/dist/features/comments/use-mention-search.d.ts +1 -1
- package/dist/features/composer/category-select.d.ts +1 -1
- package/dist/features/composer/composer-form.d.ts +1 -1
- package/dist/features/composer/create-post-button.d.ts +1 -1
- package/dist/features/composer/create-post-modal.d.ts +1 -1
- package/dist/features/composer/format-text.d.ts +1 -1
- package/dist/features/composer/format-toolbar.d.ts +1 -1
- package/dist/features/composer/media-picker.d.ts +1 -1
- package/dist/features/composer/post-preview-modal.d.ts +1 -1
- package/dist/features/feed/left-rail.d.ts +1 -1
- package/dist/features/feed/sidebar/category-nav.d.ts +1 -1
- package/dist/features/feed/sidebar/discussion-channels.d.ts +1 -1
- package/dist/features/feed/widgets/post-detail-modal.d.ts +1 -1
- package/dist/features/feed/widgets/trending-hashtags-widget.d.ts +1 -1
- package/dist/features/manage/posts/post-summary-cell.d.ts +1 -1
- package/dist/features/manage/posts/review-drawer.d.ts +1 -1
- package/dist/features/manage/reports/overview-cards.d.ts +1 -1
- package/dist/features/manage/reports/top-posts-table.d.ts +1 -1
- package/dist/features/manage/reports/top-users-table.d.ts +1 -1
- package/dist/features/manage/reports/trend-chart.d.ts +1 -1
- package/dist/features/post/card/post-actions-menu.d.ts +1 -1
- package/dist/features/post/card/post-card.d.ts +1 -1
- package/dist/features/post/card/post-delete-button.d.ts +1 -1
- package/dist/features/post/card/post-header.d.ts +1 -1
- package/dist/features/post/card/post-status-tag.d.ts +1 -1
- package/dist/features/post/card/post-status.d.ts +1 -1
- package/dist/features/post/content/document-preview-url.d.ts +1 -1
- package/dist/features/post/content/mention-card.d.ts +1 -1
- package/dist/features/post/content/post-documents.d.ts +1 -1
- package/dist/features/post/content/post-images.d.ts +1 -1
- package/dist/features/post/content/post-videos.d.ts +1 -1
- package/dist/features/post/content/rich-content.d.ts +1 -1
- package/dist/features/post/content/use-link-preview.d.ts +1 -1
- package/dist/features/post/interactions/post-engagement-stats.d.ts +1 -1
- package/dist/features/post/interactions/post-reaction-bar.d.ts +1 -1
- package/dist/features/post/interactions/reaction-button.d.ts +1 -1
- package/dist/features/post/interactions/reaction-picker.d.ts +1 -1
- package/dist/features/post/interactions/share-button.d.ts +1 -1
- package/dist/features/post/list/post-list.d.ts +1 -1
- package/dist/index.cjs +21 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2761 -2325
- package/dist/shared/components/user-avatar.d.ts +1 -1
- package/dist/shared/hooks/use-cursor-list.d.ts +1 -1
- package/dist/shared/hooks/use-optimistic-reaction.d.ts +1 -1
- package/dist/shared/utils/date-range.d.ts +1 -1
- package/dist/shared/utils/reactions.d.ts +1 -1
- package/package.json +5 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactionSummary, ReactionType } from '
|
|
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 '
|
|
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). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipha/feed",
|
|
3
|
-
"version": "0.1.
|
|
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
|
-
"
|
|
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": "
|
|
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
|
}
|