
* Add component backbone * Make step component generic and typed * Add step tabs * Add settings view * Encapsulate all dialog components in one directory * Move types to separate file * Add mutations * Use gql types * Add error handling * Do not keep separate types file * Allow products to be exported * Fix types * Update snapshots * Update to latest schema * Add disabled option * Use wizard hook * Update type definitions * Queue export check task * Fix bug causing jobs to be endless and duplicated * Fix minor bugs * Add accordion component * Allow selection of fields to be exported * Add attribute export * Update snapshots * Update messages * Update changelog * Add missing key * Add quick peek to accordioin * Sort imports * Remove unused files * Add chiips to attribute selection * Change menu positioning * Add product counter * Add select all option * Update snapshots * Update messages * Remove unused import * Add chips * Add test tags * Update snapshots * Change number of max chips * Add accordion tags * Update messages
33 lines
737 B
TypeScript
33 lines
737 B
TypeScript
import { pageInfoFragment } from "@saleor/fragments/pageInfo";
|
|
import makeTopLevelSearch from "@saleor/hooks/makeTopLevelSearch";
|
|
import gql from "graphql-tag";
|
|
|
|
import {
|
|
SearchAttributes,
|
|
SearchAttributesVariables
|
|
} from "./types/SearchAttributes";
|
|
|
|
export const searchAttributes = gql`
|
|
${pageInfoFragment}
|
|
query SearchAttributes($after: String, $first: Int!, $query: String!) {
|
|
search: attributes(
|
|
after: $after
|
|
first: $first
|
|
filter: { search: $query }
|
|
) {
|
|
edges {
|
|
node {
|
|
id
|
|
name
|
|
}
|
|
}
|
|
pageInfo {
|
|
...PageInfoFragment
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default makeTopLevelSearch<SearchAttributes, SearchAttributesVariables>(
|
|
searchAttributes
|
|
);
|