@mirrormedia/lilith-draft-editor 1.1.0-alpha.22 → 1.1.0-alpha.23

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.
@@ -145,6 +145,7 @@ const AudiosQuery = (0, _apollo.gql)`
145
145
  audioFilesCount(where: { name: { contains: $searchText } })
146
146
  audioFiles(
147
147
  where: { name: { contains: $searchText } }
148
+ orderBy: { createdAt: desc }
148
149
  take: $take
149
150
  skip: $skip
150
151
  ) {
@@ -34,6 +34,7 @@ const imagesQuery = (0, _apollo.gql)`
34
34
  photosCount(where: { name: { contains: $searchText } })
35
35
  photos(
36
36
  where: { name: { contains: $searchText } }
37
+ orderBy: { createdAt: desc }
37
38
  take: $take
38
39
  skip: $skip
39
40
  ) {
@@ -261,6 +262,7 @@ function ImageSelector(props) {
261
262
  initialAlign,
262
263
  initialDelay
263
264
  } = props;
265
+ console.log(imagesQuery);
264
266
  const [queryImages, {
265
267
  loading,
266
268
  error,
@@ -28,6 +28,7 @@ const postsQuery = (0, _apollo.gql)`
28
28
  postsCount(where: { title: { contains: $searchText } })
29
29
  posts(
30
30
  where: { title: { contains: $searchText } }
31
+ orderBy: { createdAt: desc }
31
32
  take: $take
32
33
  skip: $skip
33
34
  ) {
@@ -28,6 +28,7 @@ const videosQuery = (0, _apollo.gql)`
28
28
  videosCount(where: { name: { contains: $searchText } })
29
29
  videos(
30
30
  where: { name: { contains: $searchText } }
31
+ orderBy: { createdAt: desc }
31
32
  take: $take
32
33
  skip: $skip
33
34
  ) {
@@ -145,6 +145,7 @@ const AudiosQuery = (0, _apollo.gql)`
145
145
  audioFilesCount(where: { name: { contains: $searchText } })
146
146
  audioFiles(
147
147
  where: { name: { contains: $searchText } }
148
+ orderBy: { createdAt: desc }
148
149
  take: $take
149
150
  skip: $skip
150
151
  ) {
@@ -34,6 +34,7 @@ const imagesQuery = (0, _apollo.gql)`
34
34
  photosCount(where: { name: { contains: $searchText } })
35
35
  photos(
36
36
  where: { name: { contains: $searchText } }
37
+ orderBy: { createdAt: desc }
37
38
  take: $take
38
39
  skip: $skip
39
40
  ) {
@@ -28,6 +28,7 @@ const postsQuery = (0, _apollo.gql)`
28
28
  postsCount(where: { name: { contains: $searchText } })
29
29
  posts(
30
30
  where: { name: { contains: $searchText } }
31
+ orderBy: { createdAt: desc }
31
32
  take: $take
32
33
  skip: $skip
33
34
  ) {
@@ -28,6 +28,7 @@ const videosQuery = (0, _apollo.gql)`
28
28
  videosCount(where: { name: { contains: $searchText } })
29
29
  videos(
30
30
  where: { name: { contains: $searchText } }
31
+ orderBy: { createdAt: desc }
31
32
  take: $take
32
33
  skip: $skip
33
34
  ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirrormedia/lilith-draft-editor",
3
- "version": "1.1.0-alpha.22",
3
+ "version": "1.1.0-alpha.23",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {