@openpeepshq/react 0.8.5 → 0.9.0

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 (51) hide show
  1. package/dist/components/conversations/DirectMessageSearch.d.ts +7 -0
  2. package/dist/components/conversations/DirectMessageSearch.js +46 -0
  3. package/dist/components/conversations/MessageInThread.d.ts +2 -1
  4. package/dist/components/conversations/MessageInThread.js +3 -3
  5. package/dist/components/conversations/index.d.ts +1 -0
  6. package/dist/components/conversations/index.js +1 -0
  7. package/dist/components/post/pieces/modals/DeletePostModal.js +4 -4
  8. package/dist/components/post/post-form/ArticleForm.d.ts +4 -1
  9. package/dist/components/post/post-form/ArticleForm.js +8 -3
  10. package/dist/components/post/post-form/EventForm.d.ts +4 -1
  11. package/dist/components/post/post-form/EventForm.js +8 -4
  12. package/dist/components/post/post-form/NewPostModal.js +4 -5
  13. package/dist/components/post/post-form/OpenpeepsMarkdownInput.js +7 -1
  14. package/dist/components/post/post-form/OpenpeepsMarkdownInput.test.d.ts +1 -0
  15. package/dist/components/post/post-form/OpenpeepsMarkdownInput.test.js +64 -0
  16. package/dist/contexts/openpeeps/hooks/conversations.d.ts +3 -2
  17. package/dist/contexts/openpeeps/hooks/conversations.js +8 -1
  18. package/dist/hooks/events/useEventComposer.d.ts +3 -0
  19. package/dist/hooks/events/useEventComposer.js +24 -1
  20. package/dist/hooks/posts/useArticleComposer.d.ts +3 -0
  21. package/dist/hooks/posts/useArticleComposer.js +24 -1
  22. package/dist/pages/admin/ConfigurationCommunity.js +1 -1
  23. package/dist/pages/admin/community/CommunityAccess.d.ts +6 -0
  24. package/dist/pages/admin/community/CommunityAccess.js +60 -0
  25. package/dist/pages/articles/New.js +2 -2
  26. package/dist/pages/conversations/Index.js +17 -11
  27. package/dist/pages/conversations/Show.js +63 -12
  28. package/dist/pages/events/New.js +2 -2
  29. package/dist/pages/groups/Index.js +1 -1
  30. package/dist/pages/index.d.ts +1 -0
  31. package/dist/pages/index.js +1 -0
  32. package/package.json +5 -5
  33. package/src/components/conversations/DirectMessageSearch.tsx +130 -0
  34. package/src/components/conversations/MessageInThread.tsx +9 -2
  35. package/src/components/conversations/index.ts +1 -0
  36. package/src/components/post/pieces/modals/DeletePostModal.tsx +11 -9
  37. package/src/components/post/post-form/ArticleForm.tsx +28 -1
  38. package/src/components/post/post-form/EventForm.tsx +28 -2
  39. package/src/components/post/post-form/NewPostModal.tsx +5 -11
  40. package/src/components/post/post-form/OpenpeepsMarkdownInput.tsx +8 -1
  41. package/src/contexts/openpeeps/hooks/conversations.ts +16 -3
  42. package/src/hooks/events/useEventComposer.ts +29 -1
  43. package/src/hooks/posts/useArticleComposer.ts +29 -1
  44. package/src/pages/admin/ConfigurationCommunity.tsx +4 -0
  45. package/src/pages/admin/community/CommunityAccess.tsx +129 -0
  46. package/src/pages/articles/New.tsx +10 -1
  47. package/src/pages/conversations/Index.tsx +51 -32
  48. package/src/pages/conversations/Show.tsx +97 -18
  49. package/src/pages/events/New.tsx +10 -1
  50. package/src/pages/groups/Index.tsx +1 -1
  51. package/src/pages/index.ts +1 -0
@@ -13,6 +13,9 @@ export function NewEvent() {
13
13
  submitting,
14
14
  error,
15
15
  clearError,
16
+ notify,
17
+ setNotify,
18
+ showNotify,
16
19
  submit,
17
20
  } = useNewEvent();
18
21
 
@@ -40,7 +43,13 @@ export function NewEvent() {
40
43
 
41
44
  return (
42
45
  <div className="pb-12">
43
- <EventForm postData={postData} onChange={setPostData} />
46
+ <EventForm
47
+ postData={postData}
48
+ onChange={setPostData}
49
+ showNotify={showNotify}
50
+ notify={notify}
51
+ onNotifyChange={setNotify}
52
+ />
44
53
 
45
54
  {error ? (
46
55
  <div className="px-3">
@@ -48,7 +48,7 @@ export function GroupsIndex() {
48
48
  () =>
49
49
  canCreate
50
50
  ? {
51
- title: t('groups.new', { defaultValue: 'New Group' }),
51
+ title: t('groups.new.label', { defaultValue: 'New Group' }),
52
52
  icon: Plus,
53
53
  action: '/groups/new',
54
54
  }
@@ -77,6 +77,7 @@ export { ConfigurationPluginPage } from './admin/ConfigurationPluginPage';
77
77
  export { AdminConfigurationCommunity } from './admin/ConfigurationCommunity';
78
78
  export { AdminConfigEditor } from './admin/ConfigEditor';
79
79
  export { AdminConfigurationI18n } from './admin/ConfigurationI18n';
80
+ export { AdminConfigurationCommunityAccess } from './admin/community/CommunityAccess';
80
81
  export { AdminConfigurationCommunityInfo } from './admin/community/CommunityInfo';
81
82
  export { AdminConfigurationCommunityLinks } from './admin/community/CommunityLinks';
82
83
  export { CommunityMarkdownPage } from './admin/community/CommunityMarkdownPage';