@mohamed-karawia/library 0.1.20 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/dist/index.js +27 -27
  2. package/dist/stories/Chat/Chat.js +24 -31
  3. package/dist/stories/Community/Community.js +54 -34
  4. package/dist/stories/Events/Event/Event.js +13 -6
  5. package/dist/stories/Events/EventsList/EventsList.js +14 -11
  6. package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
  7. package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
  8. package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
  9. package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
  10. package/dist/stories/Library/Folders/Folders.js +27 -21
  11. package/dist/stories/Library/Notes/Notes.js +29 -18
  12. package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
  13. package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
  14. package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
  15. package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
  16. package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
  17. package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
  18. package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
  19. package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
  20. package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
  21. package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
  22. package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
  23. package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
  24. package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
  25. package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
  26. package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
  27. package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
  28. package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
  29. package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
  30. package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
  31. package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
  32. package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
  33. package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
  34. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +9 -46
  35. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +57 -37
  36. package/dist/stories/Pages/Chat/Chat.js +1 -1
  37. package/dist/stories/Pages/Events/Event/Event.js +1 -1
  38. package/dist/stories/Pages/Events/Events/Events.js +1 -1
  39. package/dist/stories/Pages/Library/Folders/Library.js +2 -2
  40. package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
  41. package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
  42. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
  43. package/dist/stories/Pages/Photos/Album/Album.js +2 -2
  44. package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
  45. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
  46. package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
  47. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +26 -16
  48. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +11 -4
  49. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +7 -5
  50. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +7 -5
  51. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +7 -5
  52. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +7 -5
  53. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
  54. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +8 -7
  55. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +7 -5
  56. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +7 -5
  57. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +7 -5
  58. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +7 -5
  59. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +7 -5
  60. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +7 -5
  61. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +7 -5
  62. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +7 -5
  63. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +7 -5
  64. package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
  65. package/dist/stories/Reusable Components/Community/Community.js +13 -36
  66. package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
  67. package/dist/stories/Spaces/Chat/Chat.js +103 -0
  68. package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
  69. package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
  70. package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
  71. package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
  72. package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
  73. package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
  74. package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
  75. package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
  76. package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
  77. package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
  78. package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
  79. package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
  80. package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
  81. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +11 -4
  82. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +17 -6
  83. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +24 -25
  84. package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
  85. package/dist/stories/helpers/util.js +24 -24
  86. package/dist/stories/store/actions/actions.js +16 -0
  87. package/dist/stories/store/communities.js +27 -29
  88. package/dist/stories/store/community.js +941 -0
  89. package/dist/stories/store/store.js +9 -4
  90. package/package.json +1 -1
  91. package/src/index.js +16 -16
  92. package/src/stories/Community/Community.jsx +31 -32
  93. package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
  94. package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
  95. package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
  96. package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
  97. package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
  98. package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
  99. package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
  100. package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
  101. package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
  102. package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
  103. package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
  104. package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
  105. package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
  106. package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
  107. package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
  108. package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
  109. package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
  110. package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
  111. package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
  112. package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
  113. package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
  114. package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
  115. package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
  116. package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
  117. package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
  118. package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
  119. package/src/stories/Pages/Chat/Chat.jsx +1 -1
  120. package/src/stories/Pages/Events/Event/Event.jsx +1 -1
  121. package/src/stories/Pages/Events/Events/Events.jsx +1 -1
  122. package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
  123. package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
  124. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
  125. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
  126. package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
  127. package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
  128. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
  129. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
  130. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
  131. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +7 -5
  132. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
  133. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +8 -6
  134. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
  135. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
  136. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +36 -34
  137. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +18 -16
  138. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +7 -5
  139. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
  140. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +8 -6
  141. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +10 -8
  142. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +7 -5
  143. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +7 -5
  144. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +7 -5
  145. package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
  146. package/src/stories/Reusable Components/Community/Community.jsx +10 -33
  147. package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
  148. package/src/stories/Spaces/Chat/Chat.jsx +77 -0
  149. package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
  150. package/src/stories/Spaces/NotesList/NotesList.jsx +125 -0
  151. package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
  152. package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +17 -73
  153. package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
  154. package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
  155. package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
  156. package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
  157. package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +48 -134
  158. package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +22 -54
  159. package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +21 -47
  160. package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +31 -78
  161. package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +20 -51
  162. package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
  163. package/src/stories/helpers/util.js +13 -13
  164. package/src/stories/store/actions/actions.js +7 -0
  165. package/src/stories/store/{communities.js → community.js} +27 -29
  166. package/src/stories/store/store.js +3 -4
  167. package/src/stories/Chat/Chat.jsx +0 -148
  168. package/src/stories/Events/EventsList/EventsList.jsx +0 -180
  169. package/src/stories/Library/Folders/Folders.jsx +0 -187
  170. package/src/stories/Library/Notes/Notes.jsx +0 -161
  171. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -216
  172. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -152
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _ViewVideo = _interopRequireDefault(require("../../Spaces/ViewVideo/ViewVideo"));
17
+
18
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
19
+
20
+ var _VideoPreview = _interopRequireDefault(require("../../PreviewComponents/VideoPreview/VideoPreview"));
21
+
22
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
23
+
24
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
25
+
26
+ var _excluded = ["showConfigModal", "cancelConfig", "community", "videoSrc", "title", "discription", "date", "users", "comments"];
27
+
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
32
+ var VideoConfigModal = function VideoConfigModal(_ref) {
33
+ var showConfigModal = _ref.showConfigModal,
34
+ cancelConfig = _ref.cancelConfig,
35
+ community = _ref.community,
36
+ videoSrc = _ref.videoSrc,
37
+ title = _ref.title,
38
+ discription = _ref.discription,
39
+ date = _ref.date,
40
+ users = _ref.users,
41
+ comments = _ref.comments,
42
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
43
+
44
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideo.default, {
45
+ users: users,
46
+ preview: true,
47
+ videoSrc: videoSrc,
48
+ comments: comments
49
+ })),
50
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
51
+ centerContext = _useState2[0],
52
+ setCenterContext = _useState2[1];
53
+
54
+ var formChanged = function formChanged(values) {
55
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideo.default, Object.assign({
56
+ users: users,
57
+ preview: true,
58
+ videoSrc: videoSrc,
59
+ comments: comments
60
+ }, values)));
61
+ };
62
+
63
+ var tabs = [{
64
+ title: 'New',
65
+ id: 'preview'
66
+ }, {
67
+ title: 'Context',
68
+ id: 'community'
69
+ }];
70
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
71
+ modalIsOpen: showConfigModal,
72
+ closeModal: cancelConfig,
73
+ exitModalButton: function exitModalButton(e) {
74
+ return /*#__PURE__*/_react.default.createElement("div", null);
75
+ }
76
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
77
+ title: "Video Space Config",
78
+ tabs: tabs,
79
+ id: "styling"
80
+ }, /*#__PURE__*/_react.default.createElement(_VideoPreview.default, {
81
+ componentProps: {
82
+ title: title,
83
+ discription: discription,
84
+ comments: comments,
85
+ date: date,
86
+ preview: true
87
+ },
88
+ formChanged: formChanged,
89
+ id: "preview"
90
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
91
+ center: centerContext,
92
+ community: community,
93
+ id: "community"
94
+ })));
95
+ };
96
+
97
+ VideoConfigModal.defaultProps = {};
98
+ var _default = VideoConfigModal;
99
+ exports.default = _default;
@@ -39,16 +39,15 @@ var _Community = _interopRequireDefault(require("../../Reusable Components/Commu
39
39
 
40
40
  var _constatnts = require("../../Pages/ViewWorld/constatnts");
41
41
 
42
- var _styling = _interopRequireDefault(require("../../styling.json"));
43
-
44
42
  var _templateObject;
45
43
 
46
- var _excluded = ["album", "cardBackgroundColor", "songTitleColor"];
44
+ var _excluded = ["album", "cardBackgroundColor", "songTitleColor", "community"];
47
45
 
48
46
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
49
47
 
50
48
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
51
49
 
50
+ // import styles from '../../styling.json'
52
51
  var listControls = [{
53
52
  icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineFileAdd, null),
54
53
  action: 'add',
@@ -68,6 +67,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
68
67
  var album = _ref.album,
69
68
  cardBackgroundColor = _ref.cardBackgroundColor,
70
69
  songTitleColor = _ref.songTitleColor,
70
+ community = _ref.community,
71
71
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
72
72
 
73
73
  var _useState = (0, _react.useState)(false),
@@ -81,6 +81,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
81
81
  setShowConfigModal = _useState4[1];
82
82
 
83
83
  var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
84
+ preview: true,
84
85
  album: album
85
86
  })),
86
87
  _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
@@ -90,6 +91,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
90
91
  var formChanged = function formChanged(values) {
91
92
  console.log('context changed');
92
93
  setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
94
+ preview: true,
93
95
  album: album
94
96
  }, values)));
95
97
  };
@@ -175,27 +177,9 @@ var ViewAlbum = function ViewAlbum(_ref) {
175
177
  exitModalButton: function exitModalButton(e) {
176
178
  return /*#__PURE__*/_react.default.createElement("div", null);
177
179
  }
178
- }, /*#__PURE__*/_react.default.createElement(_Sections.default, {
179
- sections: sections,
180
- backgroundColor: 'white',
181
- sectionHeaderStyles: {
182
- titleColor: 'white',
183
- headerBackground: 'transparent'
184
- },
185
- customCardStyles: {
186
- cardPadding: 6,
187
- cardTitleFontSize: 15,
188
- cardBackgroundColor: '#2c2c2c',
189
- cardTitleColor: 'white',
190
- onHoverBackgroundColor: '#555555',
191
- controlsStyles: {
192
- showOnHover: true
193
- }
194
- }
195
180
  }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
196
- title: "Music Album Config",
197
- tabs: tabs,
198
- id: "styling"
181
+ title: "Album Config",
182
+ tabs: tabs
199
183
  }, /*#__PURE__*/_react.default.createElement(_MusicAlbumPreview.default, {
200
184
  componentProps: {
201
185
  album: album,
@@ -205,31 +189,10 @@ var ViewAlbum = function ViewAlbum(_ref) {
205
189
  formChanged: formChanged,
206
190
  id: "preview"
207
191
  }), /*#__PURE__*/_react.default.createElement(_Community.default, {
208
- right: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
209
- widgetType: "music player",
210
- widgetProps: {
211
- playlist: album,
212
- currentSong: 1
213
- }
214
- }),
215
- left: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
216
- widgetType: "spaces-list",
217
- widgetProps: {
218
- listTitle: 'Your Spaces',
219
- type: 'sectioned',
220
- spaces: _constatnts.SPACES,
221
- cardStyle: 'card-style-3',
222
- cardClicked: function cardClicked() {
223
- return alert('clicked');
224
- },
225
- headerStyles: _styling.default.widgetContainer.header,
226
- sectionHeaderStyles: _styling.default.widgetContainer.body.sectionHeaderStyles,
227
- customCardStyles: _styling.default.widgetContainer.body.customCardStyles
228
- }
229
- }),
230
192
  center: centerContext,
193
+ community: community,
231
194
  id: "community"
232
- })))));
195
+ }))));
233
196
  };
234
197
 
235
198
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
@@ -29,13 +29,15 @@ var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
29
29
 
30
30
  var _MusicAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview"));
31
31
 
32
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
33
+
32
34
  var _ai = require("react-icons/ai");
33
35
 
34
36
  var _bs = require("react-icons/bs");
35
37
 
36
38
  var _templateObject;
37
39
 
38
- var _excluded = ["albums", "albumTitleColor", "descColor"];
40
+ var _excluded = ["albums", "community"];
39
41
 
40
42
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
43
 
@@ -58,8 +60,7 @@ var galleryControls = [{
58
60
 
59
61
  var ViewAlbums = function ViewAlbums(_ref) {
60
62
  var albums = _ref.albums,
61
- albumTitleColor = _ref.albumTitleColor,
62
- descColor = _ref.descColor,
63
+ community = _ref.community,
63
64
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
64
65
 
65
66
  var _useState = (0, _react.useState)(false),
@@ -72,14 +73,20 @@ var ViewAlbums = function ViewAlbums(_ref) {
72
73
  showConfigModal = _useState4[0],
73
74
  setShowConfigModal = _useState4[1];
74
75
 
76
+ var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbums, {
77
+ preview: true,
78
+ albums: albums
79
+ })),
80
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
81
+ centerContext = _useState6[0],
82
+ setCenterContext = _useState6[1];
83
+
75
84
  var tabs = [{
76
85
  title: 'New',
77
- component: /*#__PURE__*/_react.default.createElement(_MusicAlbumsPreview.default, {
78
- componentProps: {
79
- albums: albums,
80
- title: props.title || 'Music Albums'
81
- }
82
- })
86
+ id: 'preview'
87
+ }, {
88
+ title: 'Context',
89
+ id: 'community'
83
90
  }];
84
91
  var sections = [{
85
92
  title: 'Styles',
@@ -93,17 +100,19 @@ var ViewAlbums = function ViewAlbums(_ref) {
93
100
  }];
94
101
 
95
102
  var onHeaderIconClicked = function onHeaderIconClicked(action) {
96
- switch (action) {
97
- case 'add':
98
- setShowModal(true);
99
- break;
100
-
101
- case 'config':
102
- setShowConfigModal(true);
103
- break;
104
-
105
- default:
106
- break;
103
+ if (!props.preview) {
104
+ switch (action) {
105
+ case 'add':
106
+ setShowModal(true);
107
+ break;
108
+
109
+ case 'config':
110
+ setShowConfigModal(true);
111
+ break;
112
+
113
+ default:
114
+ break;
115
+ }
107
116
  }
108
117
  };
109
118
 
@@ -111,6 +120,13 @@ var ViewAlbums = function ViewAlbums(_ref) {
111
120
  props.cardIconClicked(action, index);
112
121
  };
113
122
 
123
+ var formChanged = function formChanged(values) {
124
+ setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbums, Object.assign({
125
+ preview: true,
126
+ albums: albums
127
+ }, values)));
128
+ };
129
+
114
130
  var onAddAlbum = function onAddAlbum(album) {
115
131
  setShowModal(false);
116
132
  props.onAddAlbum(album);
@@ -120,6 +136,11 @@ var ViewAlbums = function ViewAlbums(_ref) {
120
136
  setShowModal(false);
121
137
  };
122
138
 
139
+ var cancelConfig = function cancelConfig() {
140
+ setShowConfigModal(false);
141
+ localStorage.removeItem('formStyles');
142
+ };
143
+
123
144
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
124
145
  galleryTitle: props.title || 'Music Albums',
125
146
  data: albums,
@@ -144,27 +165,26 @@ var ViewAlbums = function ViewAlbums(_ref) {
144
165
  cancelBtnText: props.cancelBtnText || "Cancel"
145
166
  })), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
146
167
  modalIsOpen: showConfigModal,
147
- closeModal: function closeModal() {
148
- return setShowConfigModal(false);
149
- },
168
+ closeModal: cancelConfig,
150
169
  exitModalButton: function exitModalButton(e) {
151
170
  return /*#__PURE__*/_react.default.createElement("div", null);
152
171
  }
153
- }, /*#__PURE__*/_react.default.createElement(_Sections.default, {
154
- sections: sections,
155
- backgroundColor: 'white',
156
- sectionHeaderStyles: {
157
- titleColor: 'white',
158
- headerBackground: 'transparent'
172
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
173
+ title: "Albums Config",
174
+ tabs: tabs
175
+ }, /*#__PURE__*/_react.default.createElement(_MusicAlbumsPreview.default, {
176
+ componentProps: {
177
+ albums: albums,
178
+ title: 'Music Albums',
179
+ preview: true
159
180
  },
160
- customCardStyles: {
161
- cardPadding: 6,
162
- cardTitleFontSize: 15,
163
- cardBackgroundColor: '#2c2c2c',
164
- cardTitleColor: 'white',
165
- onHoverBackgroundColor: '#555555'
166
- }
167
- })));
181
+ formChanged: formChanged,
182
+ id: "preview"
183
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
184
+ center: centerContext,
185
+ community: community,
186
+ id: "community"
187
+ }))));
168
188
  };
169
189
 
170
190
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
@@ -31,7 +31,7 @@ var _styles = _interopRequireDefault(require("../ViewWorld/styles.json"));
31
31
 
32
32
  var _constatnts = require("../ViewWorld/constatnts");
33
33
 
34
- var _Chat = _interopRequireDefault(require("../../Chat/Chat"));
34
+ var _Chat = _interopRequireDefault(require("../../Spaces/Chat/Chat"));
35
35
 
36
36
  var _excluded = ["users", "data"];
37
37
 
@@ -25,7 +25,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
25
25
 
26
26
  var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
27
27
 
28
- var _Event = _interopRequireDefault(require("../../../Events/Event/Event"));
28
+ var _Event = _interopRequireDefault(require("../../../Spaces/ViewEvent/Event"));
29
29
 
30
30
  var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
31
31
 
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
27
27
 
28
28
  var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
29
29
 
30
- var _EventsList = _interopRequireDefault(require("../../../Events/EventsList/EventsList"));
30
+ var _EventsList = _interopRequireDefault(require("../../../Spaces/EventsList/EventsList"));
31
31
 
32
32
  var _util = require("../../../helpers/util");
33
33
 
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
27
27
 
28
28
  var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
29
29
 
30
- var _Folders = _interopRequireDefault(require("../../../Library/Folders/Folders"));
30
+ var _ViewFolders = _interopRequireDefault(require("../../../Spaces/ViewFolders/ViewFolders"));
31
31
 
32
32
  var _util = require("../../../helpers/util");
33
33
 
@@ -120,7 +120,7 @@ var Library = function Library(props) {
120
120
  title: "Music Album",
121
121
  discription: "Lorem ipsum dolor sit amet consectetur.",
122
122
  hideTitle: true
123
- }, /*#__PURE__*/_react.default.createElement(_Folders.default, {
123
+ }, /*#__PURE__*/_react.default.createElement(_ViewFolders.default, {
124
124
  folders: folders,
125
125
  folderTitle: "Your Folders",
126
126
  columnsNumber: 3,
@@ -27,7 +27,7 @@ var _SpaceContainer = _interopRequireDefault(require("../../../Reusable Componen
27
27
 
28
28
  var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Components/WidgetContainer/WidgetContainer"));
29
29
 
30
- var _Notes = _interopRequireDefault(require("../../../Library/Notes/Notes"));
30
+ var _NotesList = _interopRequireDefault(require("../../../Spaces/NotesList/NotesList"));
31
31
 
32
32
  var _util = require("../../../helpers/util");
33
33
 
@@ -116,7 +116,7 @@ var Notes = function Notes(props) {
116
116
  title: "Music Album",
117
117
  discription: "Lorem ipsum dolor sit amet consectetur.",
118
118
  hideTitle: true
119
- }, /*#__PURE__*/_react.default.createElement(_Notes.default, {
119
+ }, /*#__PURE__*/_react.default.createElement(_NotesList.default, {
120
120
  onAddNote: onAddNote,
121
121
  cardIconClicked: cardIconClicked,
122
122
  notes: notes,
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
21
21
 
22
22
  var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
23
23
 
24
- var _ViewAlbum = _interopRequireDefault(require("../../../Music Album/ViewAlbum/ViewAlbum"));
24
+ var _ViewMusicAlbumList = _interopRequireDefault(require("../../../Spaces/ViewMusicAlbumList/ViewMusicAlbumList"));
25
25
 
26
26
  var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
27
27
 
@@ -179,7 +179,7 @@ var Music = function Music(props) {
179
179
  title: "Music Album",
180
180
  discription: "Lorem ipsum dolor sit amet consectetur.",
181
181
  hideTitle: true
182
- }, /*#__PURE__*/_react.default.createElement(_ViewAlbum.default, {
182
+ }, /*#__PURE__*/_react.default.createElement(_ViewMusicAlbumList.default, {
183
183
  album: album,
184
184
  onAddSong: onAddSong,
185
185
  cardIconClicked: cardIconClicked,
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
21
21
 
22
22
  var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
23
23
 
24
- var _ViewAlbums = _interopRequireDefault(require("../../../Music Album/ViewAlbums/ViewAlbums"));
24
+ var _ViewMusicAlbums = _interopRequireDefault(require("../../../Spaces/ViewMusicAlbums/ViewMusicAlbums"));
25
25
 
26
26
  var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
27
27
 
@@ -161,7 +161,7 @@ var MusicAlbums = function MusicAlbums(props) {
161
161
  title: "Photo Albums",
162
162
  discription: "Lorem ipsum dolor sit amet consectetur.",
163
163
  hideTitle: true
164
- }, /*#__PURE__*/_react.default.createElement(_ViewAlbums.default, {
164
+ }, /*#__PURE__*/_react.default.createElement(_ViewMusicAlbums.default, {
165
165
  title: "Music Albums",
166
166
  albums: albums,
167
167
  cardIconClicked: cardIconClicked,
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
21
21
 
22
22
  var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
23
23
 
24
- var _ViewAlbum = _interopRequireDefault(require("../../../Photo Album/ViewAlbum/ViewAlbum"));
24
+ var _ViewPhotoAlbums = _interopRequireDefault(require("../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
25
25
 
26
26
  var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
27
27
 
@@ -151,7 +151,7 @@ var Album = function Album(props) {
151
151
  title: "Photo Albums",
152
152
  discription: "Lorem ipsum dolor sit amet consectetur.",
153
153
  hideTitle: true
154
- }, /*#__PURE__*/_react.default.createElement(_ViewAlbum.default, {
154
+ }, /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, {
155
155
  album: album,
156
156
  addPhoto: onAddPhoto,
157
157
  deletePhoto: onDeletePhoto,
@@ -21,7 +21,7 @@ var _Right = _interopRequireDefault(require("../../../Layout/Right/Right"));
21
21
 
22
22
  var _Navbar = _interopRequireDefault(require("../../../Navbar/Navbar"));
23
23
 
24
- var _ViewAlbums = _interopRequireDefault(require("../../../Photo Album/ViewAlbums/ViewAlbums"));
24
+ var _ViewPhotoAlbums = _interopRequireDefault(require("../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums"));
25
25
 
26
26
  var _BaseMaterial = _interopRequireDefault(require("../../../Containers/BaseMaterial"));
27
27
 
@@ -162,7 +162,7 @@ var Albums = function Albums(props) {
162
162
  title: "Photo Albums",
163
163
  discription: "Lorem ipsum dolor sit amet consectetur.",
164
164
  hideTitle: true
165
- }, /*#__PURE__*/_react.default.createElement(_ViewAlbums.default, {
165
+ }, /*#__PURE__*/_react.default.createElement(_ViewPhotoAlbums.default, {
166
166
  albums: albums,
167
167
  cardIconClicked: cardIconClicked,
168
168
  onDeleteAlbum: onDeleteAlbum,
@@ -29,7 +29,7 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
29
29
 
30
30
  var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
31
31
 
32
- var _VideoSpace = _interopRequireDefault(require("../../../VideoAlbum/VideoSpace/VideoSpace"));
32
+ var _ViewVideo = _interopRequireDefault(require("../../../Spaces/ViewVideo/ViewVideo"));
33
33
 
34
34
  var _constatnts = require("../../ViewWorld/constatnts");
35
35
 
@@ -96,7 +96,7 @@ var DetailedVideo = function DetailedVideo(props) {
96
96
  title: "Music Album",
97
97
  discription: "Lorem ipsum dolor sit amet consectetur.",
98
98
  hideTitle: true
99
- }, /*#__PURE__*/_react.default.createElement(_VideoSpace.default, {
99
+ }, /*#__PURE__*/_react.default.createElement(_ViewVideo.default, {
100
100
  iconsColor: "white",
101
101
  backgroundColor: "white",
102
102
  title: "Video Title",
@@ -29,7 +29,7 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
29
29
 
30
30
  var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
31
31
 
32
- var _ViewAlbum = _interopRequireDefault(require("../../../VideoAlbum/ViewAlbum/ViewAlbum"));
32
+ var _ViewVideoAlbumList = _interopRequireDefault(require("../../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
33
33
 
34
34
  var _constatnts = require("../../ViewWorld/constatnts");
35
35
 
@@ -190,7 +190,7 @@ var Video = function Video(props) {
190
190
  title: "Music Album",
191
191
  discription: "Lorem ipsum dolor sit amet consectetur.",
192
192
  hideTitle: true
193
- }, /*#__PURE__*/_react.default.createElement(_ViewAlbum.default, {
193
+ }, /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, {
194
194
  album: album,
195
195
  onAddVideo: onAddVideo,
196
196
  onDeleteSong: deleteVideoFromAlbum,
@@ -39,7 +39,7 @@ var _bs = require("react-icons/bs");
39
39
 
40
40
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
41
41
 
42
- var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "descColor"];
42
+ var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "descColor", "community"];
43
43
 
44
44
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
45
45
 
@@ -65,6 +65,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
65
65
  cardBackgroundColor = _ref.cardBackgroundColor,
66
66
  imgTitleColor = _ref.imgTitleColor,
67
67
  descColor = _ref.descColor,
68
+ community = _ref.community,
68
69
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
69
70
  var cardStyles = {
70
71
  cardBackgroundColor: cardBackgroundColor,
@@ -114,6 +115,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
114
115
  setOpenedImg = _useState10[1];
115
116
 
116
117
  var _useState11 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
118
+ preview: true,
117
119
  album: album
118
120
  })),
119
121
  _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
@@ -122,6 +124,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
122
124
 
123
125
  var formChanged = function formChanged(values) {
124
126
  setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
127
+ preview: true,
125
128
  album: album
126
129
  }, values)));
127
130
  };
@@ -152,17 +155,19 @@ var ViewAlbum = function ViewAlbum(_ref) {
152
155
  }, [openedImgIndex, handleUserKeyPress]);
153
156
 
154
157
  var onIconClicked = function onIconClicked(action) {
155
- switch (action) {
156
- case 'add':
157
- setShowModal(true);
158
- break;
159
-
160
- case 'config':
161
- setShowConfigModal(true);
162
- break;
163
-
164
- default:
165
- break;
158
+ if (!props.preview) {
159
+ switch (action) {
160
+ case 'add':
161
+ setShowModal(true);
162
+ break;
163
+
164
+ case 'config':
165
+ setShowConfigModal(true);
166
+ break;
167
+
168
+ default:
169
+ break;
170
+ }
166
171
  }
167
172
  };
168
173
 
@@ -198,6 +203,11 @@ var ViewAlbum = function ViewAlbum(_ref) {
198
203
  }
199
204
  };
200
205
 
206
+ var cancelConfig = function cancelConfig() {
207
+ setShowConfigModal(false);
208
+ localStorage.removeItem('formStyles');
209
+ };
210
+
201
211
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
202
212
  galleryTitle: props.title || "Photo Album",
203
213
  data: album,
@@ -246,9 +256,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
246
256
  onClick: nextPhoto
247
257
  }, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowRight, null))), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
248
258
  modalIsOpen: showConfigModal,
249
- closeModal: function closeModal() {
250
- return setShowConfigModal(false);
251
- },
259
+ closeModal: cancelConfig,
252
260
  exitModalButton: function exitModalButton(e) {
253
261
  return /*#__PURE__*/_react.default.createElement("div", null);
254
262
  }
@@ -262,9 +270,11 @@ var ViewAlbum = function ViewAlbum(_ref) {
262
270
  title: props.title || 'Photo Album',
263
271
  preview: true
264
272
  },
265
- formChanged: formChanged
273
+ formChanged: formChanged,
274
+ id: "preview"
266
275
  }), /*#__PURE__*/_react.default.createElement(_Community.default, {
267
276
  center: centerContext,
277
+ community: community,
268
278
  id: "community"
269
279
  }))));
270
280
  };