@selfcommunity/react-ui 0.1.2-alpha.2 → 0.1.2-alpha.5

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 (25) hide show
  1. package/lib/cjs/components/CommentObject/CommentObject.js +0 -2
  2. package/lib/cjs/components/Editor/Editor.js +1 -7
  3. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +0 -1
  4. package/lib/cjs/components/Notification/Comment/Comment.js +1 -1
  5. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +9 -4
  6. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +1 -7
  7. package/lib/cjs/shared/AutoPlayer/index.js +8 -1
  8. package/lib/cjs/utils/hash.js +1 -1
  9. package/lib/esm/components/CommentObject/CommentObject.js +0 -2
  10. package/lib/esm/components/Editor/Editor.js +1 -7
  11. package/lib/esm/components/Editor/plugins/ImagePlugin.js +0 -1
  12. package/lib/esm/components/Notification/Comment/Comment.js +1 -1
  13. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +9 -4
  14. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +1 -7
  15. package/lib/esm/react-ui/src/components/CommentObject/CommentObject.d.ts.map +1 -1
  16. package/lib/esm/react-ui/src/components/Editor/Editor.d.ts.map +1 -1
  17. package/lib/esm/react-ui/src/components/Editor/plugins/ImagePlugin.d.ts.map +1 -1
  18. package/lib/esm/react-ui/src/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
  19. package/lib/esm/react-ui/src/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
  20. package/lib/esm/react-ui/src/shared/AutoPlayer/index.d.ts.map +1 -1
  21. package/lib/esm/shared/AutoPlayer/index.js +8 -1
  22. package/lib/esm/utils/hash.js +1 -1
  23. package/lib/umd/react-ui.js +2 -2
  24. package/lib/umd/react-ui.js.map +1 -1
  25. package/package.json +7 -7
@@ -662,7 +662,6 @@ function CommentObject(inProps) {
662
662
  text: comment.html,
663
663
  autoFocus: true,
664
664
  id: `edit-${comment.id}`,
665
- commentObject: comment,
666
665
  onSave: handleSave,
667
666
  onCancel: handleCancel,
668
667
  readOnly: isReplying || isSavingComment,
@@ -719,7 +718,6 @@ function CommentObject(inProps) {
719
718
  autoFocus: true,
720
719
  key: `reply-${replyComment.id}`,
721
720
  id: `reply-${replyComment.id}`,
722
- commentObject: replyComment,
723
721
  onReply: handleReply,
724
722
  readOnly: isReplying
725
723
  }, ReplyCommentObjectProps))));
@@ -61,13 +61,7 @@ const Root = (0, _styles.styled)(_material.Box, {
61
61
  outline: 'none',
62
62
  minHeight: 60,
63
63
  '& > p': {
64
- margin: theme.spacing(1, 0, 1, 0),
65
- '&:first-child': {
66
- marginTop: 0
67
- },
68
- '&:last-child': {
69
- marginBottom: 0
70
- }
64
+ margin: theme.spacing(1, 0, 1, 0)
71
65
  },
72
66
  '& img': {
73
67
  margin: theme.spacing(1, 0, 1, 0),
@@ -143,7 +143,6 @@ function ImagePlugin() {
143
143
 
144
144
  const imageNode = (0, _ImageNode.$createImageNode)(payload.src, payload.altText, '100%');
145
145
  selection.insertNodes([imageNode]);
146
- console.log('image');
147
146
  }
148
147
 
149
148
  return true;
@@ -190,7 +190,7 @@ function CommentNotification(inProps) {
190
190
  })
191
191
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
192
192
  fontSize: 'small',
193
- color: 'secondary'
193
+ color: 'primary'
194
194
  }, "thumb_up_alt")) : /*#__PURE__*/_react.default.createElement(_material.Tooltip, {
195
195
  title: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
196
196
  id: 'ui.notification.comment.voteUp',
@@ -126,20 +126,25 @@ function ContributionFollowNotification(inProps) {
126
126
  }
127
127
  })),
128
128
  primary: /*#__PURE__*/_react.default.createElement(_material.Typography, {
129
- component: "div",
129
+ component: "span",
130
130
  color: "inherit",
131
131
  className: classes.followText
132
132
  }, /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
133
133
  to: scRoutingContext.url(_reactCore.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user),
134
134
  className: classes.username
135
135
  }, notificationObject.user.username), ' ', intl.formatMessage(messages.contributionFollow, {
136
- username: notificationObject.user.username,
137
136
  b: (...chunks) => /*#__PURE__*/_react.default.createElement("strong", null, chunks)
138
137
  })),
139
- secondary: template === _types.SCNotificationObjectTemplateType.DETAIL && /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
138
+ secondary: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, template === _types.SCNotificationObjectTemplateType.SNIPPET && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ":", ' ', /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
139
+ to: scRoutingContext.url(_reactCore.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, _contribution.getRouteData)(notificationObject[contributionType]))
140
+ }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
141
+ variant: "body2",
142
+ gutterBottom: true,
143
+ className: classes.contributionText
144
+ }, (0, _contribution.getContributionSnippet)(notificationObject[contributionType])))), template === _types.SCNotificationObjectTemplateType.DETAIL && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
140
145
  date: notificationObject.active_at,
141
146
  className: classes.activeAt
142
- }),
147
+ }))),
143
148
  footer: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, template === _types.SCNotificationObjectTemplateType.TOAST && /*#__PURE__*/_react.default.createElement(_material.Stack, {
144
149
  direction: "row",
145
150
  justifyContent: "space-between",
@@ -9,8 +9,6 @@ var _styles = require("@mui/material/styles");
9
9
 
10
10
  var _material = require("@mui/material");
11
11
 
12
- var _Icon = _interopRequireDefault(require("@mui/material/Icon"));
13
-
14
12
  var _reactCore = require("@selfcommunity/react-core");
15
13
 
16
14
  var _reactIntl = require("react-intl");
@@ -45,7 +43,6 @@ const classes = {
45
43
  avatar: `${PREFIX}-avatar`,
46
44
  actions: `${PREFIX}-actions`,
47
45
  replyButton: `${PREFIX}-reply-button`,
48
- replyButtonIcon: `${PREFIX}-reply-button-icon`,
49
46
  activeAt: `${PREFIX}-active-at`,
50
47
  messageLabel: `${PREFIX}-message-label`,
51
48
  username: `${PREFIX}-username`,
@@ -226,10 +223,7 @@ function PrivateMessageNotification(inProps) {
226
223
  root: classes.replyButton
227
224
  },
228
225
  component: _reactCore.Link,
229
- to: scRoutingContext.url(_reactCore.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message),
230
- endIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
231
- className: classes.replyButtonIcon
232
- }, "reply")
226
+ to: scRoutingContext.url(_reactCore.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message)
233
227
  }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
234
228
  id: "ui.notification.privateMessage.btnReplyLabel",
235
229
  defaultMessage: "ui.notification.privateMessage.btnReplyLabel"
@@ -85,7 +85,6 @@ function AutoPlayer(props) {
85
85
  }
86
86
  }
87
87
  },
88
- enableAutoplay: enableAutoplay,
89
88
  loop: loop,
90
89
  controls: controls,
91
90
  stopOnUnmount: stopOnUnmount,
@@ -94,6 +93,14 @@ function AutoPlayer(props) {
94
93
  muted: muted,
95
94
  onProgress: progress => {
96
95
  setPlayed(progress.playedSeconds);
96
+ },
97
+ config: {
98
+ vimeo: {
99
+ playerOptions: {
100
+ autopause: true
101
+ },
102
+ preload: true
103
+ }
97
104
  }
98
105
  }, rest))));
99
106
  }
@@ -17,7 +17,7 @@ const md5 = (file, chunkSize, callback) => {
17
17
  fileReader = new FileReader();
18
18
 
19
19
  fileReader.onload = function (e) {
20
- console.log('read chunk nr', currentChunk + 1, 'of', chunks);
20
+ // console.log('read chunk nr', currentChunk + 1, 'of', chunks);
21
21
  spark.append(e.target.result); // Append array buffer
22
22
 
23
23
  currentChunk++;
@@ -662,7 +662,6 @@ function CommentObject(inProps) {
662
662
  text: comment.html,
663
663
  autoFocus: true,
664
664
  id: `edit-${comment.id}`,
665
- commentObject: comment,
666
665
  onSave: handleSave,
667
666
  onCancel: handleCancel,
668
667
  readOnly: isReplying || isSavingComment,
@@ -719,7 +718,6 @@ function CommentObject(inProps) {
719
718
  autoFocus: true,
720
719
  key: `reply-${replyComment.id}`,
721
720
  id: `reply-${replyComment.id}`,
722
- commentObject: replyComment,
723
721
  onReply: handleReply,
724
722
  readOnly: isReplying
725
723
  }, ReplyCommentObjectProps))));
@@ -61,13 +61,7 @@ const Root = (0, _styles.styled)(_material.Box, {
61
61
  outline: 'none',
62
62
  minHeight: 60,
63
63
  '& > p': {
64
- margin: theme.spacing(1, 0, 1, 0),
65
- '&:first-child': {
66
- marginTop: 0
67
- },
68
- '&:last-child': {
69
- marginBottom: 0
70
- }
64
+ margin: theme.spacing(1, 0, 1, 0)
71
65
  },
72
66
  '& img': {
73
67
  margin: theme.spacing(1, 0, 1, 0),
@@ -143,7 +143,6 @@ function ImagePlugin() {
143
143
 
144
144
  const imageNode = (0, _ImageNode.$createImageNode)(payload.src, payload.altText, '100%');
145
145
  selection.insertNodes([imageNode]);
146
- console.log('image');
147
146
  }
148
147
 
149
148
  return true;
@@ -190,7 +190,7 @@ function CommentNotification(inProps) {
190
190
  })
191
191
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
192
192
  fontSize: 'small',
193
- color: 'secondary'
193
+ color: 'primary'
194
194
  }, "thumb_up_alt")) : /*#__PURE__*/_react.default.createElement(_material.Tooltip, {
195
195
  title: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
196
196
  id: 'ui.notification.comment.voteUp',
@@ -126,20 +126,25 @@ function ContributionFollowNotification(inProps) {
126
126
  }
127
127
  })),
128
128
  primary: /*#__PURE__*/_react.default.createElement(_material.Typography, {
129
- component: "div",
129
+ component: "span",
130
130
  color: "inherit",
131
131
  className: classes.followText
132
132
  }, /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
133
133
  to: scRoutingContext.url(_reactCore.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user),
134
134
  className: classes.username
135
135
  }, notificationObject.user.username), ' ', intl.formatMessage(messages.contributionFollow, {
136
- username: notificationObject.user.username,
137
136
  b: (...chunks) => /*#__PURE__*/_react.default.createElement("strong", null, chunks)
138
137
  })),
139
- secondary: template === _types.SCNotificationObjectTemplateType.DETAIL && /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
138
+ secondary: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, template === _types.SCNotificationObjectTemplateType.SNIPPET && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ":", ' ', /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
139
+ to: scRoutingContext.url(_reactCore.SCRoutes[`${notificationObject[contributionType]['type'].toUpperCase()}_ROUTE_NAME`], (0, _contribution.getRouteData)(notificationObject[contributionType]))
140
+ }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
141
+ variant: "body2",
142
+ gutterBottom: true,
143
+ className: classes.contributionText
144
+ }, (0, _contribution.getContributionSnippet)(notificationObject[contributionType])))), template === _types.SCNotificationObjectTemplateType.DETAIL && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_DateTimeAgo.default, {
140
145
  date: notificationObject.active_at,
141
146
  className: classes.activeAt
142
- }),
147
+ }))),
143
148
  footer: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, template === _types.SCNotificationObjectTemplateType.TOAST && /*#__PURE__*/_react.default.createElement(_material.Stack, {
144
149
  direction: "row",
145
150
  justifyContent: "space-between",
@@ -9,8 +9,6 @@ var _styles = require("@mui/material/styles");
9
9
 
10
10
  var _material = require("@mui/material");
11
11
 
12
- var _Icon = _interopRequireDefault(require("@mui/material/Icon"));
13
-
14
12
  var _reactCore = require("@selfcommunity/react-core");
15
13
 
16
14
  var _reactIntl = require("react-intl");
@@ -45,7 +43,6 @@ const classes = {
45
43
  avatar: `${PREFIX}-avatar`,
46
44
  actions: `${PREFIX}-actions`,
47
45
  replyButton: `${PREFIX}-reply-button`,
48
- replyButtonIcon: `${PREFIX}-reply-button-icon`,
49
46
  activeAt: `${PREFIX}-active-at`,
50
47
  messageLabel: `${PREFIX}-message-label`,
51
48
  username: `${PREFIX}-username`,
@@ -226,10 +223,7 @@ function PrivateMessageNotification(inProps) {
226
223
  root: classes.replyButton
227
224
  },
228
225
  component: _reactCore.Link,
229
- to: scRoutingContext.url(_reactCore.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message),
230
- endIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
231
- className: classes.replyButtonIcon
232
- }, "reply")
226
+ to: scRoutingContext.url(_reactCore.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, notificationObject.message)
233
227
  }, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
234
228
  id: "ui.notification.privateMessage.btnReplyLabel",
235
229
  defaultMessage: "ui.notification.privateMessage.btnReplyLabel"
@@ -1 +1 @@
1
- {"version":3,"file":"CommentObject.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/CommentObject.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAmC,SAAS,EAAsB,MAAM,eAAe,CAAC;AAQ/F,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AASvD,OAAO,EAAC,aAAa,EAAyB,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAwItH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAEpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE/C;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,0BAA0B,CAAC,EAAE,SAAS,CAAC;IAEvC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC;IAEpC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CA2d9E"}
1
+ {"version":3,"file":"CommentObject.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/CommentObject.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAmC,SAAS,EAAsB,MAAM,eAAe,CAAC;AAQ/F,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AASvD,OAAO,EAAC,aAAa,EAAyB,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAwItH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAEpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE/C;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,0BAA0B,CAAC,EAAE,SAAS,CAAC;IAEvC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC;IAEpC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAyd9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiG,MAAM,OAAO,CAAC;AAwHtH,oBAAY,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;SAGK;IACL,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;;AA4FD,wBAAkC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiG,MAAM,OAAO,CAAC;AAkHtH,oBAAY,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;SAGK;IACL,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;;AA4FD,wBAAkC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImagePlugin.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Editor/plugins/ImagePlugin.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwF,cAAc,EAAgB,MAAM,SAAS,CAAC;AAc7I,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,kBAAkB,CAAmB,CAAC;AAqFxF,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,GAAG,CAAC,OAAO,CA8BjD"}
1
+ {"version":3,"file":"ImagePlugin.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Editor/plugins/ImagePlugin.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwF,cAAc,EAAgB,MAAM,SAAS,CAAC;AAc7I,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,kBAAkB,CAAmB,CAAC;AAqFxF,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,GAAG,CAAC,OAAO,CA6BjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContributionFollow.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Notification/ContributionFollow/ContributionFollow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAK9D,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAmDhE,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,kBAAkB,EAAE,wBAAwB,CAAC;IAE7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAE5C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwEpG"}
1
+ {"version":3,"file":"ContributionFollow.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Notification/ContributionFollow/ContributionFollow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAK9D,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAmDhE,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,kBAAkB,EAAE,wBAAwB,CAAC;IAE7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAE5C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,OAAO,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CA2FpG"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrivateMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Notification/PrivateMessage/PrivateMessage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAC,gCAAgC,EAAC,MAAM,sBAAsB,CAAC;AAItE,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAqFhE,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,kBAAkB,EAAE,gCAAgC,CAAC;IAErD;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAE5C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,OAAO,EAAE,+BAA+B,GAAG,GAAG,CAAC,OAAO,CA0IxG"}
1
+ {"version":3,"file":"PrivateMessage.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Notification/PrivateMessage/PrivateMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,gCAAgC,EAAC,MAAM,sBAAsB,CAAC;AAItE,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAoFhE,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,kBAAkB,EAAE,gCAAgC,CAAC;IAErD;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAE5C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,OAAO,EAAE,+BAA+B,GAAG,GAAG,CAAC,OAAO,CAyIxG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/AutoPlayer/index.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eAyDxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/AutoPlayer/index.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eA8DxD"}
@@ -85,7 +85,6 @@ function AutoPlayer(props) {
85
85
  }
86
86
  }
87
87
  },
88
- enableAutoplay: enableAutoplay,
89
88
  loop: loop,
90
89
  controls: controls,
91
90
  stopOnUnmount: stopOnUnmount,
@@ -94,6 +93,14 @@ function AutoPlayer(props) {
94
93
  muted: muted,
95
94
  onProgress: progress => {
96
95
  setPlayed(progress.playedSeconds);
96
+ },
97
+ config: {
98
+ vimeo: {
99
+ playerOptions: {
100
+ autopause: true
101
+ },
102
+ preload: true
103
+ }
97
104
  }
98
105
  }, rest))));
99
106
  }
@@ -17,7 +17,7 @@ const md5 = (file, chunkSize, callback) => {
17
17
  fileReader = new FileReader();
18
18
 
19
19
  fileReader.onload = function (e) {
20
- console.log('read chunk nr', currentChunk + 1, 'of', chunks);
20
+ // console.log('read chunk nr', currentChunk + 1, 'of', chunks);
21
21
  spark.append(e.target.result); // Append array buffer
22
22
 
23
23
  currentChunk++;