@mirrormedia/lilith-draft-editor 3.0.5 → 3.0.7

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.
@@ -33,9 +33,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
33
 
34
34
  const videosQuery = (0, _apollo.gql)`
35
35
  query Videos($searchText: String!, $take: Int, $skip: Int) {
36
- videosCount(where: { name: { contains: $searchText } })
36
+ videosCount(
37
+ where: { name: { contains: $searchText }, state: { equals: "published" } }
38
+ )
37
39
  videos(
38
- where: { name: { contains: $searchText } }
40
+ where: { name: { contains: $searchText }, state: { equals: "published" } }
39
41
  orderBy: { id: desc }
40
42
  take: $take
41
43
  skip: $skip
@@ -344,7 +346,7 @@ function VideoSelector(props) {
344
346
  width: "narrow"
345
347
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(CustomButton, {
346
348
  onClick: () => setShowVideoUploader(true)
347
- }, "\u4E0A\u50B3\u5716\u7247"), /*#__PURE__*/_react.default.createElement(VideoSearchBox, {
349
+ }, "\u4E0A\u50B3\u5F71\u7247"), /*#__PURE__*/_react.default.createElement(VideoSearchBox, {
348
350
  onChange: onSearchBoxChange
349
351
  }), /*#__PURE__*/_react.default.createElement(VideoSelectionWrapper, null, /*#__PURE__*/_react.default.createElement("div", null, searchResult), !!selected.length && /*#__PURE__*/_react.default.createElement(SeparationLine, null), /*#__PURE__*/_react.default.createElement(VideoMetaGrids, {
350
352
  videoMetas: selected,
@@ -67,6 +67,9 @@ const Video = _styledComponents.default.video`
67
67
  aspect-ratio: 2;
68
68
  object-fit: contain;
69
69
  `;
70
+ const VideoName = _styledComponents.default.p`
71
+ text-align: center;
72
+ `;
70
73
  const Label = _styledComponents.default.label`
71
74
  display: block;
72
75
  margin: 10px 0;
@@ -181,5 +184,5 @@ function VideoUploader({
181
184
  type: "text",
182
185
  defaultValue: file.name,
183
186
  onChange: _lodash.default.debounce(onVideoNameChange)
184
- })), uploadLoading && /*#__PURE__*/_react.default.createElement(HintWrapper, null, "loading"), uploadError && /*#__PURE__*/_react.default.createElement(HintWrapper, null, uploadError.message))));
187
+ }), /*#__PURE__*/_react.default.createElement(VideoName, null, file.name)), uploadLoading && /*#__PURE__*/_react.default.createElement(HintWrapper, null, "loading"), uploadError && /*#__PURE__*/_react.default.createElement(HintWrapper, null, uploadError.message))));
185
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirrormedia/lilith-draft-editor",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {