@xyd-js/storybook 0.0.1-xyd.0

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 (141) hide show
  1. package/.storybook/main.ts +59 -0
  2. package/.storybook/preview.ts +30 -0
  3. package/.storybook/styles.css +5 -0
  4. package/CHANGELOG.md +12 -0
  5. package/README.md +50 -0
  6. package/eslint.config.js +28 -0
  7. package/package.json +50 -0
  8. package/src/content/Icons.tsx +83 -0
  9. package/src/content/code-sample.mdx +15 -0
  10. package/src/content/hello-world.mdx +116 -0
  11. package/src/docs/atlas/Atlas.stories.tsx +47 -0
  12. package/src/docs/atlas/todo-app.uniform.json +625 -0
  13. package/src/docs/atlas/uniform-to-references.ts +101 -0
  14. package/src/docs/components/brand/Button.stories.tsx +32 -0
  15. package/src/docs/components/brand/CTABanner.stories.tsx +36 -0
  16. package/src/docs/components/coder/CodeSample.stories.tsx +26 -0
  17. package/src/docs/components/writer/Badge.stories.tsx +32 -0
  18. package/src/docs/components/writer/Breadcrumbs.stories.tsx +34 -0
  19. package/src/docs/components/writer/Callout.stories.tsx +25 -0
  20. package/src/docs/components/writer/GuideCard.stories.tsx +151 -0
  21. package/src/docs/components/writer/Heading.stories.tsx +52 -0
  22. package/src/docs/components/writer/NavLinks.stories.tsx +31 -0
  23. package/src/docs/components/writer/Pre.stories.tsx +23 -0
  24. package/src/docs/components/writer/Steps.stories.tsx +27 -0
  25. package/src/docs/components/writer/Table.stories.tsx +54 -0
  26. package/src/docs/templates/CodeSample.stories.tsx +15 -0
  27. package/src/docs/themes/logo.tsx +37 -0
  28. package/src/docs/themes/themes-designsystem.stories.tsx +156 -0
  29. package/src/docs/themes/themes.stories.tsx +261 -0
  30. package/src/docs/ui/Nav.stories.tsx +58 -0
  31. package/src/docs/ui/Sidebar.stories.tsx +161 -0
  32. package/src/docs/ui/SubNav.stories.tsx +29 -0
  33. package/src/utils/mdx.ts +31 -0
  34. package/storybook-static/assets/Atlas.stories-CXIW65Hs.js +255 -0
  35. package/storybook-static/assets/Badge.stories-xjDbGZ5c.js +21 -0
  36. package/storybook-static/assets/Breadcrumbs.stories-DUn-OgPN.js +21 -0
  37. package/storybook-static/assets/Button.stories-BUAUswSC.js +21 -0
  38. package/storybook-static/assets/CTABanner-7_fa6QIU-6vh6ca3a.js +4 -0
  39. package/storybook-static/assets/CTABanner.stories-D5CtnW6h.js +22 -0
  40. package/storybook-static/assets/Callout.stories-DonqcNeI.js +16 -0
  41. package/storybook-static/assets/CodeSample.stories-4-beIs6I.js +22 -0
  42. package/storybook-static/assets/CodeSample.stories-B8_z15cp.js +8 -0
  43. package/storybook-static/assets/Color-F6OSRLHC-D5TfMBnc.js +1 -0
  44. package/storybook-static/assets/DocsRenderer-CFRXHY34-BrPAHo60.js +730 -0
  45. package/storybook-static/assets/GuideCard.stories-B8wFh9oh.js +65 -0
  46. package/storybook-static/assets/Heading.stories-D82-EGrg.js +40 -0
  47. package/storybook-static/assets/Nav.stories-CM_STIcN.js +13 -0
  48. package/storybook-static/assets/NavLinks.stories-D0QuD0H3.js +19 -0
  49. package/storybook-static/assets/Pre.stories-1WB_X0Ix.js +11 -0
  50. package/storybook-static/assets/Sidebar.stories-CwyChgiy.js +9 -0
  51. package/storybook-static/assets/Steps.stories-gANyLY_H.js +16 -0
  52. package/storybook-static/assets/SubNav.stories-D5TbjJj2.js +19 -0
  53. package/storybook-static/assets/Table.stories-BSZMHwDX.js +43 -0
  54. package/storybook-static/assets/UnderlineNav-C0OvjpyZ-D7c5zIhU.js +41 -0
  55. package/storybook-static/assets/_rollupPluginBabelHelpers-CAjWVhpp-BWJe-8U1.js +4 -0
  56. package/storybook-static/assets/browser.esm-BOPNWGdv.js +20 -0
  57. package/storybook-static/assets/chevron-right-Dfa2nijf.js +31 -0
  58. package/storybook-static/assets/chunk-K6AXKMTT-DXBwE8Vx.js +12 -0
  59. package/storybook-static/assets/chunk-XP5HYGXS-DH4vAeCa.js +1 -0
  60. package/storybook-static/assets/client-jctswkVR.js +25 -0
  61. package/storybook-static/assets/content-DfDGXctA.js +8 -0
  62. package/storybook-static/assets/entry-preview-Com-SXI0.js +10 -0
  63. package/storybook-static/assets/entry-preview-docs-Bs0lZRn3.js +47 -0
  64. package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +1 -0
  65. package/storybook-static/assets/iframe-B0k8DGQG.js +2 -0
  66. package/storybook-static/assets/index-B-gRCko5.js +1 -0
  67. package/storybook-static/assets/index-B0Jt8usF.js +9 -0
  68. package/storybook-static/assets/index-CBUcM4bS.js +8 -0
  69. package/storybook-static/assets/index-CC-8bvy6.js +9 -0
  70. package/storybook-static/assets/index-CQ7VjfMi.js +1 -0
  71. package/storybook-static/assets/index-Cu4lwwaE.js +1 -0
  72. package/storybook-static/assets/index-DIXNDbo9.js +1 -0
  73. package/storybook-static/assets/index-D_kIG38s.js +1 -0
  74. package/storybook-static/assets/index-DthG7GmK.js +17 -0
  75. package/storybook-static/assets/index-ogSvIofg.js +6 -0
  76. package/storybook-static/assets/jsx-runtime-C-_spy54.js +9 -0
  77. package/storybook-static/assets/layouts-CHVz-oC2.js +15 -0
  78. package/storybook-static/assets/preview--rrl-Bev.js +234 -0
  79. package/storybook-static/assets/preview-B3PTUHS7.js +1 -0
  80. package/storybook-static/assets/preview-CFgKly6U.js +1 -0
  81. package/storybook-static/assets/preview-CsjPNNCI.js +1 -0
  82. package/storybook-static/assets/preview-DFfOCnyz.css +1 -0
  83. package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
  84. package/storybook-static/assets/preview-DY_pW_WS.js +396 -0
  85. package/storybook-static/assets/preview-NdwLIjRI.js +2 -0
  86. package/storybook-static/assets/preview-RFMnorYX.js +1 -0
  87. package/storybook-static/assets/preview-Zk6Lo_wo.js +1 -0
  88. package/storybook-static/assets/preview-iUmqt_lp.js +34 -0
  89. package/storybook-static/assets/react-18-C4NQogKe.js +1 -0
  90. package/storybook-static/assets/themes-designsystem.stories-DyoY6VQ9.js +11 -0
  91. package/storybook-static/assets/themes.stories-BUr1Iju1.js +41 -0
  92. package/storybook-static/assets/writer-BQ7yPg-n.js +4 -0
  93. package/storybook-static/favicon.svg +1 -0
  94. package/storybook-static/iframe.html +639 -0
  95. package/storybook-static/index.html +186 -0
  96. package/storybook-static/index.json +1 -0
  97. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  98. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  99. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  100. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  101. package/storybook-static/project.json +1 -0
  102. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +331 -0
  103. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +51 -0
  104. package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +3 -0
  105. package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt +0 -0
  106. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
  107. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
  108. package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +391 -0
  109. package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt +0 -0
  110. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
  111. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
  112. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
  113. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
  114. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
  115. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
  116. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
  117. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
  118. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +210 -0
  119. package/storybook-static/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt +0 -0
  120. package/storybook-static/sb-addons/links-2/manager-bundle.js +3 -0
  121. package/storybook-static/sb-addons/links-2/manager-bundle.js.LEGAL.txt +0 -0
  122. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +127 -0
  123. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +12 -0
  124. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  125. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  126. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  127. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  128. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  129. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  130. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  131. package/storybook-static/sb-manager/globals-module-info.js +1028 -0
  132. package/storybook-static/sb-manager/globals-runtime.js +40861 -0
  133. package/storybook-static/sb-manager/globals.js +48 -0
  134. package/storybook-static/sb-manager/runtime.js +13338 -0
  135. package/storybook-static/sb-preview/globals.js +33 -0
  136. package/storybook-static/sb-preview/runtime.js +7174 -0
  137. package/tsconfig.app.json +24 -0
  138. package/tsconfig.json +17 -0
  139. package/tsconfig.node.json +13 -0
  140. package/tsconfig.tsbuildinfo +1 -0
  141. package/vite.config.ts +8 -0
@@ -0,0 +1,625 @@
1
+ [
2
+ {
3
+ "title": "users",
4
+ "canonical": "users",
5
+ "description": "Get a list of all users",
6
+ "category": "graphql",
7
+ "type": "graphql_query",
8
+ "examples": {
9
+ "groups": [
10
+ {
11
+ "description": "Example request",
12
+ "examples": [
13
+ {
14
+ "codeblock": {
15
+ "tabs": [
16
+ {
17
+ "title": "graphql",
18
+ "language": "graphql",
19
+ "code": "query users {\n users {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
20
+ }
21
+ ]
22
+ }
23
+ }
24
+ ]
25
+ }
26
+ ]
27
+ },
28
+ "definitions": [
29
+ {
30
+ "title": "Arguments",
31
+ "properties": []
32
+ },
33
+ {
34
+ "title": "Returns",
35
+ "properties": [
36
+ {
37
+ "name": "id",
38
+ "type": "ID!",
39
+ "description": "The unique **ID** of the user [here](#/example)",
40
+ "properties": []
41
+ },
42
+ {
43
+ "name": "name",
44
+ "type": "String!",
45
+ "description": "The name of the user",
46
+ "properties": []
47
+ },
48
+ {
49
+ "name": "email",
50
+ "type": "String!",
51
+ "description": "The email of the user",
52
+ "properties": []
53
+ },
54
+ {
55
+ "name": "todos",
56
+ "type": "[Todo!]!",
57
+ "description": "The list of todos created by the user",
58
+ "properties": [
59
+ {
60
+ "name": "id",
61
+ "type": "ID!",
62
+ "description": "The unique ID of the todo",
63
+ "properties": []
64
+ },
65
+ {
66
+ "name": "title",
67
+ "type": "String!",
68
+ "description": "The title of the todo",
69
+ "properties": []
70
+ },
71
+ {
72
+ "name": "description",
73
+ "type": "String",
74
+ "description": "The description of the todo"
75
+ },
76
+ {
77
+ "name": "completed",
78
+ "type": "Boolean!",
79
+ "description": "The status of the todo (completed or not)",
80
+ "properties": []
81
+ },
82
+ {
83
+ "name": "dueDate",
84
+ "type": "Date",
85
+ "description": "The due date of the todo"
86
+ }
87
+ ]
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "title": "user",
95
+ "canonical": "user",
96
+ "description": "Get a user by ID",
97
+ "category": "graphql",
98
+ "type": "graphql_query",
99
+ "examples": {
100
+ "groups": [
101
+ {
102
+ "description": "Example request",
103
+ "examples": [
104
+ {
105
+ "codeblock": {
106
+ "tabs": [
107
+ {
108
+ "title": "graphql",
109
+ "language": "graphql",
110
+ "code": "query user {\n user {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ },
119
+ "definitions": [
120
+ {
121
+ "title": "Arguments",
122
+ "properties": [
123
+ {
124
+ "name": "id",
125
+ "type": "ID!",
126
+ "description": "",
127
+ "properties": []
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "title": "Returns",
133
+ "properties": [
134
+ {
135
+ "name": "id",
136
+ "type": "ID!",
137
+ "description": "The unique ID of the user",
138
+ "properties": []
139
+ },
140
+ {
141
+ "name": "name",
142
+ "type": "String!",
143
+ "description": "The name of the user",
144
+ "properties": []
145
+ },
146
+ {
147
+ "name": "email",
148
+ "type": "String!",
149
+ "description": "The email of the user",
150
+ "properties": []
151
+ },
152
+ {
153
+ "name": "todos",
154
+ "type": "[Todo!]!",
155
+ "description": "The list of todos created by the user",
156
+ "properties": [
157
+ {
158
+ "name": "id",
159
+ "type": "ID!",
160
+ "description": "The unique ID of the todo",
161
+ "properties": []
162
+ },
163
+ {
164
+ "name": "title",
165
+ "type": "String!",
166
+ "description": "The title of the todo",
167
+ "properties": []
168
+ },
169
+ {
170
+ "name": "description",
171
+ "type": "String",
172
+ "description": "The description of the todo"
173
+ },
174
+ {
175
+ "name": "completed",
176
+ "type": "Boolean!",
177
+ "description": "The status of the todo (completed or not)",
178
+ "properties": []
179
+ },
180
+ {
181
+ "name": "dueDate",
182
+ "type": "Date",
183
+ "description": "The due date of the todo"
184
+ }
185
+ ]
186
+ }
187
+ ]
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "title": "todos",
193
+ "canonical": "todos",
194
+ "description": "Get a list of all todos",
195
+ "category": "graphql",
196
+ "type": "graphql_query",
197
+ "examples": {
198
+ "groups": [
199
+ {
200
+ "description": "Example request",
201
+ "examples": [
202
+ {
203
+ "codeblock": {
204
+ "tabs": [
205
+ {
206
+ "title": "graphql",
207
+ "language": "graphql",
208
+ "code": "query todos {\n todos {\n id\n title\n description\n completed\n dueDate\n }\n}"
209
+ }
210
+ ]
211
+ }
212
+ }
213
+ ]
214
+ }
215
+ ]
216
+ },
217
+ "definitions": [
218
+ {
219
+ "title": "Arguments",
220
+ "properties": []
221
+ },
222
+ {
223
+ "title": "Returns",
224
+ "properties": [
225
+ {
226
+ "name": "id",
227
+ "type": "ID!",
228
+ "description": "The unique ID of the todo",
229
+ "properties": []
230
+ },
231
+ {
232
+ "name": "title",
233
+ "type": "String!",
234
+ "description": "The title of the todo",
235
+ "properties": []
236
+ },
237
+ {
238
+ "name": "description",
239
+ "type": "String",
240
+ "description": "The description of the todo"
241
+ },
242
+ {
243
+ "name": "completed",
244
+ "type": "Boolean!",
245
+ "description": "The status of the todo (completed or not)",
246
+ "properties": []
247
+ },
248
+ {
249
+ "name": "dueDate",
250
+ "type": "Date",
251
+ "description": "The due date of the todo"
252
+ }
253
+ ]
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "title": "todo",
259
+ "canonical": "todo",
260
+ "description": "Get a todo by ID",
261
+ "category": "graphql",
262
+ "type": "graphql_query",
263
+ "examples": {
264
+ "groups": [
265
+ {
266
+ "description": "Example request",
267
+ "examples": [
268
+ {
269
+ "codeblock": {
270
+ "tabs": [
271
+ {
272
+ "title": "graphql",
273
+ "language": "graphql",
274
+ "code": "query todo {\n todo {\n id\n title\n description\n completed\n dueDate\n }\n}"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ ]
280
+ }
281
+ ]
282
+ },
283
+ "definitions": [
284
+ {
285
+ "title": "Arguments",
286
+ "properties": [
287
+ {
288
+ "name": "id",
289
+ "type": "ID!",
290
+ "description": "",
291
+ "properties": []
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "title": "Returns",
297
+ "properties": [
298
+ {
299
+ "name": "id",
300
+ "type": "ID!",
301
+ "description": "The unique ID of the todo",
302
+ "properties": []
303
+ },
304
+ {
305
+ "name": "title",
306
+ "type": "String!",
307
+ "description": "The title of the todo",
308
+ "properties": []
309
+ },
310
+ {
311
+ "name": "description",
312
+ "type": "String",
313
+ "description": "The description of the todo"
314
+ },
315
+ {
316
+ "name": "completed",
317
+ "type": "Boolean!",
318
+ "description": "The status of the todo (completed or not)",
319
+ "properties": []
320
+ },
321
+ {
322
+ "name": "dueDate",
323
+ "type": "Date",
324
+ "description": "The due date of the todo"
325
+ }
326
+ ]
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "title": "createUser",
332
+ "canonical": "createUser",
333
+ "description": "Create a new user",
334
+ "category": "graphql",
335
+ "type": "graphql_mutation",
336
+ "examples": {
337
+ "groups": [
338
+ {
339
+ "description": "Example request",
340
+ "examples": [
341
+ {
342
+ "codeblock": {
343
+ "tabs": [
344
+ {
345
+ "title": "graphql",
346
+ "language": "graphql",
347
+ "code": "mutation createUser ($name: String!, $email: String!) {\n createUser (name: $name, email: $email) {\n id\n name\n email\n todos {\n id\n title\n description\n completed\n dueDate\n }\n }\n}"
348
+ }
349
+ ]
350
+ }
351
+ }
352
+ ]
353
+ }
354
+ ]
355
+ },
356
+ "definitions": [
357
+ {
358
+ "title": "Arguments",
359
+ "properties": [
360
+ {
361
+ "name": "name",
362
+ "type": "String!",
363
+ "description": "",
364
+ "properties": []
365
+ },
366
+ {
367
+ "name": "email",
368
+ "type": "String!",
369
+ "description": "",
370
+ "properties": []
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "title": "Returns",
376
+ "properties": [
377
+ {
378
+ "name": "id",
379
+ "type": "ID!",
380
+ "description": "The unique ID of the user",
381
+ "properties": []
382
+ },
383
+ {
384
+ "name": "name",
385
+ "type": "String!",
386
+ "description": "The name of the user",
387
+ "properties": []
388
+ },
389
+ {
390
+ "name": "email",
391
+ "type": "String!",
392
+ "description": "The email of the user",
393
+ "properties": []
394
+ },
395
+ {
396
+ "name": "todos",
397
+ "type": "[Todo!]!",
398
+ "description": "The list of todos created by the user",
399
+ "properties": [
400
+ {
401
+ "name": "id",
402
+ "type": "ID!",
403
+ "description": "The unique ID of the todo",
404
+ "properties": []
405
+ },
406
+ {
407
+ "name": "title",
408
+ "type": "String!",
409
+ "description": "The title of the todo",
410
+ "properties": []
411
+ },
412
+ {
413
+ "name": "description",
414
+ "type": "String",
415
+ "description": "The description of the todo"
416
+ },
417
+ {
418
+ "name": "completed",
419
+ "type": "Boolean!",
420
+ "description": "The status of the todo (completed or not)",
421
+ "properties": []
422
+ },
423
+ {
424
+ "name": "dueDate",
425
+ "type": "Date",
426
+ "description": "The due date of the todo"
427
+ }
428
+ ]
429
+ }
430
+ ]
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "title": "createTodo",
436
+ "canonical": "createTodo",
437
+ "description": "Create a new todo",
438
+ "category": "graphql",
439
+ "type": "graphql_mutation",
440
+ "examples": {
441
+ "groups": [
442
+ {
443
+ "description": "Example request",
444
+ "examples": [
445
+ {
446
+ "codeblock": {
447
+ "tabs": [
448
+ {
449
+ "title": "graphql",
450
+ "language": "graphql",
451
+ "code": "mutation createTodo ($input: CreateTodoInput!) {\n createTodo (input: $input) {\n id\n title\n description\n completed\n dueDate\n }\n}"
452
+ }
453
+ ]
454
+ }
455
+ }
456
+ ]
457
+ }
458
+ ]
459
+ },
460
+ "definitions": [
461
+ {
462
+ "title": "Arguments",
463
+ "properties": [
464
+ {
465
+ "name": "input",
466
+ "type": "CreateTodoInput!",
467
+ "description": "",
468
+ "properties": []
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "title": "Returns",
474
+ "properties": [
475
+ {
476
+ "name": "id",
477
+ "type": "ID!",
478
+ "description": "The unique ID of the todo",
479
+ "properties": []
480
+ },
481
+ {
482
+ "name": "title",
483
+ "type": "String!",
484
+ "description": "The title of the todo",
485
+ "properties": []
486
+ },
487
+ {
488
+ "name": "description",
489
+ "type": "String",
490
+ "description": "The description of the todo"
491
+ },
492
+ {
493
+ "name": "completed",
494
+ "type": "Boolean!",
495
+ "description": "The status of the todo (completed or not)",
496
+ "properties": []
497
+ },
498
+ {
499
+ "name": "dueDate",
500
+ "type": "Date",
501
+ "description": "The due date of the todo"
502
+ }
503
+ ]
504
+ }
505
+ ]
506
+ },
507
+ {
508
+ "title": "updateTodo",
509
+ "canonical": "updateTodo",
510
+ "description": "Update an existing todo",
511
+ "category": "graphql",
512
+ "type": "graphql_mutation",
513
+ "examples": {
514
+ "groups": [
515
+ {
516
+ "description": "Example request",
517
+ "examples": [
518
+ {
519
+ "codeblock": {
520
+ "tabs": [
521
+ {
522
+ "title": "graphql",
523
+ "language": "graphql",
524
+ "code": "mutation updateTodo ($input: UpdateTodoInput!) {\n updateTodo (input: $input) {\n id\n title\n description\n completed\n dueDate\n }\n}"
525
+ }
526
+ ]
527
+ }
528
+ }
529
+ ]
530
+ }
531
+ ]
532
+ },
533
+ "definitions": [
534
+ {
535
+ "title": "Arguments",
536
+ "properties": [
537
+ {
538
+ "name": "input",
539
+ "type": "UpdateTodoInput!",
540
+ "description": "",
541
+ "properties": []
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "title": "Returns",
547
+ "properties": [
548
+ {
549
+ "name": "id",
550
+ "type": "ID!",
551
+ "description": "The unique ID of the todo",
552
+ "properties": []
553
+ },
554
+ {
555
+ "name": "title",
556
+ "type": "String!",
557
+ "description": "The title of the todo",
558
+ "properties": []
559
+ },
560
+ {
561
+ "name": "description",
562
+ "type": "String",
563
+ "description": "The description of the todo"
564
+ },
565
+ {
566
+ "name": "completed",
567
+ "type": "Boolean!",
568
+ "description": "The status of the todo (completed or not)",
569
+ "properties": []
570
+ },
571
+ {
572
+ "name": "dueDate",
573
+ "type": "Date",
574
+ "description": "The due date of the todo"
575
+ }
576
+ ]
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "title": "deleteTodo",
582
+ "canonical": "deleteTodo",
583
+ "description": "Delete a todo by ID",
584
+ "category": "graphql",
585
+ "type": "graphql_mutation",
586
+ "examples": {
587
+ "groups": [
588
+ {
589
+ "description": "Example request",
590
+ "examples": [
591
+ {
592
+ "codeblock": {
593
+ "tabs": [
594
+ {
595
+ "title": "graphql",
596
+ "language": "graphql",
597
+ "code": "mutation deleteTodo ($id: ID!) {\n deleteTodo (id: $id)\n}"
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ ]
603
+ }
604
+ ]
605
+ },
606
+ "definitions": [
607
+ {
608
+ "title": "Arguments",
609
+ "properties": [
610
+ {
611
+ "name": "id",
612
+ "type": "ID!",
613
+ "description": "",
614
+ "properties": []
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "title": "Returns",
620
+ "properties": []
621
+ }
622
+ ]
623
+ }
624
+ ]
625
+