@soppiya/app-bridge 1.1.4 → 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.
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/media/Media.js +6 -6
- package/dist/components/meta-data/ui/BooleanMetaField.js +9 -7
- package/dist/components/meta-data/ui/DateAndTimeMetaField.js +0 -1
- package/dist/components/meta-data/ui/MetaDataItem.js +2 -1
- package/dist/components/meta-data/ui/MetaDataTypePopup.js +1 -1
- package/dist/components/metaobjects-entries-picker/index.d.ts +1 -0
- package/dist/components/metaobjects-entries-picker/index.js +2 -0
- package/dist/components/metaobjects-entries-picker/ui/MetaobjectEntriesPicker.d.ts +10 -0
- package/dist/components/{metafield-entries/ui/MetaobjectEntries.js → metaobjects-entries-picker/ui/MetaobjectEntriesPicker.js} +3 -3
- package/dist/components/{metafield-entries/ui/MetaobjectEntries.stories.d.ts → metaobjects-entries-picker/ui/MetaobjectEntriesPicker.stories.d.ts} +1 -1
- package/dist/components/metaobjects-entries-picker/ui/MetaobjectEntriesPicker.stories.js +10 -0
- package/dist/components/metaobjects-picker/api/query.d.ts +8 -0
- package/dist/components/metaobjects-picker/api/query.js +18 -0
- package/dist/components/metaobjects-picker/index.d.ts +1 -0
- package/dist/components/metaobjects-picker/index.js +2 -0
- package/dist/components/metaobjects-picker/model/useMetaobjects.d.ts +24 -0
- package/dist/components/metaobjects-picker/model/useMetaobjects.js +45 -0
- package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.d.ts +9 -0
- package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.js +104 -0
- package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.stories.d.ts +14 -0
- package/dist/components/metaobjects-picker/ui/MetaobjectsPicker.stories.js +10 -0
- package/dist/shared/graphql/gql.d.ts +5 -0
- package/dist/shared/graphql/gql.js +2 -1
- package/dist/shared/graphql/graphql.d.ts +32 -8
- package/dist/shared/graphql/graphql.js +299 -8
- package/dist/styles.css +22 -17
- package/package.json +1 -1
- package/dist/components/metafield-entries/index.d.ts +0 -0
- package/dist/components/metafield-entries/index.js +0 -0
- package/dist/components/metafield-entries/ui/MetaobjectEntries.d.ts +0 -10
- package/dist/components/metafield-entries/ui/MetaobjectEntries.stories.js +0 -10
- /package/dist/components/{metafield-entries → metaobjects-entries-picker}/api/query.d.ts +0 -0
- /package/dist/components/{metafield-entries → metaobjects-entries-picker}/api/query.js +0 -0
- /package/dist/components/{metafield-entries → metaobjects-entries-picker}/model/useMetaobjectEntries.d.ts +0 -0
- /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";
|
package/dist/components/index.js
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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
|
|
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))]
|
|
320
|
-
"gap-
|
|
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,
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Radio } from "@soppiya/elementus";
|
|
3
|
-
const BooleanMetaField = ({ entry, value, children, onChange })=>/*#__PURE__*/ jsxs(
|
|
2
|
+
import { BlockStack, InlineStack, Radio } from "@soppiya/elementus";
|
|
3
|
+
const BooleanMetaField = ({ entry, value, children, onChange })=>/*#__PURE__*/ jsxs(InlineStack, {
|
|
4
|
+
justifyContent: "space-between",
|
|
4
5
|
children: [
|
|
5
|
-
/*#__PURE__*/ jsxs(
|
|
6
|
+
/*#__PURE__*/ jsxs(BlockStack, {
|
|
7
|
+
gapY: 60,
|
|
6
8
|
children: [
|
|
7
9
|
/*#__PURE__*/ jsx(Radio, {
|
|
8
10
|
label: "True",
|
|
9
11
|
name: "boolean",
|
|
10
12
|
checked: "true" === value,
|
|
11
|
-
|
|
12
|
-
onChange: (e)=>onChange(
|
|
13
|
+
labelPosition: "center",
|
|
14
|
+
onChange: (e)=>onChange("true")
|
|
13
15
|
}),
|
|
14
16
|
/*#__PURE__*/ jsx(Radio, {
|
|
15
17
|
label: "False",
|
|
16
18
|
name: "boolean",
|
|
17
19
|
checked: "false" === value,
|
|
18
|
-
|
|
19
|
-
onChange: (e)=>onChange(
|
|
20
|
+
labelPosition: "center",
|
|
21
|
+
onChange: (e)=>onChange("false")
|
|
20
22
|
})
|
|
21
23
|
]
|
|
22
24
|
}),
|
|
@@ -10,7 +10,6 @@ const DateAndTimeMetaField = ({ entry, value, children, onChange })=>{
|
|
|
10
10
|
const transformValue = ()=>{
|
|
11
11
|
if (!value) return "";
|
|
12
12
|
const date = moment(Number(value)).format("YYYY-MM-DDThh:mm");
|
|
13
|
-
console.log(date);
|
|
14
13
|
return date ? date : "";
|
|
15
14
|
};
|
|
16
15
|
return /*#__PURE__*/ jsxs(InlineStack, {
|
|
@@ -168,7 +168,7 @@ const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
|
|
|
168
168
|
}),
|
|
169
169
|
activeMetaField && /*#__PURE__*/ jsx(Card, {
|
|
170
170
|
radius: 6,
|
|
171
|
-
className: classnames('invisible absolute p-4! left-0 md:-left-5 top-0.5 md:w-[calc(100%+40px)]! z-20', {
|
|
171
|
+
className: classnames('invisible absolute p-4! left-0 md:-left-5! top-0.5 md:w-[calc(100%+40px)]! z-20', {
|
|
172
172
|
visible: activeMetaField
|
|
173
173
|
}),
|
|
174
174
|
ref: metaFieldRef,
|
|
@@ -196,6 +196,7 @@ const MetaDataItem_MetaDataItem = ({ metaField, value = [], onChange })=>{
|
|
|
196
196
|
""
|
|
197
197
|
] : value).map((v, key)=>/*#__PURE__*/ jsx(MetaFieldJSX, {
|
|
198
198
|
entry: metaField.entry,
|
|
199
|
+
value: v,
|
|
199
200
|
onChange: (v)=>handleChange(v, key),
|
|
200
201
|
children: /*#__PURE__*/ jsx(InlineStack, {
|
|
201
202
|
alignItems: "center",
|
|
@@ -38,7 +38,7 @@ const MetaFieldTypePopup = ({ isMultiple, name, type, children, onAdd, onClear }
|
|
|
38
38
|
md: children ? 70 : 0
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
className: "border-b border-b-[#ebebeb] md:border-b-transparent pb-4 md:pb-0
|
|
41
|
+
className: "border-b border-b-[#ebebeb] md:border-b-transparent pb-4 md:pb-0",
|
|
42
42
|
children: children
|
|
43
43
|
}),
|
|
44
44
|
isMultiple && /*#__PURE__*/ jsx(BlockStack, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MetaobjectEntriesPicker } from "./ui/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
|
|
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
|
|
108
|
-
export {
|
|
107
|
+
const ui_MetaobjectEntriesPicker = MetaobjectEntriesPicker;
|
|
108
|
+
export { ui_MetaobjectEntriesPicker as default };
|
|
@@ -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,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
|
|
@@ -75,6 +75,7 @@ export type AddArticle = {
|
|
|
75
75
|
meta_description?: InputMaybe<Scalars['String']['input']>;
|
|
76
76
|
meta_tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
77
77
|
meta_title?: InputMaybe<Scalars['String']['input']>;
|
|
78
|
+
metafields?: InputMaybe<Array<InputMaybe<MetafieldInput>>>;
|
|
78
79
|
status?: InputMaybe<ArticleStatus>;
|
|
79
80
|
template?: InputMaybe<Scalars['String']['input']>;
|
|
80
81
|
title: Scalars['String']['input'];
|
|
@@ -253,6 +254,7 @@ export type AddPage = {
|
|
|
253
254
|
meta_description?: InputMaybe<Scalars['String']['input']>;
|
|
254
255
|
meta_tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
255
256
|
meta_title?: InputMaybe<Scalars['String']['input']>;
|
|
257
|
+
metafields?: InputMaybe<Array<InputMaybe<MetafieldInput>>>;
|
|
256
258
|
status: PageStatus;
|
|
257
259
|
template?: InputMaybe<Scalars['String']['input']>;
|
|
258
260
|
title: Scalars['String']['input'];
|
|
@@ -2453,19 +2455,13 @@ export type MetaobjectFieldInput = {
|
|
|
2453
2455
|
type: MetaobjectFieldType;
|
|
2454
2456
|
};
|
|
2455
2457
|
export declare enum MetaobjectFieldType {
|
|
2456
|
-
article_ref = "article_ref",
|
|
2457
|
-
blog_ref = "blog_ref",
|
|
2458
2458
|
boolean = "boolean",
|
|
2459
|
-
collection_ref = "collection_ref",
|
|
2460
2459
|
color = "color",
|
|
2461
2460
|
date = "date",
|
|
2462
2461
|
date_time = "date_time",
|
|
2463
2462
|
multiline_text = "multiline_text",
|
|
2464
2463
|
number = "number",
|
|
2465
|
-
|
|
2466
|
-
product_ref = "product_ref",
|
|
2467
|
-
single_line_text = "single_line_text",
|
|
2468
|
-
variant_ref = "variant_ref"
|
|
2464
|
+
single_line_text = "single_line_text"
|
|
2469
2465
|
}
|
|
2470
2466
|
export type MetaobjectFilterKeys = {
|
|
2471
2467
|
cursors?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
@@ -3585,7 +3581,6 @@ export type PageInfo = {
|
|
|
3585
3581
|
};
|
|
3586
3582
|
export declare enum PageSortKeys {
|
|
3587
3583
|
_id = "_id",
|
|
3588
|
-
blog = "blog",
|
|
3589
3584
|
createdAt = "createdAt",
|
|
3590
3585
|
status = "status",
|
|
3591
3586
|
title = "title",
|
|
@@ -6764,6 +6759,34 @@ export type MetaobjectEntriesQuery = {
|
|
|
6764
6759
|
} | null> | null;
|
|
6765
6760
|
} | null;
|
|
6766
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
|
+
};
|
|
6767
6790
|
export type PagesQueryVariables = Exact<{
|
|
6768
6791
|
filterKeys?: InputMaybe<PageFilterKeys>;
|
|
6769
6792
|
after?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -6881,6 +6904,7 @@ export declare const AddMediasDocument: DocumentNode<AddMediasMutation, AddMedia
|
|
|
6881
6904
|
export declare const DeleteMediasDocument: DocumentNode<DeleteMediasMutation, DeleteMediasMutationVariables>;
|
|
6882
6905
|
export declare const MetafieldsDocument: DocumentNode<MetafieldsQuery, MetafieldsQueryVariables>;
|
|
6883
6906
|
export declare const MetaobjectEntriesDocument: DocumentNode<MetaobjectEntriesQuery, MetaobjectEntriesQueryVariables>;
|
|
6907
|
+
export declare const MetaobjectsDocument: DocumentNode<MetaobjectsQuery, MetaobjectsQueryVariables>;
|
|
6884
6908
|
export declare const PagesDocument: DocumentNode<PagesQuery, PagesQueryVariables>;
|
|
6885
6909
|
export declare const ProductsDocument: DocumentNode<ProductsQuery, ProductsQueryVariables>;
|
|
6886
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
|
-
|
|
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
|
|
521
|
-
gap:
|
|
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
|
}
|
|
@@ -715,8 +720,8 @@
|
|
|
715
720
|
top: calc(var(--spacing) * 0);
|
|
716
721
|
}
|
|
717
722
|
|
|
718
|
-
.md\:-left-5 {
|
|
719
|
-
left: calc(var(--spacing) * -5);
|
|
723
|
+
.md\:-left-5\! {
|
|
724
|
+
left: calc(var(--spacing) * -5) !important;
|
|
720
725
|
}
|
|
721
726
|
|
|
722
727
|
.md\:mt-0 {
|
|
@@ -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
|
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
|