@allejo/decap-extras 0.0.6 → 0.0.7

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.mts CHANGED
@@ -210,7 +210,75 @@ type WidgetFactory = (...args: any[]) => CmsField;
210
210
  type WidgetTypeFromFactory<F extends WidgetFactory> = IDE_HACK_ExpandRecursiveType<TypeScriptTypeForField<ReturnType<F>>>;
211
211
  //#endregion
212
212
  //#region src/widgets.d.ts
213
+ /**
214
+ * Marks a widget field as optional, allowing it to be left empty in DecapCMS.
215
+ * This modifier can be applied to any widget type to make it non-required.
216
+ *
217
+ * **DecapCMS Configuration (TypeScript)**
218
+ *
219
+ * ```typescript
220
+ * optional(stringWidget("Middle Name", "middleName"))
221
+ * ```
222
+ *
223
+ * **DecapCMS Configuration (YAML)**
224
+ *
225
+ * ```yaml
226
+ * - label: Middle Name
227
+ * name: middleName
228
+ * widget: string
229
+ * required: false
230
+ * ```
231
+ *
232
+ * **Data Store YAML**
233
+ *
234
+ * ```yaml
235
+ * middleName: # Can be left empty
236
+ * ```
237
+ *
238
+ * The `optional` modifier can be used with all widget types including complex ones:
239
+ *
240
+ * ```typescript
241
+ * optional(objectWidget("Metadata", "metadata", [stringWidget("Author", "author")]))
242
+ * optional(listWidget("Tags", "tags", stringWidget("Tag", "value")))
243
+ * ```
244
+ *
245
+ * @link https://decapcms.org/docs/widgets/#common-widget-options
246
+ */
213
247
  declare function optional<T extends CmsField>(widget: T): OptionalWidget<T>;
248
+ /**
249
+ * Creates a Boolean widget configuration with the given label and name, and
250
+ * optional additional options.
251
+ *
252
+ * **DecapCMS Configuration (TypeScript)**
253
+ *
254
+ * ```typescript
255
+ * boolWidget("Published", "published")
256
+ * ```
257
+ *
258
+ * **DecapCMS Configuration (YAML)**
259
+ *
260
+ * ```yaml
261
+ * - label: Published
262
+ * name: published
263
+ * widget: boolean
264
+ * ```
265
+ *
266
+ * **Data Store YAML**
267
+ *
268
+ * ```yaml
269
+ * published: true
270
+ * ```
271
+ *
272
+ * The boolean widget creates a checkbox input in the editor. This can be made
273
+ * optional using the `optional` modifier:
274
+ *
275
+ * ```typescript
276
+ * optional(boolWidget("Draft", "isDraft"))
277
+ * ```
278
+ *
279
+ * @see optional
280
+ * @link https://decapcms.org/docs/widgets/#boolean
281
+ */
214
282
  declare function boolWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldBoolean>): {
215
283
  readonly default?: boolean;
216
284
  readonly required?: boolean;
@@ -220,6 +288,40 @@ declare function boolWidget<T extends string>(label: string, name: T, options?:
220
288
  readonly name: T;
221
289
  readonly widget: "boolean";
222
290
  };
291
+ /**
292
+ * Creates an Image widget configuration with the given label and name, and
293
+ * optional additional options.
294
+ *
295
+ * **DecapCMS Configuration (TypeScript)**
296
+ *
297
+ * ```typescript
298
+ * imageWidget("Featured Image", "featuredImage")
299
+ * ```
300
+ *
301
+ * **DecapCMS Configuration (YAML)**
302
+ *
303
+ * ```yaml
304
+ * - label: Featured Image
305
+ * name: featuredImage
306
+ * widget: image
307
+ * ```
308
+ *
309
+ * **Data Store YAML**
310
+ *
311
+ * ```yaml
312
+ * featuredImage: /images/hero.jpg
313
+ * ```
314
+ *
315
+ * The image widget provides file upload functionality with image preview
316
+ * capabilities. It can be made optional using the `optional` modifier:
317
+ *
318
+ * ```typescript
319
+ * optional(imageWidget("Avatar", "avatar"))
320
+ * ```
321
+ *
322
+ * @see optional
323
+ * @link https://decapcms.org/docs/widgets/#image
324
+ */
223
325
  declare function imageWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldFileOrImage>): {
224
326
  readonly default?: string;
225
327
  readonly media_library?: _$decap_cms_core0.CmsMediaLibrary;
@@ -233,6 +335,83 @@ declare function imageWidget<T extends string>(label: string, name: T, options?:
233
335
  readonly name: T;
234
336
  readonly widget: "image";
235
337
  };
338
+ /**
339
+ * Creates a List widget configuration with the given label, name, field(s), and
340
+ * optional additional options.
341
+ *
342
+ * The `listWidget` function accepts either a single field (which gets expanded
343
+ * for object types) or an array of fields. When passed an object widget, its
344
+ * fields are automatically extracted and expanded.
345
+ *
346
+ * **DecapCMS Configuration (TypeScript)**
347
+ *
348
+ * Single field example:
349
+ *
350
+ * ```typescript
351
+ * listWidget("Tags", "tags", stringWidget("Tag", "value"))
352
+ * ```
353
+ *
354
+ * Multiple fields example:
355
+ *
356
+ * ```typescript
357
+ * listWidget("Authors", "authors", [
358
+ * stringWidget("Name", "name"),
359
+ * imageWidget("Avatar", "avatar"),
360
+ * ])
361
+ * ```
362
+ *
363
+ * **DecapCMS Configuration (YAML)**
364
+ *
365
+ * Single field:
366
+ *
367
+ * ```yaml
368
+ * - label: Tags
369
+ * name: tags
370
+ * widget: list
371
+ * field:
372
+ * label: Tag
373
+ * name: value
374
+ * widget: string
375
+ * ```
376
+ *
377
+ * Multiple fields:
378
+ *
379
+ * ```yaml
380
+ * - label: Authors
381
+ * name: authors
382
+ * widget: list
383
+ * fields:
384
+ * - label: Name
385
+ * name: name
386
+ * widget: string
387
+ * - label: Avatar
388
+ * name: avatar
389
+ * widget: image
390
+ * ```
391
+ *
392
+ * **Data Store YAML**
393
+ *
394
+ * ```yaml
395
+ * tags:
396
+ * - value: React
397
+ * - value: TypeScript
398
+ *
399
+ * authors:
400
+ * - name: Jane Doe
401
+ * avatar: /images/jane.jpg
402
+ * - name: John Smith
403
+ * avatar: /images/john.jpg
404
+ * ```
405
+ *
406
+ * The list widget can be made optional using the `optional` modifier:
407
+ *
408
+ * ```typescript
409
+ * optional(listWidget("Tags", "tags", stringWidget("Tag", "value")))
410
+ * ```
411
+ *
412
+ * @see optional
413
+ * @link https://decapcms.org/docs/widgets/#list
414
+ */
236
415
  declare function listWidget<T extends string, F extends CmsField>(label: string, name: T, fields: F, options?: WidgetOpts<CmsFieldList>): {
237
416
  label: string;
238
417
  name: T;
@@ -245,20 +424,58 @@ declare function listWidget<T extends string, F extends CmsField[]>(label: strin
245
424
  widget: 'list';
246
425
  fields: F;
247
426
  };
248
- declare function markdownWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldMarkdown>): {
249
- readonly default?: string;
250
- readonly minimal?: boolean;
251
- readonly buttons?: _$decap_cms_core0.CmsMarkdownWidgetButton[];
252
- readonly editor_components?: string[];
253
- readonly modes?: ("raw" | "rich_text")[];
254
- readonly editorComponents?: string[];
255
- readonly required?: boolean;
256
- readonly hint?: string;
257
- readonly pattern?: [string, string];
258
- readonly label: string;
259
- readonly name: T;
260
- readonly widget: "string";
261
- };
427
+ /**
428
+ * Creates an Object widget configuration with the given label, name, fields, and
429
+ * optional additional options.
430
+ *
431
+ * The object widget groups multiple fields together as a nested object in the
432
+ * data store. This is useful for creating structured data with related properties.
433
+ *
434
+ * **DecapCMS Configuration (TypeScript)**
435
+ *
436
+ * ```typescript
437
+ * objectWidget("Author", "author", [
438
+ * stringWidget("Name", "name"),
439
+ * stringWidget("Email", "email"),
440
+ * ])
441
+ * ```
442
+ *
443
+ * **DecapCMS Configuration (YAML)**
444
+ *
445
+ * ```yaml
446
+ * - label: Author
447
+ * name: author
448
+ * widget: object
449
+ * fields:
450
+ * - label: Name
451
+ * name: name
452
+ * widget: string
453
+ * - label: Email
454
+ * name: email
455
+ * widget: string
456
+ * ```
457
+ *
458
+ * **Data Store YAML**
459
+ *
460
+ * ```yaml
461
+ * author:
462
+ * name: Jane Doe
463
+ * email: jane@example.com
464
+ * ```
465
+ *
466
+ * Objects can be nested within lists or other objects to create complex data
467
+ * structures. They can also be made optional using the `optional` modifier:
468
+ *
469
+ * ```typescript
470
+ * optional(objectWidget("Metadata", "metadata", [
471
+ * stringWidget("SEO Title", "seoTitle"),
472
+ * textWidget("Description", "description"),
473
+ * ]))
474
+ * ```
475
+ *
476
+ * @see optional
477
+ * @link https://decapcms.org/docs/widgets/#object
478
+ */
262
479
  declare function objectWidget<T extends string, F extends CmsField[]>(label: string, name: T, fields: F, options?: WidgetOpts<CmsFieldObject>): {
263
480
  readonly fields: F;
264
481
  readonly default?: any;
@@ -271,6 +488,40 @@ declare function objectWidget<T extends string, F extends CmsField[]>(label: str
271
488
  readonly name: T;
272
489
  readonly widget: "object";
273
490
  };
491
+ /**
492
+ * Creates a Number widget configuration with the given label and name, and
493
+ * optional additional options.
494
+ *
495
+ * **DecapCMS Configuration (TypeScript)**
496
+ *
497
+ * ```typescript
498
+ * numberWidget("Priority", "priority")
499
+ * ```
500
+ *
501
+ * **DecapCMS Configuration (YAML)**
502
+ *
503
+ * ```yaml
504
+ * - label: Priority
505
+ * name: priority
506
+ * widget: number
507
+ * ```
508
+ *
509
+ * **Data Store YAML**
510
+ *
511
+ * ```yaml
512
+ * priority: 1
513
+ * ```
514
+ *
515
+ * The number widget provides numeric input with optional min, max, and step
516
+ * constraints. It can be made optional using the `optional` modifier:
517
+ *
518
+ * ```typescript
519
+ * optional(numberWidget("Views", "views"))
520
+ * ```
521
+ *
522
+ * @see optional
523
+ * @link https://decapcms.org/docs/widgets/#number
524
+ */
274
525
  declare function numberWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldNumber>): {
275
526
  readonly default?: string | number;
276
527
  readonly value_type?: "int" | "float" | string;
@@ -285,6 +536,46 @@ declare function numberWidget<T extends string>(label: string, name: T, options?
285
536
  readonly name: T;
286
537
  readonly widget: "number";
287
538
  };
539
+ /**
540
+ * Creates a Select widget configuration with the given label, name, choices, and
541
+ * optional additional options.
542
+ *
543
+ * The select widget creates a dropdown menu with predefined options. The `choices`
544
+ * array becomes the available options in the YAML configuration.
545
+ *
546
+ * **DecapCMS Configuration (TypeScript)**
547
+ *
548
+ * ```typescript
549
+ * selectWidget("Status", "status", ["draft", "published", "archived"] as const)
550
+ * ```
551
+ *
552
+ * **DecapCMS Configuration (YAML)**
553
+ *
554
+ * ```yaml
555
+ * - label: Status
556
+ * name: status
557
+ * widget: select
558
+ * options:
559
+ * - draft
560
+ * - published
561
+ * - archived
562
+ * ```
563
+ *
564
+ * **Data Store YAML**
565
+ *
566
+ * ```yaml
567
+ * status: published
568
+ * ```
569
+ *
570
+ * The select widget can be made optional using the `optional` modifier:
571
+ *
572
+ * ```typescript
573
+ * optional(selectWidget("Category", "category", ["tech", "lifestyle", "business"] as const))
574
+ * ```
575
+ *
576
+ * @see optional
577
+ * @link https://decapcms.org/docs/widgets/#select
578
+ */
288
579
  declare function selectWidget<T extends string, O extends string[]>(label: string, name: T, choices: O, options?: WidgetOpts<CmsFieldSelect>): {
289
580
  readonly options: O;
290
581
  readonly default?: string | string[];
@@ -298,6 +589,44 @@ declare function selectWidget<T extends string, O extends string[]>(label: strin
298
589
  readonly name: T;
299
590
  readonly widget: "select";
300
591
  };
592
+ /**
593
+ * Creates a String widget configuration with the given label and name, and
594
+ * optional additional options.
595
+ *
596
+ * The string widget provides a single-line text input field for short text content.
597
+ * Unlike the text widget which provides multi-line input, the string widget is
598
+ * designed for concise, single-line values.
599
+ *
600
+ * **DecapCMS Configuration (TypeScript)**
601
+ *
602
+ * ```typescript
603
+ * stringWidget("Title", "title")
604
+ * ```
605
+ *
606
+ * **DecapCMS Configuration (YAML)**
607
+ *
608
+ * ```yaml
609
+ * - label: Title
610
+ * name: title
611
+ * widget: string
612
+ * ```
613
+ *
614
+ * **Data Store YAML**
615
+ *
616
+ * ```yaml
617
+ * title: Welcome to My Blog
618
+ * ```
619
+ *
620
+ * The string widget can be made optional using the `optional` modifier:
621
+ *
622
+ * ```typescript
623
+ * optional(stringWidget("Slug", "slug"))
624
+ * ```
625
+ *
626
+ * @see optional
627
+ * @see textWidget
628
+ * @link https://decapcms.org/docs/widgets/#string
629
+ */
301
630
  declare function stringWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldStringOrText>): {
302
631
  readonly default?: string;
303
632
  readonly visualEditing?: boolean;
@@ -308,6 +637,47 @@ declare function stringWidget<T extends string>(label: string, name: T, options?
308
637
  readonly name: T;
309
638
  readonly widget: "string";
310
639
  };
640
+ /**
641
+ * Creates a Text widget configuration with the given label and name, and
642
+ * optional additional options.
643
+ *
644
+ * The text widget provides a multi-line text input field for longer text content.
645
+ * Unlike the string widget which provides single-line input, the text widget is
646
+ * designed for paragraphs and multi-line content.
647
+ *
648
+ * **DecapCMS Configuration (TypeScript)**
649
+ *
650
+ * ```typescript
651
+ * textWidget("Description", "description")
652
+ * ```
653
+ *
654
+ * **DecapCMS Configuration (YAML)**
655
+ *
656
+ * ```yaml
657
+ * - label: Description
658
+ * name: description
659
+ * widget: text
660
+ * ```
661
+ *
662
+ * **Data Store YAML**
663
+ *
664
+ * ```yaml
665
+ * description: |-
666
+ * This is a longer description that spans
667
+ * multiple lines in the data store.
668
+ * ```
669
+ *
670
+ * The text widget can be made optional using the `optional` modifier:
671
+ *
672
+ * ```typescript
673
+ * optional(textWidget("Notes", "notes"))
674
+ * ```
675
+ *
676
+ * @see optional
677
+ * @see stringWidget
678
+ * @see markdownWidget
679
+ * @link https://decapcms.org/docs/widgets/#text
680
+ */
311
681
  declare function textWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldStringOrText>): {
312
682
  readonly default?: string;
313
683
  readonly visualEditing?: boolean;
@@ -332,5 +702,5 @@ declare const RICH_MARKDOWN: WidgetOpts<CmsFieldMarkdown>;
332
702
  */
333
703
  declare const INLINE_MARKDOWN: WidgetOpts<CmsFieldMarkdown>;
334
704
  //#endregion
335
- export { CollectionItemNames, INLINE_MARKDOWN, OptionalWidget, PropsByCollectionAndFile, RICH_MARKDOWN, WidgetOpts, WidgetTypeFromFactory, boolWidget, imageWidget, listWidget, markdownWidget, numberWidget, objectWidget, optional, selectWidget, stringWidget, textWidget };
705
+ export { CollectionItemNames, INLINE_MARKDOWN, OptionalWidget, PropsByCollectionAndFile, RICH_MARKDOWN, WidgetOpts, WidgetTypeFromFactory, boolWidget, imageWidget, listWidget, numberWidget, objectWidget, optional, selectWidget, stringWidget, textWidget };
336
706
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/api.ts","../src/widgets.ts"],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