@gem-sdk/core 1.44.0-dev.145 → 1.44.0-dev.56

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.
@@ -47,6 +47,7 @@ const ComponentToolbarPreview = (props)=>{
47
47
  const [deleteTooltipPosition, setDeleteTooltipPosition] = react.useState('top');
48
48
  const [isDisableDelete, setIsUnableDelete] = react.useState(false);
49
49
  const [parentProductUid, setParentProductUid] = react.useState('');
50
+ const [articleUid, setArticleUid] = react.useState('');
50
51
  const [tooltipText, setTooltipText] = react.useState({
51
52
  width: '',
52
53
  text: ''
@@ -61,6 +62,18 @@ const ComponentToolbarPreview = (props)=>{
61
62
  'Product Description',
62
63
  'Product Price'
63
64
  ];
65
+ const editArticleElementList = [
66
+ 'Article Title',
67
+ 'Article Content',
68
+ 'Article Image',
69
+ 'Article Author',
70
+ 'Article Category',
71
+ 'Article Date'
72
+ ];
73
+ const editAbleElementList = [
74
+ ...editProductElementList,
75
+ ...editArticleElementList
76
+ ];
64
77
  const isOverToolbarPosition = (el, parent)=>{
65
78
  const parentLength = parents.length;
66
79
  const rect = el.getBoundingClientRect();
@@ -106,15 +119,29 @@ const ComponentToolbarPreview = (props)=>{
106
119
  }, [
107
120
  storefrontUrl
108
121
  ]);
109
- const shopifyEditLink = react.useMemo(()=>{
110
- return productId ? `https://admin.shopify.com/store/${shopName}/products/${productId}` : '';
122
+ const linkShopDefault = react.useMemo(()=>{
123
+ return `https://admin.shopify.com/store/${shopName}`;
111
124
  }, [
112
- productId,
113
125
  shopName
114
126
  ]);
127
+ const linkEditProduct = react.useMemo(()=>{
128
+ return productId ? `${linkShopDefault}/products/${productId}` : '';
129
+ }, [
130
+ linkShopDefault,
131
+ productId
132
+ ]);
133
+ const linkEditArticle = react.useMemo(()=>{
134
+ return articleUid ? `${linkShopDefault}/articles/${articleUid}` : '';
135
+ }, [
136
+ articleUid,
137
+ linkShopDefault
138
+ ]);
115
139
  // Get parents
116
140
  const onActiveComponent = react.useCallback((e)=>{
117
141
  const detail = e.detail;
142
+ if (detail?.articleId) {
143
+ setArticleUid(detail.articleId);
144
+ }
118
145
  if (detail?.componentUid == props.uid) {
119
146
  getDeleteTooltipPosition();
120
147
  if (isSaleFunnelPage) {
@@ -206,7 +233,15 @@ const ComponentToolbarPreview = (props)=>{
206
233
  window.dispatchEvent(event);
207
234
  };
208
235
  const goToShopifyEditLink = ()=>{
209
- window.open(shopifyEditLink, '_blank');
236
+ if (editArticleElementList.includes(toolbarName() ?? '')) {
237
+ window.open(linkEditArticle, '_blank');
238
+ return;
239
+ }
240
+ if (editProductElementList.includes(toolbarName() ?? '')) {
241
+ window.open(linkEditProduct, '_blank');
242
+ return;
243
+ }
244
+ window.open(linkShopDefault, '_blank');
210
245
  };
211
246
  const onDelete = (e)=>{
212
247
  e.preventDefault();
@@ -480,7 +515,7 @@ const ComponentToolbarPreview = (props)=>{
480
515
  })
481
516
  })
482
517
  }),
483
- editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
518
+ editAbleElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsxRuntime.jsx(Tooltip.default, {
484
519
  "data-toolbar-title": true,
485
520
  enable: true,
486
521
  "data-toolbar-disable": false,
@@ -37,10 +37,10 @@ const disableWrap = [
37
37
  'PostPurchaseProductImages',
38
38
  'Sticky',
39
39
  'Heading',
40
+ 'EstimateDate',
40
41
  'ProductBadge',
41
42
  'Marquee',
42
- 'MarqueeItem',
43
- 'EstimateDate'
43
+ 'MarqueeItem'
44
44
  ];
45
45
  const customRenderChildren = [
46
46
  'Accordion',
@@ -26,10 +26,14 @@ const ArticlesDocument = `
26
26
  isSample
27
27
  platformCreatedAt
28
28
  author
29
+ content {
30
+ excerptHtml
31
+ }
29
32
  blogs {
30
33
  edges {
31
34
  node {
32
35
  title
36
+ handle
33
37
  }
34
38
  }
35
39
  }
@@ -17,8 +17,9 @@ const BlogsDocument = `
17
17
  description
18
18
  descriptionMeta
19
19
  handle
20
- articles (orderBy: $articlesOrderBy) {
20
+ articles(orderBy: $articlesOrderBy) {
21
21
  edges {
22
+ cursor
22
23
  node {
23
24
  id
24
25
  title
@@ -43,6 +43,7 @@ const ComponentToolbarPreview = (props)=>{
43
43
  const [deleteTooltipPosition, setDeleteTooltipPosition] = useState('top');
44
44
  const [isDisableDelete, setIsUnableDelete] = useState(false);
45
45
  const [parentProductUid, setParentProductUid] = useState('');
46
+ const [articleUid, setArticleUid] = useState('');
46
47
  const [tooltipText, setTooltipText] = useState({
47
48
  width: '',
48
49
  text: ''
@@ -57,6 +58,18 @@ const ComponentToolbarPreview = (props)=>{
57
58
  'Product Description',
58
59
  'Product Price'
59
60
  ];
61
+ const editArticleElementList = [
62
+ 'Article Title',
63
+ 'Article Content',
64
+ 'Article Image',
65
+ 'Article Author',
66
+ 'Article Category',
67
+ 'Article Date'
68
+ ];
69
+ const editAbleElementList = [
70
+ ...editProductElementList,
71
+ ...editArticleElementList
72
+ ];
60
73
  const isOverToolbarPosition = (el, parent)=>{
61
74
  const parentLength = parents.length;
62
75
  const rect = el.getBoundingClientRect();
@@ -102,15 +115,29 @@ const ComponentToolbarPreview = (props)=>{
102
115
  }, [
103
116
  storefrontUrl
104
117
  ]);
105
- const shopifyEditLink = useMemo(()=>{
106
- return productId ? `https://admin.shopify.com/store/${shopName}/products/${productId}` : '';
118
+ const linkShopDefault = useMemo(()=>{
119
+ return `https://admin.shopify.com/store/${shopName}`;
107
120
  }, [
108
- productId,
109
121
  shopName
110
122
  ]);
123
+ const linkEditProduct = useMemo(()=>{
124
+ return productId ? `${linkShopDefault}/products/${productId}` : '';
125
+ }, [
126
+ linkShopDefault,
127
+ productId
128
+ ]);
129
+ const linkEditArticle = useMemo(()=>{
130
+ return articleUid ? `${linkShopDefault}/articles/${articleUid}` : '';
131
+ }, [
132
+ articleUid,
133
+ linkShopDefault
134
+ ]);
111
135
  // Get parents
112
136
  const onActiveComponent = useCallback((e)=>{
113
137
  const detail = e.detail;
138
+ if (detail?.articleId) {
139
+ setArticleUid(detail.articleId);
140
+ }
114
141
  if (detail?.componentUid == props.uid) {
115
142
  getDeleteTooltipPosition();
116
143
  if (isSaleFunnelPage) {
@@ -202,7 +229,15 @@ const ComponentToolbarPreview = (props)=>{
202
229
  window.dispatchEvent(event);
203
230
  };
204
231
  const goToShopifyEditLink = ()=>{
205
- window.open(shopifyEditLink, '_blank');
232
+ if (editArticleElementList.includes(toolbarName() ?? '')) {
233
+ window.open(linkEditArticle, '_blank');
234
+ return;
235
+ }
236
+ if (editProductElementList.includes(toolbarName() ?? '')) {
237
+ window.open(linkEditProduct, '_blank');
238
+ return;
239
+ }
240
+ window.open(linkShopDefault, '_blank');
206
241
  };
207
242
  const onDelete = (e)=>{
208
243
  e.preventDefault();
@@ -476,7 +511,7 @@ const ComponentToolbarPreview = (props)=>{
476
511
  })
477
512
  })
478
513
  }),
479
- editProductElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
514
+ editAbleElementList.includes(toolbarName() ?? '') && /*#__PURE__*/ jsx(Tooltip, {
480
515
  "data-toolbar-title": true,
481
516
  enable: true,
482
517
  "data-toolbar-disable": false,
@@ -35,10 +35,10 @@ const disableWrap = [
35
35
  'PostPurchaseProductImages',
36
36
  'Sticky',
37
37
  'Heading',
38
+ 'EstimateDate',
38
39
  'ProductBadge',
39
40
  'Marquee',
40
- 'MarqueeItem',
41
- 'EstimateDate'
41
+ 'MarqueeItem'
42
42
  ];
43
43
  const customRenderChildren = [
44
44
  'Accordion',
@@ -24,10 +24,14 @@ const ArticlesDocument = `
24
24
  isSample
25
25
  platformCreatedAt
26
26
  author
27
+ content {
28
+ excerptHtml
29
+ }
27
30
  blogs {
28
31
  edges {
29
32
  node {
30
33
  title
34
+ handle
31
35
  }
32
36
  }
33
37
  }
@@ -15,8 +15,9 @@ const BlogsDocument = `
15
15
  description
16
16
  descriptionMeta
17
17
  handle
18
- articles (orderBy: $articlesOrderBy) {
18
+ articles(orderBy: $articlesOrderBy) {
19
19
  edges {
20
+ cursor
20
21
  node {
21
22
  id
22
23
  title
@@ -64,6 +64,7 @@ type Article$2 = {
64
64
  author?: Maybe$1<Scalars$2['String']>;
65
65
  baseID?: Maybe$1<Scalars$2['String']>;
66
66
  blogs?: Maybe$1<BlogConnection$1>;
67
+ content?: Maybe$1<ArticleContent>;
67
68
  description?: Maybe$1<Scalars$2['String']>;
68
69
  descriptionMeta?: Maybe$1<Scalars$2['String']>;
69
70
  handle?: Maybe$1<Scalars$2['String']>;
@@ -73,6 +74,7 @@ type Article$2 = {
73
74
  metafield?: Maybe$1<Metafield$1>;
74
75
  platform?: Maybe$1<ArticlePlatform$1>;
75
76
  platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
77
+ platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
76
78
  tags: Array<Scalars$2['String']>;
77
79
  templateSuffix?: Maybe$1<Scalars$2['String']>;
78
80
  title?: Maybe$1<Scalars$2['String']>;
@@ -134,6 +136,83 @@ type ArticleConnection$1 = {
134
136
  pageInfo?: Maybe$1<PageInfo$1>;
135
137
  totalCount?: Maybe$1<Scalars$2['Int']>;
136
138
  };
139
+ type ArticleContent = {
140
+ createdAt?: Maybe$1<Scalars$2['Time']>;
141
+ excerptHtml?: Maybe$1<Scalars$2['String']>;
142
+ id: Scalars$2['ID'];
143
+ updatedAt?: Maybe$1<Scalars$2['Time']>;
144
+ };
145
+ /**
146
+ * ArticleContentWhereInput is used for filtering ArticleContent objects.
147
+ * Input was generated by ent.
148
+ */
149
+ type ArticleContentWhereInput = {
150
+ and?: InputMaybe$1<Array<ArticleContentWhereInput>>;
151
+ /** article_id field predicates */
152
+ articleID?: InputMaybe$1<Scalars$2['ID']>;
153
+ articleIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
154
+ articleIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
155
+ articleIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
156
+ /** created_at field predicates */
157
+ createdAt?: InputMaybe$1<Scalars$2['Time']>;
158
+ createdAtGT?: InputMaybe$1<Scalars$2['Time']>;
159
+ createdAtGTE?: InputMaybe$1<Scalars$2['Time']>;
160
+ createdAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
161
+ createdAtLT?: InputMaybe$1<Scalars$2['Time']>;
162
+ createdAtLTE?: InputMaybe$1<Scalars$2['Time']>;
163
+ createdAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
164
+ createdAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
165
+ /** deleted_at field predicates */
166
+ deletedAt?: InputMaybe$1<Scalars$2['Time']>;
167
+ deletedAtGT?: InputMaybe$1<Scalars$2['Time']>;
168
+ deletedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
169
+ deletedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
170
+ deletedAtIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
171
+ deletedAtLT?: InputMaybe$1<Scalars$2['Time']>;
172
+ deletedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
173
+ deletedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
174
+ deletedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
175
+ deletedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
176
+ /** excerpt_html field predicates */
177
+ excerptHTML?: InputMaybe$1<Scalars$2['String']>;
178
+ excerptHTMLContains?: InputMaybe$1<Scalars$2['String']>;
179
+ excerptHTMLContainsFold?: InputMaybe$1<Scalars$2['String']>;
180
+ excerptHTMLEqualFold?: InputMaybe$1<Scalars$2['String']>;
181
+ excerptHTMLGT?: InputMaybe$1<Scalars$2['String']>;
182
+ excerptHTMLGTE?: InputMaybe$1<Scalars$2['String']>;
183
+ excerptHTMLHasPrefix?: InputMaybe$1<Scalars$2['String']>;
184
+ excerptHTMLHasSuffix?: InputMaybe$1<Scalars$2['String']>;
185
+ excerptHTMLIn?: InputMaybe$1<Array<Scalars$2['String']>>;
186
+ excerptHTMLIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
187
+ excerptHTMLLT?: InputMaybe$1<Scalars$2['String']>;
188
+ excerptHTMLLTE?: InputMaybe$1<Scalars$2['String']>;
189
+ excerptHTMLNEQ?: InputMaybe$1<Scalars$2['String']>;
190
+ excerptHTMLNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
191
+ excerptHTMLNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
192
+ /** article edge predicates */
193
+ hasArticle?: InputMaybe$1<Scalars$2['Boolean']>;
194
+ hasArticleWith?: InputMaybe$1<Array<ArticleWhereInput$1>>;
195
+ /** id field predicates */
196
+ id?: InputMaybe$1<Scalars$2['ID']>;
197
+ idGT?: InputMaybe$1<Scalars$2['ID']>;
198
+ idGTE?: InputMaybe$1<Scalars$2['ID']>;
199
+ idIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
200
+ idLT?: InputMaybe$1<Scalars$2['ID']>;
201
+ idLTE?: InputMaybe$1<Scalars$2['ID']>;
202
+ idNEQ?: InputMaybe$1<Scalars$2['ID']>;
203
+ idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
204
+ not?: InputMaybe$1<ArticleContentWhereInput>;
205
+ or?: InputMaybe$1<Array<ArticleContentWhereInput>>;
206
+ /** updated_at field predicates */
207
+ updatedAt?: InputMaybe$1<Scalars$2['Time']>;
208
+ updatedAtGT?: InputMaybe$1<Scalars$2['Time']>;
209
+ updatedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
210
+ updatedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
211
+ updatedAtLT?: InputMaybe$1<Scalars$2['Time']>;
212
+ updatedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
213
+ updatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
214
+ updatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
215
+ };
137
216
  type ArticleEdge$1 = {
138
217
  cursor?: Maybe$1<Scalars$2['Cursor']>;
139
218
  node?: Maybe$1<Article$2>;
@@ -142,7 +221,7 @@ type ArticleOrder$1 = {
142
221
  direction: OrderDirection$1;
143
222
  field?: InputMaybe$1<ArticleOrderField$1>;
144
223
  };
145
- type ArticleOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
224
+ type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
146
225
  type ArticlePlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
147
226
  /**
148
227
  * ArticleTagWhereInput is used for filtering ArticleTag objects.
@@ -184,6 +263,22 @@ type ArticleTagWhereInput$1 = {
184
263
  */
185
264
  type ArticleWhereInput$1 = {
186
265
  and?: InputMaybe$1<Array<ArticleWhereInput$1>>;
266
+ /** author field predicates */
267
+ author?: InputMaybe$1<Scalars$2['String']>;
268
+ authorContains?: InputMaybe$1<Scalars$2['String']>;
269
+ authorContainsFold?: InputMaybe$1<Scalars$2['String']>;
270
+ authorEqualFold?: InputMaybe$1<Scalars$2['String']>;
271
+ authorGT?: InputMaybe$1<Scalars$2['String']>;
272
+ authorGTE?: InputMaybe$1<Scalars$2['String']>;
273
+ authorHasPrefix?: InputMaybe$1<Scalars$2['String']>;
274
+ authorHasSuffix?: InputMaybe$1<Scalars$2['String']>;
275
+ authorIn?: InputMaybe$1<Array<Scalars$2['String']>>;
276
+ authorIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
277
+ authorLT?: InputMaybe$1<Scalars$2['String']>;
278
+ authorLTE?: InputMaybe$1<Scalars$2['String']>;
279
+ authorNEQ?: InputMaybe$1<Scalars$2['String']>;
280
+ authorNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
281
+ authorNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
187
282
  /** base_id field predicates */
188
283
  baseID?: InputMaybe$1<Scalars$2['String']>;
189
284
  baseIDContains?: InputMaybe$1<Scalars$2['String']>;
@@ -254,6 +349,12 @@ type ArticleWhereInput$1 = {
254
349
  /** article_tags edge predicates */
255
350
  hasArticleTags?: InputMaybe$1<Scalars$2['Boolean']>;
256
351
  hasArticleTagsWith?: InputMaybe$1<Array<ArticleTagWhereInput$1>>;
352
+ /** content edge predicates */
353
+ hasContent?: InputMaybe$1<Scalars$2['Boolean']>;
354
+ hasContentWith?: InputMaybe$1<Array<ArticleContentWhereInput>>;
355
+ /** media edge predicates */
356
+ hasMedia?: InputMaybe$1<Scalars$2['Boolean']>;
357
+ hasMediaWith?: InputMaybe$1<Array<MediaWhereInput$1>>;
257
358
  /** id field predicates */
258
359
  id?: InputMaybe$1<Scalars$2['ID']>;
259
360
  idGT?: InputMaybe$1<Scalars$2['ID']>;
@@ -263,6 +364,13 @@ type ArticleWhereInput$1 = {
263
364
  idLTE?: InputMaybe$1<Scalars$2['ID']>;
264
365
  idNEQ?: InputMaybe$1<Scalars$2['ID']>;
265
366
  idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
367
+ /** image_id field predicates */
368
+ imageID?: InputMaybe$1<Scalars$2['ID']>;
369
+ imageIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
370
+ imageIDIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
371
+ imageIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
372
+ imageIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
373
+ imageIDNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
266
374
  /** is_sample field predicates */
267
375
  isSample?: InputMaybe$1<Scalars$2['Boolean']>;
268
376
  isSampleNEQ?: InputMaybe$1<Scalars$2['Boolean']>;
@@ -369,6 +477,8 @@ type Blog$1 = {
369
477
  isSample?: Maybe$1<Scalars$2['Boolean']>;
370
478
  metafield?: Maybe$1<Metafield$1>;
371
479
  platform?: Maybe$1<BlogPlatform$1>;
480
+ platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
481
+ platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
372
482
  tags: Array<Scalars$2['String']>;
373
483
  templateSuffix?: Maybe$1<Scalars$2['String']>;
374
484
  title?: Maybe$1<Scalars$2['String']>;
@@ -399,7 +509,7 @@ type BlogOrder$1 = {
399
509
  direction: OrderDirection$1;
400
510
  field?: InputMaybe$1<BlogOrderField$1>;
401
511
  };
402
- type BlogOrderField$1 = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
512
+ type BlogOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
403
513
  type BlogPlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
404
514
  /**
405
515
  * BlogWhereInput is used for filtering Blog objects.
@@ -2379,6 +2489,9 @@ type MediaWhereInput$1 = {
2379
2489
  embeddedURLNEQ?: InputMaybe$1<Scalars$2['String']>;
2380
2490
  embeddedURLNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2381
2491
  embeddedURLNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
2492
+ /** article edge predicates */
2493
+ hasArticle?: InputMaybe$1<Scalars$2['Boolean']>;
2494
+ hasArticleWith?: InputMaybe$1<Array<ArticleWhereInput$1>>;
2382
2495
  /** product edge predicates */
2383
2496
  hasProduct?: InputMaybe$1<Scalars$2['Boolean']>;
2384
2497
  hasProductWith?: InputMaybe$1<Array<ProductWhereInput$1>>;
@@ -2524,20 +2637,37 @@ type MediaWhereInput$1 = {
2524
2637
  widthNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
2525
2638
  };
2526
2639
  type Metafield$1 = {
2640
+ baseID: Scalars$2['String'];
2527
2641
  description?: Maybe$1<Scalars$2['String']>;
2528
2642
  id: Scalars$2['ID'];
2529
2643
  key: Scalars$2['String'];
2530
2644
  namespace: Scalars$2['String'];
2531
- objectId: Scalars$2['Uint'];
2532
- objectType: ObjectType$1;
2533
- value?: Maybe$1<Scalars$2['String']>;
2645
+ objectID: Scalars$2['ID'];
2646
+ objectType: MetafieldObjectType;
2647
+ shopID: Scalars$2['ID'];
2648
+ value: Scalars$2['String'];
2534
2649
  };
2650
+ type MetafieldObjectType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'DISCOUNT' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
2535
2651
  /**
2536
2652
  * MetafieldWhereInput is used for filtering Metafield objects.
2537
2653
  * Input was generated by ent.
2538
2654
  */
2539
2655
  type MetafieldWhereInput$1 = {
2540
2656
  and?: InputMaybe$1<Array<MetafieldWhereInput$1>>;
2657
+ /** base_id field predicates */
2658
+ baseID?: InputMaybe$1<Scalars$2['String']>;
2659
+ baseIDContains?: InputMaybe$1<Scalars$2['String']>;
2660
+ baseIDContainsFold?: InputMaybe$1<Scalars$2['String']>;
2661
+ baseIDEqualFold?: InputMaybe$1<Scalars$2['String']>;
2662
+ baseIDGT?: InputMaybe$1<Scalars$2['String']>;
2663
+ baseIDGTE?: InputMaybe$1<Scalars$2['String']>;
2664
+ baseIDHasPrefix?: InputMaybe$1<Scalars$2['String']>;
2665
+ baseIDHasSuffix?: InputMaybe$1<Scalars$2['String']>;
2666
+ baseIDIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2667
+ baseIDLT?: InputMaybe$1<Scalars$2['String']>;
2668
+ baseIDLTE?: InputMaybe$1<Scalars$2['String']>;
2669
+ baseIDNEQ?: InputMaybe$1<Scalars$2['String']>;
2670
+ baseIDNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2541
2671
  /** created_at field predicates */
2542
2672
  createdAt?: InputMaybe$1<Scalars$2['Time']>;
2543
2673
  createdAtGT?: InputMaybe$1<Scalars$2['Time']>;
@@ -2558,6 +2688,22 @@ type MetafieldWhereInput$1 = {
2558
2688
  deletedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
2559
2689
  deletedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
2560
2690
  deletedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
2691
+ /** description field predicates */
2692
+ description?: InputMaybe$1<Scalars$2['String']>;
2693
+ descriptionContains?: InputMaybe$1<Scalars$2['String']>;
2694
+ descriptionContainsFold?: InputMaybe$1<Scalars$2['String']>;
2695
+ descriptionEqualFold?: InputMaybe$1<Scalars$2['String']>;
2696
+ descriptionGT?: InputMaybe$1<Scalars$2['String']>;
2697
+ descriptionGTE?: InputMaybe$1<Scalars$2['String']>;
2698
+ descriptionHasPrefix?: InputMaybe$1<Scalars$2['String']>;
2699
+ descriptionHasSuffix?: InputMaybe$1<Scalars$2['String']>;
2700
+ descriptionIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2701
+ descriptionIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
2702
+ descriptionLT?: InputMaybe$1<Scalars$2['String']>;
2703
+ descriptionLTE?: InputMaybe$1<Scalars$2['String']>;
2704
+ descriptionNEQ?: InputMaybe$1<Scalars$2['String']>;
2705
+ descriptionNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2706
+ descriptionNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
2561
2707
  /** id field predicates */
2562
2708
  id?: InputMaybe$1<Scalars$2['ID']>;
2563
2709
  idGT?: InputMaybe$1<Scalars$2['ID']>;
@@ -2567,7 +2713,49 @@ type MetafieldWhereInput$1 = {
2567
2713
  idLTE?: InputMaybe$1<Scalars$2['ID']>;
2568
2714
  idNEQ?: InputMaybe$1<Scalars$2['ID']>;
2569
2715
  idNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
2716
+ /** key field predicates */
2717
+ key?: InputMaybe$1<Scalars$2['String']>;
2718
+ keyContains?: InputMaybe$1<Scalars$2['String']>;
2719
+ keyContainsFold?: InputMaybe$1<Scalars$2['String']>;
2720
+ keyEqualFold?: InputMaybe$1<Scalars$2['String']>;
2721
+ keyGT?: InputMaybe$1<Scalars$2['String']>;
2722
+ keyGTE?: InputMaybe$1<Scalars$2['String']>;
2723
+ keyHasPrefix?: InputMaybe$1<Scalars$2['String']>;
2724
+ keyHasSuffix?: InputMaybe$1<Scalars$2['String']>;
2725
+ keyIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2726
+ keyLT?: InputMaybe$1<Scalars$2['String']>;
2727
+ keyLTE?: InputMaybe$1<Scalars$2['String']>;
2728
+ keyNEQ?: InputMaybe$1<Scalars$2['String']>;
2729
+ keyNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2730
+ /** namespace field predicates */
2731
+ namespace?: InputMaybe$1<Scalars$2['String']>;
2732
+ namespaceContains?: InputMaybe$1<Scalars$2['String']>;
2733
+ namespaceContainsFold?: InputMaybe$1<Scalars$2['String']>;
2734
+ namespaceEqualFold?: InputMaybe$1<Scalars$2['String']>;
2735
+ namespaceGT?: InputMaybe$1<Scalars$2['String']>;
2736
+ namespaceGTE?: InputMaybe$1<Scalars$2['String']>;
2737
+ namespaceHasPrefix?: InputMaybe$1<Scalars$2['String']>;
2738
+ namespaceHasSuffix?: InputMaybe$1<Scalars$2['String']>;
2739
+ namespaceIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2740
+ namespaceLT?: InputMaybe$1<Scalars$2['String']>;
2741
+ namespaceLTE?: InputMaybe$1<Scalars$2['String']>;
2742
+ namespaceNEQ?: InputMaybe$1<Scalars$2['String']>;
2743
+ namespaceNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2570
2744
  not?: InputMaybe$1<MetafieldWhereInput$1>;
2745
+ /** object_id field predicates */
2746
+ objectID?: InputMaybe$1<Scalars$2['ID']>;
2747
+ objectIDGT?: InputMaybe$1<Scalars$2['ID']>;
2748
+ objectIDGTE?: InputMaybe$1<Scalars$2['ID']>;
2749
+ objectIDIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
2750
+ objectIDLT?: InputMaybe$1<Scalars$2['ID']>;
2751
+ objectIDLTE?: InputMaybe$1<Scalars$2['ID']>;
2752
+ objectIDNEQ?: InputMaybe$1<Scalars$2['ID']>;
2753
+ objectIDNotIn?: InputMaybe$1<Array<Scalars$2['ID']>>;
2754
+ /** object_type field predicates */
2755
+ objectType?: InputMaybe$1<MetafieldObjectType>;
2756
+ objectTypeIn?: InputMaybe$1<Array<MetafieldObjectType>>;
2757
+ objectTypeNEQ?: InputMaybe$1<MetafieldObjectType>;
2758
+ objectTypeNotIn?: InputMaybe$1<Array<MetafieldObjectType>>;
2571
2759
  or?: InputMaybe$1<Array<MetafieldWhereInput$1>>;
2572
2760
  /** updated_at field predicates */
2573
2761
  updatedAt?: InputMaybe$1<Scalars$2['Time']>;
@@ -2578,6 +2766,20 @@ type MetafieldWhereInput$1 = {
2578
2766
  updatedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
2579
2767
  updatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
2580
2768
  updatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
2769
+ /** value field predicates */
2770
+ value?: InputMaybe$1<Scalars$2['String']>;
2771
+ valueContains?: InputMaybe$1<Scalars$2['String']>;
2772
+ valueContainsFold?: InputMaybe$1<Scalars$2['String']>;
2773
+ valueEqualFold?: InputMaybe$1<Scalars$2['String']>;
2774
+ valueGT?: InputMaybe$1<Scalars$2['String']>;
2775
+ valueGTE?: InputMaybe$1<Scalars$2['String']>;
2776
+ valueHasPrefix?: InputMaybe$1<Scalars$2['String']>;
2777
+ valueHasSuffix?: InputMaybe$1<Scalars$2['String']>;
2778
+ valueIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2779
+ valueLT?: InputMaybe$1<Scalars$2['String']>;
2780
+ valueLTE?: InputMaybe$1<Scalars$2['String']>;
2781
+ valueNEQ?: InputMaybe$1<Scalars$2['String']>;
2782
+ valueNotIn?: InputMaybe$1<Array<Scalars$2['String']>>;
2581
2783
  };
2582
2784
  type Mutation$1 = {
2583
2785
  cartCreate?: Maybe$1<CartPayload$1>;
@@ -2619,9 +2821,7 @@ type MutationCartNoteUpdateArgs$1 = {
2619
2821
  };
2620
2822
  type MutationPageViewUpArgs$1 = {
2621
2823
  pageHandle: Scalars$2['String'];
2622
- userAgent?: InputMaybe$1<Scalars$2['String']>;
2623
2824
  };
2624
- type ObjectType$1 = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'PAGE' | 'PRODUCT' | 'PRODUCT_VARIANT' | 'SHOP';
2625
2825
  type OrderDirection$1 = 'ASC' | 'DESC';
2626
2826
  type Page$1 = {
2627
2827
  baseId?: Maybe$1<Scalars$2['String']>;
@@ -6221,6 +6421,8 @@ type _Service = {
6221
6421
  sdl?: Maybe$1<Scalars$2['String']>;
6222
6422
  };
6223
6423
 
6424
+ type shop_ArticleContent = ArticleContent;
6425
+ type shop_ArticleContentWhereInput = ArticleContentWhereInput;
6224
6426
  type shop_Entity = Entity;
6225
6427
  type shop_EntityFindProductByIdArgs = EntityFindProductByIdArgs;
6226
6428
  type shop_EntityFindPublishedCustomSectionByIdArgs = EntityFindPublishedCustomSectionByIdArgs;
@@ -6234,6 +6436,7 @@ type shop_EntityFindPublishedThemePageMetaByIdArgs = EntityFindPublishedThemePag
6234
6436
  type shop_EntityFindPublishedThemePageOnlineStoreDataByIdArgs = EntityFindPublishedThemePageOnlineStoreDataByIdArgs;
6235
6437
  type shop_EntityFindPublishedThemeSectionByIdArgs = EntityFindPublishedThemeSectionByIdArgs;
6236
6438
  type shop_EntityFindPublishedThemeStyleByIdArgs = EntityFindPublishedThemeStyleByIdArgs;
6439
+ type shop_MetafieldObjectType = MetafieldObjectType;
6237
6440
  type shop_Query_EntitiesArgs = Query_EntitiesArgs;
6238
6441
  type shop__Entity = _Entity;
6239
6442
  type shop__Service = _Service;
@@ -6244,6 +6447,8 @@ declare namespace shop {
6244
6447
  ArticleBlogWhereInput$1 as ArticleBlogWhereInput,
6245
6448
  ArticleBlogsArgs$1 as ArticleBlogsArgs,
6246
6449
  ArticleConnection$1 as ArticleConnection,
6450
+ shop_ArticleContent as ArticleContent,
6451
+ shop_ArticleContentWhereInput as ArticleContentWhereInput,
6247
6452
  ArticleEdge$1 as ArticleEdge,
6248
6453
  ArticleMetafieldArgs$1 as ArticleMetafieldArgs,
6249
6454
  ArticleOrder$1 as ArticleOrder,
@@ -6325,6 +6530,7 @@ declare namespace shop {
6325
6530
  MediaOrderField$1 as MediaOrderField,
6326
6531
  MediaWhereInput$1 as MediaWhereInput,
6327
6532
  Metafield$1 as Metafield,
6533
+ shop_MetafieldObjectType as MetafieldObjectType,
6328
6534
  MetafieldWhereInput$1 as MetafieldWhereInput,
6329
6535
  Mutation$1 as Mutation,
6330
6536
  MutationCartCreateArgs$1 as MutationCartCreateArgs,
@@ -6334,7 +6540,6 @@ declare namespace shop {
6334
6540
  MutationCartLinesUpdateArgs$1 as MutationCartLinesUpdateArgs,
6335
6541
  MutationCartNoteUpdateArgs$1 as MutationCartNoteUpdateArgs,
6336
6542
  MutationPageViewUpArgs$1 as MutationPageViewUpArgs,
6337
- ObjectType$1 as ObjectType,
6338
6543
  OrderDirection$1 as OrderDirection,
6339
6544
  Page$1 as Page,
6340
6545
  PageConnection$1 as PageConnection,
@@ -36055,9 +36260,10 @@ type ArticlesQueryResponse = {
36055
36260
  articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
36056
36261
  edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
36057
36262
  node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isSample' | 'platformCreatedAt' | 'author'> & {
36263
+ content?: Maybe$1<Pick<ArticleContent, 'excerptHtml'>>;
36058
36264
  blogs?: Maybe$1<{
36059
36265
  edges: Array<{
36060
- node?: Maybe$1<Pick<Blog$1, 'title'>>;
36266
+ node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
36061
36267
  }>;
36062
36268
  }>;
36063
36269
  media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
@@ -36081,11 +36287,11 @@ type BlogsQueryResponse = {
36081
36287
  edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
36082
36288
  node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
36083
36289
  articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
36084
- edges: Array<{
36290
+ edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
36085
36291
  node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'tags' | 'isSample' | 'platformCreatedAt' | 'author'> & {
36086
36292
  media?: Maybe$1<Pick<Media$1, 'width' | 'src' | 'height'>>;
36087
36293
  })>;
36088
- }>;
36294
+ })>;
36089
36295
  })>;
36090
36296
  })>;
36091
36297
  })>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.44.0-dev.145",
3
+ "version": "1.44.0-dev.56",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.44.0-dev.143",
31
- "@gem-sdk/styles": "1.44.0-dev.143",
30
+ "@gem-sdk/adapter-shopify": "1.44.0-dev.56",
31
+ "@gem-sdk/styles": "1.44.0-dev.56",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {