UNPKG

974 BJavaScriptView Raw
1import { COMPONENT_TYPES, FORM_TYPES } from "../core/component-types";
2export const SEED_DATA = {
3 name: "Query",
4 tag: "Query",
5 description: "GraphQL-connected Query component",
6 category: COMPONENT_TYPES.data,
7 supports_list_render: false,
8 layout: {},
9 props: {
10 query: {
11 label: "Query",
12 editable: true,
13 required: true,
14 type: FORM_TYPES.query,
15 description: "A GraphQL-enabled query that lets you fetch data from your database",
16 value: ""
17 },
18 loading: {
19 label: "Loading Component",
20 editable: true,
21 required: false,
22 type: FORM_TYPES.component,
23 description: "Loading component to render until data shows up",
24 value: null
25 },
26 error: {
27 label: "Error Component",
28 editable: true,
29 required: false,
30 type: FORM_TYPES.component,
31 description: "Error component to render until data shows up",
32 value: null
33 }
34 }
35};
36//# sourceMappingURL=Query.js.map
\No newline at end of file