@contentrain/mcp 0.3.1 → 1.0.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 (115) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +147 -238
  3. package/dist/apply-manager-CaTuu7Lj.mjs +751 -0
  4. package/dist/apply-manager-CaTuu7Lj.mjs.map +1 -0
  5. package/dist/astro-parser-RofKmKQi.mjs +166 -0
  6. package/dist/astro-parser-RofKmKQi.mjs.map +1 -0
  7. package/dist/branch-lifecycle-DB6sgeJi.mjs +97 -0
  8. package/dist/branch-lifecycle-DB6sgeJi.mjs.map +1 -0
  9. package/dist/chunk-BEJ448es.mjs +35 -0
  10. package/dist/compiler-rIC4ETHv.mjs +44509 -0
  11. package/dist/compiler-rIC4ETHv.mjs.map +1 -0
  12. package/dist/compiler-sfc.cjs-BbD04rn_.mjs +50279 -0
  13. package/dist/compiler-sfc.cjs-BbD04rn_.mjs.map +1 -0
  14. package/dist/config-CPlhDwsv.mjs +27 -0
  15. package/dist/config-CPlhDwsv.mjs.map +1 -0
  16. package/dist/context-yh3cuw5N.mjs +46 -0
  17. package/dist/context-yh3cuw5N.mjs.map +1 -0
  18. package/dist/core/apply-manager.d.mts +144 -0
  19. package/dist/core/apply-manager.d.mts.map +1 -0
  20. package/dist/core/apply-manager.mjs +6 -0
  21. package/dist/core/config.d.mts +8 -0
  22. package/dist/core/config.d.mts.map +1 -0
  23. package/dist/core/config.mjs +2 -0
  24. package/dist/core/content-manager.d.mts +53 -0
  25. package/dist/core/content-manager.d.mts.map +1 -0
  26. package/dist/core/content-manager.mjs +2 -0
  27. package/dist/core/context.d.mts +13 -0
  28. package/dist/core/context.d.mts.map +1 -0
  29. package/dist/core/context.mjs +3 -0
  30. package/dist/core/graph-builder.d.mts +12 -0
  31. package/dist/core/graph-builder.d.mts.map +1 -0
  32. package/dist/core/graph-builder.mjs +2 -0
  33. package/dist/core/meta-manager.d.mts +14 -0
  34. package/dist/core/meta-manager.d.mts.map +1 -0
  35. package/dist/core/meta-manager.mjs +2 -0
  36. package/dist/core/model-manager.d.mts +44 -0
  37. package/dist/core/model-manager.d.mts.map +1 -0
  38. package/dist/core/model-manager.mjs +2 -0
  39. package/dist/core/scan-config.d.mts +24 -0
  40. package/dist/core/scan-config.d.mts.map +1 -0
  41. package/dist/core/scan-config.mjs +2 -0
  42. package/dist/core/scanner.d.mts +25 -0
  43. package/dist/core/scanner.d.mts.map +1 -0
  44. package/dist/core/scanner.mjs +3 -0
  45. package/dist/core/validator.d.mts +23 -0
  46. package/dist/core/validator.d.mts.map +1 -0
  47. package/dist/core/validator.mjs +3 -0
  48. package/dist/detect-C8XmJ4S6.mjs +362 -0
  49. package/dist/detect-C8XmJ4S6.mjs.map +1 -0
  50. package/dist/fs-BbuGnVcG.mjs +52 -0
  51. package/dist/fs-BbuGnVcG.mjs.map +1 -0
  52. package/dist/git/branch-lifecycle.d.mts +28 -0
  53. package/dist/git/branch-lifecycle.d.mts.map +1 -0
  54. package/dist/git/branch-lifecycle.mjs +2 -0
  55. package/dist/git/transaction.d.mts +25 -0
  56. package/dist/git/transaction.d.mts.map +1 -0
  57. package/dist/git/transaction.mjs +4 -0
  58. package/dist/graph-builder-fPrDDwnu.mjs +162 -0
  59. package/dist/graph-builder-fPrDDwnu.mjs.map +1 -0
  60. package/dist/id-BdD4HvMY.mjs +12 -0
  61. package/dist/id-BdD4HvMY.mjs.map +1 -0
  62. package/dist/index.d.mts +1 -359
  63. package/dist/index.mjs +15 -2161
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/meta-manager-CECrfsKm.mjs +53 -0
  66. package/dist/meta-manager-CECrfsKm.mjs.map +1 -0
  67. package/dist/model-manager-BcWWu5l2.mjs +963 -0
  68. package/dist/model-manager-BcWWu5l2.mjs.map +1 -0
  69. package/dist/node-Cbq5eR5i.mjs +300 -0
  70. package/dist/node-Cbq5eR5i.mjs.map +1 -0
  71. package/dist/scan-config-AJGxCdNd.mjs +159 -0
  72. package/dist/scan-config-AJGxCdNd.mjs.map +1 -0
  73. package/dist/scanner-BdTiv8sw.mjs +619 -0
  74. package/dist/scanner-BdTiv8sw.mjs.map +1 -0
  75. package/dist/serializer-Dueih-i2.mjs +33 -0
  76. package/dist/serializer-Dueih-i2.mjs.map +1 -0
  77. package/dist/server-CTcDpxwW.mjs +1861 -0
  78. package/dist/server-CTcDpxwW.mjs.map +1 -0
  79. package/dist/server.d.mts +7 -0
  80. package/dist/server.d.mts.map +1 -0
  81. package/dist/server.mjs +11 -0
  82. package/dist/source-map-generator-DpO-ejrt.mjs +893 -0
  83. package/dist/source-map-generator-DpO-ejrt.mjs.map +1 -0
  84. package/dist/svelte-parser-COTNG92w.mjs +225 -0
  85. package/dist/svelte-parser-COTNG92w.mjs.map +1 -0
  86. package/dist/templates/index.d.mts +8 -0
  87. package/dist/templates/index.d.mts.map +1 -0
  88. package/dist/templates/index.mjs +2 -0
  89. package/dist/templates-3HWi-PTu.mjs +824 -0
  90. package/dist/templates-3HWi-PTu.mjs.map +1 -0
  91. package/dist/transaction-BsECnmL5.mjs +128 -0
  92. package/dist/transaction-BsECnmL5.mjs.map +1 -0
  93. package/dist/tsx-parser-Bf8Firrq.mjs +2 -0
  94. package/dist/tsx-parser-CYVyBWjn.mjs +234 -0
  95. package/dist/tsx-parser-CYVyBWjn.mjs.map +1 -0
  96. package/dist/util/detect.d.mts +20 -0
  97. package/dist/util/detect.d.mts.map +1 -0
  98. package/dist/util/detect.mjs +2 -0
  99. package/dist/util/fs.d.mts +12 -0
  100. package/dist/util/fs.d.mts.map +1 -0
  101. package/dist/util/fs.mjs +2 -0
  102. package/dist/util/id.d.mts +6 -0
  103. package/dist/util/id.d.mts.map +1 -0
  104. package/dist/util/id.mjs +2 -0
  105. package/dist/util/serializer.d.mts +14 -0
  106. package/dist/util/serializer.d.mts.map +1 -0
  107. package/dist/util/serializer.mjs +2 -0
  108. package/dist/validator-ku84AyFr.mjs +755 -0
  109. package/dist/validator-ku84AyFr.mjs.map +1 -0
  110. package/dist/vue-parser-CjS4YAoQ.mjs +225 -0
  111. package/dist/vue-parser-CjS4YAoQ.mjs.map +1 -0
  112. package/package.json +107 -43
  113. package/dist/fs-D83-Ii_y.mjs +0 -75
  114. package/dist/fs-D83-Ii_y.mjs.map +0 -1
  115. package/dist/index.d.mts.map +0 -1
@@ -0,0 +1,824 @@
1
+ //#endregion
2
+ //#region src/templates/index.ts
3
+ const templates = {
4
+ blog: {
5
+ id: "blog",
6
+ models: [
7
+ {
8
+ id: "blog-post",
9
+ name: "Blog Post",
10
+ kind: "document",
11
+ domain: "blog",
12
+ i18n: true,
13
+ fields: {
14
+ title: {
15
+ type: "string",
16
+ required: true,
17
+ max: 120
18
+ },
19
+ slug: {
20
+ type: "slug",
21
+ required: true,
22
+ unique: true
23
+ },
24
+ excerpt: {
25
+ type: "text",
26
+ max: 280
27
+ },
28
+ cover: { type: "image" },
29
+ author: {
30
+ type: "relation",
31
+ model: "authors",
32
+ required: true
33
+ },
34
+ category: {
35
+ type: "relation",
36
+ model: "categories"
37
+ },
38
+ tags: {
39
+ type: "array",
40
+ items: "string"
41
+ },
42
+ published_at: { type: "datetime" }
43
+ }
44
+ },
45
+ {
46
+ id: "categories",
47
+ name: "Categories",
48
+ kind: "collection",
49
+ domain: "blog",
50
+ i18n: true,
51
+ fields: {
52
+ name: {
53
+ type: "string",
54
+ required: true
55
+ },
56
+ slug: {
57
+ type: "slug",
58
+ required: true,
59
+ unique: true
60
+ },
61
+ description: { type: "text" }
62
+ }
63
+ },
64
+ {
65
+ id: "authors",
66
+ name: "Authors",
67
+ kind: "collection",
68
+ domain: "blog",
69
+ i18n: false,
70
+ fields: {
71
+ name: {
72
+ type: "string",
73
+ required: true
74
+ },
75
+ email: { type: "email" },
76
+ bio: { type: "text" },
77
+ avatar: { type: "image" },
78
+ social: {
79
+ type: "object",
80
+ fields: {
81
+ twitter: { type: "url" },
82
+ linkedin: { type: "url" },
83
+ github: { type: "url" }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ ],
89
+ sample_content: {
90
+ categories: { en: {
91
+ "cat-engineering": {
92
+ name: "Engineering",
93
+ slug: "engineering",
94
+ description: "Technical deep dives"
95
+ },
96
+ "cat-product": {
97
+ name: "Product",
98
+ slug: "product",
99
+ description: "Product updates and news"
100
+ }
101
+ } },
102
+ authors: { data: { "author-1": {
103
+ name: "Team",
104
+ email: "team@example.com",
105
+ bio: "The team behind the product"
106
+ } } }
107
+ },
108
+ vocabulary: {
109
+ "read-more": { en: "Read More" },
110
+ "published-on": { en: "Published on" },
111
+ "by-author": { en: "By" },
112
+ "categories": { en: "Categories" },
113
+ "tags": { en: "Tags" }
114
+ }
115
+ },
116
+ landing: {
117
+ id: "landing",
118
+ models: [
119
+ {
120
+ id: "hero",
121
+ name: "Hero Section",
122
+ kind: "singleton",
123
+ domain: "marketing",
124
+ i18n: true,
125
+ fields: {
126
+ title: {
127
+ type: "string",
128
+ required: true,
129
+ max: 120
130
+ },
131
+ subtitle: {
132
+ type: "text",
133
+ max: 280
134
+ },
135
+ cta_text: { type: "string" },
136
+ cta_url: { type: "url" },
137
+ background: { type: "image" }
138
+ }
139
+ },
140
+ {
141
+ id: "features",
142
+ name: "Features Section",
143
+ kind: "singleton",
144
+ domain: "marketing",
145
+ i18n: true,
146
+ fields: {
147
+ title: {
148
+ type: "string",
149
+ required: true
150
+ },
151
+ subtitle: { type: "text" },
152
+ items: {
153
+ type: "array",
154
+ items: {
155
+ type: "object",
156
+ fields: {
157
+ title: {
158
+ type: "string",
159
+ required: true
160
+ },
161
+ description: { type: "text" },
162
+ icon: { type: "icon" }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ },
168
+ {
169
+ id: "pricing",
170
+ name: "Pricing Plans",
171
+ kind: "collection",
172
+ domain: "marketing",
173
+ i18n: true,
174
+ fields: {
175
+ name: {
176
+ type: "string",
177
+ required: true
178
+ },
179
+ price: {
180
+ type: "number",
181
+ required: true
182
+ },
183
+ currency: {
184
+ type: "string",
185
+ default: "USD"
186
+ },
187
+ period: {
188
+ type: "select",
189
+ options: ["monthly", "yearly"]
190
+ },
191
+ features: {
192
+ type: "array",
193
+ items: "string"
194
+ },
195
+ highlighted: {
196
+ type: "boolean",
197
+ default: false
198
+ }
199
+ }
200
+ },
201
+ {
202
+ id: "faq",
203
+ name: "FAQ",
204
+ kind: "collection",
205
+ domain: "marketing",
206
+ i18n: true,
207
+ fields: {
208
+ question: {
209
+ type: "string",
210
+ required: true
211
+ },
212
+ answer: {
213
+ type: "text",
214
+ required: true
215
+ },
216
+ order: { type: "integer" }
217
+ }
218
+ },
219
+ {
220
+ id: "testimonials",
221
+ name: "Testimonials",
222
+ kind: "collection",
223
+ domain: "marketing",
224
+ i18n: true,
225
+ fields: {
226
+ name: {
227
+ type: "string",
228
+ required: true
229
+ },
230
+ role: { type: "string" },
231
+ company: { type: "string" },
232
+ quote: {
233
+ type: "text",
234
+ required: true
235
+ },
236
+ avatar: { type: "image" },
237
+ rating: { type: "rating" }
238
+ }
239
+ }
240
+ ],
241
+ sample_content: {
242
+ hero: { en: {
243
+ title: "Build something amazing",
244
+ subtitle: "The fastest way to launch your product",
245
+ cta_text: "Get Started",
246
+ cta_url: "/signup"
247
+ } },
248
+ pricing: { en: {
249
+ "plan-free": {
250
+ name: "Free",
251
+ price: 0,
252
+ currency: "USD",
253
+ period: "monthly",
254
+ features: ["1 project", "Basic support"],
255
+ highlighted: false
256
+ },
257
+ "plan-pro": {
258
+ name: "Pro",
259
+ price: 29,
260
+ currency: "USD",
261
+ period: "monthly",
262
+ features: [
263
+ "Unlimited projects",
264
+ "Priority support",
265
+ "Advanced analytics"
266
+ ],
267
+ highlighted: true
268
+ }
269
+ } }
270
+ },
271
+ vocabulary: {
272
+ "get-started": { en: "Get Started" },
273
+ "learn-more": { en: "Learn More" },
274
+ "per-month": { en: "/month" },
275
+ "most-popular": { en: "Most Popular" }
276
+ }
277
+ },
278
+ docs: {
279
+ id: "docs",
280
+ models: [{
281
+ id: "doc-page",
282
+ name: "Documentation Page",
283
+ kind: "document",
284
+ domain: "docs",
285
+ i18n: true,
286
+ fields: {
287
+ title: {
288
+ type: "string",
289
+ required: true,
290
+ max: 120
291
+ },
292
+ slug: {
293
+ type: "slug",
294
+ required: true,
295
+ unique: true
296
+ },
297
+ category: {
298
+ type: "relation",
299
+ model: "doc-categories"
300
+ },
301
+ order: { type: "integer" },
302
+ excerpt: {
303
+ type: "text",
304
+ max: 280
305
+ }
306
+ }
307
+ }, {
308
+ id: "doc-categories",
309
+ name: "Doc Categories",
310
+ kind: "collection",
311
+ domain: "docs",
312
+ i18n: true,
313
+ fields: {
314
+ name: {
315
+ type: "string",
316
+ required: true
317
+ },
318
+ slug: {
319
+ type: "slug",
320
+ required: true,
321
+ unique: true
322
+ },
323
+ order: { type: "integer" }
324
+ }
325
+ }],
326
+ sample_content: { "doc-categories": { en: {
327
+ "cat-getting-started": {
328
+ name: "Getting Started",
329
+ slug: "getting-started",
330
+ order: 1
331
+ },
332
+ "cat-guides": {
333
+ name: "Guides",
334
+ slug: "guides",
335
+ order: 2
336
+ },
337
+ "cat-api": {
338
+ name: "API Reference",
339
+ slug: "api",
340
+ order: 3
341
+ }
342
+ } } },
343
+ vocabulary: {
344
+ "on-this-page": { en: "On This Page" },
345
+ "edit-this-page": { en: "Edit this page" },
346
+ "next": { en: "Next" },
347
+ "previous": { en: "Previous" }
348
+ }
349
+ },
350
+ ecommerce: {
351
+ id: "ecommerce",
352
+ models: [
353
+ {
354
+ id: "products",
355
+ name: "Products",
356
+ kind: "collection",
357
+ domain: "shop",
358
+ i18n: true,
359
+ fields: {
360
+ name: {
361
+ type: "string",
362
+ required: true
363
+ },
364
+ slug: {
365
+ type: "slug",
366
+ required: true,
367
+ unique: true
368
+ },
369
+ description: { type: "text" },
370
+ price: {
371
+ type: "decimal",
372
+ required: true
373
+ },
374
+ currency: {
375
+ type: "string",
376
+ default: "USD"
377
+ },
378
+ image: { type: "image" },
379
+ category: {
380
+ type: "relation",
381
+ model: "product-categories"
382
+ },
383
+ brand: {
384
+ type: "relation",
385
+ model: "brands"
386
+ },
387
+ in_stock: {
388
+ type: "boolean",
389
+ default: true
390
+ }
391
+ }
392
+ },
393
+ {
394
+ id: "product-categories",
395
+ name: "Product Categories",
396
+ kind: "collection",
397
+ domain: "shop",
398
+ i18n: true,
399
+ fields: {
400
+ name: {
401
+ type: "string",
402
+ required: true
403
+ },
404
+ slug: {
405
+ type: "slug",
406
+ required: true,
407
+ unique: true
408
+ },
409
+ description: { type: "text" },
410
+ image: { type: "image" }
411
+ }
412
+ },
413
+ {
414
+ id: "brands",
415
+ name: "Brands",
416
+ kind: "collection",
417
+ domain: "shop",
418
+ i18n: false,
419
+ fields: {
420
+ name: {
421
+ type: "string",
422
+ required: true
423
+ },
424
+ slug: {
425
+ type: "slug",
426
+ required: true,
427
+ unique: true
428
+ },
429
+ logo: { type: "image" },
430
+ website: { type: "url" }
431
+ }
432
+ }
433
+ ],
434
+ sample_content: {
435
+ "product-categories": { en: {
436
+ "cat-electronics": {
437
+ name: "Electronics",
438
+ slug: "electronics",
439
+ description: "Electronic devices and accessories"
440
+ },
441
+ "cat-clothing": {
442
+ name: "Clothing",
443
+ slug: "clothing",
444
+ description: "Apparel and fashion"
445
+ }
446
+ } },
447
+ brands: { data: { "brand-acme": {
448
+ name: "Acme Corp",
449
+ slug: "acme",
450
+ website: "https://example.com"
451
+ } } }
452
+ },
453
+ vocabulary: {
454
+ "add-to-cart": { en: "Add to Cart" },
455
+ "out-of-stock": { en: "Out of Stock" },
456
+ "price": { en: "Price" },
457
+ "category": { en: "Category" }
458
+ }
459
+ },
460
+ saas: {
461
+ id: "saas",
462
+ models: [
463
+ {
464
+ id: "hero",
465
+ name: "Hero Section",
466
+ kind: "singleton",
467
+ domain: "marketing",
468
+ i18n: true,
469
+ fields: {
470
+ title: {
471
+ type: "string",
472
+ required: true,
473
+ max: 120
474
+ },
475
+ subtitle: {
476
+ type: "text",
477
+ max: 280
478
+ },
479
+ cta_text: { type: "string" },
480
+ cta_url: { type: "url" },
481
+ background: { type: "image" }
482
+ }
483
+ },
484
+ {
485
+ id: "features",
486
+ name: "Features",
487
+ kind: "singleton",
488
+ domain: "marketing",
489
+ i18n: true,
490
+ fields: {
491
+ title: {
492
+ type: "string",
493
+ required: true
494
+ },
495
+ subtitle: { type: "text" },
496
+ items: {
497
+ type: "array",
498
+ items: {
499
+ type: "object",
500
+ fields: {
501
+ title: {
502
+ type: "string",
503
+ required: true
504
+ },
505
+ description: { type: "text" },
506
+ icon: { type: "icon" }
507
+ }
508
+ }
509
+ }
510
+ }
511
+ },
512
+ {
513
+ id: "pricing",
514
+ name: "Pricing Plans",
515
+ kind: "collection",
516
+ domain: "marketing",
517
+ i18n: true,
518
+ fields: {
519
+ name: {
520
+ type: "string",
521
+ required: true
522
+ },
523
+ price: {
524
+ type: "number",
525
+ required: true
526
+ },
527
+ currency: {
528
+ type: "string",
529
+ default: "USD"
530
+ },
531
+ period: {
532
+ type: "select",
533
+ options: ["monthly", "yearly"]
534
+ },
535
+ features: {
536
+ type: "array",
537
+ items: "string"
538
+ },
539
+ highlighted: {
540
+ type: "boolean",
541
+ default: false
542
+ }
543
+ }
544
+ },
545
+ {
546
+ id: "changelog",
547
+ name: "Changelog",
548
+ kind: "document",
549
+ domain: "product",
550
+ i18n: true,
551
+ fields: {
552
+ title: {
553
+ type: "string",
554
+ required: true
555
+ },
556
+ slug: {
557
+ type: "slug",
558
+ required: true,
559
+ unique: true
560
+ },
561
+ version: { type: "string" },
562
+ published_at: { type: "date" },
563
+ tags: {
564
+ type: "array",
565
+ items: "string"
566
+ }
567
+ }
568
+ },
569
+ {
570
+ id: "faq",
571
+ name: "FAQ",
572
+ kind: "collection",
573
+ domain: "marketing",
574
+ i18n: true,
575
+ fields: {
576
+ question: {
577
+ type: "string",
578
+ required: true
579
+ },
580
+ answer: {
581
+ type: "text",
582
+ required: true
583
+ },
584
+ order: { type: "integer" }
585
+ }
586
+ }
587
+ ],
588
+ sample_content: {
589
+ hero: { en: {
590
+ title: "Ship faster with our platform",
591
+ subtitle: "Everything you need to build, deploy, and scale",
592
+ cta_text: "Start Free Trial",
593
+ cta_url: "/signup"
594
+ } },
595
+ pricing: { en: {
596
+ "plan-starter": {
597
+ name: "Starter",
598
+ price: 0,
599
+ currency: "USD",
600
+ period: "monthly",
601
+ features: ["Up to 3 projects", "Community support"],
602
+ highlighted: false
603
+ },
604
+ "plan-team": {
605
+ name: "Team",
606
+ price: 49,
607
+ currency: "USD",
608
+ period: "monthly",
609
+ features: [
610
+ "Unlimited projects",
611
+ "Priority support",
612
+ "Team collaboration"
613
+ ],
614
+ highlighted: true
615
+ },
616
+ "plan-enterprise": {
617
+ name: "Enterprise",
618
+ price: 199,
619
+ currency: "USD",
620
+ period: "monthly",
621
+ features: [
622
+ "Everything in Team",
623
+ "SSO",
624
+ "SLA",
625
+ "Dedicated support"
626
+ ],
627
+ highlighted: false
628
+ }
629
+ } }
630
+ },
631
+ vocabulary: {
632
+ "start-free": { en: "Start Free Trial" },
633
+ "contact-sales": { en: "Contact Sales" },
634
+ "per-month": { en: "/month" },
635
+ "changelog": { en: "Changelog" }
636
+ }
637
+ },
638
+ i18n: {
639
+ id: "i18n",
640
+ models: [
641
+ {
642
+ id: "navigation",
643
+ name: "Navigation",
644
+ kind: "singleton",
645
+ domain: "ui",
646
+ i18n: true,
647
+ fields: {
648
+ brand: {
649
+ type: "string",
650
+ required: true
651
+ },
652
+ items: {
653
+ type: "array",
654
+ items: {
655
+ type: "object",
656
+ fields: {
657
+ label: {
658
+ type: "string",
659
+ required: true
660
+ },
661
+ url: {
662
+ type: "url",
663
+ required: true
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+ },
670
+ {
671
+ id: "form-labels",
672
+ name: "Form Labels",
673
+ kind: "singleton",
674
+ domain: "ui",
675
+ i18n: true,
676
+ fields: {
677
+ name: { type: "string" },
678
+ email: { type: "string" },
679
+ password: { type: "string" },
680
+ submit: { type: "string" },
681
+ cancel: { type: "string" }
682
+ }
683
+ },
684
+ {
685
+ id: "error-messages",
686
+ name: "Error Messages",
687
+ kind: "dictionary",
688
+ domain: "system",
689
+ i18n: true
690
+ },
691
+ {
692
+ id: "app-strings",
693
+ name: "App Strings",
694
+ kind: "dictionary",
695
+ domain: "system",
696
+ i18n: true
697
+ }
698
+ ],
699
+ sample_content: {
700
+ navigation: { en: {
701
+ brand: "My App",
702
+ items: [
703
+ {
704
+ label: "Home",
705
+ url: "/"
706
+ },
707
+ {
708
+ label: "About",
709
+ url: "/about"
710
+ },
711
+ {
712
+ label: "Contact",
713
+ url: "/contact"
714
+ }
715
+ ]
716
+ } },
717
+ "form-labels": { en: {
718
+ name: "Name",
719
+ email: "Email",
720
+ password: "Password",
721
+ submit: "Submit",
722
+ cancel: "Cancel"
723
+ } },
724
+ "error-messages": { en: {
725
+ "required-field": "This field is required",
726
+ "invalid-email": "Please enter a valid email",
727
+ "server-error": "Something went wrong, please try again"
728
+ } },
729
+ "app-strings": { en: {
730
+ "welcome": "Welcome",
731
+ "loading": "Loading...",
732
+ "no-results": "No results found"
733
+ } }
734
+ },
735
+ vocabulary: {
736
+ "language": { en: "Language" },
737
+ "switch-locale": { en: "Switch language" }
738
+ }
739
+ },
740
+ mobile: {
741
+ id: "mobile",
742
+ models: [
743
+ {
744
+ id: "app-strings",
745
+ name: "App Strings",
746
+ kind: "dictionary",
747
+ domain: "system",
748
+ i18n: true
749
+ },
750
+ {
751
+ id: "error-messages",
752
+ name: "Error Messages",
753
+ kind: "dictionary",
754
+ domain: "system",
755
+ i18n: true
756
+ },
757
+ {
758
+ id: "onboarding",
759
+ name: "Onboarding Screens",
760
+ kind: "collection",
761
+ domain: "app",
762
+ i18n: true,
763
+ fields: {
764
+ title: {
765
+ type: "string",
766
+ required: true
767
+ },
768
+ description: { type: "text" },
769
+ image: { type: "image" },
770
+ order: {
771
+ type: "integer",
772
+ required: true
773
+ }
774
+ }
775
+ }
776
+ ],
777
+ sample_content: {
778
+ "app-strings": { en: {
779
+ "welcome": "Welcome",
780
+ "loading": "Loading...",
781
+ "retry": "Retry",
782
+ "ok": "OK",
783
+ "cancel": "Cancel"
784
+ } },
785
+ "error-messages": { en: {
786
+ "network-error": "No internet connection",
787
+ "server-error": "Something went wrong",
788
+ "auth-error": "Please sign in again"
789
+ } },
790
+ onboarding: { en: {
791
+ "step-1": {
792
+ title: "Welcome",
793
+ description: "Get started with our app",
794
+ order: 1
795
+ },
796
+ "step-2": {
797
+ title: "Discover",
798
+ description: "Explore all features",
799
+ order: 2
800
+ },
801
+ "step-3": {
802
+ title: "Ready",
803
+ description: "You are all set!",
804
+ order: 3
805
+ }
806
+ } }
807
+ },
808
+ vocabulary: {
809
+ "get-started": { en: "Get Started" },
810
+ "skip": { en: "Skip" },
811
+ "next": { en: "Next" }
812
+ }
813
+ }
814
+ };
815
+ function getTemplate(id) {
816
+ return templates[id] ?? null;
817
+ }
818
+ function listTemplates() {
819
+ return Object.keys(templates);
820
+ }
821
+ //#endregion
822
+ export { listTemplates as n, getTemplate as t };
823
+
824
+ //# sourceMappingURL=templates-3HWi-PTu.mjs.map