@soppiya/app-bridge 1.1.6 → 1.1.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.
@@ -262,7 +262,7 @@ const Media_Media = ({ title = "Media", types = [
262
262
  children: /*#__PURE__*/ jsx(Button, {
263
263
  variant: "outline",
264
264
  color: "secondary",
265
- className: "!px-[8px]",
265
+ className: "px-2!",
266
266
  disabled: !isMediaSelected,
267
267
  loading: isDeletingMedias,
268
268
  onClick: handleDeleteMedias,
@@ -7,6 +7,9 @@ const getMetaFields = graphql(`query Metafields($filterKeys: MetafieldFilterKeys
7
7
  entry
8
8
  name
9
9
  type
10
+ metaobject_reference {
11
+ _id
12
+ }
10
13
  }
11
14
  }
12
15
  }
@@ -8,6 +8,7 @@ class Meta {
8
8
  variant_ref: "Variants",
9
9
  page_ref: "Pages",
10
10
  blog_ref: "Blogs",
11
+ metaobject_ref_ref: "Meatobject",
11
12
  single_line_text: "Text",
12
13
  multiline_text: "Multiline text",
13
14
  boolean: "Boolean",
@@ -24,7 +25,8 @@ class Meta {
24
25
  "variant_ref",
25
26
  "page_ref",
26
27
  "article_ref",
27
- "blog_ref"
28
+ "blog_ref",
29
+ "metaobject_ref"
28
30
  ];
29
31
  return refTypes.includes(type);
30
32
  }
@@ -6,6 +6,10 @@ export declare const useGetMetaFields: (scope?: MetafieldScope[]) => {
6
6
  entry?: import("../../../shared/graphql/graphql").MetafieldEntryType | null;
7
7
  name?: string | null;
8
8
  type?: import("../../../shared/graphql/graphql").MetafieldType | null;
9
+ metaobject_reference?: {
10
+ __typename: "Metaobject";
11
+ _id?: string | null;
12
+ } | null;
9
13
  } | null | undefined)[];
10
14
  loading: boolean;
11
15
  metaFieldsError: import("@apollo/client").ErrorLike | undefined;
@@ -8,3 +8,4 @@ export declare const Variant: () => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const Blog: () => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const Page: () => import("react/jsx-runtime").JSX.Element;
10
10
  export declare const Collection: () => import("react/jsx-runtime").JSX.Element;
11
+ export declare const Metaobject: () => import("react/jsx-runtime").JSX.Element;
@@ -141,4 +141,25 @@ const Collection = ()=>{
141
141
  })
142
142
  });
143
143
  };
144
- export { Article, Blog, Collection, Page, Product, Variant, MetaData_stories as default };
144
+ const Metaobject = ()=>{
145
+ const [product, setProduct] = useState([]);
146
+ const handleChange = (field)=>{
147
+ setProduct((prev)=>{
148
+ const exists = prev.find((f)=>f.metafield === field.metafield);
149
+ if (!exists) return [
150
+ ...prev,
151
+ field
152
+ ];
153
+ return prev.map((f)=>f.metafield === field.metafield ? field : f);
154
+ });
155
+ };
156
+ return /*#__PURE__*/ jsx(Card, {
157
+ padding: 70,
158
+ children: /*#__PURE__*/ jsx(MetaData, {
159
+ scope: "collection",
160
+ metafieldsData: product,
161
+ onChange: handleChange
162
+ })
163
+ });
164
+ };
165
+ export { Article, Blog, Collection, Metaobject, Page, Product, Variant, MetaData_stories as default };
@@ -3,6 +3,7 @@ import { Button, Card, InlineStack, SoppiyaIcon, Text } from "@soppiya/elementus
3
3
  import ArticlesPicker from "../../articles-picker/ui/ArticlesPicker.js";
4
4
  import BlogsPicker from "../../blogs-picker/ui/BlogsPicker.js";
5
5
  import CollectionPicker from "../../collections-pciker/ui/CollectionPicker.js";
6
+ import { MetaobjectEntriesPicker } from "../../metaobjects-entries-picker/index.js";
6
7
  import PagesPicker from "../../pages-picker/ui/PagesPicker.js";
7
8
  import { ProductsPicker } from "../../products-picker/index.js";
8
9
  import { VariantsPicker } from "../../variants-picker/index.js";
@@ -19,6 +20,7 @@ import ColorMetaField from "./ColorMetaField.js";
19
20
  import DateAndTimeMetaField from "./DateAndTimeMetaField.js";
20
21
  import DateMetaField from "./DateMetaField.js";
21
22
  import MetaDataTypePopup from "./MetaDataTypePopup.js";
23
+ import MetaobjectRefMetaField from "./MetaobjectRefMetaField.js";
22
24
  import MultilineTextMetaField from "./MultilineTextMetaField.js";
23
25
  import NumberMetaField from "./NumberMetaField.js";
24
26
  import PageRefMetaField from "./PageRefMetaField.js";
@@ -28,6 +30,7 @@ import VariantRefMetaField from "./VariantRefMetaField.js";
28
30
  const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
29
31
  const [activeMetaField, setActiveMetaField] = useState(null);
30
32
  const [visibleExplorer, setVisibleExplorer] = useState("");
33
+ const [metaobjectRef, setMetaobjectRef] = useState([]);
31
34
  const metaFieldRef = useClickAway(()=>visibleExplorer ? null : setActiveMetaField(null));
32
35
  const isRefType = meta_types.isRefType(metaField.type);
33
36
  let MetaFieldJSX;
@@ -65,6 +68,9 @@ const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
65
68
  case "blog_ref":
66
69
  MetaFieldJSX = BlogRefMetaField;
67
70
  break;
71
+ case "metaobject_ref":
72
+ MetaFieldJSX = MetaobjectRefMetaField;
73
+ break;
68
74
  case "boolean":
69
75
  MetaFieldJSX = BooleanMetaField;
70
76
  break;
@@ -99,6 +105,15 @@ const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
99
105
  case "article_ref":
100
106
  setVisibleExplorer("article");
101
107
  break;
108
+ case "metaobject_ref":
109
+ setVisibleExplorer("metaobject");
110
+ if (metaField.metaobject_reference?._id) {
111
+ console.log(metaField.metaobject_reference?._id);
112
+ setMetaobjectRef([
113
+ String(metaField.metaobject_reference._id)
114
+ ]);
115
+ }
116
+ break;
102
117
  default:
103
118
  isFunction(onChange) && onChange(value.concat(""));
104
119
  }
@@ -249,6 +264,13 @@ const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
249
264
  limit: "multiple" === metaField.entry ? 1 / 0 : 1,
250
265
  onClose: ()=>setVisibleExplorer(""),
251
266
  onOk: handleSelectExplorerItems
267
+ }),
268
+ "metaobject" === visibleExplorer && /*#__PURE__*/ jsx(MetaobjectEntriesPicker, {
269
+ initialIds: value,
270
+ limit: "multiple" === metaField.entry ? 1 / 0 : 1,
271
+ onClose: ()=>setVisibleExplorer(""),
272
+ onOk: handleSelectExplorerItems,
273
+ metaobjects: metaobjectRef
252
274
  })
253
275
  ]
254
276
  });
@@ -0,0 +1,3 @@
1
+ import { MetaDataProps } from "./MetaDataItem";
2
+ declare const MetaobjectRefMetaField: ({ value, children }: MetaDataProps) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | undefined;
3
+ export default MetaobjectRefMetaField;
@@ -0,0 +1,30 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useMetaobjectEntries } from "../../metaobjects-entries-picker/model/useMetaobjectEntries.js";
3
+ import { Loading } from "../../../shared/loading/index.js";
4
+ import { InlineStack, Text } from "@soppiya/elementus";
5
+ const MetaobjectRefMetaField = ({ value, children })=>{
6
+ const { metaobjectEntries, isLoadingMetaobjectEntries } = useMetaobjectEntries({
7
+ skip: !value,
8
+ filterKeys: {
9
+ cursors: value?.split(",")
10
+ }
11
+ });
12
+ if (isLoadingMetaobjectEntries) return /*#__PURE__*/ jsx(Loading, {});
13
+ return metaobjectEntries?.map((metaobjectEntry)=>/*#__PURE__*/ jsxs(InlineStack, {
14
+ justifyContent: "space-between",
15
+ children: [
16
+ /*#__PURE__*/ jsx(InlineStack, {
17
+ gapX: 70,
18
+ alignItems: "center",
19
+ children: /*#__PURE__*/ jsx(Text, {
20
+ size: "md",
21
+ weight: "regular",
22
+ children: metaobjectEntry.title
23
+ })
24
+ }),
25
+ children
26
+ ]
27
+ }, metaobjectEntry._id));
28
+ };
29
+ const ui_MetaobjectRefMetaField = MetaobjectRefMetaField;
30
+ export { ui_MetaobjectRefMetaField as default };
@@ -1,14 +1,15 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Input } from "@soppiya/elementus";
3
- const SingleLineTextMetaField_SingleLineTextMetaField = ({ entry, value, children, onChange })=>/*#__PURE__*/ jsxs("div", {
2
+ import { InlineStack, Input } from "@soppiya/elementus";
3
+ const SingleLineTextMetaField_SingleLineTextMetaField = ({ entry, value, children, onChange })=>/*#__PURE__*/ jsxs(InlineStack, {
4
+ justifyContent: "space-between",
5
+ gapX: 70,
4
6
  children: [
5
- /*#__PURE__*/ jsx("div", {
6
- children: /*#__PURE__*/ jsx("div", {
7
- children: /*#__PURE__*/ jsx(Input, {
8
- size: "sm",
9
- value: value,
10
- onChange: (e)=>onChange(e.target.value)
11
- })
7
+ /*#__PURE__*/ jsx(InlineStack, {
8
+ stack: "full",
9
+ children: /*#__PURE__*/ jsx(Input, {
10
+ size: "sm",
11
+ value: value,
12
+ onChange: (e)=>onChange(e.target.value)
12
13
  })
13
14
  }),
14
15
  "multiple" === entry && children
@@ -21,7 +21,7 @@ type Documents = {
21
21
  "\n query MediaUsage {\n mediaUsage\n }\n": typeof types.MediaUsageDocument;
22
22
  "\n mutation AddMedias($input: [Upload!]!) {\n addMedias(input: $input) {\n _id\n file_name\n url\n size\n }\n }\n": typeof types.AddMediasDocument;
23
23
  "\n mutation DeleteMedias($cursors: [ID!]!) {\n deleteMedias(cursors: $cursors) {\n message\n }\n }\n": typeof types.DeleteMediasDocument;
24
- "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n }\n }\n }\n}": typeof types.MetafieldsDocument;
24
+ "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n metaobject_reference {\n _id\n }\n }\n }\n }\n}": typeof types.MetafieldsDocument;
25
25
  "query MetaobjectEntries($after: ID, $before: ID, $first: Int, $last: Int, $query: String, $filterKeys: MetaobjectEntryFilterKeys) {\n metaobjectEntries(after: $after, before: $before, first: $first, last: $last, query: $query, filterKeys: $filterKeys) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n title\n }\n }\n }\n}": typeof types.MetaobjectEntriesDocument;
26
26
  "query Metaobjects($filterKeys: MetaobjectFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n metaobjects(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n name\n }\n }\n }\n}": typeof types.MetaobjectsDocument;
27
27
  "query Pages($filterKeys: PageFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n pages(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n title\n image {\n _id\n url\n }\n }\n }\n }\n}": typeof types.PagesDocument;
@@ -81,7 +81,7 @@ export declare function graphql(source: "\n mutation DeleteMedias($cursors: [ID
81
81
  /**
82
82
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
83
83
  */
84
- export declare function graphql(source: "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n }\n }\n }\n}"): (typeof documents)["query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n }\n }\n }\n}"];
84
+ export declare function graphql(source: "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n metaobject_reference {\n _id\n }\n }\n }\n }\n}"): (typeof documents)["query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n metaobject_reference {\n _id\n }\n }\n }\n }\n}"];
85
85
  /**
86
86
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
87
87
  */
@@ -9,7 +9,7 @@ const documents = {
9
9
  "\n query MediaUsage {\n mediaUsage\n }\n": MediaUsageDocument,
10
10
  "\n mutation AddMedias($input: [Upload!]!) {\n addMedias(input: $input) {\n _id\n file_name\n url\n size\n }\n }\n": AddMediasDocument,
11
11
  "\n mutation DeleteMedias($cursors: [ID!]!) {\n deleteMedias(cursors: $cursors) {\n message\n }\n }\n": DeleteMediasDocument,
12
- "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n }\n }\n }\n}": MetafieldsDocument,
12
+ "query Metafields($filterKeys: MetafieldFilterKeys, $first: Int) {\n metafields(filterKeys: $filterKeys, first: $first) {\n edges {\n node {\n _id\n entry\n name\n type\n metaobject_reference {\n _id\n }\n }\n }\n }\n}": MetafieldsDocument,
13
13
  "query MetaobjectEntries($after: ID, $before: ID, $first: Int, $last: Int, $query: String, $filterKeys: MetaobjectEntryFilterKeys) {\n metaobjectEntries(after: $after, before: $before, first: $first, last: $last, query: $query, filterKeys: $filterKeys) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n title\n }\n }\n }\n}": MetaobjectEntriesDocument,
14
14
  "query Metaobjects($filterKeys: MetaobjectFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n metaobjects(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n name\n }\n }\n }\n}": MetaobjectsDocument,
15
15
  "query Pages($filterKeys: PageFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n pages(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n edges {\n node {\n _id\n title\n image {\n _id\n url\n }\n }\n }\n }\n}": PagesDocument,
@@ -91,12 +91,14 @@ export type AddBlog = {
91
91
  title: Scalars['String']['input'];
92
92
  };
93
93
  export type AddCart = {
94
+ billing_address?: InputMaybe<CartAddressInput>;
95
+ coupon?: InputMaybe<Scalars['String']['input']>;
94
96
  customer?: InputMaybe<Scalars['ID']['input']>;
95
97
  ip?: InputMaybe<Scalars['String']['input']>;
96
98
  line_items?: InputMaybe<Array<CartLineItemInput>>;
97
99
  market: Scalars['ID']['input'];
98
100
  note?: InputMaybe<Scalars['String']['input']>;
99
- shipping_address?: InputMaybe<CartShippingAddressInput>;
101
+ shipping_address?: InputMaybe<CartAddressInput>;
100
102
  user_agent?: InputMaybe<Scalars['String']['input']>;
101
103
  };
102
104
  export type AddCollection = {
@@ -560,6 +562,7 @@ export type Brand = {
560
562
  export type Cart = {
561
563
  __typename: 'Cart';
562
564
  _id?: Maybe<Scalars['ID']['output']>;
565
+ billing_address?: Maybe<CartAddress>;
563
566
  customer?: Maybe<Customer>;
564
567
  discounts?: Maybe<Array<Maybe<CartDiscount>>>;
565
568
  errors?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
@@ -568,11 +571,36 @@ export type Cart = {
568
571
  market?: Maybe<Market>;
569
572
  note?: Maybe<Scalars['String']['output']>;
570
573
  pricing?: Maybe<CartPricing>;
571
- shipping_address?: Maybe<CartShippingAddress>;
574
+ shipping_address?: Maybe<CartAddress>;
572
575
  status?: Maybe<CartStatus>;
573
576
  store?: Maybe<Store>;
574
577
  user_agent?: Maybe<Scalars['String']['output']>;
575
578
  };
579
+ export type CartAddress = {
580
+ __typename: 'CartAddress';
581
+ address1?: Maybe<Scalars['String']['output']>;
582
+ address2?: Maybe<Scalars['String']['output']>;
583
+ city?: Maybe<Scalars['String']['output']>;
584
+ company?: Maybe<Scalars['String']['output']>;
585
+ country?: Maybe<_Country>;
586
+ first_name?: Maybe<Scalars['String']['output']>;
587
+ last_name?: Maybe<Scalars['String']['output']>;
588
+ phone?: Maybe<Scalars['String']['output']>;
589
+ postal_code?: Maybe<Scalars['String']['output']>;
590
+ region?: Maybe<_Region>;
591
+ };
592
+ export type CartAddressInput = {
593
+ address1?: InputMaybe<Scalars['String']['input']>;
594
+ address2?: InputMaybe<Scalars['String']['input']>;
595
+ city?: InputMaybe<Scalars['String']['input']>;
596
+ company?: InputMaybe<Scalars['String']['input']>;
597
+ country?: InputMaybe<Scalars['ID']['input']>;
598
+ first_name?: InputMaybe<Scalars['String']['input']>;
599
+ last_name?: InputMaybe<Scalars['String']['input']>;
600
+ phone?: InputMaybe<Scalars['String']['input']>;
601
+ postal_code?: InputMaybe<Scalars['String']['input']>;
602
+ region?: InputMaybe<Scalars['ID']['input']>;
603
+ };
576
604
  export type CartConnection = {
577
605
  __typename: 'CartConnection';
578
606
  edges?: Maybe<Array<Maybe<CartEdge>>>;
@@ -675,17 +703,6 @@ export type CartPricingLineItem = {
675
703
  final_total?: Maybe<Scalars['Float']['output']>;
676
704
  line_item?: Maybe<Scalars['ID']['output']>;
677
705
  };
678
- export type CartShippingAddress = {
679
- __typename: 'CartShippingAddress';
680
- country?: Maybe<_Country>;
681
- postal_code?: Maybe<Scalars['String']['output']>;
682
- region?: Maybe<_Region>;
683
- };
684
- export type CartShippingAddressInput = {
685
- country?: InputMaybe<Scalars['ID']['input']>;
686
- postal_code?: InputMaybe<Scalars['ID']['input']>;
687
- region?: InputMaybe<Scalars['ID']['input']>;
688
- };
689
706
  export declare enum CartSortkeys {
690
707
  _id = "_id",
691
708
  createdAt = "createdAt",
@@ -748,7 +765,6 @@ export declare enum CheckoutNameRequirement {
748
765
  export type Collection = {
749
766
  __typename: 'Collection';
750
767
  _id?: Maybe<Scalars['ID']['output']>;
751
- collectionProducts?: Maybe<CollectionProductConnection>;
752
768
  description?: Maybe<Scalars['String']['output']>;
753
769
  handle?: Maybe<Scalars['String']['output']>;
754
770
  image?: Maybe<Media>;
@@ -756,11 +772,12 @@ export type Collection = {
756
772
  meta_tags?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
757
773
  meta_title?: Maybe<Scalars['String']['output']>;
758
774
  metafields?: Maybe<Array<Maybe<MetafieldData>>>;
775
+ products?: Maybe<CollectionProductConnection>;
759
776
  store?: Maybe<Store>;
760
777
  template?: Maybe<Scalars['String']['output']>;
761
778
  title?: Maybe<Scalars['String']['output']>;
762
779
  };
763
- export type CollectionCollectionProductsArgs = {
780
+ export type CollectionProductsArgs = {
764
781
  after?: InputMaybe<Scalars['ID']['input']>;
765
782
  before?: InputMaybe<Scalars['ID']['input']>;
766
783
  filterKeys?: InputMaybe<CollectionProductFilterKeys>;
@@ -1503,14 +1520,14 @@ export type EditBrand = {
1503
1520
  youtube?: InputMaybe<Scalars['String']['input']>;
1504
1521
  };
1505
1522
  export type EditCart = {
1523
+ billing_address?: InputMaybe<CartAddressInput>;
1506
1524
  coupon?: InputMaybe<Scalars['String']['input']>;
1507
1525
  cursor: Scalars['ID']['input'];
1508
1526
  customer?: InputMaybe<Scalars['ID']['input']>;
1509
1527
  ip?: InputMaybe<Scalars['String']['input']>;
1510
1528
  line_items?: InputMaybe<Array<CartLineItemInput>>;
1511
- market?: InputMaybe<Scalars['ID']['input']>;
1512
1529
  note?: InputMaybe<Scalars['String']['input']>;
1513
- shipping_address?: InputMaybe<CartShippingAddressInput>;
1530
+ shipping_address?: InputMaybe<CartAddressInput>;
1514
1531
  user_agent?: InputMaybe<Scalars['String']['input']>;
1515
1532
  };
1516
1533
  export type EditCollection = {
@@ -2193,6 +2210,7 @@ export type MarketVariant = {
2193
2210
  __typename: 'MarketVariant';
2194
2211
  _id?: Maybe<Scalars['ID']['output']>;
2195
2212
  compare_at_price?: Maybe<Scalars['Float']['output']>;
2213
+ createdAt?: Maybe<Scalars['String']['output']>;
2196
2214
  is_fixed_price?: Maybe<Scalars['Boolean']['output']>;
2197
2215
  is_tax_applicable?: Maybe<Scalars['Boolean']['output']>;
2198
2216
  market?: Maybe<Market>;
@@ -2204,6 +2222,7 @@ export type MarketVariant = {
2204
2222
  sku?: Maybe<Scalars['String']['output']>;
2205
2223
  store?: Maybe<Store>;
2206
2224
  track_inventory?: Maybe<Scalars['Boolean']['output']>;
2225
+ updatedAt?: Maybe<Scalars['String']['output']>;
2207
2226
  use_wholesale?: Maybe<Scalars['Boolean']['output']>;
2208
2227
  variant?: Maybe<Variant>;
2209
2228
  };
@@ -6727,6 +6746,10 @@ export type MetafieldsQuery = {
6727
6746
  entry?: MetafieldEntryType | null;
6728
6747
  name?: string | null;
6729
6748
  type?: MetafieldType | null;
6749
+ metaobject_reference?: {
6750
+ __typename: 'Metaobject';
6751
+ _id?: string | null;
6752
+ } | null;
6730
6753
  } | null;
6731
6754
  } | null> | null;
6732
6755
  } | null;
@@ -2974,6 +2974,25 @@ const MetafieldsDocument = {
2974
2974
  kind: "Name",
2975
2975
  value: "type"
2976
2976
  }
2977
+ },
2978
+ {
2979
+ kind: "Field",
2980
+ name: {
2981
+ kind: "Name",
2982
+ value: "metaobject_reference"
2983
+ },
2984
+ selectionSet: {
2985
+ kind: "SelectionSet",
2986
+ selections: [
2987
+ {
2988
+ kind: "Field",
2989
+ name: {
2990
+ kind: "Name",
2991
+ value: "_id"
2992
+ }
2993
+ }
2994
+ ]
2995
+ }
2977
2996
  }
2978
2997
  ]
2979
2998
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soppiya/app-bridge",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {