@allejo/decap-extras 0.0.6 → 0.0.8

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,6 +424,48 @@ declare function listWidget<T extends string, F extends CmsField[]>(label: strin
245
424
  widget: 'list';
246
425
  fields: F;
247
426
  };
427
+ /**
428
+ * Creates a Markdown widget configuration with the given label and name, and
429
+ * optional additional options.
430
+ *
431
+ * **DecapCMS Configuration (TypeScript)**
432
+ *
433
+ * ```typescript
434
+ * markdownWidget("Biography", "biography")
435
+ * ```
436
+ *
437
+ * **DecapCMS Configuration (YAML)**
438
+ *
439
+ * ```yaml
440
+ * - label: Biography
441
+ * name: biography
442
+ * widget: richtext
443
+ * ```
444
+ *
445
+ * **Data Store YAML**
446
+ *
447
+ * ```yaml
448
+ * biography: |-
449
+ * Hello, world. I was born in the year 2000.
450
+ * ```
451
+ *
452
+ * There are pre-configured constants available for use with the `options`
453
+ * parameter:
454
+ *
455
+ * - INLINE_MARKDOWN
456
+ * - RICH_MARKDOWN
457
+ *
458
+ * For example, to use the `RICH_MARKDOWN` configuration, you can do the following:
459
+ *
460
+ * ```typescript
461
+ * markdownWidget("Biography", "biography", RICH_MARKDOWN)
462
+ * ```
463
+ *
464
+ * @see INLINE_MARKDOWN
465
+ * @see RICH_MARKDOWN
466
+ *
467
+ * @link https://decapcms.org/docs/widgets/#Richtext%20(Beta)
468
+ */
248
469
  declare function markdownWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldMarkdown>): {
249
470
  readonly default?: string;
250
471
  readonly minimal?: boolean;
@@ -259,6 +480,58 @@ declare function markdownWidget<T extends string>(label: string, name: T, option
259
480
  readonly name: T;
260
481
  readonly widget: "string";
261
482
  };
483
+ /**
484
+ * Creates an Object widget configuration with the given label, name, fields, and
485
+ * optional additional options.
486
+ *
487
+ * The object widget groups multiple fields together as a nested object in the
488
+ * data store. This is useful for creating structured data with related properties.
489
+ *
490
+ * **DecapCMS Configuration (TypeScript)**
491
+ *
492
+ * ```typescript
493
+ * objectWidget("Author", "author", [
494
+ * stringWidget("Name", "name"),
495
+ * stringWidget("Email", "email"),
496
+ * ])
497
+ * ```
498
+ *
499
+ * **DecapCMS Configuration (YAML)**
500
+ *
501
+ * ```yaml
502
+ * - label: Author
503
+ * name: author
504
+ * widget: object
505
+ * fields:
506
+ * - label: Name
507
+ * name: name
508
+ * widget: string
509
+ * - label: Email
510
+ * name: email
511
+ * widget: string
512
+ * ```
513
+ *
514
+ * **Data Store YAML**
515
+ *
516
+ * ```yaml
517
+ * author:
518
+ * name: Jane Doe
519
+ * email: jane@example.com
520
+ * ```
521
+ *
522
+ * Objects can be nested within lists or other objects to create complex data
523
+ * structures. They can also be made optional using the `optional` modifier:
524
+ *
525
+ * ```typescript
526
+ * optional(objectWidget("Metadata", "metadata", [
527
+ * stringWidget("SEO Title", "seoTitle"),
528
+ * textWidget("Description", "description"),
529
+ * ]))
530
+ * ```
531
+ *
532
+ * @see optional
533
+ * @link https://decapcms.org/docs/widgets/#object
534
+ */
262
535
  declare function objectWidget<T extends string, F extends CmsField[]>(label: string, name: T, fields: F, options?: WidgetOpts<CmsFieldObject>): {
263
536
  readonly fields: F;
264
537
  readonly default?: any;
@@ -271,6 +544,40 @@ declare function objectWidget<T extends string, F extends CmsField[]>(label: str
271
544
  readonly name: T;
272
545
  readonly widget: "object";
273
546
  };
547
+ /**
548
+ * Creates a Number widget configuration with the given label and name, and
549
+ * optional additional options.
550
+ *
551
+ * **DecapCMS Configuration (TypeScript)**
552
+ *
553
+ * ```typescript
554
+ * numberWidget("Priority", "priority")
555
+ * ```
556
+ *
557
+ * **DecapCMS Configuration (YAML)**
558
+ *
559
+ * ```yaml
560
+ * - label: Priority
561
+ * name: priority
562
+ * widget: number
563
+ * ```
564
+ *
565
+ * **Data Store YAML**
566
+ *
567
+ * ```yaml
568
+ * priority: 1
569
+ * ```
570
+ *
571
+ * The number widget provides numeric input with optional min, max, and step
572
+ * constraints. It can be made optional using the `optional` modifier:
573
+ *
574
+ * ```typescript
575
+ * optional(numberWidget("Views", "views"))
576
+ * ```
577
+ *
578
+ * @see optional
579
+ * @link https://decapcms.org/docs/widgets/#number
580
+ */
274
581
  declare function numberWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldNumber>): {
275
582
  readonly default?: string | number;
276
583
  readonly value_type?: "int" | "float" | string;
@@ -285,6 +592,46 @@ declare function numberWidget<T extends string>(label: string, name: T, options?
285
592
  readonly name: T;
286
593
  readonly widget: "number";
287
594
  };
595
+ /**
596
+ * Creates a Select widget configuration with the given label, name, choices, and
597
+ * optional additional options.
598
+ *
599
+ * The select widget creates a dropdown menu with predefined options. The `choices`
600
+ * array becomes the available options in the YAML configuration.
601
+ *
602
+ * **DecapCMS Configuration (TypeScript)**
603
+ *
604
+ * ```typescript
605
+ * selectWidget("Status", "status", ["draft", "published", "archived"] as const)
606
+ * ```
607
+ *
608
+ * **DecapCMS Configuration (YAML)**
609
+ *
610
+ * ```yaml
611
+ * - label: Status
612
+ * name: status
613
+ * widget: select
614
+ * options:
615
+ * - draft
616
+ * - published
617
+ * - archived
618
+ * ```
619
+ *
620
+ * **Data Store YAML**
621
+ *
622
+ * ```yaml
623
+ * status: published
624
+ * ```
625
+ *
626
+ * The select widget can be made optional using the `optional` modifier:
627
+ *
628
+ * ```typescript
629
+ * optional(selectWidget("Category", "category", ["tech", "lifestyle", "business"] as const))
630
+ * ```
631
+ *
632
+ * @see optional
633
+ * @link https://decapcms.org/docs/widgets/#select
634
+ */
288
635
  declare function selectWidget<T extends string, O extends string[]>(label: string, name: T, choices: O, options?: WidgetOpts<CmsFieldSelect>): {
289
636
  readonly options: O;
290
637
  readonly default?: string | string[];
@@ -298,6 +645,44 @@ declare function selectWidget<T extends string, O extends string[]>(label: strin
298
645
  readonly name: T;
299
646
  readonly widget: "select";
300
647
  };
648
+ /**
649
+ * Creates a String widget configuration with the given label and name, and
650
+ * optional additional options.
651
+ *
652
+ * The string widget provides a single-line text input field for short text content.
653
+ * Unlike the text widget which provides multi-line input, the string widget is
654
+ * designed for concise, single-line values.
655
+ *
656
+ * **DecapCMS Configuration (TypeScript)**
657
+ *
658
+ * ```typescript
659
+ * stringWidget("Title", "title")
660
+ * ```
661
+ *
662
+ * **DecapCMS Configuration (YAML)**
663
+ *
664
+ * ```yaml
665
+ * - label: Title
666
+ * name: title
667
+ * widget: string
668
+ * ```
669
+ *
670
+ * **Data Store YAML**
671
+ *
672
+ * ```yaml
673
+ * title: Welcome to My Blog
674
+ * ```
675
+ *
676
+ * The string widget can be made optional using the `optional` modifier:
677
+ *
678
+ * ```typescript
679
+ * optional(stringWidget("Slug", "slug"))
680
+ * ```
681
+ *
682
+ * @see optional
683
+ * @see textWidget
684
+ * @link https://decapcms.org/docs/widgets/#string
685
+ */
301
686
  declare function stringWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldStringOrText>): {
302
687
  readonly default?: string;
303
688
  readonly visualEditing?: boolean;
@@ -308,6 +693,47 @@ declare function stringWidget<T extends string>(label: string, name: T, options?
308
693
  readonly name: T;
309
694
  readonly widget: "string";
310
695
  };
696
+ /**
697
+ * Creates a Text widget configuration with the given label and name, and
698
+ * optional additional options.
699
+ *
700
+ * The text widget provides a multi-line text input field for longer text content.
701
+ * Unlike the string widget which provides single-line input, the text widget is
702
+ * designed for paragraphs and multi-line content.
703
+ *
704
+ * **DecapCMS Configuration (TypeScript)**
705
+ *
706
+ * ```typescript
707
+ * textWidget("Description", "description")
708
+ * ```
709
+ *
710
+ * **DecapCMS Configuration (YAML)**
711
+ *
712
+ * ```yaml
713
+ * - label: Description
714
+ * name: description
715
+ * widget: text
716
+ * ```
717
+ *
718
+ * **Data Store YAML**
719
+ *
720
+ * ```yaml
721
+ * description: |-
722
+ * This is a longer description that spans
723
+ * multiple lines in the data store.
724
+ * ```
725
+ *
726
+ * The text widget can be made optional using the `optional` modifier:
727
+ *
728
+ * ```typescript
729
+ * optional(textWidget("Notes", "notes"))
730
+ * ```
731
+ *
732
+ * @see optional
733
+ * @see stringWidget
734
+ * @see markdownWidget
735
+ * @link https://decapcms.org/docs/widgets/#text
736
+ */
311
737
  declare function textWidget<T extends string>(label: string, name: T, options?: WidgetOpts<CmsFieldStringOrText>): {
312
738
  readonly default?: string;
313
739
  readonly visualEditing?: boolean;
@@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