@mohamed-karawia/library 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/index.js +27 -27
  2. package/dist/stories/Community/Community.js +27 -29
  3. package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
  4. package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
  5. package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
  6. package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
  7. package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
  8. package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
  9. package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
  10. package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
  11. package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
  12. package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
  13. package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
  14. package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
  15. package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
  16. package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
  17. package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
  18. package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
  19. package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
  20. package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
  21. package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
  22. package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
  23. package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
  24. package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
  25. package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
  26. package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
  27. package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
  28. package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
  29. package/dist/stories/Pages/Chat/Chat.js +1 -1
  30. package/dist/stories/Pages/Events/Event/Event.js +1 -1
  31. package/dist/stories/Pages/Events/Events/Events.js +1 -1
  32. package/dist/stories/Pages/Library/Folders/Library.js +2 -2
  33. package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
  34. package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
  35. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
  36. package/dist/stories/Pages/Photos/Album/Album.js +2 -2
  37. package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
  38. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
  39. package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
  40. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +6 -4
  41. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +6 -4
  42. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +6 -4
  43. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +6 -4
  44. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
  45. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +7 -6
  46. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +6 -4
  47. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +6 -4
  48. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +6 -4
  49. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +6 -4
  50. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +6 -4
  51. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +6 -4
  52. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +6 -4
  53. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +6 -4
  54. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +6 -4
  55. package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
  56. package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
  57. package/dist/stories/Spaces/Chat/Chat.js +103 -0
  58. package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
  59. package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
  60. package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
  61. package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
  62. package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
  63. package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
  64. package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
  65. package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
  66. package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
  67. package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
  68. package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
  69. package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
  70. package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
  71. package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
  72. package/dist/stories/helpers/util.js +24 -24
  73. package/dist/stories/store/actions/actions.js +16 -0
  74. package/dist/stories/store/community.js +941 -0
  75. package/dist/stories/store/store.js +9 -4
  76. package/package.json +1 -1
  77. package/src/index.js +16 -16
  78. package/src/stories/Community/Community.jsx +19 -19
  79. package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
  80. package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
  81. package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
  82. package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
  83. package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
  84. package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
  85. package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
  86. package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
  87. package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
  88. package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
  89. package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
  90. package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
  91. package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
  92. package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
  93. package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
  94. package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
  95. package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
  96. package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
  97. package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
  98. package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
  99. package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
  100. package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
  101. package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
  102. package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
  103. package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
  104. package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
  105. package/src/stories/Pages/Chat/Chat.jsx +1 -1
  106. package/src/stories/Pages/Events/Event/Event.jsx +1 -1
  107. package/src/stories/Pages/Events/Events/Events.jsx +1 -1
  108. package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
  109. package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
  110. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
  111. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
  112. package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
  113. package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
  114. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
  115. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
  116. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
  117. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +6 -4
  118. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
  119. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +7 -5
  120. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
  121. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
  122. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +35 -33
  123. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +17 -15
  124. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +6 -4
  125. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
  126. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +7 -5
  127. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +9 -7
  128. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +6 -4
  129. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +6 -4
  130. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +6 -4
  131. package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
  132. package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
  133. package/src/stories/Spaces/Chat/Chat.jsx +77 -0
  134. package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
  135. package/src/stories/{Library/Notes/Notes.jsx → Spaces/NotesList/NotesList.jsx} +20 -66
  136. package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
  137. package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +10 -74
  138. package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
  139. package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
  140. package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
  141. package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
  142. package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +42 -137
  143. package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +16 -55
  144. package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +15 -48
  145. package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +14 -57
  146. package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +14 -52
  147. package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
  148. package/src/stories/helpers/util.js +13 -13
  149. package/src/stories/store/actions/actions.js +7 -0
  150. package/src/stories/store/{communities.js → community.js} +0 -0
  151. package/src/stories/store/store.js +3 -4
  152. package/src/stories/Chat/Chat.jsx +0 -154
  153. package/src/stories/Events/EventsList/EventsList.jsx +0 -187
  154. package/src/stories/Library/Folders/Folders.jsx +0 -196
  155. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -172
  156. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -166
@@ -0,0 +1,88 @@
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 _ViewVideoAlbumList = _interopRequireDefault(require("../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList"));
17
+
18
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
19
+
20
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
21
+
22
+ var _VideoAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumPreview/VideoAlbumPreview"));
23
+
24
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
25
+
26
+ var _excluded = ["showConfigModal", "cancelConfig", "album", "community"];
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 VideoAlbumConfig = function VideoAlbumConfig(_ref) {
33
+ var showConfigModal = _ref.showConfigModal,
34
+ cancelConfig = _ref.cancelConfig,
35
+ album = _ref.album,
36
+ community = _ref.community,
37
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
+
39
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, {
40
+ preview: true,
41
+ album: album
42
+ })),
43
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
44
+ centerContext = _useState2[0],
45
+ setCenterContext = _useState2[1];
46
+
47
+ var formChanged = function formChanged(values) {
48
+ console.log('context changed');
49
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbumList.default, Object.assign({
50
+ preview: true,
51
+ album: album
52
+ }, values)));
53
+ };
54
+
55
+ var tabs = [{
56
+ title: 'New',
57
+ id: 'preview'
58
+ }, {
59
+ title: 'Context',
60
+ id: 'community'
61
+ }];
62
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
63
+ modalIsOpen: showConfigModal,
64
+ closeModal: cancelConfig,
65
+ exitModalButton: function exitModalButton(e) {
66
+ return /*#__PURE__*/_react.default.createElement("div", null);
67
+ }
68
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
69
+ title: "Video Album Config",
70
+ tabs: tabs,
71
+ id: "styling"
72
+ }, /*#__PURE__*/_react.default.createElement(_VideoAlbumPreview.default, {
73
+ componentProps: {
74
+ album: album,
75
+ preview: true
76
+ },
77
+ formChanged: formChanged,
78
+ id: "preview"
79
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
80
+ center: centerContext,
81
+ community: community,
82
+ id: "community"
83
+ })));
84
+ };
85
+
86
+ VideoAlbumConfig.defaultProps = {};
87
+ var _default = VideoAlbumConfig;
88
+ exports.default = _default;
@@ -0,0 +1,89 @@
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 _ViewVideoAlbums = _interopRequireDefault(require("../../Spaces/ViewVideoAlbums/ViewVideoAlbums"));
17
+
18
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
19
+
20
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
21
+
22
+ var _Sections = _interopRequireDefault(require("../../Reusable Components/Sections/Sections"));
23
+
24
+ var _VideoAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview"));
25
+
26
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
27
+
28
+ var _excluded = ["showConfigModal", "cancelConfig", "videoAlbums", "community"];
29
+
30
+ 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); }
31
+
32
+ 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; }
33
+
34
+ var VideoAlbumsConfigModal = function VideoAlbumsConfigModal(_ref) {
35
+ var showConfigModal = _ref.showConfigModal,
36
+ cancelConfig = _ref.cancelConfig,
37
+ videoAlbums = _ref.videoAlbums,
38
+ community = _ref.community,
39
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
40
+
41
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, {
42
+ preview: true,
43
+ videoAlbums: videoAlbums
44
+ })),
45
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
46
+ centerContext = _useState2[0],
47
+ setCenterContext = _useState2[1];
48
+
49
+ var formChanged = function formChanged(values) {
50
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_ViewVideoAlbums.default, Object.assign({
51
+ preview: true,
52
+ videoAlbums: videoAlbums
53
+ }, values)));
54
+ };
55
+
56
+ var tabs = [{
57
+ title: 'New',
58
+ id: 'preview'
59
+ }, {
60
+ title: 'Context',
61
+ id: 'community'
62
+ }];
63
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
64
+ modalIsOpen: showConfigModal,
65
+ closeModal: cancelConfig,
66
+ exitModalButton: function exitModalButton(e) {
67
+ return /*#__PURE__*/_react.default.createElement("div", null);
68
+ }
69
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
70
+ title: "Video Gallery Config",
71
+ tabs: tabs,
72
+ id: "styling"
73
+ }, /*#__PURE__*/_react.default.createElement(_VideoAlbumsPreview.default, {
74
+ componentProps: {
75
+ videoAlbums: videoAlbums,
76
+ preview: true
77
+ },
78
+ formChanged: formChanged,
79
+ id: "preview"
80
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
81
+ center: centerContext,
82
+ community: community,
83
+ id: "community"
84
+ })));
85
+ };
86
+
87
+ VideoAlbumsConfigModal.defaultProps = {};
88
+ var _default = VideoAlbumsConfigModal;
89
+ exports.default = _default;
@@ -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;
@@ -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,
@@ -144,10 +144,12 @@ var ChatPreview = function ChatPreview(props) {
144
144
  }];
145
145
 
146
146
  var handleChange = function handleChange(values) {
147
- if (values) {
148
- props.formChanged(values);
149
- setChatStyles(values);
150
- localStorage.setItem('formStyles', JSON.stringify(values));
147
+ if (props.formChanged) {
148
+ if (values) {
149
+ props.formChanged(values);
150
+ setChatStyles(values);
151
+ localStorage.setItem('formStyles', JSON.stringify(values));
152
+ }
151
153
  }
152
154
  };
153
155
 
@@ -109,10 +109,12 @@ var EventPreview = function EventPreview(props) {
109
109
  }];
110
110
 
111
111
  var handleChange = function handleChange(values) {
112
- if (values) {
113
- props.formChanged(values);
114
- setEventStyles(values);
115
- localStorage.setItem('formStyles', JSON.stringify(values));
112
+ if (props.formChanged) {
113
+ if (values) {
114
+ props.formChanged(values);
115
+ setEventStyles(values);
116
+ localStorage.setItem('formStyles', JSON.stringify(values));
117
+ }
116
118
  }
117
119
  };
118
120
 
@@ -143,10 +143,12 @@ var EventsPreview = function EventsPreview(props) {
143
143
  }];
144
144
 
145
145
  var handleChange = function handleChange(values) {
146
- if (values) {
147
- props.formChanged(values);
148
- setEventsStyles(values);
149
- localStorage.setItem('formStyles', JSON.stringify(values));
146
+ if (props.formChanged) {
147
+ if (values) {
148
+ props.formChanged(values);
149
+ setEventsStyles(values);
150
+ localStorage.setItem('formStyles', JSON.stringify(values));
151
+ }
150
152
  }
151
153
  };
152
154
 
@@ -133,10 +133,12 @@ var FoldersPreview = function FoldersPreview(props) {
133
133
  }];
134
134
 
135
135
  var handleChange = function handleChange(values) {
136
- if (values) {
137
- props.formChanged(values);
138
- setFoldersStyles(values);
139
- localStorage.setItem('formStyles', JSON.stringify(values));
136
+ if (props.formChanged) {
137
+ if (values) {
138
+ props.formChanged(values);
139
+ setFoldersStyles(values);
140
+ localStorage.setItem('formStyles', JSON.stringify(values));
141
+ }
140
142
  }
141
143
  };
142
144
 
@@ -128,10 +128,12 @@ var MusicAlbum = function MusicAlbum(props) {
128
128
  }];
129
129
 
130
130
  var handleChange = function handleChange(values) {
131
- if (values) {
132
- props.formChanged(values);
133
- setMusicAlbumStyles(values);
134
- localStorage.setItem('formStyles', JSON.stringify(values));
131
+ if (props.formChanged) {
132
+ if (values) {
133
+ props.formChanged(values);
134
+ setMusicAlbumStyles(values);
135
+ localStorage.setItem('formStyles', JSON.stringify(values));
136
+ }
135
137
  }
136
138
  };
137
139
 
@@ -131,10 +131,12 @@ var MusicAlbumsPreview = function MusicAlbumsPreview(props) {
131
131
  }];
132
132
 
133
133
  var handleChange = function handleChange(values) {
134
- if (values) {
135
- props.formChanged(values);
136
- setMusicAlbumsStyles(values);
137
- localStorage.setItem('formStyles', JSON.stringify(values));
134
+ if (props.formChanged) {
135
+ if (values) {
136
+ props.formChanged(values);
137
+ setMusicAlbumsStyles(values);
138
+ localStorage.setItem('formStyles', JSON.stringify(values));
139
+ }
138
140
  }
139
141
  };
140
142
 
@@ -171,8 +173,7 @@ var MusicAlbumsPreview = function MusicAlbumsPreview(props) {
171
173
  })), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
172
174
  type: 'MusicAlbums',
173
175
  componentProps: props.componentProps,
174
- stylingProps: musicAlbumsStyles,
175
- da: true
176
+ stylingProps: musicAlbumsStyles
176
177
  })));
177
178
  };
178
179
 
@@ -103,10 +103,12 @@ var MusicPlayerPreview = function MusicPlayerPreview(props) {
103
103
  }];
104
104
 
105
105
  var handleChange = function handleChange(values) {
106
- if (values) {
107
- props.formChanged(values);
108
- setMusicPlayerStyles(values);
109
- localStorage.setItem('formStyles', JSON.stringify(values));
106
+ if (props.formChanged) {
107
+ if (values) {
108
+ props.formChanged(values);
109
+ setMusicPlayerStyles(values);
110
+ localStorage.setItem('formStyles', JSON.stringify(values));
111
+ }
110
112
  }
111
113
  };
112
114
 
@@ -64,10 +64,12 @@ var NavbarPreview = function NavbarPreview(props) {
64
64
  }];
65
65
 
66
66
  var handleChange = function handleChange(values) {
67
- if (values) {
68
- props.formChanged(values);
69
- setNavbarStyles(values);
70
- localStorage.setItem('formStyles', JSON.stringify(values));
67
+ if (props.formChanged) {
68
+ if (values) {
69
+ props.formChanged(values);
70
+ setNavbarStyles(values);
71
+ localStorage.setItem('formStyles', JSON.stringify(values));
72
+ }
71
73
  }
72
74
  };
73
75
 
@@ -124,10 +124,12 @@ var NotesPreview = function NotesPreview(props) {
124
124
  }];
125
125
 
126
126
  var handleChange = function handleChange(values) {
127
- if (values) {
128
- props.formChanged(values);
129
- setNotesStyles(values);
130
- localStorage.setItem('formStyles', JSON.stringify(values));
127
+ if (props.formChanged) {
128
+ if (values) {
129
+ props.formChanged(values);
130
+ setNotesStyles(values);
131
+ localStorage.setItem('formStyles', JSON.stringify(values));
132
+ }
131
133
  }
132
134
  };
133
135
 
@@ -140,10 +140,12 @@ var PhotoAlbumPreview = function PhotoAlbumPreview(props) {
140
140
  }];
141
141
 
142
142
  var handleChange = function handleChange(values) {
143
- if (values) {
144
- props.formChanged(values);
145
- setPhotoAlbumStyles(values);
146
- localStorage.setItem('formStyles', JSON.stringify(values));
143
+ if (props.formChanged) {
144
+ if (values) {
145
+ props.formChanged(values);
146
+ setPhotoAlbumStyles(values);
147
+ localStorage.setItem('formStyles', JSON.stringify(values));
148
+ }
147
149
  }
148
150
  };
149
151