@velastack/patterns 0.0.25 → 0.0.26
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.
- package/dist/index.d.ts +42 -0
- package/dist/index.js +62 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
21
21
|
base: string;
|
|
22
22
|
argv: string[];
|
|
23
23
|
};
|
|
24
|
+
examples: {
|
|
25
|
+
command: string;
|
|
26
|
+
description: string;
|
|
27
|
+
}[];
|
|
24
28
|
tests: number;
|
|
25
29
|
baseline: "velastack";
|
|
26
30
|
generate: generate;
|
|
@@ -47,6 +51,10 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
47
51
|
base: string;
|
|
48
52
|
argv: string[];
|
|
49
53
|
};
|
|
54
|
+
examples: {
|
|
55
|
+
command: string;
|
|
56
|
+
description: string;
|
|
57
|
+
}[];
|
|
50
58
|
tests: number;
|
|
51
59
|
baseline: "velastack";
|
|
52
60
|
generate: generate_2;
|
|
@@ -73,6 +81,10 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
73
81
|
base: string;
|
|
74
82
|
argv: string[];
|
|
75
83
|
};
|
|
84
|
+
examples: {
|
|
85
|
+
command: string;
|
|
86
|
+
description: string;
|
|
87
|
+
}[];
|
|
76
88
|
tests: number;
|
|
77
89
|
baseline: "velastack";
|
|
78
90
|
generate: generate_3;
|
|
@@ -99,6 +111,10 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
99
111
|
base: string;
|
|
100
112
|
argv: string[];
|
|
101
113
|
};
|
|
114
|
+
examples: {
|
|
115
|
+
command: string;
|
|
116
|
+
description: string;
|
|
117
|
+
}[];
|
|
102
118
|
tests: number;
|
|
103
119
|
baseline: "velastack";
|
|
104
120
|
generate: generate_4;
|
|
@@ -125,6 +141,7 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
125
141
|
base: string;
|
|
126
142
|
argv: never[];
|
|
127
143
|
};
|
|
144
|
+
examples: never[];
|
|
128
145
|
tests: number;
|
|
129
146
|
baseline: "velastack";
|
|
130
147
|
generate: generate_5;
|
|
@@ -151,6 +168,7 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
151
168
|
base: string;
|
|
152
169
|
argv: never[];
|
|
153
170
|
};
|
|
171
|
+
examples: never[];
|
|
154
172
|
tests: number;
|
|
155
173
|
baseline: "velastack";
|
|
156
174
|
generate: generate_6;
|
|
@@ -177,6 +195,7 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
177
195
|
base: string;
|
|
178
196
|
argv: never[];
|
|
179
197
|
};
|
|
198
|
+
examples: never[];
|
|
180
199
|
tests: number;
|
|
181
200
|
baseline: "velastack";
|
|
182
201
|
generate: generate_7;
|
|
@@ -203,6 +222,7 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
203
222
|
base: string;
|
|
204
223
|
argv: never[];
|
|
205
224
|
};
|
|
225
|
+
examples: never[];
|
|
206
226
|
tests: number;
|
|
207
227
|
baseline: "velastack";
|
|
208
228
|
generate: generate_8;
|
|
@@ -229,6 +249,7 @@ export declare const byCategory: Record<"auth" | "generators" | "api" | "i18n",
|
|
|
229
249
|
base: string;
|
|
230
250
|
argv: never[];
|
|
231
251
|
};
|
|
252
|
+
examples: never[];
|
|
232
253
|
tests: number;
|
|
233
254
|
baseline: "velastack";
|
|
234
255
|
generate: generate_9;
|
|
@@ -351,6 +372,10 @@ export declare const patterns: ({
|
|
|
351
372
|
base: string;
|
|
352
373
|
argv: string[];
|
|
353
374
|
};
|
|
375
|
+
examples: {
|
|
376
|
+
command: string;
|
|
377
|
+
description: string;
|
|
378
|
+
}[];
|
|
354
379
|
tests: number;
|
|
355
380
|
baseline: "velastack";
|
|
356
381
|
generate: generate;
|
|
@@ -377,6 +402,10 @@ export declare const patterns: ({
|
|
|
377
402
|
base: string;
|
|
378
403
|
argv: string[];
|
|
379
404
|
};
|
|
405
|
+
examples: {
|
|
406
|
+
command: string;
|
|
407
|
+
description: string;
|
|
408
|
+
}[];
|
|
380
409
|
tests: number;
|
|
381
410
|
baseline: "velastack";
|
|
382
411
|
generate: generate_2;
|
|
@@ -403,6 +432,10 @@ export declare const patterns: ({
|
|
|
403
432
|
base: string;
|
|
404
433
|
argv: string[];
|
|
405
434
|
};
|
|
435
|
+
examples: {
|
|
436
|
+
command: string;
|
|
437
|
+
description: string;
|
|
438
|
+
}[];
|
|
406
439
|
tests: number;
|
|
407
440
|
baseline: "velastack";
|
|
408
441
|
generate: generate_3;
|
|
@@ -429,6 +462,10 @@ export declare const patterns: ({
|
|
|
429
462
|
base: string;
|
|
430
463
|
argv: string[];
|
|
431
464
|
};
|
|
465
|
+
examples: {
|
|
466
|
+
command: string;
|
|
467
|
+
description: string;
|
|
468
|
+
}[];
|
|
432
469
|
tests: number;
|
|
433
470
|
baseline: "velastack";
|
|
434
471
|
generate: generate_4;
|
|
@@ -455,6 +492,7 @@ export declare const patterns: ({
|
|
|
455
492
|
base: string;
|
|
456
493
|
argv: never[];
|
|
457
494
|
};
|
|
495
|
+
examples: never[];
|
|
458
496
|
tests: number;
|
|
459
497
|
baseline: "velastack";
|
|
460
498
|
generate: generate_5;
|
|
@@ -481,6 +519,7 @@ export declare const patterns: ({
|
|
|
481
519
|
base: string;
|
|
482
520
|
argv: never[];
|
|
483
521
|
};
|
|
522
|
+
examples: never[];
|
|
484
523
|
tests: number;
|
|
485
524
|
baseline: "velastack";
|
|
486
525
|
generate: generate_6;
|
|
@@ -507,6 +546,7 @@ export declare const patterns: ({
|
|
|
507
546
|
base: string;
|
|
508
547
|
argv: never[];
|
|
509
548
|
};
|
|
549
|
+
examples: never[];
|
|
510
550
|
tests: number;
|
|
511
551
|
baseline: "velastack";
|
|
512
552
|
generate: generate_7;
|
|
@@ -533,6 +573,7 @@ export declare const patterns: ({
|
|
|
533
573
|
base: string;
|
|
534
574
|
argv: never[];
|
|
535
575
|
};
|
|
576
|
+
examples: never[];
|
|
536
577
|
tests: number;
|
|
537
578
|
baseline: "velastack";
|
|
538
579
|
generate: generate_8;
|
|
@@ -559,6 +600,7 @@ export declare const patterns: ({
|
|
|
559
600
|
base: string;
|
|
560
601
|
argv: never[];
|
|
561
602
|
};
|
|
603
|
+
examples: never[];
|
|
562
604
|
tests: number;
|
|
563
605
|
baseline: "velastack";
|
|
564
606
|
generate: generate_9;
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var l = Object.create, u = Object.defineProperty, d = Object.getOwnPropertyDescr
|
|
|
19
19
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
20
20
|
}), ee = {
|
|
21
21
|
name: "@velastack/patterns",
|
|
22
|
-
version: "0.0.
|
|
22
|
+
version: "0.0.26",
|
|
23
23
|
type: "module",
|
|
24
24
|
private: !1,
|
|
25
25
|
main: "./dist/index.js",
|
|
@@ -2147,6 +2147,20 @@ var Vt = {
|
|
|
2147
2147
|
"message:editor"
|
|
2148
2148
|
]
|
|
2149
2149
|
},
|
|
2150
|
+
examples: [
|
|
2151
|
+
{
|
|
2152
|
+
command: "contact name:text! email:email! message:editor",
|
|
2153
|
+
description: "Contact form with required text fields and a rich editor."
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
command: "profile avatar:file bio:editor website:url",
|
|
2157
|
+
description: "File upload, editor, and URL validation."
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
command: "feedback rating:select(1,2,3,4,5) comment:editor",
|
|
2161
|
+
description: "Select enum with a long-form comment."
|
|
2162
|
+
}
|
|
2163
|
+
],
|
|
2150
2164
|
tests: 2,
|
|
2151
2165
|
baseline: "velastack",
|
|
2152
2166
|
generate: Bt
|
|
@@ -2226,6 +2240,20 @@ var Xt = {
|
|
|
2226
2240
|
"email:email"
|
|
2227
2241
|
]
|
|
2228
2242
|
},
|
|
2243
|
+
examples: [
|
|
2244
|
+
{
|
|
2245
|
+
command: "articles title:text! body:editor author:current_user",
|
|
2246
|
+
description: "Content model with an auth-bound author relation."
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
command: "projects name:text! status:select(active:Active,done:Done)",
|
|
2250
|
+
description: "Resource with an enum status field."
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
command: "users/posts title:text! published:bool",
|
|
2254
|
+
description: "Nested resource scoped under users."
|
|
2255
|
+
}
|
|
2256
|
+
],
|
|
2229
2257
|
tests: 0,
|
|
2230
2258
|
baseline: "velastack",
|
|
2231
2259
|
generate: Yt
|
|
@@ -2596,6 +2624,20 @@ var Sn = {
|
|
|
2596
2624
|
"email:email"
|
|
2597
2625
|
]
|
|
2598
2626
|
},
|
|
2627
|
+
examples: [
|
|
2628
|
+
{
|
|
2629
|
+
command: "todos title:text! done:bool",
|
|
2630
|
+
description: "Todos with required title and boolean flag."
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
command: "pets type:select(dog:Dog,cat:Cat) owner:user",
|
|
2634
|
+
description: "Enum field and a one-to-many relation to user."
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
command: "users/pets name:text! author:current_user",
|
|
2638
|
+
description: "Nested resource with auth-bound author."
|
|
2639
|
+
}
|
|
2640
|
+
],
|
|
2599
2641
|
tests: 8,
|
|
2600
2642
|
baseline: "velastack",
|
|
2601
2643
|
generate: xn
|
|
@@ -2672,6 +2714,20 @@ var jn = {
|
|
|
2672
2714
|
"email:email"
|
|
2673
2715
|
]
|
|
2674
2716
|
},
|
|
2717
|
+
examples: [
|
|
2718
|
+
{
|
|
2719
|
+
command: "login email:email! password:text!",
|
|
2720
|
+
description: "Validation schema for a login form."
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
command: "settings theme:select(light:Light,dark:Dark) notifications:bool",
|
|
2724
|
+
description: "Schema with an enum and a boolean flag."
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
command: "address street:text! city:text! postal:text!",
|
|
2728
|
+
description: "Schema with all required text fields."
|
|
2729
|
+
}
|
|
2730
|
+
],
|
|
2675
2731
|
tests: 0,
|
|
2676
2732
|
baseline: "velastack",
|
|
2677
2733
|
generate: An
|
|
@@ -2874,6 +2930,7 @@ var Un = {
|
|
|
2874
2930
|
base: "vela enable auth",
|
|
2875
2931
|
argv: []
|
|
2876
2932
|
},
|
|
2933
|
+
examples: [],
|
|
2877
2934
|
tests: 18,
|
|
2878
2935
|
baseline: "velastack",
|
|
2879
2936
|
generate: Hn
|
|
@@ -2956,6 +3013,7 @@ var tr = {
|
|
|
2956
3013
|
base: "vela enable api",
|
|
2957
3014
|
argv: []
|
|
2958
3015
|
},
|
|
3016
|
+
examples: [],
|
|
2959
3017
|
tests: 1,
|
|
2960
3018
|
baseline: "velastack",
|
|
2961
3019
|
generate: er
|
|
@@ -3052,6 +3110,7 @@ var pr = {
|
|
|
3052
3110
|
base: "vela enable api-keys",
|
|
3053
3111
|
argv: []
|
|
3054
3112
|
},
|
|
3113
|
+
examples: [],
|
|
3055
3114
|
tests: 6,
|
|
3056
3115
|
baseline: "velastack",
|
|
3057
3116
|
generate: fr
|
|
@@ -3143,6 +3202,7 @@ var Tr = {
|
|
|
3143
3202
|
base: "vela enable i18n",
|
|
3144
3203
|
argv: []
|
|
3145
3204
|
},
|
|
3205
|
+
examples: [],
|
|
3146
3206
|
tests: 0,
|
|
3147
3207
|
baseline: "velastack",
|
|
3148
3208
|
generate: wr
|
|
@@ -3528,6 +3588,7 @@ var Wr = {
|
|
|
3528
3588
|
base: "vela enable teams",
|
|
3529
3589
|
argv: []
|
|
3530
3590
|
},
|
|
3591
|
+
examples: [],
|
|
3531
3592
|
tests: 36,
|
|
3532
3593
|
baseline: "velastack",
|
|
3533
3594
|
generate: Ur
|