@dropins/mcp 0.1.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 (103) hide show
  1. package/LICENSE.md +127 -0
  2. package/README.md +314 -0
  3. package/dist/common/project-reader.d.ts +55 -0
  4. package/dist/common/project-reader.js +173 -0
  5. package/dist/common/registry-loader.d.ts +101 -0
  6. package/dist/common/registry-loader.js +386 -0
  7. package/dist/common/response-handling.d.ts +12 -0
  8. package/dist/common/response-handling.js +21 -0
  9. package/dist/common/sanitize.d.ts +8 -0
  10. package/dist/common/sanitize.js +45 -0
  11. package/dist/common/synonyms.d.ts +9 -0
  12. package/dist/common/synonyms.js +127 -0
  13. package/dist/common/telemetry.d.ts +14 -0
  14. package/dist/common/telemetry.js +54 -0
  15. package/dist/common/types.d.ts +308 -0
  16. package/dist/common/types.js +1 -0
  17. package/dist/common/version.d.ts +2 -0
  18. package/dist/common/version.js +14 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +136 -0
  21. package/dist/operations/analyze-project.d.ts +13 -0
  22. package/dist/operations/analyze-project.js +125 -0
  23. package/dist/operations/check-block-health.d.ts +19 -0
  24. package/dist/operations/check-block-health.js +1149 -0
  25. package/dist/operations/check-config.d.ts +13 -0
  26. package/dist/operations/check-config.js +228 -0
  27. package/dist/operations/explain-event-flow.d.ts +16 -0
  28. package/dist/operations/explain-event-flow.js +218 -0
  29. package/dist/operations/get-upgrade-diff.d.ts +13 -0
  30. package/dist/operations/get-upgrade-diff.js +144 -0
  31. package/dist/operations/list-api-functions.d.ts +13 -0
  32. package/dist/operations/list-api-functions.js +53 -0
  33. package/dist/operations/list-containers.d.ts +13 -0
  34. package/dist/operations/list-containers.js +44 -0
  35. package/dist/operations/list-design-tokens.d.ts +13 -0
  36. package/dist/operations/list-design-tokens.js +47 -0
  37. package/dist/operations/list-events.d.ts +16 -0
  38. package/dist/operations/list-events.js +39 -0
  39. package/dist/operations/list-graphql-queries.d.ts +19 -0
  40. package/dist/operations/list-graphql-queries.js +84 -0
  41. package/dist/operations/list-i18n-keys.d.ts +19 -0
  42. package/dist/operations/list-i18n-keys.js +105 -0
  43. package/dist/operations/list-models.d.ts +16 -0
  44. package/dist/operations/list-models.js +80 -0
  45. package/dist/operations/list-slots.d.ts +16 -0
  46. package/dist/operations/list-slots.js +81 -0
  47. package/dist/operations/scaffold-block.d.ts +31 -0
  48. package/dist/operations/scaffold-block.js +331 -0
  49. package/dist/operations/scaffold-extension.d.ts +28 -0
  50. package/dist/operations/scaffold-extension.js +346 -0
  51. package/dist/operations/scaffold-slot.d.ts +22 -0
  52. package/dist/operations/scaffold-slot.js +189 -0
  53. package/dist/operations/search-commerce-docs.d.ts +16 -0
  54. package/dist/operations/search-commerce-docs.js +101 -0
  55. package/dist/operations/search-docs.d.ts +23 -0
  56. package/dist/operations/search-docs.js +298 -0
  57. package/dist/operations/suggest-event-handler.d.ts +16 -0
  58. package/dist/operations/suggest-event-handler.js +175 -0
  59. package/dist/operations/suggest-slot-implementation.d.ts +19 -0
  60. package/dist/operations/suggest-slot-implementation.js +183 -0
  61. package/dist/registry/api-functions.json +3045 -0
  62. package/dist/registry/block-patterns.json +78 -0
  63. package/dist/registry/containers.json +2003 -0
  64. package/dist/registry/design-tokens.json +577 -0
  65. package/dist/registry/docs/boilerplate.json +55 -0
  66. package/dist/registry/docs/dropins-all.json +97 -0
  67. package/dist/registry/docs/dropins-b2b.json +607 -0
  68. package/dist/registry/docs/dropins-cart.json +163 -0
  69. package/dist/registry/docs/dropins-checkout.json +193 -0
  70. package/dist/registry/docs/dropins-order.json +139 -0
  71. package/dist/registry/docs/dropins-payment-services.json +73 -0
  72. package/dist/registry/docs/dropins-personalization.json +67 -0
  73. package/dist/registry/docs/dropins-product-details.json +139 -0
  74. package/dist/registry/docs/dropins-product-discovery.json +85 -0
  75. package/dist/registry/docs/dropins-recommendations.json +67 -0
  76. package/dist/registry/docs/dropins-user-account.json +121 -0
  77. package/dist/registry/docs/dropins-user-auth.json +103 -0
  78. package/dist/registry/docs/dropins-wishlist.json +85 -0
  79. package/dist/registry/docs/get-started.json +85 -0
  80. package/dist/registry/docs/how-tos.json +19 -0
  81. package/dist/registry/docs/index.json +139 -0
  82. package/dist/registry/docs/licensing.json +19 -0
  83. package/dist/registry/docs/merchants.json +523 -0
  84. package/dist/registry/docs/resources.json +13 -0
  85. package/dist/registry/docs/sdk.json +139 -0
  86. package/dist/registry/docs/setup.json +145 -0
  87. package/dist/registry/docs/troubleshooting.json +19 -0
  88. package/dist/registry/events.json +2200 -0
  89. package/dist/registry/examples/index.json +19 -0
  90. package/dist/registry/examples/storefront-checkout.json +377 -0
  91. package/dist/registry/examples/storefront-quote-management.json +49 -0
  92. package/dist/registry/extensions.json +272 -0
  93. package/dist/registry/graphql.json +3469 -0
  94. package/dist/registry/i18n.json +1873 -0
  95. package/dist/registry/models.json +1001 -0
  96. package/dist/registry/sdk.json +2357 -0
  97. package/dist/registry/slots.json +2270 -0
  98. package/dist/registry/tools-components.json +595 -0
  99. package/dist/resources/guides.d.ts +7 -0
  100. package/dist/resources/guides.js +625 -0
  101. package/dist/resources/handlers.d.ts +31 -0
  102. package/dist/resources/handlers.js +322 -0
  103. package/package.json +47 -0
@@ -0,0 +1,595 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "description": "Auto-generated registry of @dropins/tools/components.js UI primitives and their props",
4
+ "importPath": "@dropins/tools/components.js",
5
+ "components": [
6
+ {
7
+ "name": "Accordion",
8
+ "importPath": "@dropins/tools/components.js",
9
+ "props": [
10
+ "actionIconPosition",
11
+ "children",
12
+ "iconClose",
13
+ "iconLeft",
14
+ "iconOpen",
15
+ "secondaryText",
16
+ "showIconLeft"
17
+ ],
18
+ "extendsHTMLAttributes": true
19
+ },
20
+ {
21
+ "name": "ActionButton",
22
+ "importPath": "@dropins/tools/components.js",
23
+ "props": [
24
+ "active",
25
+ "children",
26
+ "disabled",
27
+ "icon"
28
+ ],
29
+ "extendsHTMLAttributes": true
30
+ },
31
+ {
32
+ "name": "ActionButtonGroup",
33
+ "importPath": "@dropins/tools/components.js",
34
+ "props": [
35
+ "activeOption",
36
+ "children",
37
+ "disabled",
38
+ "dividers",
39
+ "variant"
40
+ ],
41
+ "extendsHTMLAttributes": true
42
+ },
43
+ {
44
+ "name": "AlertBanner",
45
+ "importPath": "@dropins/tools/components.js",
46
+ "props": [
47
+ "action",
48
+ "icon",
49
+ "message",
50
+ "onDismiss",
51
+ "variant"
52
+ ],
53
+ "extendsHTMLAttributes": true
54
+ },
55
+ {
56
+ "name": "Breadcrumbs",
57
+ "importPath": "@dropins/tools/components.js",
58
+ "props": [
59
+ "categories",
60
+ "separator"
61
+ ],
62
+ "extendsHTMLAttributes": true
63
+ },
64
+ {
65
+ "name": "Button",
66
+ "importPath": "@dropins/tools/components.js",
67
+ "props": [
68
+ "active",
69
+ "activeChildren",
70
+ "activeIcon",
71
+ "children",
72
+ "disabled",
73
+ "href",
74
+ "icon",
75
+ "size",
76
+ "type",
77
+ "variant"
78
+ ],
79
+ "extendsHTMLAttributes": true
80
+ },
81
+ {
82
+ "name": "Card",
83
+ "importPath": "@dropins/tools/components.js",
84
+ "props": [
85
+ "children",
86
+ "variant"
87
+ ],
88
+ "extendsHTMLAttributes": true
89
+ },
90
+ {
91
+ "name": "CartItem",
92
+ "importPath": "@dropins/tools/components.js",
93
+ "props": [
94
+ "actions",
95
+ "alert",
96
+ "ariaLabel",
97
+ "attributes",
98
+ "configurations",
99
+ "description",
100
+ "discount",
101
+ "dropdownOptions",
102
+ "footer",
103
+ "image",
104
+ "loading",
105
+ "onQuantity",
106
+ "onRemove",
107
+ "price",
108
+ "quantity",
109
+ "quantityContent",
110
+ "quantityType",
111
+ "removeContent",
112
+ "rowTotalFooter",
113
+ "savings",
114
+ "sku",
115
+ "taxExcluded",
116
+ "taxIncluded",
117
+ "title",
118
+ "total",
119
+ "totalExcludingTax",
120
+ "updating",
121
+ "warning"
122
+ ],
123
+ "extendsHTMLAttributes": true
124
+ },
125
+ {
126
+ "name": "CartList",
127
+ "importPath": "@dropins/tools/components.js",
128
+ "props": [],
129
+ "extendsHTMLAttributes": true
130
+ },
131
+ {
132
+ "name": "Checkbox",
133
+ "importPath": "@dropins/tools/components.js",
134
+ "props": [
135
+ "description",
136
+ "disabled",
137
+ "error",
138
+ "label",
139
+ "name",
140
+ "size"
141
+ ],
142
+ "extendsHTMLAttributes": true
143
+ },
144
+ {
145
+ "name": "ColorSwatch",
146
+ "importPath": "@dropins/tools/components.js",
147
+ "props": [
148
+ "color",
149
+ "disabled",
150
+ "groupAriaLabel",
151
+ "id",
152
+ "label",
153
+ "multi",
154
+ "name",
155
+ "onUpdateError",
156
+ "onValue",
157
+ "outOfStock",
158
+ "selected",
159
+ "size",
160
+ "value"
161
+ ],
162
+ "extendsHTMLAttributes": true
163
+ },
164
+ {
165
+ "name": "ContentGrid",
166
+ "importPath": "@dropins/tools/components.js",
167
+ "props": [
168
+ "columnWidth",
169
+ "emptyGridContent",
170
+ "maxColumns"
171
+ ],
172
+ "extendsHTMLAttributes": true
173
+ },
174
+ {
175
+ "name": "Divider",
176
+ "importPath": "@dropins/tools/components.js",
177
+ "props": [
178
+ "variant"
179
+ ],
180
+ "extendsHTMLAttributes": true
181
+ },
182
+ {
183
+ "name": "Field",
184
+ "importPath": "@dropins/tools/components.js",
185
+ "props": [
186
+ "children",
187
+ "disabled",
188
+ "error",
189
+ "hint",
190
+ "label",
191
+ "size",
192
+ "success"
193
+ ],
194
+ "extendsHTMLAttributes": true
195
+ },
196
+ {
197
+ "name": "Header",
198
+ "importPath": "@dropins/tools/components.js",
199
+ "props": [
200
+ "cta",
201
+ "divider",
202
+ "level",
203
+ "size",
204
+ "title"
205
+ ],
206
+ "extendsHTMLAttributes": true
207
+ },
208
+ {
209
+ "name": "Icon",
210
+ "importPath": "@dropins/tools/components.js",
211
+ "props": [
212
+ "className",
213
+ "size",
214
+ "source",
215
+ "stroke",
216
+ "title"
217
+ ],
218
+ "extendsHTMLAttributes": false
219
+ },
220
+ {
221
+ "name": "IllustratedMessage",
222
+ "importPath": "@dropins/tools/components.js",
223
+ "props": [
224
+ "action",
225
+ "heading",
226
+ "headingLevel",
227
+ "icon",
228
+ "message",
229
+ "variant"
230
+ ],
231
+ "extendsHTMLAttributes": true
232
+ },
233
+ {
234
+ "name": "Image",
235
+ "importPath": "@dropins/tools/components.js",
236
+ "props": [
237
+ "onLoad",
238
+ "params",
239
+ "sizes",
240
+ "src"
241
+ ],
242
+ "extendsHTMLAttributes": true
243
+ },
244
+ {
245
+ "name": "ImageSwatch",
246
+ "importPath": "@dropins/tools/components.js",
247
+ "props": [
248
+ "alt",
249
+ "disabled",
250
+ "groupAriaLabel",
251
+ "id",
252
+ "imageNode",
253
+ "label",
254
+ "multi",
255
+ "name",
256
+ "onUpdateError",
257
+ "onValue",
258
+ "outOfStock",
259
+ "selected",
260
+ "src",
261
+ "value"
262
+ ],
263
+ "extendsHTMLAttributes": true
264
+ },
265
+ {
266
+ "name": "Incrementer",
267
+ "importPath": "@dropins/tools/components.js",
268
+ "props": [
269
+ "disabled",
270
+ "error",
271
+ "max",
272
+ "maxLength",
273
+ "min",
274
+ "name",
275
+ "onUpdateError",
276
+ "onValue",
277
+ "showButtons",
278
+ "size",
279
+ "success"
280
+ ],
281
+ "extendsHTMLAttributes": true
282
+ },
283
+ {
284
+ "name": "InLineAlert",
285
+ "importPath": "@dropins/tools/components.js",
286
+ "props": [
287
+ "actionButtonPosition",
288
+ "additionalActions",
289
+ "description",
290
+ "heading",
291
+ "icon",
292
+ "itemList",
293
+ "onDismiss",
294
+ "type",
295
+ "variant"
296
+ ],
297
+ "extendsHTMLAttributes": true
298
+ },
299
+ {
300
+ "name": "Input",
301
+ "importPath": "@dropins/tools/components.js",
302
+ "props": [
303
+ "disabled",
304
+ "error",
305
+ "floatingLabel",
306
+ "icon",
307
+ "id",
308
+ "maxLength",
309
+ "name",
310
+ "onUpdateError",
311
+ "onValue",
312
+ "size",
313
+ "success",
314
+ "variant"
315
+ ],
316
+ "extendsHTMLAttributes": true
317
+ },
318
+ {
319
+ "name": "InputDate",
320
+ "importPath": "@dropins/tools/components.js",
321
+ "props": [
322
+ "error",
323
+ "label",
324
+ "name",
325
+ "value"
326
+ ],
327
+ "extendsHTMLAttributes": false
328
+ },
329
+ {
330
+ "name": "InputFile",
331
+ "importPath": "@dropins/tools/components.js",
332
+ "props": [
333
+ "accept",
334
+ "icon",
335
+ "label",
336
+ "multiple",
337
+ "onChange"
338
+ ],
339
+ "extendsHTMLAttributes": true
340
+ },
341
+ {
342
+ "name": "InputPassword",
343
+ "importPath": "@dropins/tools/components.js",
344
+ "props": [
345
+ "autoComplete",
346
+ "className",
347
+ "defaultValue",
348
+ "errorMessage",
349
+ "floatingLabel",
350
+ "hideStatusIndicator",
351
+ "name",
352
+ "onBlur",
353
+ "onValue",
354
+ "placeholder",
355
+ "required"
356
+ ],
357
+ "extendsHTMLAttributes": true
358
+ },
359
+ {
360
+ "name": "Modal",
361
+ "importPath": "@dropins/tools/components.js",
362
+ "props": [
363
+ "backgroundDim",
364
+ "centered",
365
+ "clickToDismiss",
366
+ "escapeToDismiss",
367
+ "onClose",
368
+ "showCloseButton",
369
+ "size",
370
+ "title"
371
+ ],
372
+ "extendsHTMLAttributes": true
373
+ },
374
+ {
375
+ "name": "MultiSelect",
376
+ "importPath": "@dropins/tools/components.js",
377
+ "props": [
378
+ "className",
379
+ "deselectAllText",
380
+ "disabled",
381
+ "error",
382
+ "floatingLabel",
383
+ "id",
384
+ "maxHeight",
385
+ "name",
386
+ "noResultsText",
387
+ "onChange",
388
+ "options",
389
+ "placeholder",
390
+ "selectAllText",
391
+ "success",
392
+ "value"
393
+ ],
394
+ "extendsHTMLAttributes": false
395
+ },
396
+ {
397
+ "name": "Pagination",
398
+ "importPath": "@dropins/tools/components.js",
399
+ "props": [
400
+ "className",
401
+ "currentPage",
402
+ "onChange",
403
+ "routePage",
404
+ "totalPages"
405
+ ],
406
+ "extendsHTMLAttributes": false
407
+ },
408
+ {
409
+ "name": "Picker",
410
+ "importPath": "@dropins/tools/components.js",
411
+ "props": [
412
+ "defaultOption",
413
+ "disabled",
414
+ "error",
415
+ "floatingLabel",
416
+ "handleSelect",
417
+ "icon",
418
+ "id",
419
+ "name",
420
+ "options",
421
+ "placeholder",
422
+ "size",
423
+ "value",
424
+ "variant"
425
+ ],
426
+ "extendsHTMLAttributes": true
427
+ },
428
+ {
429
+ "name": "Portal",
430
+ "importPath": "@dropins/tools/components.js",
431
+ "props": [
432
+ "children"
433
+ ],
434
+ "extendsHTMLAttributes": false
435
+ },
436
+ {
437
+ "name": "Price",
438
+ "importPath": "@dropins/tools/components.js",
439
+ "props": [
440
+ "amount",
441
+ "currency",
442
+ "formatOptions",
443
+ "locale",
444
+ "sale",
445
+ "size",
446
+ "variant",
447
+ "weight"
448
+ ],
449
+ "extendsHTMLAttributes": true
450
+ },
451
+ {
452
+ "name": "PriceRange",
453
+ "importPath": "@dropins/tools/components.js",
454
+ "props": [
455
+ "amount",
456
+ "currency",
457
+ "display",
458
+ "locale",
459
+ "maximumAmount",
460
+ "minimumAmount",
461
+ "sale",
462
+ "size",
463
+ "specialPrice",
464
+ "variant"
465
+ ],
466
+ "extendsHTMLAttributes": true
467
+ },
468
+ {
469
+ "name": "ProductItemCard",
470
+ "importPath": "@dropins/tools/components.js",
471
+ "props": [
472
+ "actionButton",
473
+ "image",
474
+ "initialized",
475
+ "price",
476
+ "sku",
477
+ "swatches",
478
+ "titleNode"
479
+ ],
480
+ "extendsHTMLAttributes": true
481
+ },
482
+ {
483
+ "name": "ProgressSpinner",
484
+ "importPath": "@dropins/tools/components.js",
485
+ "props": [
486
+ "ariaLabel",
487
+ "size",
488
+ "stroke"
489
+ ],
490
+ "extendsHTMLAttributes": true
491
+ },
492
+ {
493
+ "name": "RadioButton",
494
+ "importPath": "@dropins/tools/components.js",
495
+ "props": [
496
+ "busy",
497
+ "checked",
498
+ "description",
499
+ "disabled",
500
+ "error",
501
+ "icon",
502
+ "label",
503
+ "name",
504
+ "size",
505
+ "value"
506
+ ],
507
+ "extendsHTMLAttributes": true
508
+ },
509
+ {
510
+ "name": "Skeleton",
511
+ "importPath": "@dropins/tools/components.js",
512
+ "props": [
513
+ "rowGap"
514
+ ],
515
+ "extendsHTMLAttributes": true
516
+ },
517
+ {
518
+ "name": "Table",
519
+ "importPath": "@dropins/tools/components.js",
520
+ "props": [
521
+ "caption",
522
+ "columns",
523
+ "expandedRows",
524
+ "loading",
525
+ "mobileLayout",
526
+ "onSortChange",
527
+ "rowData",
528
+ "skeletonRowCount"
529
+ ],
530
+ "extendsHTMLAttributes": true
531
+ },
532
+ {
533
+ "name": "Tag",
534
+ "importPath": "@dropins/tools/components.js",
535
+ "props": [
536
+ "children",
537
+ "label"
538
+ ],
539
+ "extendsHTMLAttributes": true
540
+ },
541
+ {
542
+ "name": "TextArea",
543
+ "importPath": "@dropins/tools/components.js",
544
+ "props": [
545
+ "disabled",
546
+ "errorMessage",
547
+ "id",
548
+ "name"
549
+ ],
550
+ "extendsHTMLAttributes": true
551
+ },
552
+ {
553
+ "name": "TextSwatch",
554
+ "importPath": "@dropins/tools/components.js",
555
+ "props": [
556
+ "disabled",
557
+ "groupAriaLabel",
558
+ "id",
559
+ "label",
560
+ "multi",
561
+ "name",
562
+ "onUpdateError",
563
+ "onValue",
564
+ "outOfStock",
565
+ "selected",
566
+ "value"
567
+ ],
568
+ "extendsHTMLAttributes": true
569
+ },
570
+ {
571
+ "name": "ToggleButton",
572
+ "importPath": "@dropins/tools/components.js",
573
+ "props": [
574
+ "busy",
575
+ "disabled",
576
+ "icon",
577
+ "label",
578
+ "name",
579
+ "onChange",
580
+ "selected",
581
+ "value"
582
+ ],
583
+ "extendsHTMLAttributes": true
584
+ },
585
+ {
586
+ "name": "UIProvider",
587
+ "importPath": "@dropins/tools/components.js",
588
+ "props": [
589
+ "lang",
590
+ "langDefinitions"
591
+ ],
592
+ "extendsHTMLAttributes": true
593
+ }
594
+ ]
595
+ }
@@ -0,0 +1,7 @@
1
+ export interface Guide {
2
+ uri: string;
3
+ name: string;
4
+ description: string;
5
+ content: string;
6
+ }
7
+ export declare const guides: Guide[];