convex-cms 0.0.10 → 0.0.11-alpha.2
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/README.md +25 -5
- package/dist/client/admin/contentTypes.d.ts +102 -0
- package/dist/client/admin/contentTypes.d.ts.map +1 -1
- package/dist/client/admin/index.d.ts +204 -0
- package/dist/client/admin/index.d.ts.map +1 -1
- package/dist/client/admin/media.d.ts.map +1 -1
- package/dist/client/admin/taxonomies.d.ts.map +1 -1
- package/dist/client/admin/trash.d.ts.map +1 -1
- package/dist/client/admin/validators.d.ts +570 -94
- package/dist/client/admin/validators.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +102 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/contentTypeMutations.d.ts +68 -0
- package/dist/component/contentTypeMutations.d.ts.map +1 -1
- package/dist/component/contentTypes.d.ts +34 -0
- package/dist/component/contentTypes.d.ts.map +1 -1
- package/dist/component/ragContentIndexer.d.ts +17 -0
- package/dist/component/ragContentIndexer.d.ts.map +1 -1
- package/dist/component/schema.d.ts +399 -76
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +17 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/taxonomies.d.ts +5 -5
- package/dist/component/validators.d.ts +362 -56
- package/dist/component/validators.d.ts.map +1 -1
- package/dist/test.d.ts +122 -20
- package/dist/test.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/convex-cms)
|
|
4
4
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
5
|
|
|
6
|
-
> **Alpha (v0.0.
|
|
6
|
+
> **Alpha (v0.0.10)** Actively developed. APIs & docs may change. [Report issues](https://github.com/obkaro/convex-cms/issues).
|
|
7
7
|
|
|
8
8
|
A headless CMS built as a [Convex Component](https://docs.convex.dev/components). Content management that runs inside your Convex app.
|
|
9
9
|
|
|
@@ -11,6 +11,7 @@ A headless CMS built as a [Convex Component](https://docs.convex.dev/components)
|
|
|
11
11
|
|
|
12
12
|
[Live Demo](https://convex-cms-example.vercel.app)
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
## Quick Start
|
|
15
16
|
|
|
16
17
|
### 1. Install
|
|
@@ -51,6 +52,8 @@ If you're building on Convex and need content management without the overhead of
|
|
|
51
52
|
- **Data independence:** CMS that lives in your own convex deployment, extendable and customizable with your convex functions
|
|
52
53
|
- **Agent-native content management:** Pre-built tools useful for AI agent integration with `@convex-dev/agent`
|
|
53
54
|
|
|
55
|
+
|
|
56
|
+
|
|
54
57
|
## Features
|
|
55
58
|
|
|
56
59
|
| Feature | What it does |
|
|
@@ -62,6 +65,8 @@ If you're building on Convex and need content management without the overhead of
|
|
|
62
65
|
| **CLI Admin UI** | Run for local development, content entry, and management |
|
|
63
66
|
| **Embedded Admin UI** | Ship the admin interface as part of your React app |
|
|
64
67
|
|
|
68
|
+
|
|
69
|
+
|
|
65
70
|
## In Practice
|
|
66
71
|
|
|
67
72
|
**Full control over the editorial experience?**
|
|
@@ -79,7 +84,8 @@ CMS Client + agent tools. Pre-built tools for AI-driven workflows.
|
|
|
79
84
|
*Any combination of these features works together seamlessly. Pick what fits your workflow.*
|
|
80
85
|
|
|
81
86
|
|
|
82
|
-
|
|
87
|
+
|
|
88
|
+
## Included Batteries
|
|
83
89
|
|
|
84
90
|
Leverage included features or extend and customize within your own convex functions to your desire.
|
|
85
91
|
|
|
@@ -107,6 +113,9 @@ Leverage included features or extend and customize within your own convex functi
|
|
|
107
113
|
- **Agent tools.** 23 pre-built tools with Zod schemas for AI integration
|
|
108
114
|
- **Query builder.** Fluent API for complex content queries
|
|
109
115
|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
110
119
|
### Admin UI
|
|
111
120
|
- **Pre-built React interface.** CLI mode for development, embeddable for production
|
|
112
121
|
- **Visual content editing.** Rich text, media picker, reference selector
|
|
@@ -137,8 +146,6 @@ When embedding CmsAdmin in your React app, you can control how it handles CSS va
|
|
|
137
146
|
| `isolated` | Admin defines all CSS variables, ignoring parent app styles |
|
|
138
147
|
| `inherit` | Admin inherits parent's shadcn variables, only defines sidebar fallbacks |
|
|
139
148
|
|
|
140
|
-
**Critical for Tailwind 4 apps:** If Tailwind utility classes aren't applying to the embedded admin, add a `@source` directive to your app's CSS:
|
|
141
|
-
|
|
142
149
|
```css
|
|
143
150
|
/* your-app/src/index.css */
|
|
144
151
|
@import "tailwindcss";
|
|
@@ -147,6 +154,9 @@ When embedding CmsAdmin in your React app, you can control how it handles CSS va
|
|
|
147
154
|
|
|
148
155
|
This tells Tailwind to scan the admin's compiled JavaScript for utility classes.
|
|
149
156
|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
150
160
|
## Documentation
|
|
151
161
|
|
|
152
162
|
| Guide | Description |
|
|
@@ -161,23 +171,33 @@ This tells Tailwind to scan the admin's compiled JavaScript for utility classes.
|
|
|
161
171
|
| [Agent Tools](./docs/guides/agent-tools.md) | AI agent integration with Zod schemas |
|
|
162
172
|
| [Integration Patterns](./docs/guides/integration-patterns.md) | Common setups and when to use each |
|
|
163
173
|
|
|
174
|
+
|
|
164
175
|
| Reference | Description |
|
|
165
176
|
|-----------|-------------|
|
|
166
177
|
| [Client API](./docs/api/client-api.md) | createCmsClient methods |
|
|
167
|
-
| [Admin API](./docs/api/admin-api.md) |
|
|
178
|
+
| [Admin API](./docs/api/admin-api.md) | 100+ defineAdminAPI functions |
|
|
168
179
|
| [Code-First Schema](./docs/api/code-first-schema.md) | TypeScript-first content types |
|
|
169
180
|
| [Field Types](./docs/api/field-types.md) | All 13 field types |
|
|
170
181
|
| [Configuration](./docs/api/configuration.md) | All config options |
|
|
171
182
|
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
172
186
|
## Requirements
|
|
173
187
|
|
|
174
188
|
- Convex ^1.17.0
|
|
175
189
|
- Node.js 18+
|
|
176
190
|
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
177
194
|
## License
|
|
178
195
|
|
|
179
196
|
Apache-2.0
|
|
180
197
|
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
181
201
|
## Support
|
|
182
202
|
|
|
183
203
|
- [GitHub Issues](https://github.com/obkaro/convex-cms/issues): Bug reports and feature requests
|
|
@@ -56,6 +56,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
56
56
|
minLength?: number | undefined;
|
|
57
57
|
maxLength?: number | undefined;
|
|
58
58
|
pattern?: string | undefined;
|
|
59
|
+
patternMessage?: string | undefined;
|
|
60
|
+
placeholder?: string | undefined;
|
|
61
|
+
multiline?: boolean | undefined;
|
|
59
62
|
} | undefined;
|
|
60
63
|
searchable?: boolean | undefined;
|
|
61
64
|
localized?: boolean | undefined;
|
|
@@ -71,6 +74,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
71
74
|
max?: number | undefined;
|
|
72
75
|
step?: number | undefined;
|
|
73
76
|
precision?: number | undefined;
|
|
77
|
+
prefix?: string | undefined;
|
|
78
|
+
suffix?: string | undefined;
|
|
74
79
|
} | undefined;
|
|
75
80
|
searchable?: boolean | undefined;
|
|
76
81
|
localized?: boolean | undefined;
|
|
@@ -95,6 +100,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
95
100
|
label: string;
|
|
96
101
|
} | {
|
|
97
102
|
options?: {
|
|
103
|
+
maxLength?: number | undefined;
|
|
104
|
+
placeholder?: string | undefined;
|
|
98
105
|
allowedBlocks?: string[] | undefined;
|
|
99
106
|
allowedMarks?: string[] | undefined;
|
|
100
107
|
} | undefined;
|
|
@@ -112,6 +119,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
112
119
|
allowedMimeTypes?: string[] | undefined;
|
|
113
120
|
maxFileSize?: number | undefined;
|
|
114
121
|
multiple?: boolean | undefined;
|
|
122
|
+
maxItems?: number | undefined;
|
|
115
123
|
} | undefined;
|
|
116
124
|
searchable?: boolean | undefined;
|
|
117
125
|
localized?: boolean | undefined;
|
|
@@ -139,6 +147,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
139
147
|
} | {
|
|
140
148
|
options?: {
|
|
141
149
|
allowMultiple?: boolean | undefined;
|
|
150
|
+
taxonomyName?: string | undefined;
|
|
151
|
+
maxSelections?: number | undefined;
|
|
152
|
+
depth?: number | undefined;
|
|
142
153
|
} | undefined;
|
|
143
154
|
searchable?: boolean | undefined;
|
|
144
155
|
localized?: boolean | undefined;
|
|
@@ -163,6 +174,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
163
174
|
} | {
|
|
164
175
|
options?: {
|
|
165
176
|
multiple?: boolean | undefined;
|
|
177
|
+
maxItems?: number | undefined;
|
|
166
178
|
allowedContentTypes?: string[] | undefined;
|
|
167
179
|
minItems?: number | undefined;
|
|
168
180
|
} | undefined;
|
|
@@ -180,6 +192,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
180
192
|
label: string;
|
|
181
193
|
value: string;
|
|
182
194
|
}[] | undefined;
|
|
195
|
+
maxSelections?: number | undefined;
|
|
196
|
+
minSelections?: number | undefined;
|
|
183
197
|
} | undefined;
|
|
184
198
|
searchable?: boolean | undefined;
|
|
185
199
|
localized?: boolean | undefined;
|
|
@@ -191,6 +205,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
191
205
|
label: string;
|
|
192
206
|
} | {
|
|
193
207
|
options?: {
|
|
208
|
+
format?: string | undefined;
|
|
194
209
|
min?: number | undefined;
|
|
195
210
|
max?: number | undefined;
|
|
196
211
|
} | undefined;
|
|
@@ -204,8 +219,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
204
219
|
label: string;
|
|
205
220
|
} | {
|
|
206
221
|
options?: {
|
|
222
|
+
format?: string | undefined;
|
|
207
223
|
min?: number | undefined;
|
|
208
224
|
max?: number | undefined;
|
|
225
|
+
timezone?: string | undefined;
|
|
209
226
|
} | undefined;
|
|
210
227
|
searchable?: boolean | undefined;
|
|
211
228
|
localized?: boolean | undefined;
|
|
@@ -259,6 +276,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
259
276
|
minLength?: number | undefined;
|
|
260
277
|
maxLength?: number | undefined;
|
|
261
278
|
pattern?: string | undefined;
|
|
279
|
+
patternMessage?: string | undefined;
|
|
280
|
+
placeholder?: string | undefined;
|
|
281
|
+
multiline?: boolean | undefined;
|
|
262
282
|
} | undefined;
|
|
263
283
|
searchable?: boolean | undefined;
|
|
264
284
|
localized?: boolean | undefined;
|
|
@@ -274,6 +294,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
274
294
|
max?: number | undefined;
|
|
275
295
|
step?: number | undefined;
|
|
276
296
|
precision?: number | undefined;
|
|
297
|
+
prefix?: string | undefined;
|
|
298
|
+
suffix?: string | undefined;
|
|
277
299
|
} | undefined;
|
|
278
300
|
searchable?: boolean | undefined;
|
|
279
301
|
localized?: boolean | undefined;
|
|
@@ -298,6 +320,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
298
320
|
label: string;
|
|
299
321
|
} | {
|
|
300
322
|
options?: {
|
|
323
|
+
maxLength?: number | undefined;
|
|
324
|
+
placeholder?: string | undefined;
|
|
301
325
|
allowedBlocks?: string[] | undefined;
|
|
302
326
|
allowedMarks?: string[] | undefined;
|
|
303
327
|
} | undefined;
|
|
@@ -315,6 +339,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
315
339
|
allowedMimeTypes?: string[] | undefined;
|
|
316
340
|
maxFileSize?: number | undefined;
|
|
317
341
|
multiple?: boolean | undefined;
|
|
342
|
+
maxItems?: number | undefined;
|
|
318
343
|
} | undefined;
|
|
319
344
|
searchable?: boolean | undefined;
|
|
320
345
|
localized?: boolean | undefined;
|
|
@@ -342,6 +367,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
342
367
|
} | {
|
|
343
368
|
options?: {
|
|
344
369
|
allowMultiple?: boolean | undefined;
|
|
370
|
+
taxonomyName?: string | undefined;
|
|
371
|
+
maxSelections?: number | undefined;
|
|
372
|
+
depth?: number | undefined;
|
|
345
373
|
} | undefined;
|
|
346
374
|
searchable?: boolean | undefined;
|
|
347
375
|
localized?: boolean | undefined;
|
|
@@ -366,6 +394,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
366
394
|
} | {
|
|
367
395
|
options?: {
|
|
368
396
|
multiple?: boolean | undefined;
|
|
397
|
+
maxItems?: number | undefined;
|
|
369
398
|
allowedContentTypes?: string[] | undefined;
|
|
370
399
|
minItems?: number | undefined;
|
|
371
400
|
} | undefined;
|
|
@@ -383,6 +412,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
383
412
|
label: string;
|
|
384
413
|
value: string;
|
|
385
414
|
}[] | undefined;
|
|
415
|
+
maxSelections?: number | undefined;
|
|
416
|
+
minSelections?: number | undefined;
|
|
386
417
|
} | undefined;
|
|
387
418
|
searchable?: boolean | undefined;
|
|
388
419
|
localized?: boolean | undefined;
|
|
@@ -394,6 +425,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
394
425
|
label: string;
|
|
395
426
|
} | {
|
|
396
427
|
options?: {
|
|
428
|
+
format?: string | undefined;
|
|
397
429
|
min?: number | undefined;
|
|
398
430
|
max?: number | undefined;
|
|
399
431
|
} | undefined;
|
|
@@ -407,8 +439,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
407
439
|
label: string;
|
|
408
440
|
} | {
|
|
409
441
|
options?: {
|
|
442
|
+
format?: string | undefined;
|
|
410
443
|
min?: number | undefined;
|
|
411
444
|
max?: number | undefined;
|
|
445
|
+
timezone?: string | undefined;
|
|
412
446
|
} | undefined;
|
|
413
447
|
searchable?: boolean | undefined;
|
|
414
448
|
localized?: boolean | undefined;
|
|
@@ -455,6 +489,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
455
489
|
minLength?: number | undefined;
|
|
456
490
|
maxLength?: number | undefined;
|
|
457
491
|
pattern?: string | undefined;
|
|
492
|
+
patternMessage?: string | undefined;
|
|
493
|
+
placeholder?: string | undefined;
|
|
494
|
+
multiline?: boolean | undefined;
|
|
458
495
|
} | undefined;
|
|
459
496
|
searchable?: boolean | undefined;
|
|
460
497
|
localized?: boolean | undefined;
|
|
@@ -470,6 +507,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
470
507
|
max?: number | undefined;
|
|
471
508
|
step?: number | undefined;
|
|
472
509
|
precision?: number | undefined;
|
|
510
|
+
prefix?: string | undefined;
|
|
511
|
+
suffix?: string | undefined;
|
|
473
512
|
} | undefined;
|
|
474
513
|
searchable?: boolean | undefined;
|
|
475
514
|
localized?: boolean | undefined;
|
|
@@ -494,6 +533,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
494
533
|
label: string;
|
|
495
534
|
} | {
|
|
496
535
|
options?: {
|
|
536
|
+
maxLength?: number | undefined;
|
|
537
|
+
placeholder?: string | undefined;
|
|
497
538
|
allowedBlocks?: string[] | undefined;
|
|
498
539
|
allowedMarks?: string[] | undefined;
|
|
499
540
|
} | undefined;
|
|
@@ -511,6 +552,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
511
552
|
allowedMimeTypes?: string[] | undefined;
|
|
512
553
|
maxFileSize?: number | undefined;
|
|
513
554
|
multiple?: boolean | undefined;
|
|
555
|
+
maxItems?: number | undefined;
|
|
514
556
|
} | undefined;
|
|
515
557
|
searchable?: boolean | undefined;
|
|
516
558
|
localized?: boolean | undefined;
|
|
@@ -538,6 +580,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
538
580
|
} | {
|
|
539
581
|
options?: {
|
|
540
582
|
allowMultiple?: boolean | undefined;
|
|
583
|
+
taxonomyName?: string | undefined;
|
|
584
|
+
maxSelections?: number | undefined;
|
|
585
|
+
depth?: number | undefined;
|
|
541
586
|
} | undefined;
|
|
542
587
|
searchable?: boolean | undefined;
|
|
543
588
|
localized?: boolean | undefined;
|
|
@@ -562,6 +607,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
562
607
|
} | {
|
|
563
608
|
options?: {
|
|
564
609
|
multiple?: boolean | undefined;
|
|
610
|
+
maxItems?: number | undefined;
|
|
565
611
|
allowedContentTypes?: string[] | undefined;
|
|
566
612
|
minItems?: number | undefined;
|
|
567
613
|
} | undefined;
|
|
@@ -579,6 +625,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
579
625
|
label: string;
|
|
580
626
|
value: string;
|
|
581
627
|
}[] | undefined;
|
|
628
|
+
maxSelections?: number | undefined;
|
|
629
|
+
minSelections?: number | undefined;
|
|
582
630
|
} | undefined;
|
|
583
631
|
searchable?: boolean | undefined;
|
|
584
632
|
localized?: boolean | undefined;
|
|
@@ -590,6 +638,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
590
638
|
label: string;
|
|
591
639
|
} | {
|
|
592
640
|
options?: {
|
|
641
|
+
format?: string | undefined;
|
|
593
642
|
min?: number | undefined;
|
|
594
643
|
max?: number | undefined;
|
|
595
644
|
} | undefined;
|
|
@@ -603,8 +652,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
603
652
|
label: string;
|
|
604
653
|
} | {
|
|
605
654
|
options?: {
|
|
655
|
+
format?: string | undefined;
|
|
606
656
|
min?: number | undefined;
|
|
607
657
|
max?: number | undefined;
|
|
658
|
+
timezone?: string | undefined;
|
|
608
659
|
} | undefined;
|
|
609
660
|
searchable?: boolean | undefined;
|
|
610
661
|
localized?: boolean | undefined;
|
|
@@ -648,7 +699,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
648
699
|
options?: {
|
|
649
700
|
maxLength?: number;
|
|
650
701
|
minLength?: number;
|
|
702
|
+
multiline?: boolean;
|
|
651
703
|
pattern?: string;
|
|
704
|
+
patternMessage?: string;
|
|
705
|
+
placeholder?: string;
|
|
652
706
|
};
|
|
653
707
|
required: boolean;
|
|
654
708
|
searchable?: boolean;
|
|
@@ -663,7 +717,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
663
717
|
max?: number;
|
|
664
718
|
min?: number;
|
|
665
719
|
precision?: number;
|
|
720
|
+
prefix?: string;
|
|
666
721
|
step?: number;
|
|
722
|
+
suffix?: string;
|
|
667
723
|
};
|
|
668
724
|
required: boolean;
|
|
669
725
|
searchable?: boolean;
|
|
@@ -690,6 +746,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
690
746
|
options?: {
|
|
691
747
|
allowedBlocks?: Array<string>;
|
|
692
748
|
allowedMarks?: Array<string>;
|
|
749
|
+
maxLength?: number;
|
|
750
|
+
placeholder?: string;
|
|
693
751
|
};
|
|
694
752
|
required: boolean;
|
|
695
753
|
searchable?: boolean;
|
|
@@ -703,6 +761,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
703
761
|
options?: {
|
|
704
762
|
allowedMimeTypes?: Array<string>;
|
|
705
763
|
maxFileSize?: number;
|
|
764
|
+
maxItems?: number;
|
|
706
765
|
mediaType?: "image" | "video" | "audio" | "document" | "other";
|
|
707
766
|
multiple?: boolean;
|
|
708
767
|
};
|
|
@@ -731,6 +790,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
731
790
|
localized?: boolean;
|
|
732
791
|
name: string;
|
|
733
792
|
options?: {
|
|
793
|
+
maxSelections?: number;
|
|
794
|
+
minSelections?: number;
|
|
734
795
|
options?: Array<{
|
|
735
796
|
label: string;
|
|
736
797
|
value: string;
|
|
@@ -762,6 +823,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
762
823
|
name: string;
|
|
763
824
|
options?: {
|
|
764
825
|
allowMultiple?: boolean;
|
|
826
|
+
depth?: number;
|
|
827
|
+
maxSelections?: number;
|
|
828
|
+
taxonomyName?: string;
|
|
765
829
|
};
|
|
766
830
|
required: boolean;
|
|
767
831
|
searchable?: boolean;
|
|
@@ -785,6 +849,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
785
849
|
localized?: boolean;
|
|
786
850
|
name: string;
|
|
787
851
|
options?: {
|
|
852
|
+
format?: string;
|
|
788
853
|
max?: number;
|
|
789
854
|
min?: number;
|
|
790
855
|
};
|
|
@@ -798,8 +863,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
798
863
|
localized?: boolean;
|
|
799
864
|
name: string;
|
|
800
865
|
options?: {
|
|
866
|
+
format?: string;
|
|
801
867
|
max?: number;
|
|
802
868
|
min?: number;
|
|
869
|
+
timezone?: string;
|
|
803
870
|
};
|
|
804
871
|
required: boolean;
|
|
805
872
|
searchable?: boolean;
|
|
@@ -812,6 +879,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
812
879
|
name: string;
|
|
813
880
|
options?: {
|
|
814
881
|
allowedContentTypes?: Array<string>;
|
|
882
|
+
maxItems?: number;
|
|
815
883
|
minItems?: number;
|
|
816
884
|
multiple?: boolean;
|
|
817
885
|
};
|
|
@@ -834,6 +902,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
834
902
|
minLength?: number | undefined;
|
|
835
903
|
maxLength?: number | undefined;
|
|
836
904
|
pattern?: string | undefined;
|
|
905
|
+
patternMessage?: string | undefined;
|
|
906
|
+
placeholder?: string | undefined;
|
|
907
|
+
multiline?: boolean | undefined;
|
|
837
908
|
} | undefined;
|
|
838
909
|
searchable?: boolean | undefined;
|
|
839
910
|
localized?: boolean | undefined;
|
|
@@ -849,6 +920,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
849
920
|
max?: number | undefined;
|
|
850
921
|
step?: number | undefined;
|
|
851
922
|
precision?: number | undefined;
|
|
923
|
+
prefix?: string | undefined;
|
|
924
|
+
suffix?: string | undefined;
|
|
852
925
|
} | undefined;
|
|
853
926
|
searchable?: boolean | undefined;
|
|
854
927
|
localized?: boolean | undefined;
|
|
@@ -873,6 +946,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
873
946
|
label: string;
|
|
874
947
|
} | {
|
|
875
948
|
options?: {
|
|
949
|
+
maxLength?: number | undefined;
|
|
950
|
+
placeholder?: string | undefined;
|
|
876
951
|
allowedBlocks?: string[] | undefined;
|
|
877
952
|
allowedMarks?: string[] | undefined;
|
|
878
953
|
} | undefined;
|
|
@@ -890,6 +965,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
890
965
|
allowedMimeTypes?: string[] | undefined;
|
|
891
966
|
maxFileSize?: number | undefined;
|
|
892
967
|
multiple?: boolean | undefined;
|
|
968
|
+
maxItems?: number | undefined;
|
|
893
969
|
} | undefined;
|
|
894
970
|
searchable?: boolean | undefined;
|
|
895
971
|
localized?: boolean | undefined;
|
|
@@ -917,6 +993,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
917
993
|
} | {
|
|
918
994
|
options?: {
|
|
919
995
|
allowMultiple?: boolean | undefined;
|
|
996
|
+
taxonomyName?: string | undefined;
|
|
997
|
+
maxSelections?: number | undefined;
|
|
998
|
+
depth?: number | undefined;
|
|
920
999
|
} | undefined;
|
|
921
1000
|
searchable?: boolean | undefined;
|
|
922
1001
|
localized?: boolean | undefined;
|
|
@@ -941,6 +1020,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
941
1020
|
} | {
|
|
942
1021
|
options?: {
|
|
943
1022
|
multiple?: boolean | undefined;
|
|
1023
|
+
maxItems?: number | undefined;
|
|
944
1024
|
allowedContentTypes?: string[] | undefined;
|
|
945
1025
|
minItems?: number | undefined;
|
|
946
1026
|
} | undefined;
|
|
@@ -958,6 +1038,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
958
1038
|
label: string;
|
|
959
1039
|
value: string;
|
|
960
1040
|
}[] | undefined;
|
|
1041
|
+
maxSelections?: number | undefined;
|
|
1042
|
+
minSelections?: number | undefined;
|
|
961
1043
|
} | undefined;
|
|
962
1044
|
searchable?: boolean | undefined;
|
|
963
1045
|
localized?: boolean | undefined;
|
|
@@ -969,6 +1051,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
969
1051
|
label: string;
|
|
970
1052
|
} | {
|
|
971
1053
|
options?: {
|
|
1054
|
+
format?: string | undefined;
|
|
972
1055
|
min?: number | undefined;
|
|
973
1056
|
max?: number | undefined;
|
|
974
1057
|
} | undefined;
|
|
@@ -982,8 +1065,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
982
1065
|
label: string;
|
|
983
1066
|
} | {
|
|
984
1067
|
options?: {
|
|
1068
|
+
format?: string | undefined;
|
|
985
1069
|
min?: number | undefined;
|
|
986
1070
|
max?: number | undefined;
|
|
1071
|
+
timezone?: string | undefined;
|
|
987
1072
|
} | undefined;
|
|
988
1073
|
searchable?: boolean | undefined;
|
|
989
1074
|
localized?: boolean | undefined;
|
|
@@ -1042,7 +1127,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1042
1127
|
options?: {
|
|
1043
1128
|
maxLength?: number;
|
|
1044
1129
|
minLength?: number;
|
|
1130
|
+
multiline?: boolean;
|
|
1045
1131
|
pattern?: string;
|
|
1132
|
+
patternMessage?: string;
|
|
1133
|
+
placeholder?: string;
|
|
1046
1134
|
};
|
|
1047
1135
|
required: boolean;
|
|
1048
1136
|
searchable?: boolean;
|
|
@@ -1057,7 +1145,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1057
1145
|
max?: number;
|
|
1058
1146
|
min?: number;
|
|
1059
1147
|
precision?: number;
|
|
1148
|
+
prefix?: string;
|
|
1060
1149
|
step?: number;
|
|
1150
|
+
suffix?: string;
|
|
1061
1151
|
};
|
|
1062
1152
|
required: boolean;
|
|
1063
1153
|
searchable?: boolean;
|
|
@@ -1084,6 +1174,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1084
1174
|
options?: {
|
|
1085
1175
|
allowedBlocks?: Array<string>;
|
|
1086
1176
|
allowedMarks?: Array<string>;
|
|
1177
|
+
maxLength?: number;
|
|
1178
|
+
placeholder?: string;
|
|
1087
1179
|
};
|
|
1088
1180
|
required: boolean;
|
|
1089
1181
|
searchable?: boolean;
|
|
@@ -1097,6 +1189,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1097
1189
|
options?: {
|
|
1098
1190
|
allowedMimeTypes?: Array<string>;
|
|
1099
1191
|
maxFileSize?: number;
|
|
1192
|
+
maxItems?: number;
|
|
1100
1193
|
mediaType?: "image" | "video" | "audio" | "document" | "other";
|
|
1101
1194
|
multiple?: boolean;
|
|
1102
1195
|
};
|
|
@@ -1125,6 +1218,8 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1125
1218
|
localized?: boolean;
|
|
1126
1219
|
name: string;
|
|
1127
1220
|
options?: {
|
|
1221
|
+
maxSelections?: number;
|
|
1222
|
+
minSelections?: number;
|
|
1128
1223
|
options?: Array<{
|
|
1129
1224
|
label: string;
|
|
1130
1225
|
value: string;
|
|
@@ -1156,6 +1251,9 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1156
1251
|
name: string;
|
|
1157
1252
|
options?: {
|
|
1158
1253
|
allowMultiple?: boolean;
|
|
1254
|
+
depth?: number;
|
|
1255
|
+
maxSelections?: number;
|
|
1256
|
+
taxonomyName?: string;
|
|
1159
1257
|
};
|
|
1160
1258
|
required: boolean;
|
|
1161
1259
|
searchable?: boolean;
|
|
@@ -1179,6 +1277,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1179
1277
|
localized?: boolean;
|
|
1180
1278
|
name: string;
|
|
1181
1279
|
options?: {
|
|
1280
|
+
format?: string;
|
|
1182
1281
|
max?: number;
|
|
1183
1282
|
min?: number;
|
|
1184
1283
|
};
|
|
@@ -1192,8 +1291,10 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1192
1291
|
localized?: boolean;
|
|
1193
1292
|
name: string;
|
|
1194
1293
|
options?: {
|
|
1294
|
+
format?: string;
|
|
1195
1295
|
max?: number;
|
|
1196
1296
|
min?: number;
|
|
1297
|
+
timezone?: string;
|
|
1197
1298
|
};
|
|
1198
1299
|
required: boolean;
|
|
1199
1300
|
searchable?: boolean;
|
|
@@ -1206,6 +1307,7 @@ export declare function createContentTypesOperations(component: ComponentApi, ch
|
|
|
1206
1307
|
name: string;
|
|
1207
1308
|
options?: {
|
|
1208
1309
|
allowedContentTypes?: Array<string>;
|
|
1310
|
+
maxItems?: number;
|
|
1209
1311
|
minItems?: number;
|
|
1210
1312
|
multiple?: boolean;
|
|
1211
1313
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentTypes.d.ts","sourceRoot":"","sources":["../../../src/client/admin/contentTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoB9D;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,4BAA4B,GAC5B,8BAA8B,GAC9B,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,yBAAyB,CAAC;AAE9B;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAgKD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,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