@gem-sdk/core 2.0.0-dev.173 → 2.0.0-dev.178

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.
@@ -255,11 +255,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>zus
255
255
  }
256
256
  },
257
257
  getItem: (id)=>{
258
- const item = get().state[id];
259
- return {
260
- ...item,
261
- rawChildrens: item?.childrens?.map((v)=>get().state[v])
262
- };
258
+ return get().state[id];
263
259
  },
264
260
  removeItem: (id)=>{
265
261
  if (id === 'ROOT') {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const ArticlesDocument = `
3
+ /* eslint-disable */ const ArticlesDocument = `
4
4
  query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
5
5
  articles(
6
6
  after: $after
@@ -25,13 +25,14 @@ const ArticlesDocument = `
25
25
  tags {
26
26
  name
27
27
  }
28
+ content {
29
+ excerptHtml
30
+ }
28
31
  isSample
29
32
  platformCreatedAt
30
33
  platformUpdatedAt
34
+ publishedAt
31
35
  author
32
- content {
33
- excerptHtml
34
- }
35
36
  blogs {
36
37
  edges {
37
38
  node {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const BlogsDocument = `
3
+ /* eslint-disable */ const BlogsDocument = `
4
4
  query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
5
5
  blogs(
6
6
  after: $after
@@ -32,13 +32,14 @@ const BlogsDocument = `
32
32
  tags {
33
33
  name
34
34
  }
35
+ content {
36
+ excerptHtml
37
+ }
35
38
  isSample
36
39
  platformCreatedAt
37
40
  platformUpdatedAt
41
+ publishedAt
38
42
  author
39
- content {
40
- excerptHtml
41
- }
42
43
  media {
43
44
  width
44
45
  src
@@ -253,11 +253,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>cre
253
253
  }
254
254
  },
255
255
  getItem: (id)=>{
256
- const item = get().state[id];
257
- return {
258
- ...item,
259
- rawChildrens: item?.childrens?.map((v)=>get().state[v])
260
- };
256
+ return get().state[id];
261
257
  },
262
258
  removeItem: (id)=>{
263
259
  if (id === 'ROOT') {
@@ -1,4 +1,4 @@
1
- const ArticlesDocument = `
1
+ /* eslint-disable */ const ArticlesDocument = `
2
2
  query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
3
3
  articles(
4
4
  after: $after
@@ -23,13 +23,14 @@ const ArticlesDocument = `
23
23
  tags {
24
24
  name
25
25
  }
26
+ content {
27
+ excerptHtml
28
+ }
26
29
  isSample
27
30
  platformCreatedAt
28
31
  platformUpdatedAt
32
+ publishedAt
29
33
  author
30
- content {
31
- excerptHtml
32
- }
33
34
  blogs {
34
35
  edges {
35
36
  node {
@@ -1,4 +1,4 @@
1
- const BlogsDocument = `
1
+ /* eslint-disable */ const BlogsDocument = `
2
2
  query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
3
3
  blogs(
4
4
  after: $after
@@ -30,13 +30,14 @@ const BlogsDocument = `
30
30
  tags {
31
31
  name
32
32
  }
33
+ content {
34
+ excerptHtml
35
+ }
33
36
  isSample
34
37
  platformCreatedAt
35
38
  platformUpdatedAt
39
+ publishedAt
36
40
  author
37
- content {
38
- excerptHtml
39
- }
40
41
  media {
41
42
  width
42
43
  src
@@ -75,6 +75,7 @@ type Article$2 = {
75
75
  platform?: Maybe$1<ArticlePlatform$1>;
76
76
  platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
77
77
  platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
78
+ publishedAt?: Maybe$1<Scalars$2['Time']>;
78
79
  tags?: Maybe$1<Array<Maybe$1<Tag$1>>>;
79
80
  templateSuffix?: Maybe$1<Scalars$2['String']>;
80
81
  title?: Maybe$1<Scalars$2['String']>;
@@ -221,7 +222,7 @@ type ArticleOrder$1 = {
221
222
  direction: OrderDirection$1;
222
223
  field?: InputMaybe$1<ArticleOrderField$1>;
223
224
  };
224
- type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
225
+ type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'PUBLISHED_AT' | 'TITLE' | 'UPDATED_AT';
225
226
  type ArticlePlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
226
227
  /**
227
228
  * ArticleTagWhereInput is used for filtering ArticleTag objects.
@@ -405,6 +406,17 @@ type ArticleWhereInput$1 = {
405
406
  platformUpdatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
406
407
  platformUpdatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
407
408
  platformUpdatedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
409
+ /** published_at field predicates */
410
+ publishedAt?: InputMaybe$1<Scalars$2['Time']>;
411
+ publishedAtGT?: InputMaybe$1<Scalars$2['Time']>;
412
+ publishedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
413
+ publishedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
414
+ publishedAtIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
415
+ publishedAtLT?: InputMaybe$1<Scalars$2['Time']>;
416
+ publishedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
417
+ publishedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
418
+ publishedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
419
+ publishedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
408
420
  /** template_suffix field predicates */
409
421
  templateSuffix?: InputMaybe$1<Scalars$2['String']>;
410
422
  templateSuffixContains?: InputMaybe$1<Scalars$2['String']>;
@@ -3706,6 +3718,7 @@ type Product$1 = {
3706
3718
  descriptionHtml?: Maybe$1<Scalars$2['String']>;
3707
3719
  descriptionMeta?: Maybe$1<Scalars$2['String']>;
3708
3720
  featuredImage?: Maybe$1<Media$1>;
3721
+ /** @deprecated Use featuredImage instead */
3709
3722
  featuredImageId?: Maybe$1<Scalars$2['ID']>;
3710
3723
  handle?: Maybe$1<Scalars$2['String']>;
3711
3724
  id: Scalars$2['ID'];
@@ -7283,7 +7296,6 @@ type BlockEntity = {
7283
7296
  name?: string;
7284
7297
  dateModified?: string | number;
7285
7298
  childrens?: string[];
7286
- rawChildrens?: BlockEntity[];
7287
7299
  settings?: Record<string, any>;
7288
7300
  advanced?: Record<string, any>;
7289
7301
  styles?: Record<string, any>;
@@ -47995,8 +48007,8 @@ type ArticlesQueryVariables = Exact$1<{
47995
48007
  type ArticlesQueryResponse = {
47996
48008
  articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
47997
48009
  edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
47998
- node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'author'> & {
47999
- tags: Array<never>;
48010
+ node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'publishedAt' | 'author'> & {
48011
+ tags?: Maybe$1<Array<Maybe$1<Pick<Tag$1, 'name'>>>>;
48000
48012
  content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
48001
48013
  blogs?: Maybe$1<{
48002
48014
  edges: Array<{
@@ -48020,27 +48032,22 @@ type BlogsQueryVariables = Exact$1<{
48020
48032
  articlesOrderBy?: InputMaybe$1<ArticleOrder$1>;
48021
48033
  }>;
48022
48034
  type BlogsQueryResponse = {
48023
- blogs?: Maybe$1<Pick<BlogConnection$1, 'totalCount'> & {
48024
- edges: Array<Pick<BlogEdge$1, 'cursor'> & {
48025
- node?: Maybe$1<Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
48026
- articles?: Maybe$1<Pick<ArticleConnection$1, 'totalCount'> & {
48027
- edges: Array<Pick<ArticleEdge$1, 'cursor'> & {
48028
- node?: Maybe$1<Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'author'> & {
48029
- tags: Array<never>;
48035
+ blogs?: Maybe$1<(Pick<BlogConnection$1, 'totalCount'> & {
48036
+ edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
48037
+ node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
48038
+ articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
48039
+ edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
48040
+ node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'publishedAt' | 'author'> & {
48041
+ tags?: Maybe$1<Array<Maybe$1<Pick<Tag$1, 'name'>>>>;
48030
48042
  content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
48031
- blogs?: Maybe$1<{
48032
- edges: Array<{
48033
- node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
48034
- }>;
48035
- }>;
48036
- media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
48037
- }>;
48038
- }>;
48039
- }>;
48040
- }>;
48041
- }>;
48043
+ media?: Maybe$1<Pick<Media$1, 'width' | 'src' | 'height'>>;
48044
+ })>;
48045
+ })>;
48046
+ })>;
48047
+ })>;
48048
+ })>;
48042
48049
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
48043
- }>;
48050
+ })>;
48044
48051
  };
48045
48052
 
48046
48053
  declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.173",
3
+ "version": "2.0.0-dev.178",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",