@soppiya/app-bridge 1.1.5 → 1.1.6

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.
Files changed (43) hide show
  1. package/dist/components/index.d.ts +2 -0
  2. package/dist/components/index.js +2 -0
  3. package/dist/components/media/Media.js +6 -6
  4. package/dist/components/metaobjects-entries-picker/index.d.ts +1 -0
  5. package/dist/components/metaobjects-entries-picker/index.js +2 -0
  6. package/dist/components/metaobjects-entries-picker/ui/MetaobjectEntriesPicker.d.ts +10 -0
  7. package/dist/components/{metafield-entries/ui/MetaobjectEntries.js → metaobjects-entries-picker/ui/MetaobjectEntriesPicker.js} +3 -3
  8. package/dist/components/{metafield-entries/ui/MetaobjectEntries.stories.d.ts → metaobjects-entries-picker/ui/MetaobjectEntriesPicker.stories.d.ts} +1 -1
  9. package/dist/components/metaobjects-entries-picker/ui/MetaobjectEntriesPicker.stories.js +10 -0
  10. package/dist/components/metaobjects-picker/api/query.d.ts +8 -0
  11. package/dist/components/metaobjects-picker/api/query.js +18 -0
  12. package/dist/components/metaobjects-picker/index.d.ts +1 -0
  13. package/dist/components/metaobjects-picker/index.js +2 -0
  14. package/dist/components/metaobjects-picker/model/useMetaobjects.d.ts +24 -0
  15. package/dist/components/metaobjects-picker/model/useMetaobjects.js +45 -0
  16. package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.d.ts +9 -0
  17. package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.js +104 -0
  18. package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.stories.d.ts +14 -0
  19. package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.stories.js +10 -0
  20. package/dist/shared/graphql/gql.d.ts +5 -0
  21. package/dist/shared/graphql/gql.js +2 -1
  22. package/dist/shared/graphql/graphql.d.ts +31 -8
  23. package/dist/shared/graphql/graphql.js +299 -8
  24. package/dist/styles.css +20 -15
  25. package/package.json +1 -1
  26. package/dist/components/metafield-entries/index.d.ts +0 -0
  27. package/dist/components/metafield-entries/index.js +0 -0
  28. package/dist/components/metafield-entries/ui/MetaobjectEntries.d.ts +0 -10
  29. package/dist/components/metafield-entries/ui/MetaobjectEntries.stories.js +0 -10
  30. package/dist/components/metafields-picker/api/query.d.ts +0 -0
  31. package/dist/components/metafields-picker/api/query.js +0 -0
  32. package/dist/components/metafields-picker/index.d.ts +0 -0
  33. package/dist/components/metafields-picker/index.js +0 -0
  34. package/dist/components/metafields-picker/model/useMetafields.d.ts +0 -0
  35. package/dist/components/metafields-picker/model/useMetafields.js +0 -0
  36. package/dist/components/metafields-picker/ui/MetafieldsPicker.d.ts +0 -2
  37. package/dist/components/metafields-picker/ui/MetafieldsPicker.js +0 -7
  38. package/dist/components/metafields-picker/ui/MetafieldsPicker.stories.d.ts +0 -6
  39. package/dist/components/metafields-picker/ui/MetafieldsPicker.stories.js +0 -8
  40. /package/dist/components/{metafield-entries → metaobjects-entries-picker}/api/query.d.ts +0 -0
  41. /package/dist/components/{metafield-entries → metaobjects-entries-picker}/api/query.js +0 -0
  42. /package/dist/components/{metafield-entries → metaobjects-entries-picker}/model/useMetaobjectEntries.d.ts +0 -0
  43. /package/dist/components/{metafield-entries → metaobjects-entries-picker}/model/useMetaobjectEntries.js +0 -0
@@ -4,6 +4,8 @@ export * from "./collections-pciker";
4
4
  export * from "./link-list-picker";
5
5
  export * from "./media";
6
6
  export * from "./meta-data";
7
+ export * from "./metaobjects-entries-picker";
8
+ export * from "./metaobjects-picker";
7
9
  export * from "./pages-picker";
8
10
  export * from "./products-picker";
9
11
  export * from "./savebar";
@@ -4,6 +4,8 @@ export * from "./collections-pciker/index.js";
4
4
  export * from "./link-list-picker/index.js";
5
5
  export * from "./media/index.js";
6
6
  export * from "./meta-data/index.js";
7
+ export * from "./metaobjects-entries-picker/index.js";
8
+ export * from "./metaobjects-picker/index.js";
7
9
  export * from "./pages-picker/index.js";
8
10
  export * from "./products-picker/index.js";
9
11
  export * from "./savebar/index.js";
@@ -98,7 +98,7 @@ const Media_Media = ({ title = "Media", types = [
98
98
  alignItems: "center",
99
99
  children: [
100
100
  /*#__PURE__*/ jsxs(BlockStack, {
101
- className: "!max-w-[150px] w-full",
101
+ className: "max-w-[150px]! w-full",
102
102
  gapY: 30,
103
103
  children: [
104
104
  /*#__PURE__*/ jsxs(InlineStack, {
@@ -192,7 +192,7 @@ const Media_Media = ({ title = "Media", types = [
192
192
  children: [
193
193
  /*#__PURE__*/ jsx(Button, {
194
194
  color: "primary",
195
- className: "!px-[8px]",
195
+ className: "px-2!",
196
196
  onClick: ()=>ref.current?.click(),
197
197
  children: /*#__PURE__*/ jsx(SoppiyaIcon, {
198
198
  size: "sm",
@@ -250,7 +250,7 @@ const Media_Media = ({ title = "Media", types = [
250
250
  children: /*#__PURE__*/ jsx(Button, {
251
251
  variant: "outline",
252
252
  color: "secondary",
253
- className: "!px-[8px]",
253
+ className: "px-2!",
254
254
  onClick: toggleView,
255
255
  children: /*#__PURE__*/ jsx(SoppiyaIcon, {
256
256
  size: "sm",
@@ -308,7 +308,7 @@ const Media_Media = ({ title = "Media", types = [
308
308
  /*#__PURE__*/ jsxs(BlockStack, {
309
309
  gapY: 90,
310
310
  className: classnames("max-h-[calc(100dvh-300px)] overflow-x-hidden overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", {
311
- "md:!w-[calc(100%-300px)] lg:!w-[calc(100%-336px)]": Boolean(preview)
311
+ "md:w-[calc(100%-300px)]! lg:w-[calc(100%-336px)]!": Boolean(preview)
312
312
  }),
313
313
  children: [
314
314
  /*#__PURE__*/ jsx(Box, {
@@ -316,8 +316,8 @@ const Media_Media = ({ title = "Media", types = [
316
316
  children: /*#__PURE__*/ jsx(Box, {
317
317
  className: classnames("grid", {
318
318
  "grid-cols-[repeat(1,1fr)]": view === View.List,
319
- "grid-cols-[repeat(auto-fill,minmax(150px,1fr))] md:grid-cols-[repeat(auto-fill,minmax(117px,1fr))] !rounded-[6px] gap-[20px] lg:gap-[35px]": view === View.Grid,
320
- "gap-[20px]": view === View.Grid && Boolean(preview)
319
+ "grid-cols-[repeat(auto-fill,minmax(150px,1fr))] md:grid-cols-[repeat(auto-fill,minmax(117px,1fr))] rounded-md! gap-5 lg:gap-[35px]": view === View.Grid,
320
+ "gap-5": view === View.Grid && Boolean(preview)
321
321
  }),
322
322
  children: medias.map((media)=>/*#__PURE__*/ jsx(MediaItem, {
323
323
  view: view,
@@ -0,0 +1 @@
1
+ export { default as MetaobjectEntriesPicker } from "./ui/MetaobjectEntriesPicker";
@@ -0,0 +1,2 @@
1
+ import MetaobjectEntriesPicker from "./ui/MetaobjectEntriesPicker.js";
2
+ export { MetaobjectEntriesPicker };
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ title?: string;
3
+ initialIds?: string[];
4
+ limit?: number;
5
+ metaobjects?: string[];
6
+ onClose?: () => void;
7
+ onOk?: (metaobjectEntries: string[]) => void;
8
+ };
9
+ declare const MetaobjectEntriesPicker: ({ title, initialIds, limit, metaobjects, onClose, onOk }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export default MetaobjectEntriesPicker;
@@ -6,7 +6,7 @@ import classnames from "classnames";
6
6
  import lodash from "lodash";
7
7
  import { useState } from "react";
8
8
  import { useMetaobjectEntries } from "../model/useMetaobjectEntries.js";
9
- const MetaobjectEntries_MetaobjectEntries = ({ title = "Metaobject entries", initialIds = [], limit = 1 / 0, metaobjects = [], onClose, onOk })=>{
9
+ const MetaobjectEntriesPicker = ({ title = "Metaobject entries", initialIds = [], limit = 1 / 0, metaobjects = [], onClose, onOk })=>{
10
10
  const [selectedMetaobjectEntries, setSelectedMetaobjectEntries] = useState(initialIds);
11
11
  const { query, debounceQuery, onChangeQuery } = useFilterQuery();
12
12
  const { metaobjectEntries, isLoadingMetaobjectEntries, fetchMoreMetaobjectEntries, pageInfo } = useMetaobjectEntries({
@@ -104,5 +104,5 @@ const MetaobjectEntries_MetaobjectEntries = ({ title = "Metaobject entries", ini
104
104
  })
105
105
  });
106
106
  };
107
- const MetaobjectEntries = MetaobjectEntries_MetaobjectEntries;
108
- export { MetaobjectEntries as default };
107
+ const ui_MetaobjectEntriesPicker = MetaobjectEntriesPicker;
108
+ export { ui_MetaobjectEntriesPicker as default };
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  limit?: number;
7
7
  metaobjects?: string[];
8
8
  onClose?: () => void;
9
- onOk?: (linklist: string[]) => void;
9
+ onOk?: (metaobjectEntries: string[]) => void;
10
10
  }) => import("react/jsx-runtime").JSX.Element;
11
11
  };
12
12
  export default meta;
@@ -0,0 +1,10 @@
1
+ import MetaobjectEntriesPicker from "./MetaobjectEntriesPicker.js";
2
+ const meta = {
3
+ title: "Example/MetaobjectEntriesPicker",
4
+ component: MetaobjectEntriesPicker
5
+ };
6
+ const MetaobjectEntriesPicker_stories = meta;
7
+ const Default = {
8
+ args: {}
9
+ };
10
+ export { Default, MetaobjectEntriesPicker_stories as default };
@@ -0,0 +1,8 @@
1
+ export declare const metaobjectQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../../shared/graphql/graphql").MetaobjectsQuery, import("../../../shared/graphql/graphql").Exact<{
2
+ filterKeys?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").MetaobjectFilterKeys>;
3
+ after?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").Scalars["ID"]["input"]>;
4
+ before?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").Scalars["ID"]["input"]>;
5
+ first?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").Scalars["Int"]["input"]>;
6
+ last?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").Scalars["Int"]["input"]>;
7
+ query?: import("../../../shared/graphql/graphql").InputMaybe<import("../../../shared/graphql/graphql").Scalars["String"]["input"]>;
8
+ }>>;
@@ -0,0 +1,18 @@
1
+ import { graphql } from "../../../shared/graphql/index.js";
2
+ const metaobjectQuery = graphql(`query Metaobjects($filterKeys: MetaobjectFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {
3
+ metaobjects(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {
4
+ pageInfo {
5
+ endCursor
6
+ hasNextPage
7
+ hasPreviousPage
8
+ startCursor
9
+ }
10
+ edges {
11
+ node {
12
+ _id
13
+ name
14
+ }
15
+ }
16
+ }
17
+ }`);
18
+ export { metaobjectQuery };
@@ -0,0 +1 @@
1
+ export { default as MetaobjectsPicker } from "./ui/MetaobjectsPicker";
@@ -0,0 +1,2 @@
1
+ import MetaobjectsPicker from "./ui/MetaobjectsPicker.js";
2
+ export { MetaobjectsPicker };
@@ -0,0 +1,24 @@
1
+ import { MetaobjectFilterKeys } from "../../../shared/graphql/graphql";
2
+ type Props = {
3
+ skip?: boolean;
4
+ first?: number;
5
+ query?: string | null;
6
+ filterKeys?: MetaobjectFilterKeys;
7
+ };
8
+ export declare const useMetaobjects: (props?: Props) => {
9
+ metaobjects: {
10
+ __typename: "Metaobject";
11
+ _id?: string | null;
12
+ name?: string | null;
13
+ }[] | undefined;
14
+ isMetaobjectsLoading: boolean;
15
+ pageInfo: {
16
+ __typename: "PageInfo";
17
+ endCursor?: string | null;
18
+ hasNextPage?: boolean | null;
19
+ hasPreviousPage?: boolean | null;
20
+ startCursor?: string | null;
21
+ } | null | undefined;
22
+ fetchMoreMetaobjects: () => void;
23
+ };
24
+ export {};
@@ -0,0 +1,45 @@
1
+ import { useQuery } from "@apollo/client/react";
2
+ import { metaobjectQuery } from "../api/query.js";
3
+ const useMetaobjects = (props = {})=>{
4
+ const { skip, first, query, filterKeys } = props;
5
+ const { data, loading: isMetaobjectsLoading, error, fetchMore } = useQuery(metaobjectQuery, {
6
+ skip,
7
+ variables: {
8
+ first,
9
+ query,
10
+ filterKeys
11
+ }
12
+ });
13
+ const metaobjects = data?.metaobjects?.edges?.map((edge)=>edge?.node).filter((node)=>null != node);
14
+ const pageInfo = data?.metaobjects?.pageInfo;
15
+ const fetchMoreMetaobjects = ()=>{
16
+ if (!pageInfo?.hasNextPage) return;
17
+ fetchMore({
18
+ variables: {
19
+ first,
20
+ query,
21
+ filterKeys,
22
+ after: pageInfo.endCursor
23
+ },
24
+ updateQuery (prev, { fetchMoreResult }) {
25
+ if (!fetchMoreResult.metaobjects?.edges || !prev.metaobjects?.edges) return prev;
26
+ return {
27
+ metaobjects: {
28
+ ...fetchMoreResult.metaobjects,
29
+ edges: [
30
+ ...prev.metaobjects.edges,
31
+ ...fetchMoreResult.metaobjects.edges
32
+ ]
33
+ }
34
+ };
35
+ }
36
+ });
37
+ };
38
+ return {
39
+ metaobjects,
40
+ isMetaobjectsLoading,
41
+ pageInfo,
42
+ fetchMoreMetaobjects
43
+ };
44
+ };
45
+ export { useMetaobjects };
@@ -0,0 +1,9 @@
1
+ type Props = {
2
+ title?: string;
3
+ initialIds?: string[];
4
+ limit?: number;
5
+ onClose?: () => void;
6
+ onOk?: (metaobjectEntries: string[]) => void;
7
+ };
8
+ declare const MetaobjectsPicker: ({ title, initialIds, limit, onClose, onOk }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export default MetaobjectsPicker;
@@ -0,0 +1,104 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { InfinityScroll } from "../../infinity-scroll/index.js";
3
+ import { useFilterQuery } from "../../../shared/lib/index.js";
4
+ import { BlockStack, Box, Button, Checkbox, InlineStack, Input, Modal, Spinner, Text } from "@soppiya/elementus";
5
+ import classnames from "classnames";
6
+ import lodash from "lodash";
7
+ import { useState } from "react";
8
+ import { useMetaobjects } from "../model/useMetaobjects.js";
9
+ const MetaobjectsPicker = ({ title = "Metaobjects", initialIds = [], limit = 1 / 0, onClose, onOk })=>{
10
+ const [selectedMetaobject, setSelectedMetaobject] = useState(initialIds);
11
+ const { query, debounceQuery, onChangeQuery } = useFilterQuery();
12
+ const { metaobjects, isMetaobjectsLoading, fetchMoreMetaobjects, pageInfo } = useMetaobjects({
13
+ first: 20,
14
+ query: debounceQuery
15
+ });
16
+ const isReached = limit !== 1 / 0 && selectedMetaobject.length >= limit;
17
+ const isDisabled = limit !== 1 / 0 && selectedMetaobject.length > limit;
18
+ const handleSelectedMetaobject = (metaobjectId)=>{
19
+ if (selectedMetaobject?.includes(metaobjectId)) return void setSelectedMetaobject((prev)=>prev.filter((id)=>metaobjectId !== id));
20
+ if (isReached) return;
21
+ setSelectedMetaobject((prev)=>[
22
+ ...prev,
23
+ metaobjectId
24
+ ]);
25
+ };
26
+ const handleOk = ()=>{
27
+ if (lodash.isFunction(onOk)) onOk(selectedMetaobject);
28
+ };
29
+ const ButtonJSX = /*#__PURE__*/ jsx(InlineStack, {
30
+ justifyContent: "end",
31
+ children: /*#__PURE__*/ jsx(Button, {
32
+ disabled: lodash.isEmpty(selectedMetaobject) || isDisabled,
33
+ onClick: handleOk,
34
+ children: "Add"
35
+ })
36
+ });
37
+ return /*#__PURE__*/ jsx(Modal, {
38
+ open: true,
39
+ title: title,
40
+ buttons: ButtonJSX,
41
+ bodyPadding: 0,
42
+ onClose: onClose,
43
+ children: /*#__PURE__*/ jsxs(BlockStack, {
44
+ children: [
45
+ /*#__PURE__*/ jsx(Box, {
46
+ padding: 60,
47
+ children: /*#__PURE__*/ jsx(Input, {
48
+ size: "sm",
49
+ type: "search",
50
+ value: query ?? "",
51
+ onChange: (event)=>onChangeQuery(event.target.value)
52
+ })
53
+ }),
54
+ isMetaobjectsLoading ? /*#__PURE__*/ jsx(InlineStack, {
55
+ justifyContent: "center",
56
+ padding: 80,
57
+ children: /*#__PURE__*/ jsx(Spinner, {
58
+ size: "md"
59
+ })
60
+ }) : /*#__PURE__*/ jsxs(BlockStack, {
61
+ children: [
62
+ metaobjects?.map((metaobjects)=>/*#__PURE__*/ jsxs(InlineStack, {
63
+ stack: "full",
64
+ className: classnames('lg:cursor-pointer border-t border-t-[#ebebeb]!', {
65
+ 'bg-[#f1f1f1ab] cursor-default!': !selectedMetaobject.includes(metaobjects._id) && isReached
66
+ }),
67
+ gapX: 60,
68
+ padding: 60,
69
+ onClick: ()=>handleSelectedMetaobject(String(metaobjects._id)),
70
+ children: [
71
+ /*#__PURE__*/ jsx(InlineStack, {
72
+ alignItems: "center",
73
+ gapX: 60,
74
+ children: /*#__PURE__*/ jsx(Box, {
75
+ children: /*#__PURE__*/ jsx(Checkbox, {
76
+ disabled: !selectedMetaobject.includes(metaobjects._id) && isReached,
77
+ checked: selectedMetaobject.includes(String(metaobjects._id)),
78
+ onChange: ()=>{}
79
+ })
80
+ })
81
+ }),
82
+ /*#__PURE__*/ jsx(BlockStack, {
83
+ gapY: 30,
84
+ justifyContent: "center",
85
+ children: /*#__PURE__*/ jsx(Text, {
86
+ size: "sm",
87
+ color: "secondary",
88
+ truncate: "truncate-1",
89
+ children: metaobjects.name
90
+ })
91
+ })
92
+ ]
93
+ }, metaobjects._id)),
94
+ pageInfo?.hasNextPage && /*#__PURE__*/ jsx(InfinityScroll, {
95
+ onFetch: fetchMoreMetaobjects
96
+ })
97
+ ]
98
+ })
99
+ ]
100
+ })
101
+ });
102
+ };
103
+ const ui_MetaobjectsPicker = MetaobjectsPicker;
104
+ export { ui_MetaobjectsPicker as default };
@@ -0,0 +1,14 @@
1
+ declare const meta: {
2
+ title: string;
3
+ component: ({ title, initialIds, limit, onClose, onOk }: {
4
+ title?: string;
5
+ initialIds?: string[];
6
+ limit?: number;
7
+ onClose?: () => void;
8
+ onOk?: (metaobjectEntries: string[]) => void;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ export default meta;
12
+ export declare const Default: {
13
+ args: {};
14
+ };
@@ -0,0 +1,10 @@
1
+ import MetaobjectsPicker from "./MetaobjectsPicker.js";
2
+ const meta = {
3
+ title: "Example/MetaobjectsPicker",
4
+ component: MetaobjectsPicker
5
+ };
6
+ const MetaobjectsPicker_stories = meta;
7
+ const Default = {
8
+ args: {}
9
+ };
10
+ export { Default, MetaobjectsPicker_stories as default };
@@ -23,6 +23,7 @@ type Documents = {
23
23
  "\n mutation DeleteMedias($cursors: [ID!]!) {\n deleteMedias(cursors: $cursors) {\n message\n }\n }\n": typeof types.DeleteMediasDocument;
24
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;
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
+ "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;
26
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;
27
28
  "\n query Products($after: ID, $before: ID, $first: Int, $last: Int, $query: String,$filterKeys: ProductFilterKeys) {\n products(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 image {\n _id\n url\n }\n }\n }\n }\n }\n": typeof types.ProductsDocument;
28
29
  "\n query Variants($after: ID, $before: ID, $first: Int, $last: Int, $query: String,$filterKeys: VariantFilterKeys) {\n variants(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 option1\n option2\n option3\n image {\n _id\n url\n }\n product {\n _id\n title\n }\n }\n }\n }\n }\n": typeof types.VariantsDocument;
@@ -85,6 +86,10 @@ export declare function graphql(source: "query Metafields($filterKeys: Metafield
85
86
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
86
87
  */
87
88
  export declare function graphql(source: "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 documents)["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}"];
89
+ /**
90
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
91
+ */
92
+ export declare function graphql(source: "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 documents)["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}"];
88
93
  /**
89
94
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
90
95
  */
@@ -1,4 +1,4 @@
1
- import { AddMediasDocument, ArticlesDocument, BlogsDocument, CollectionsDocument, DeleteMediasDocument, LinklistsDocument, MediaUsageDocument, MediasDocument, MetafieldsDocument, MetaobjectEntriesDocument, PagesDocument, ProductsDocument, StoragePlanDocument, VariantsDocument } from "./graphql.js";
1
+ import { AddMediasDocument, ArticlesDocument, BlogsDocument, CollectionsDocument, DeleteMediasDocument, LinklistsDocument, MediaUsageDocument, MediasDocument, MetafieldsDocument, MetaobjectEntriesDocument, MetaobjectsDocument, PagesDocument, ProductsDocument, StoragePlanDocument, VariantsDocument } from "./graphql.js";
2
2
  const documents = {
3
3
  "query Articles($filterKeys: ArticleFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n articles(filterKeys: $filterKeys, after: $after, before: $before, first: $first, last: $last, query: $query) {\n edges {\n node {\n _id\n title\n image {\n _id\n url\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}": ArticlesDocument,
4
4
  "query Blogs($filterKeys: BlogFilterKeys, $after: ID, $before: ID, $first: Int, $last: Int, $query: String) {\n blogs(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}": BlogsDocument,
@@ -11,6 +11,7 @@ const documents = {
11
11
  "\n mutation DeleteMedias($cursors: [ID!]!) {\n deleteMedias(cursors: $cursors) {\n message\n }\n }\n": DeleteMediasDocument,
12
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,
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
+ "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,
14
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,
15
16
  "\n query Products($after: ID, $before: ID, $first: Int, $last: Int, $query: String,$filterKeys: ProductFilterKeys) {\n products(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 image {\n _id\n url\n }\n }\n }\n }\n }\n": ProductsDocument,
16
17
  "\n query Variants($after: ID, $before: ID, $first: Int, $last: Int, $query: String,$filterKeys: VariantFilterKeys) {\n variants(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 option1\n option2\n option3\n image {\n _id\n url\n }\n product {\n _id\n title\n }\n }\n }\n }\n }\n": VariantsDocument
@@ -254,6 +254,7 @@ export type AddPage = {
254
254
  meta_description?: InputMaybe<Scalars['String']['input']>;
255
255
  meta_tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
256
256
  meta_title?: InputMaybe<Scalars['String']['input']>;
257
+ metafields?: InputMaybe<Array<InputMaybe<MetafieldInput>>>;
257
258
  status: PageStatus;
258
259
  template?: InputMaybe<Scalars['String']['input']>;
259
260
  title: Scalars['String']['input'];
@@ -2454,19 +2455,13 @@ export type MetaobjectFieldInput = {
2454
2455
  type: MetaobjectFieldType;
2455
2456
  };
2456
2457
  export declare enum MetaobjectFieldType {
2457
- article_ref = "article_ref",
2458
- blog_ref = "blog_ref",
2459
2458
  boolean = "boolean",
2460
- collection_ref = "collection_ref",
2461
2459
  color = "color",
2462
2460
  date = "date",
2463
2461
  date_time = "date_time",
2464
2462
  multiline_text = "multiline_text",
2465
2463
  number = "number",
2466
- page_ref = "page_ref",
2467
- product_ref = "product_ref",
2468
- single_line_text = "single_line_text",
2469
- variant_ref = "variant_ref"
2464
+ single_line_text = "single_line_text"
2470
2465
  }
2471
2466
  export type MetaobjectFilterKeys = {
2472
2467
  cursors?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -3586,7 +3581,6 @@ export type PageInfo = {
3586
3581
  };
3587
3582
  export declare enum PageSortKeys {
3588
3583
  _id = "_id",
3589
- blog = "blog",
3590
3584
  createdAt = "createdAt",
3591
3585
  status = "status",
3592
3586
  title = "title",
@@ -6765,6 +6759,34 @@ export type MetaobjectEntriesQuery = {
6765
6759
  } | null> | null;
6766
6760
  } | null;
6767
6761
  };
6762
+ export type MetaobjectsQueryVariables = Exact<{
6763
+ filterKeys?: InputMaybe<MetaobjectFilterKeys>;
6764
+ after?: InputMaybe<Scalars['ID']['input']>;
6765
+ before?: InputMaybe<Scalars['ID']['input']>;
6766
+ first?: InputMaybe<Scalars['Int']['input']>;
6767
+ last?: InputMaybe<Scalars['Int']['input']>;
6768
+ query?: InputMaybe<Scalars['String']['input']>;
6769
+ }>;
6770
+ export type MetaobjectsQuery = {
6771
+ metaobjects?: {
6772
+ __typename: 'MetaobjectConnection';
6773
+ pageInfo?: {
6774
+ __typename: 'PageInfo';
6775
+ endCursor?: string | null;
6776
+ hasNextPage?: boolean | null;
6777
+ hasPreviousPage?: boolean | null;
6778
+ startCursor?: string | null;
6779
+ } | null;
6780
+ edges?: Array<{
6781
+ __typename: 'MetaobjectEdge';
6782
+ node?: {
6783
+ __typename: 'Metaobject';
6784
+ _id?: string | null;
6785
+ name?: string | null;
6786
+ } | null;
6787
+ } | null> | null;
6788
+ } | null;
6789
+ };
6768
6790
  export type PagesQueryVariables = Exact<{
6769
6791
  filterKeys?: InputMaybe<PageFilterKeys>;
6770
6792
  after?: InputMaybe<Scalars['ID']['input']>;
@@ -6882,6 +6904,7 @@ export declare const AddMediasDocument: DocumentNode<AddMediasMutation, AddMedia
6882
6904
  export declare const DeleteMediasDocument: DocumentNode<DeleteMediasMutation, DeleteMediasMutationVariables>;
6883
6905
  export declare const MetafieldsDocument: DocumentNode<MetafieldsQuery, MetafieldsQueryVariables>;
6884
6906
  export declare const MetaobjectEntriesDocument: DocumentNode<MetaobjectEntriesQuery, MetaobjectEntriesQueryVariables>;
6907
+ export declare const MetaobjectsDocument: DocumentNode<MetaobjectsQuery, MetaobjectsQueryVariables>;
6885
6908
  export declare const PagesDocument: DocumentNode<PagesQuery, PagesQueryVariables>;
6886
6909
  export declare const ProductsDocument: DocumentNode<ProductsQuery, ProductsQueryVariables>;
6887
6910
  export declare const VariantsDocument: DocumentNode<VariantsQuery, VariantsQueryVariables>;
@@ -511,19 +511,13 @@ var graphql_MetaobjectEntrySortKeys = /*#__PURE__*/ function(MetaobjectEntrySort
511
511
  return MetaobjectEntrySortKeys;
512
512
  }({});
513
513
  var graphql_MetaobjectFieldType = /*#__PURE__*/ function(MetaobjectFieldType) {
514
- MetaobjectFieldType["article_ref"] = "article_ref";
515
- MetaobjectFieldType["blog_ref"] = "blog_ref";
516
514
  MetaobjectFieldType["boolean"] = "boolean";
517
- MetaobjectFieldType["collection_ref"] = "collection_ref";
518
515
  MetaobjectFieldType["color"] = "color";
519
516
  MetaobjectFieldType["date"] = "date";
520
517
  MetaobjectFieldType["date_time"] = "date_time";
521
518
  MetaobjectFieldType["multiline_text"] = "multiline_text";
522
519
  MetaobjectFieldType["number"] = "number";
523
- MetaobjectFieldType["page_ref"] = "page_ref";
524
- MetaobjectFieldType["product_ref"] = "product_ref";
525
520
  MetaobjectFieldType["single_line_text"] = "single_line_text";
526
- MetaobjectFieldType["variant_ref"] = "variant_ref";
527
521
  return MetaobjectFieldType;
528
522
  }({});
529
523
  var graphql_MetaobjectSortKeys = /*#__PURE__*/ function(MetaobjectSortKeys) {
@@ -536,7 +530,6 @@ var graphql_MetaobjectSortKeys = /*#__PURE__*/ function(MetaobjectSortKeys) {
536
530
  }({});
537
531
  var graphql_PageSortKeys = /*#__PURE__*/ function(PageSortKeys) {
538
532
  PageSortKeys["_id"] = "_id";
539
- PageSortKeys["blog"] = "blog";
540
533
  PageSortKeys["createdAt"] = "createdAt";
541
534
  PageSortKeys["status"] = "status";
542
535
  PageSortKeys["title"] = "title";
@@ -3294,6 +3287,304 @@ const MetaobjectEntriesDocument = {
3294
3287
  }
3295
3288
  ]
3296
3289
  };
3290
+ const MetaobjectsDocument = {
3291
+ kind: "Document",
3292
+ definitions: [
3293
+ {
3294
+ kind: "OperationDefinition",
3295
+ operation: "query",
3296
+ name: {
3297
+ kind: "Name",
3298
+ value: "Metaobjects"
3299
+ },
3300
+ variableDefinitions: [
3301
+ {
3302
+ kind: "VariableDefinition",
3303
+ variable: {
3304
+ kind: "Variable",
3305
+ name: {
3306
+ kind: "Name",
3307
+ value: "filterKeys"
3308
+ }
3309
+ },
3310
+ type: {
3311
+ kind: "NamedType",
3312
+ name: {
3313
+ kind: "Name",
3314
+ value: "MetaobjectFilterKeys"
3315
+ }
3316
+ }
3317
+ },
3318
+ {
3319
+ kind: "VariableDefinition",
3320
+ variable: {
3321
+ kind: "Variable",
3322
+ name: {
3323
+ kind: "Name",
3324
+ value: "after"
3325
+ }
3326
+ },
3327
+ type: {
3328
+ kind: "NamedType",
3329
+ name: {
3330
+ kind: "Name",
3331
+ value: "ID"
3332
+ }
3333
+ }
3334
+ },
3335
+ {
3336
+ kind: "VariableDefinition",
3337
+ variable: {
3338
+ kind: "Variable",
3339
+ name: {
3340
+ kind: "Name",
3341
+ value: "before"
3342
+ }
3343
+ },
3344
+ type: {
3345
+ kind: "NamedType",
3346
+ name: {
3347
+ kind: "Name",
3348
+ value: "ID"
3349
+ }
3350
+ }
3351
+ },
3352
+ {
3353
+ kind: "VariableDefinition",
3354
+ variable: {
3355
+ kind: "Variable",
3356
+ name: {
3357
+ kind: "Name",
3358
+ value: "first"
3359
+ }
3360
+ },
3361
+ type: {
3362
+ kind: "NamedType",
3363
+ name: {
3364
+ kind: "Name",
3365
+ value: "Int"
3366
+ }
3367
+ }
3368
+ },
3369
+ {
3370
+ kind: "VariableDefinition",
3371
+ variable: {
3372
+ kind: "Variable",
3373
+ name: {
3374
+ kind: "Name",
3375
+ value: "last"
3376
+ }
3377
+ },
3378
+ type: {
3379
+ kind: "NamedType",
3380
+ name: {
3381
+ kind: "Name",
3382
+ value: "Int"
3383
+ }
3384
+ }
3385
+ },
3386
+ {
3387
+ kind: "VariableDefinition",
3388
+ variable: {
3389
+ kind: "Variable",
3390
+ name: {
3391
+ kind: "Name",
3392
+ value: "query"
3393
+ }
3394
+ },
3395
+ type: {
3396
+ kind: "NamedType",
3397
+ name: {
3398
+ kind: "Name",
3399
+ value: "String"
3400
+ }
3401
+ }
3402
+ }
3403
+ ],
3404
+ selectionSet: {
3405
+ kind: "SelectionSet",
3406
+ selections: [
3407
+ {
3408
+ kind: "Field",
3409
+ name: {
3410
+ kind: "Name",
3411
+ value: "metaobjects"
3412
+ },
3413
+ arguments: [
3414
+ {
3415
+ kind: "Argument",
3416
+ name: {
3417
+ kind: "Name",
3418
+ value: "filterKeys"
3419
+ },
3420
+ value: {
3421
+ kind: "Variable",
3422
+ name: {
3423
+ kind: "Name",
3424
+ value: "filterKeys"
3425
+ }
3426
+ }
3427
+ },
3428
+ {
3429
+ kind: "Argument",
3430
+ name: {
3431
+ kind: "Name",
3432
+ value: "after"
3433
+ },
3434
+ value: {
3435
+ kind: "Variable",
3436
+ name: {
3437
+ kind: "Name",
3438
+ value: "after"
3439
+ }
3440
+ }
3441
+ },
3442
+ {
3443
+ kind: "Argument",
3444
+ name: {
3445
+ kind: "Name",
3446
+ value: "before"
3447
+ },
3448
+ value: {
3449
+ kind: "Variable",
3450
+ name: {
3451
+ kind: "Name",
3452
+ value: "before"
3453
+ }
3454
+ }
3455
+ },
3456
+ {
3457
+ kind: "Argument",
3458
+ name: {
3459
+ kind: "Name",
3460
+ value: "first"
3461
+ },
3462
+ value: {
3463
+ kind: "Variable",
3464
+ name: {
3465
+ kind: "Name",
3466
+ value: "first"
3467
+ }
3468
+ }
3469
+ },
3470
+ {
3471
+ kind: "Argument",
3472
+ name: {
3473
+ kind: "Name",
3474
+ value: "last"
3475
+ },
3476
+ value: {
3477
+ kind: "Variable",
3478
+ name: {
3479
+ kind: "Name",
3480
+ value: "last"
3481
+ }
3482
+ }
3483
+ },
3484
+ {
3485
+ kind: "Argument",
3486
+ name: {
3487
+ kind: "Name",
3488
+ value: "query"
3489
+ },
3490
+ value: {
3491
+ kind: "Variable",
3492
+ name: {
3493
+ kind: "Name",
3494
+ value: "query"
3495
+ }
3496
+ }
3497
+ }
3498
+ ],
3499
+ selectionSet: {
3500
+ kind: "SelectionSet",
3501
+ selections: [
3502
+ {
3503
+ kind: "Field",
3504
+ name: {
3505
+ kind: "Name",
3506
+ value: "pageInfo"
3507
+ },
3508
+ selectionSet: {
3509
+ kind: "SelectionSet",
3510
+ selections: [
3511
+ {
3512
+ kind: "Field",
3513
+ name: {
3514
+ kind: "Name",
3515
+ value: "endCursor"
3516
+ }
3517
+ },
3518
+ {
3519
+ kind: "Field",
3520
+ name: {
3521
+ kind: "Name",
3522
+ value: "hasNextPage"
3523
+ }
3524
+ },
3525
+ {
3526
+ kind: "Field",
3527
+ name: {
3528
+ kind: "Name",
3529
+ value: "hasPreviousPage"
3530
+ }
3531
+ },
3532
+ {
3533
+ kind: "Field",
3534
+ name: {
3535
+ kind: "Name",
3536
+ value: "startCursor"
3537
+ }
3538
+ }
3539
+ ]
3540
+ }
3541
+ },
3542
+ {
3543
+ kind: "Field",
3544
+ name: {
3545
+ kind: "Name",
3546
+ value: "edges"
3547
+ },
3548
+ selectionSet: {
3549
+ kind: "SelectionSet",
3550
+ selections: [
3551
+ {
3552
+ kind: "Field",
3553
+ name: {
3554
+ kind: "Name",
3555
+ value: "node"
3556
+ },
3557
+ selectionSet: {
3558
+ kind: "SelectionSet",
3559
+ selections: [
3560
+ {
3561
+ kind: "Field",
3562
+ name: {
3563
+ kind: "Name",
3564
+ value: "_id"
3565
+ }
3566
+ },
3567
+ {
3568
+ kind: "Field",
3569
+ name: {
3570
+ kind: "Name",
3571
+ value: "name"
3572
+ }
3573
+ }
3574
+ ]
3575
+ }
3576
+ }
3577
+ ]
3578
+ }
3579
+ }
3580
+ ]
3581
+ }
3582
+ }
3583
+ ]
3584
+ }
3585
+ }
3586
+ ]
3587
+ };
3297
3588
  const PagesDocument = {
3298
3589
  kind: "Document",
3299
3590
  definitions: [
@@ -4306,4 +4597,4 @@ const VariantsDocument = {
4306
4597
  }
4307
4598
  ]
4308
4599
  };
4309
- export { graphql_AccountEmailIntent as AccountEmailIntent, graphql_AccountEmailUpdateActionIntent as AccountEmailUpdateActionIntent, AddMediasDocument, graphql_graphql_AppSortKeys as AppSortKeys, graphql_ArticleCommentPermission as ArticleCommentPermission, graphql_ArticleSortKeys as ArticleSortKeys, graphql_ArticleStatus as ArticleStatus, ArticlesDocument, graphql_BlogSortKeys as BlogSortKeys, BlogsDocument, graphql_CartDiscountScope as CartDiscountScope, graphql_CartDiscountSource as CartDiscountSource, graphql_CartDiscountStatus as CartDiscountStatus, graphql_CartDiscountType as CartDiscountType, graphql_CartLineItemSource as CartLineItemSource, graphql_CartSortkeys as CartSortkeys, graphql_CartStatus as CartStatus, graphql_CheckoutAutoFulfillment as CheckoutAutoFulfillment, graphql_CheckoutContactMethod as CheckoutContactMethod, graphql_CheckoutExcludeRequiredOptional as CheckoutExcludeRequiredOptional, graphql_CheckoutNameRequirement as CheckoutNameRequirement, graphql_CollectionProductSortkey as CollectionProductSortkey, graphql_CollectionSortKey as CollectionSortKey, CollectionsDocument, graphql_CustomerAddressSortkeys as CustomerAddressSortkeys, graphql_CustomerSegmentCombine as CustomerSegmentCombine, graphql_CustomerSegmentConditionField as CustomerSegmentConditionField, graphql_CustomerSegmentConditionOperator as CustomerSegmentConditionOperator, graphql_CustomerSegmentSortkeys as CustomerSegmentSortkeys, graphql_CustomerSortkeys as CustomerSortkeys, graphql_DefaultThemeTemplateType as DefaultThemeTemplateType, DeleteMediasDocument, graphql_DeliveryProfileSortKeys as DeliveryProfileSortKeys, graphql_DeliveryZoneRateConditionType as DeliveryZoneRateConditionType, graphql_DeliveryZoneSortKeys as DeliveryZoneSortKeys, graphql_DiscountAooMinimumPurchaseType as DiscountAooMinimumPurchaseType, graphql_DiscountAooType as DiscountAooType, graphql_DiscountAopApplication as DiscountAopApplication, graphql_DiscountAopMinimunPurchaseType as DiscountAopMinimunPurchaseType, graphql_DiscountAopType as DiscountAopType, graphql_DiscountApplication as DiscountApplication, graphql_DiscountBxgyApplication as DiscountBxgyApplication, graphql_DiscountBxgyMinimunPurchaseType as DiscountBxgyMinimunPurchaseType, graphql_DiscountBxgyOfferApplication as DiscountBxgyOfferApplication, graphql_DiscountBxgyType as DiscountBxgyType, graphql_DiscountFsMinimunPurchaseType as DiscountFsMinimunPurchaseType, graphql_DiscountFsType as DiscountFsType, graphql_DiscountSortKeys as DiscountSortKeys, graphql_DiscountType as DiscountType, graphql_DomainRecordType as DomainRecordType, graphql_DomainSortkeys as DomainSortkeys, graphql_EditThemeTemplateType as EditThemeTemplateType, graphql_InventorySortKeys as InventorySortKeys, graphql_LinklistSortKeys as LinklistSortKeys, graphql_LinklistType as LinklistType, LinklistsDocument, graphql_LocationSortKeys as LocationSortKeys, graphql_LogActions as LogActions, graphql_LogResources as LogResources, graphql_LogSortKeys as LogSortKeys, graphql_LoginMethod as LoginMethod, graphql_MarketSortKeys as MarketSortKeys, graphql_MarketVariantSortKeys as MarketVariantSortKeys, graphql_MediaSortKeys as MediaSortKeys, graphql_MediaType as MediaType, MediaUsageDocument, MediasDocument, graphql_MetafieldEntryType as MetafieldEntryType, graphql_MetafieldScope as MetafieldScope, graphql_MetafieldSortKeys as MetafieldSortKeys, graphql_MetafieldType as MetafieldType, MetafieldsDocument, MetaobjectEntriesDocument, graphql_MetaobjectEntrySortKeys as MetaobjectEntrySortKeys, graphql_MetaobjectFieldType as MetaobjectFieldType, graphql_MetaobjectSortKeys as MetaobjectSortKeys, graphql_PageSortKeys as PageSortKeys, graphql_PageStatus as PageStatus, PagesDocument, graphql_PayStoreInvoiceStatus as PayStoreInvoiceStatus, graphql_PaymentChargeType as PaymentChargeType, graphql_PaymentSortKeys as PaymentSortKeys, graphql_PaymentType as PaymentType, graphql_PickupProfileReadyIn as PickupProfileReadyIn, graphql_PickupProfileSortKeys as PickupProfileSortKeys, graphql_PresetSortKeys as PresetSortKeys, graphql_PresetType as PresetType, graphql_ProductSortKeys as ProductSortKeys, graphql_ProductStatus as ProductStatus, ProductsDocument, graphql_PurchaseSortKeys as PurchaseSortKeys, graphql_PurchaseStatus as PurchaseStatus, graphql_RedirectSortKeys as RedirectSortKeys, graphql_ShippingProfileSortKeys as ShippingProfileSortKeys, graphql_ShippingZoneRateConditionType as ShippingZoneRateConditionType, graphql_ShippingZoneSortKeys as ShippingZoneSortKeys, graphql_StaffAppPermission as StaffAppPermission, graphql_StaffSortKeys as StaffSortKeys, StoragePlanDocument, graphql_StoreInvoiceBeneficiary as StoreInvoiceBeneficiary, graphql_StoreInvoicePaymentStatus as StoreInvoicePaymentStatus, graphql_StoreInvoiceRefundStatus as StoreInvoiceRefundStatus, graphql_StoreInvoiceSortKeys as StoreInvoiceSortKeys, graphql_StoreLengthUnit as StoreLengthUnit, graphql_StoreSortkeys as StoreSortkeys, graphql_StoreWeightUnit as StoreWeightUnit, graphql_SupplierSortKeys as SupplierSortKeys, graphql_TaxOverrideLevel as TaxOverrideLevel, graphql_TaxOverrideType as TaxOverrideType, graphql_TaxSortKeys as TaxSortKeys, graphql_graphql_ThemeSortKeys as ThemeSortKeys, graphql_TransferSortKeys as TransferSortKeys, graphql_TransferStatus as TransferStatus, graphql_UserDeviceSortKeys as UserDeviceSortKeys, graphql_UserPasskeySortKeys as UserPasskeySortKeys, graphql_UserSessionSortKeys as UserSessionSortKeys, graphql_VariantSortKeys as VariantSortKeys, graphql_VariantStatus as VariantStatus, VariantsDocument, graphql_WhoamiType as WhoamiType, graphql_AppSortKeys as _AppSortKeys, graphql_CategorySortKeys as _CategorySortKeys, graphql_ContinentSortKeys as _ContinentSortKeys, graphql_CountrySortKeys as _CountrySortKeys, graphql_CurrencySortKeys as _CurrencySortKeys, graphql_HscodeSortKeys as _HscodeSortKeys, graphql_LanguageSortKeys as _LanguageSortKeys, graphql_PackageSortKeys as _PackageSortKeys, graphql_PaymentGatewaySortKeys as _PaymentGatewaySortKeys, graphql_PaymentProviderSortKeys as _PaymentProviderSortKeys, graphql_PhoneSortKeys as _PhoneSortKeys, graphql_RegionSortKeys as _RegionSortKeys, graphql_SoppiyaPaymentSortKeys as _SoppiyaPaymentSortKeys, graphql_ThemeSortKeys as _ThemeSortKeys, graphql_ThemeVersionSortKeys as _ThemeVersionSortKeys, graphql_TimezoneSortKeys as _TimezoneSortKeys };
4600
+ export { graphql_AccountEmailIntent as AccountEmailIntent, graphql_AccountEmailUpdateActionIntent as AccountEmailUpdateActionIntent, AddMediasDocument, graphql_graphql_AppSortKeys as AppSortKeys, graphql_ArticleCommentPermission as ArticleCommentPermission, graphql_ArticleSortKeys as ArticleSortKeys, graphql_ArticleStatus as ArticleStatus, ArticlesDocument, graphql_BlogSortKeys as BlogSortKeys, BlogsDocument, graphql_CartDiscountScope as CartDiscountScope, graphql_CartDiscountSource as CartDiscountSource, graphql_CartDiscountStatus as CartDiscountStatus, graphql_CartDiscountType as CartDiscountType, graphql_CartLineItemSource as CartLineItemSource, graphql_CartSortkeys as CartSortkeys, graphql_CartStatus as CartStatus, graphql_CheckoutAutoFulfillment as CheckoutAutoFulfillment, graphql_CheckoutContactMethod as CheckoutContactMethod, graphql_CheckoutExcludeRequiredOptional as CheckoutExcludeRequiredOptional, graphql_CheckoutNameRequirement as CheckoutNameRequirement, graphql_CollectionProductSortkey as CollectionProductSortkey, graphql_CollectionSortKey as CollectionSortKey, CollectionsDocument, graphql_CustomerAddressSortkeys as CustomerAddressSortkeys, graphql_CustomerSegmentCombine as CustomerSegmentCombine, graphql_CustomerSegmentConditionField as CustomerSegmentConditionField, graphql_CustomerSegmentConditionOperator as CustomerSegmentConditionOperator, graphql_CustomerSegmentSortkeys as CustomerSegmentSortkeys, graphql_CustomerSortkeys as CustomerSortkeys, graphql_DefaultThemeTemplateType as DefaultThemeTemplateType, DeleteMediasDocument, graphql_DeliveryProfileSortKeys as DeliveryProfileSortKeys, graphql_DeliveryZoneRateConditionType as DeliveryZoneRateConditionType, graphql_DeliveryZoneSortKeys as DeliveryZoneSortKeys, graphql_DiscountAooMinimumPurchaseType as DiscountAooMinimumPurchaseType, graphql_DiscountAooType as DiscountAooType, graphql_DiscountAopApplication as DiscountAopApplication, graphql_DiscountAopMinimunPurchaseType as DiscountAopMinimunPurchaseType, graphql_DiscountAopType as DiscountAopType, graphql_DiscountApplication as DiscountApplication, graphql_DiscountBxgyApplication as DiscountBxgyApplication, graphql_DiscountBxgyMinimunPurchaseType as DiscountBxgyMinimunPurchaseType, graphql_DiscountBxgyOfferApplication as DiscountBxgyOfferApplication, graphql_DiscountBxgyType as DiscountBxgyType, graphql_DiscountFsMinimunPurchaseType as DiscountFsMinimunPurchaseType, graphql_DiscountFsType as DiscountFsType, graphql_DiscountSortKeys as DiscountSortKeys, graphql_DiscountType as DiscountType, graphql_DomainRecordType as DomainRecordType, graphql_DomainSortkeys as DomainSortkeys, graphql_EditThemeTemplateType as EditThemeTemplateType, graphql_InventorySortKeys as InventorySortKeys, graphql_LinklistSortKeys as LinklistSortKeys, graphql_LinklistType as LinklistType, LinklistsDocument, graphql_LocationSortKeys as LocationSortKeys, graphql_LogActions as LogActions, graphql_LogResources as LogResources, graphql_LogSortKeys as LogSortKeys, graphql_LoginMethod as LoginMethod, graphql_MarketSortKeys as MarketSortKeys, graphql_MarketVariantSortKeys as MarketVariantSortKeys, graphql_MediaSortKeys as MediaSortKeys, graphql_MediaType as MediaType, MediaUsageDocument, MediasDocument, graphql_MetafieldEntryType as MetafieldEntryType, graphql_MetafieldScope as MetafieldScope, graphql_MetafieldSortKeys as MetafieldSortKeys, graphql_MetafieldType as MetafieldType, MetafieldsDocument, MetaobjectEntriesDocument, graphql_MetaobjectEntrySortKeys as MetaobjectEntrySortKeys, graphql_MetaobjectFieldType as MetaobjectFieldType, graphql_MetaobjectSortKeys as MetaobjectSortKeys, MetaobjectsDocument, graphql_PageSortKeys as PageSortKeys, graphql_PageStatus as PageStatus, PagesDocument, graphql_PayStoreInvoiceStatus as PayStoreInvoiceStatus, graphql_PaymentChargeType as PaymentChargeType, graphql_PaymentSortKeys as PaymentSortKeys, graphql_PaymentType as PaymentType, graphql_PickupProfileReadyIn as PickupProfileReadyIn, graphql_PickupProfileSortKeys as PickupProfileSortKeys, graphql_PresetSortKeys as PresetSortKeys, graphql_PresetType as PresetType, graphql_ProductSortKeys as ProductSortKeys, graphql_ProductStatus as ProductStatus, ProductsDocument, graphql_PurchaseSortKeys as PurchaseSortKeys, graphql_PurchaseStatus as PurchaseStatus, graphql_RedirectSortKeys as RedirectSortKeys, graphql_ShippingProfileSortKeys as ShippingProfileSortKeys, graphql_ShippingZoneRateConditionType as ShippingZoneRateConditionType, graphql_ShippingZoneSortKeys as ShippingZoneSortKeys, graphql_StaffAppPermission as StaffAppPermission, graphql_StaffSortKeys as StaffSortKeys, StoragePlanDocument, graphql_StoreInvoiceBeneficiary as StoreInvoiceBeneficiary, graphql_StoreInvoicePaymentStatus as StoreInvoicePaymentStatus, graphql_StoreInvoiceRefundStatus as StoreInvoiceRefundStatus, graphql_StoreInvoiceSortKeys as StoreInvoiceSortKeys, graphql_StoreLengthUnit as StoreLengthUnit, graphql_StoreSortkeys as StoreSortkeys, graphql_StoreWeightUnit as StoreWeightUnit, graphql_SupplierSortKeys as SupplierSortKeys, graphql_TaxOverrideLevel as TaxOverrideLevel, graphql_TaxOverrideType as TaxOverrideType, graphql_TaxSortKeys as TaxSortKeys, graphql_graphql_ThemeSortKeys as ThemeSortKeys, graphql_TransferSortKeys as TransferSortKeys, graphql_TransferStatus as TransferStatus, graphql_UserDeviceSortKeys as UserDeviceSortKeys, graphql_UserPasskeySortKeys as UserPasskeySortKeys, graphql_UserSessionSortKeys as UserSessionSortKeys, graphql_VariantSortKeys as VariantSortKeys, graphql_VariantStatus as VariantStatus, VariantsDocument, graphql_WhoamiType as WhoamiType, graphql_AppSortKeys as _AppSortKeys, graphql_CategorySortKeys as _CategorySortKeys, graphql_ContinentSortKeys as _ContinentSortKeys, graphql_CountrySortKeys as _CountrySortKeys, graphql_CurrencySortKeys as _CurrencySortKeys, graphql_HscodeSortKeys as _HscodeSortKeys, graphql_LanguageSortKeys as _LanguageSortKeys, graphql_PackageSortKeys as _PackageSortKeys, graphql_PaymentGatewaySortKeys as _PaymentGatewaySortKeys, graphql_PaymentProviderSortKeys as _PaymentProviderSortKeys, graphql_PhoneSortKeys as _PhoneSortKeys, graphql_RegionSortKeys as _RegionSortKeys, graphql_SoppiyaPaymentSortKeys as _SoppiyaPaymentSortKeys, graphql_ThemeSortKeys as _ThemeSortKeys, graphql_ThemeVersionSortKeys as _ThemeVersionSortKeys, graphql_TimezoneSortKeys as _TimezoneSortKeys };
package/dist/styles.css CHANGED
@@ -38,6 +38,7 @@
38
38
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
39
39
  --color-gray-400: oklch(70.7% .022 261.325);
40
40
  --spacing: .25rem;
41
+ --radius-md: .375rem;
41
42
  --blur-xs: 4px;
42
43
  --default-transition-duration: .15s;
43
44
  --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
@@ -479,7 +480,7 @@
479
480
  width: 100%;
480
481
  }
481
482
 
482
- .\!max-w-\[150px\] {
483
+ .max-w-\[150px\]\! {
483
484
  max-width: 150px !important;
484
485
  }
485
486
 
@@ -517,8 +518,8 @@
517
518
  justify-content: center;
518
519
  }
519
520
 
520
- .gap-\[20px\] {
521
- gap: 20px;
521
+ .gap-5 {
522
+ gap: calc(var(--spacing) * 5);
522
523
  }
523
524
 
524
525
  .gap-x-\[12px\] {
@@ -547,14 +548,14 @@
547
548
  border-radius: 3px !important;
548
549
  }
549
550
 
550
- .\!rounded-\[6px\] {
551
- border-radius: 6px !important;
552
- }
553
-
554
551
  .rounded-\[5px\] {
555
552
  border-radius: 5px;
556
553
  }
557
554
 
555
+ .rounded-md\! {
556
+ border-radius: var(--radius-md) !important;
557
+ }
558
+
558
559
  .\!border-0 {
559
560
  border-style: var(--tw-border-style) !important;
560
561
  border-width: 0 !important;
@@ -635,6 +636,10 @@
635
636
  padding-inline: 8px !important;
636
637
  }
637
638
 
639
+ .px-2\! {
640
+ padding-inline: calc(var(--spacing) * 2) !important;
641
+ }
642
+
638
643
  .px-3 {
639
644
  padding-inline: calc(var(--spacing) * 3);
640
645
  }
@@ -739,10 +744,6 @@
739
744
  width: 273px !important;
740
745
  }
741
746
 
742
- .md\:\!w-\[calc\(100\%-300px\)\] {
743
- width: calc(100% - 300px) !important;
744
- }
745
-
746
747
  .md\:w-\[100px\] {
747
748
  width: 100px;
748
749
  }
@@ -771,6 +772,10 @@
771
772
  width: calc(100% - 256px) !important;
772
773
  }
773
774
 
775
+ .md\:w-\[calc\(100\%-300px\)\]\! {
776
+ width: calc(100% - 300px) !important;
777
+ }
778
+
774
779
  .md\:grid-cols-\[repeat\(auto-fill\,minmax\(117px\,1fr\)\)\] {
775
780
  grid-template-columns: repeat(auto-fill, minmax(117px, 1fr));
776
781
  }
@@ -814,10 +819,6 @@
814
819
  width: 336px !important;
815
820
  }
816
821
 
817
- .lg\:\!w-\[calc\(100\%-336px\)\] {
818
- width: calc(100% - 336px) !important;
819
- }
820
-
821
822
  .lg\:w-\[108px\] {
822
823
  width: 108px;
823
824
  }
@@ -842,6 +843,10 @@
842
843
  width: 780px;
843
844
  }
844
845
 
846
+ .lg\:w-\[calc\(100\%-336px\)\]\! {
847
+ width: calc(100% - 336px) !important;
848
+ }
849
+
845
850
  .lg\:w-\[calc\(100\%-352px\)\]\! {
846
851
  width: calc(100% - 352px) !important;
847
852
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soppiya/app-bridge",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
File without changes
File without changes
@@ -1,10 +0,0 @@
1
- type Props = {
2
- title?: string;
3
- initialIds?: string[];
4
- limit?: number;
5
- metaobjects?: string[];
6
- onClose?: () => void;
7
- onOk?: (linklist: string[]) => void;
8
- };
9
- declare const MetaobjectEntries: ({ title, initialIds, limit, metaobjects, onClose, onOk }: Props) => import("react/jsx-runtime").JSX.Element;
10
- export default MetaobjectEntries;
@@ -1,10 +0,0 @@
1
- import MetaobjectEntries from "./MetaobjectEntries.js";
2
- const meta = {
3
- title: "Example/MetaobjectEntries",
4
- component: MetaobjectEntries
5
- };
6
- const MetaobjectEntries_stories = meta;
7
- const Default = {
8
- args: {}
9
- };
10
- export { Default, MetaobjectEntries_stories as default };
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const MetafieldsPicker: () => import("react/jsx-runtime").JSX.Element;
2
- export default MetafieldsPicker;
@@ -1,7 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Modal } from "@soppiya/elementus";
3
- const MetafieldsPicker = ()=>/*#__PURE__*/ jsx(Modal, {
4
- open: true
5
- });
6
- const ui_MetafieldsPicker = MetafieldsPicker;
7
- export { ui_MetafieldsPicker as default };
@@ -1,6 +0,0 @@
1
- declare const meta: {
2
- title: string;
3
- component: () => import("react/jsx-runtime").JSX.Element;
4
- };
5
- export default meta;
6
- export declare const Default: () => void;
@@ -1,8 +0,0 @@
1
- import MetafieldsPicker from "./MetafieldsPicker.js";
2
- const meta = {
3
- title: "Example/MetafieldsPicker",
4
- component: MetafieldsPicker
5
- };
6
- const MetafieldsPicker_stories = meta;
7
- const Default = ()=>{};
8
- export { Default, MetafieldsPicker_stories as default };