@und-ui/richtext 0.0.0-stage → 0.3.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.
@@ -0,0 +1,1048 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/components/rich-text-editor/rich-text-editor.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "function",
11
+ "name": "setRichTextStrings",
12
+ "return": {
13
+ "type": {
14
+ "text": "void"
15
+ }
16
+ },
17
+ "parameters": [
18
+ {
19
+ "name": "next",
20
+ "type": {
21
+ "text": "Partial<RichTextStrings>"
22
+ }
23
+ }
24
+ ],
25
+ "description": "Replaces some built-in English strings of `und-rich-text-editor`. Unknown keys and non-strings are ignored."
26
+ },
27
+ {
28
+ "kind": "class",
29
+ "description": "A small rich text editor: a formatting toolbar (bold, italic, underline,\nstrikethrough, inline code, link, headings, quote, lists), Markdown\nshortcuts as you type (`## `, `- `, `1. `, `> `, `**bold**`, `` `code` ``),\nautolinked URLs and native undo.\n\nSecurity first: pasted, dropped and assigned HTML goes through an\nallowlist sanitizer that rebuilds clean nodes (no HTML-string sinks, safe\nlink URLs only, Trusted Types friendly), and `value` is always sanitized\nHTML. The editable area is light DOM (ADR 0002), so selection, spell\nchecking and assistive technology work as in a plain contenteditable.\n\nForm-associated: submits the sanitized HTML under `name`, and the Markdown\nunder `markdown-name` when set.",
30
+ "name": "UndRichTextEditor",
31
+ "cssProperties": [
32
+ {
33
+ "description": "Minimum block size of the editing area (default 8rem).",
34
+ "name": "--und-rich-text-min-height"
35
+ },
36
+ {
37
+ "description": "Maximum block size before the editing area scrolls.",
38
+ "name": "--und-rich-text-max-height"
39
+ }
40
+ ],
41
+ "cssParts": [
42
+ {
43
+ "description": "The formatting toolbar.",
44
+ "name": "toolbar"
45
+ },
46
+ {
47
+ "description": "Each toolbar button.",
48
+ "name": "button"
49
+ },
50
+ {
51
+ "description": "The link address form.",
52
+ "name": "link-form"
53
+ }
54
+ ],
55
+ "members": [
56
+ {
57
+ "kind": "field",
58
+ "name": "tagName",
59
+ "type": {
60
+ "text": "string"
61
+ },
62
+ "static": true,
63
+ "default": "'und-rich-text-editor'"
64
+ },
65
+ {
66
+ "kind": "field",
67
+ "name": "formAssociated",
68
+ "type": {
69
+ "text": "boolean"
70
+ },
71
+ "static": true,
72
+ "default": "true"
73
+ },
74
+ {
75
+ "kind": "field",
76
+ "name": "label",
77
+ "privacy": "public",
78
+ "type": {
79
+ "text": "string | undefined"
80
+ },
81
+ "description": "Accessible name (and visible label) of the editing area.",
82
+ "attribute": "label"
83
+ },
84
+ {
85
+ "kind": "field",
86
+ "name": "placeholder",
87
+ "privacy": "public",
88
+ "type": {
89
+ "text": "string | undefined"
90
+ },
91
+ "description": "Text shown while the editor is empty.",
92
+ "attribute": "placeholder"
93
+ },
94
+ {
95
+ "kind": "field",
96
+ "name": "name",
97
+ "privacy": "public",
98
+ "type": {
99
+ "text": "string | undefined"
100
+ },
101
+ "description": "Form field name for the sanitized HTML.",
102
+ "attribute": "name",
103
+ "reflects": true
104
+ },
105
+ {
106
+ "kind": "field",
107
+ "name": "markdownName",
108
+ "privacy": "public",
109
+ "type": {
110
+ "text": "string | undefined"
111
+ },
112
+ "description": "Form field name for the Markdown version (optional).",
113
+ "attribute": "markdown-name"
114
+ },
115
+ {
116
+ "kind": "field",
117
+ "name": "disabled",
118
+ "privacy": "public",
119
+ "type": {
120
+ "text": "boolean"
121
+ },
122
+ "description": "Disables editing and the toolbar. A disabled ancestor fieldset also disables it.",
123
+ "attribute": "disabled",
124
+ "default": "false",
125
+ "reflects": true
126
+ },
127
+ {
128
+ "kind": "field",
129
+ "name": "readOnly",
130
+ "privacy": "public",
131
+ "type": {
132
+ "text": "boolean"
133
+ },
134
+ "description": "Shows the content without allowing edits.",
135
+ "attribute": "readonly",
136
+ "default": "false",
137
+ "reflects": true
138
+ },
139
+ {
140
+ "kind": "field",
141
+ "name": "required",
142
+ "privacy": "public",
143
+ "type": {
144
+ "text": "boolean"
145
+ },
146
+ "description": "Requires some text before the form submits.",
147
+ "attribute": "required",
148
+ "default": "false",
149
+ "reflects": true
150
+ },
151
+ {
152
+ "kind": "field",
153
+ "name": "noToolbar",
154
+ "privacy": "public",
155
+ "type": {
156
+ "text": "boolean"
157
+ },
158
+ "description": "Hides the toolbar (keyboard shortcuts and Markdown shortcuts still work).",
159
+ "attribute": "no-toolbar",
160
+ "default": "false"
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "#editor",
165
+ "privacy": "private",
166
+ "type": {
167
+ "text": "HTMLElement | undefined"
168
+ }
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "#labelEl",
173
+ "privacy": "private",
174
+ "type": {
175
+ "text": "HTMLElement | undefined"
176
+ }
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "#value",
181
+ "privacy": "private",
182
+ "type": {
183
+ "text": "string"
184
+ },
185
+ "default": "''"
186
+ },
187
+ {
188
+ "kind": "field",
189
+ "name": "#default",
190
+ "privacy": "private",
191
+ "type": {
192
+ "text": "string | undefined"
193
+ }
194
+ },
195
+ {
196
+ "kind": "field",
197
+ "name": "#range",
198
+ "privacy": "private",
199
+ "type": {
200
+ "text": "Range | undefined"
201
+ }
202
+ },
203
+ {
204
+ "kind": "field",
205
+ "name": "#escape",
206
+ "privacy": "private",
207
+ "type": {
208
+ "text": "Node | undefined"
209
+ }
210
+ },
211
+ {
212
+ "kind": "field",
213
+ "name": "#active",
214
+ "privacy": "private",
215
+ "default": "new Set<Tool>()"
216
+ },
217
+ {
218
+ "kind": "field",
219
+ "name": "#linkOpen",
220
+ "privacy": "private",
221
+ "type": {
222
+ "text": "boolean"
223
+ },
224
+ "default": "false"
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "#linkError",
229
+ "privacy": "private",
230
+ "type": {
231
+ "text": "boolean"
232
+ },
233
+ "default": "false"
234
+ },
235
+ {
236
+ "kind": "field",
237
+ "name": "#focusIndex",
238
+ "privacy": "private",
239
+ "type": {
240
+ "text": "number"
241
+ },
242
+ "default": "0"
243
+ },
244
+ {
245
+ "kind": "field",
246
+ "name": "#changedSinceFocus",
247
+ "privacy": "private",
248
+ "type": {
249
+ "text": "boolean"
250
+ },
251
+ "default": "false"
252
+ },
253
+ {
254
+ "kind": "field",
255
+ "name": "#fieldsetDisabled",
256
+ "privacy": "private",
257
+ "type": {
258
+ "text": "boolean"
259
+ },
260
+ "default": "false"
261
+ },
262
+ {
263
+ "kind": "field",
264
+ "name": "#id",
265
+ "privacy": "private",
266
+ "readonly": true,
267
+ "default": "`und-rte-${++counter}`"
268
+ },
269
+ {
270
+ "kind": "field",
271
+ "name": "#locale",
272
+ "privacy": "private",
273
+ "readonly": true,
274
+ "default": "new LocaleDirController(this)"
275
+ },
276
+ {
277
+ "kind": "field",
278
+ "name": "value",
279
+ "privacy": "public",
280
+ "type": {
281
+ "text": "string"
282
+ },
283
+ "description": "The content as sanitized HTML. Setting it sanitizes the input (never\ntrust it), so assigning user or server HTML is safe.",
284
+ "attribute": "value"
285
+ },
286
+ {
287
+ "kind": "field",
288
+ "name": "markdown",
289
+ "type": {
290
+ "text": "string"
291
+ },
292
+ "description": "The content as Markdown (CommonMark plus `~~strikethrough~~`).",
293
+ "readonly": true
294
+ },
295
+ {
296
+ "kind": "field",
297
+ "name": "form",
298
+ "type": {
299
+ "text": "HTMLFormElement | null"
300
+ },
301
+ "description": "The form the editor belongs to.",
302
+ "readonly": true
303
+ },
304
+ {
305
+ "kind": "field",
306
+ "name": "editor",
307
+ "type": {
308
+ "text": "HTMLElement | undefined"
309
+ },
310
+ "description": "The editable element (light DOM).",
311
+ "readonly": true
312
+ },
313
+ {
314
+ "kind": "method",
315
+ "name": "focus",
316
+ "return": {
317
+ "type": {
318
+ "text": "void"
319
+ }
320
+ },
321
+ "parameters": [
322
+ {
323
+ "name": "options",
324
+ "optional": true,
325
+ "type": {
326
+ "text": "FocusOptions"
327
+ }
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "kind": "method",
333
+ "name": "#build",
334
+ "privacy": "private",
335
+ "return": {
336
+ "type": {
337
+ "text": "void"
338
+ }
339
+ }
340
+ },
341
+ {
342
+ "kind": "method",
343
+ "name": "#load",
344
+ "privacy": "private",
345
+ "return": {
346
+ "type": {
347
+ "text": "void"
348
+ }
349
+ },
350
+ "parameters": [
351
+ {
352
+ "name": "value",
353
+ "type": {
354
+ "text": "string"
355
+ }
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "kind": "method",
361
+ "name": "#serialize",
362
+ "privacy": "private",
363
+ "return": {
364
+ "type": {
365
+ "text": "{ html: string; markdown: string }"
366
+ }
367
+ }
368
+ },
369
+ {
370
+ "kind": "method",
371
+ "name": "#syncForm",
372
+ "privacy": "private",
373
+ "return": {
374
+ "type": {
375
+ "text": "void"
376
+ }
377
+ }
378
+ },
379
+ {
380
+ "kind": "method",
381
+ "name": "formResetCallback",
382
+ "return": {
383
+ "type": {
384
+ "text": "void"
385
+ }
386
+ }
387
+ },
388
+ {
389
+ "kind": "method",
390
+ "name": "formDisabledCallback",
391
+ "return": {
392
+ "type": {
393
+ "text": "void"
394
+ }
395
+ },
396
+ "parameters": [
397
+ {
398
+ "name": "disabled",
399
+ "type": {
400
+ "text": "boolean"
401
+ }
402
+ }
403
+ ]
404
+ },
405
+ {
406
+ "kind": "method",
407
+ "name": "formStateRestoreCallback",
408
+ "return": {
409
+ "type": {
410
+ "text": "void"
411
+ }
412
+ },
413
+ "parameters": [
414
+ {
415
+ "name": "state",
416
+ "type": {
417
+ "text": "string | FormData | null"
418
+ }
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "kind": "method",
424
+ "name": "checkValidity",
425
+ "return": {
426
+ "type": {
427
+ "text": "boolean"
428
+ }
429
+ },
430
+ "description": "Whether the editor's value satisfies its constraints."
431
+ },
432
+ {
433
+ "kind": "method",
434
+ "name": "reportValidity",
435
+ "return": {
436
+ "type": {
437
+ "text": "boolean"
438
+ }
439
+ },
440
+ "description": "Like `checkValidity()`, and shows the browser's message when invalid."
441
+ },
442
+ {
443
+ "kind": "method",
444
+ "name": "#afterChange",
445
+ "privacy": "private",
446
+ "return": {
447
+ "type": {
448
+ "text": "void"
449
+ }
450
+ },
451
+ "parameters": [
452
+ {
453
+ "name": "user",
454
+ "type": {
455
+ "text": "boolean"
456
+ }
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "kind": "method",
462
+ "name": "#unnest",
463
+ "privacy": "private",
464
+ "return": {
465
+ "type": {
466
+ "text": "void"
467
+ }
468
+ },
469
+ "parameters": [
470
+ {
471
+ "name": "editor",
472
+ "type": {
473
+ "text": "HTMLElement"
474
+ }
475
+ }
476
+ ],
477
+ "description": "Lifts lists, quotes and code blocks that an engine nested inside a paragraph or heading."
478
+ },
479
+ {
480
+ "kind": "method",
481
+ "name": "#isEmpty",
482
+ "privacy": "private",
483
+ "return": {
484
+ "type": {
485
+ "text": "boolean"
486
+ }
487
+ }
488
+ },
489
+ {
490
+ "kind": "method",
491
+ "name": "#selectionRange",
492
+ "privacy": "private",
493
+ "return": {
494
+ "type": {
495
+ "text": "Range | undefined"
496
+ }
497
+ }
498
+ },
499
+ {
500
+ "kind": "field",
501
+ "name": "#onSelectionChange",
502
+ "privacy": "private"
503
+ },
504
+ {
505
+ "kind": "method",
506
+ "name": "#activeTools",
507
+ "privacy": "private",
508
+ "return": {
509
+ "type": {
510
+ "text": "Set<Tool>"
511
+ }
512
+ },
513
+ "parameters": [
514
+ {
515
+ "name": "range",
516
+ "type": {
517
+ "text": "Range"
518
+ }
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "kind": "method",
524
+ "name": "#blockOf",
525
+ "privacy": "private",
526
+ "return": {
527
+ "type": {
528
+ "text": "HTMLElement | undefined"
529
+ }
530
+ },
531
+ "parameters": [
532
+ {
533
+ "name": "node",
534
+ "type": {
535
+ "text": "Node | null"
536
+ }
537
+ }
538
+ ],
539
+ "description": "The editor's direct child that contains `node`."
540
+ },
541
+ {
542
+ "kind": "method",
543
+ "name": "#restore",
544
+ "privacy": "private",
545
+ "return": {
546
+ "type": {
547
+ "text": "Range | undefined"
548
+ }
549
+ }
550
+ },
551
+ {
552
+ "kind": "method",
553
+ "name": "#exec",
554
+ "privacy": "private",
555
+ "return": {
556
+ "type": {
557
+ "text": "void"
558
+ }
559
+ },
560
+ "parameters": [
561
+ {
562
+ "name": "command",
563
+ "type": {
564
+ "text": "string"
565
+ }
566
+ },
567
+ {
568
+ "name": "value",
569
+ "optional": true,
570
+ "type": {
571
+ "text": "string"
572
+ }
573
+ }
574
+ ]
575
+ },
576
+ {
577
+ "kind": "method",
578
+ "name": "#apply",
579
+ "privacy": "private",
580
+ "return": {
581
+ "type": {
582
+ "text": "void"
583
+ }
584
+ },
585
+ "parameters": [
586
+ {
587
+ "name": "tool",
588
+ "type": {
589
+ "text": "Tool"
590
+ }
591
+ }
592
+ ],
593
+ "description": "Runs a toolbar action."
594
+ },
595
+ {
596
+ "kind": "method",
597
+ "name": "#toggleCode",
598
+ "privacy": "private",
599
+ "return": {
600
+ "type": {
601
+ "text": "void"
602
+ }
603
+ },
604
+ "parameters": [
605
+ {
606
+ "name": "range",
607
+ "type": {
608
+ "text": "Range"
609
+ }
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "kind": "method",
615
+ "name": "#select",
616
+ "privacy": "private",
617
+ "return": {
618
+ "type": {
619
+ "text": "void"
620
+ }
621
+ },
622
+ "parameters": [
623
+ {
624
+ "name": "node",
625
+ "type": {
626
+ "text": "Node"
627
+ }
628
+ },
629
+ {
630
+ "name": "collapseToEnd",
631
+ "default": "false"
632
+ }
633
+ ]
634
+ },
635
+ {
636
+ "kind": "method",
637
+ "name": "#openLink",
638
+ "privacy": "private",
639
+ "return": {
640
+ "type": {
641
+ "text": "void"
642
+ }
643
+ }
644
+ },
645
+ {
646
+ "kind": "method",
647
+ "name": "#closeLink",
648
+ "privacy": "private",
649
+ "return": {
650
+ "type": {
651
+ "text": "void"
652
+ }
653
+ },
654
+ "parameters": [
655
+ {
656
+ "name": "refocus",
657
+ "default": "true"
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "kind": "method",
663
+ "name": "#applyLink",
664
+ "privacy": "private",
665
+ "return": {
666
+ "type": {
667
+ "text": "void"
668
+ }
669
+ },
670
+ "parameters": [
671
+ {
672
+ "name": "raw",
673
+ "type": {
674
+ "text": "string"
675
+ }
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ "kind": "method",
681
+ "name": "#removeLink",
682
+ "privacy": "private",
683
+ "return": {
684
+ "type": {
685
+ "text": "void"
686
+ }
687
+ }
688
+ },
689
+ {
690
+ "kind": "method",
691
+ "name": "#linkAt",
692
+ "privacy": "private",
693
+ "return": {
694
+ "type": {
695
+ "text": "HTMLAnchorElement | undefined"
696
+ }
697
+ },
698
+ "parameters": [
699
+ {
700
+ "name": "range",
701
+ "type": {
702
+ "text": "Range"
703
+ }
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "kind": "method",
709
+ "name": "#caretAfter",
710
+ "privacy": "private",
711
+ "return": {
712
+ "type": {
713
+ "text": "void"
714
+ }
715
+ },
716
+ "parameters": [
717
+ {
718
+ "name": "node",
719
+ "type": {
720
+ "text": "Node"
721
+ }
722
+ }
723
+ ],
724
+ "description": "Puts the caret after an inline element; the next typed text goes outside it."
725
+ },
726
+ {
727
+ "kind": "method",
728
+ "name": "#atBoundary",
729
+ "privacy": "private",
730
+ "return": {
731
+ "type": {
732
+ "text": "boolean"
733
+ }
734
+ },
735
+ "parameters": [
736
+ {
737
+ "name": "node",
738
+ "type": {
739
+ "text": "Node"
740
+ }
741
+ },
742
+ {
743
+ "name": "range",
744
+ "type": {
745
+ "text": "Range"
746
+ }
747
+ }
748
+ ],
749
+ "description": "Whether the caret sits right after `node` (or at its very end), with nothing in between."
750
+ },
751
+ {
752
+ "kind": "field",
753
+ "name": "#onFocus",
754
+ "privacy": "private"
755
+ },
756
+ {
757
+ "kind": "field",
758
+ "name": "#onBlur",
759
+ "privacy": "private"
760
+ },
761
+ {
762
+ "kind": "field",
763
+ "name": "#onBeforeInput",
764
+ "privacy": "private"
765
+ },
766
+ {
767
+ "kind": "field",
768
+ "name": "#onInput",
769
+ "privacy": "private"
770
+ },
771
+ {
772
+ "kind": "field",
773
+ "name": "#onEditorKeydown",
774
+ "privacy": "private"
775
+ },
776
+ {
777
+ "kind": "field",
778
+ "name": "#onPaste",
779
+ "privacy": "private"
780
+ },
781
+ {
782
+ "kind": "field",
783
+ "name": "#onDrop",
784
+ "privacy": "private"
785
+ },
786
+ {
787
+ "kind": "method",
788
+ "name": "#insert",
789
+ "privacy": "private",
790
+ "return": {
791
+ "type": {
792
+ "text": "void"
793
+ }
794
+ },
795
+ "parameters": [
796
+ {
797
+ "name": "fragment",
798
+ "type": {
799
+ "text": "DocumentFragment"
800
+ }
801
+ }
802
+ ],
803
+ "description": "Inserts clean content at the caret, splitting the current block when the content has blocks."
804
+ },
805
+ {
806
+ "kind": "method",
807
+ "name": "#placeAfter",
808
+ "privacy": "private",
809
+ "return": {
810
+ "type": {
811
+ "text": "void"
812
+ }
813
+ },
814
+ "parameters": [
815
+ {
816
+ "name": "node",
817
+ "type": {
818
+ "text": "Node"
819
+ }
820
+ }
821
+ ]
822
+ },
823
+ {
824
+ "kind": "method",
825
+ "name": "#blockShortcut",
826
+ "privacy": "private",
827
+ "return": {
828
+ "type": {
829
+ "text": "boolean"
830
+ }
831
+ },
832
+ "description": "`## `, `- `, `1. `, `> ` and ``` at the start of a paragraph."
833
+ },
834
+ {
835
+ "kind": "method",
836
+ "name": "#inlineShortcut",
837
+ "privacy": "private",
838
+ "return": {
839
+ "type": {
840
+ "text": "void"
841
+ }
842
+ },
843
+ "description": "`**bold**`, `_italic_`, `~~strike~~` and `` `code` `` when the closing mark is typed."
844
+ },
845
+ {
846
+ "kind": "method",
847
+ "name": "#autolink",
848
+ "privacy": "private",
849
+ "return": {
850
+ "type": {
851
+ "text": "void"
852
+ }
853
+ },
854
+ "parameters": [
855
+ {
856
+ "name": "offset",
857
+ "type": {
858
+ "text": "number"
859
+ }
860
+ }
861
+ ],
862
+ "description": "Links a URL just typed before the caret (`offset` skips the space that triggered it)."
863
+ },
864
+ {
865
+ "kind": "method",
866
+ "name": "#buttons",
867
+ "privacy": "private",
868
+ "return": {
869
+ "type": {
870
+ "text": "HTMLButtonElement[]"
871
+ }
872
+ }
873
+ },
874
+ {
875
+ "kind": "field",
876
+ "name": "#onToolbarKeydown",
877
+ "privacy": "private"
878
+ },
879
+ {
880
+ "kind": "field",
881
+ "name": "#onLinkKeydown",
882
+ "privacy": "private"
883
+ },
884
+ {
885
+ "kind": "method",
886
+ "name": "#renderTool",
887
+ "privacy": "private",
888
+ "return": {
889
+ "type": {
890
+ "text": "TemplateResult"
891
+ }
892
+ },
893
+ "parameters": [
894
+ {
895
+ "name": "tool",
896
+ "type": {
897
+ "text": "Tool"
898
+ }
899
+ },
900
+ {
901
+ "name": "index",
902
+ "type": {
903
+ "text": "number"
904
+ }
905
+ }
906
+ ]
907
+ },
908
+ {
909
+ "kind": "method",
910
+ "name": "#renderLinkForm",
911
+ "privacy": "private",
912
+ "return": {
913
+ "type": {
914
+ "text": "TemplateResult | typeof nothing"
915
+ }
916
+ }
917
+ }
918
+ ],
919
+ "events": [
920
+ {
921
+ "name": "input",
922
+ "type": {
923
+ "text": "Event"
924
+ },
925
+ "description": "The content changed."
926
+ },
927
+ {
928
+ "description": "The content changed and the editor lost focus.",
929
+ "name": "change"
930
+ }
931
+ ],
932
+ "attributes": [
933
+ {
934
+ "name": "label",
935
+ "type": {
936
+ "text": "string | undefined"
937
+ },
938
+ "description": "Accessible name (and visible label) of the editing area.",
939
+ "fieldName": "label",
940
+ "attribute": "label"
941
+ },
942
+ {
943
+ "name": "placeholder",
944
+ "type": {
945
+ "text": "string | undefined"
946
+ },
947
+ "description": "Text shown while the editor is empty.",
948
+ "fieldName": "placeholder",
949
+ "attribute": "placeholder"
950
+ },
951
+ {
952
+ "name": "name",
953
+ "type": {
954
+ "text": "string | undefined"
955
+ },
956
+ "description": "Form field name for the sanitized HTML.",
957
+ "fieldName": "name",
958
+ "attribute": "name"
959
+ },
960
+ {
961
+ "name": "markdown-name",
962
+ "type": {
963
+ "text": "string | undefined"
964
+ },
965
+ "description": "Form field name for the Markdown version (optional).",
966
+ "fieldName": "markdownName",
967
+ "attribute": "markdown-name"
968
+ },
969
+ {
970
+ "name": "disabled",
971
+ "type": {
972
+ "text": "boolean"
973
+ },
974
+ "description": "Disables editing and the toolbar. A disabled ancestor fieldset also disables it.",
975
+ "fieldName": "disabled",
976
+ "attribute": "disabled",
977
+ "default": "false"
978
+ },
979
+ {
980
+ "name": "readonly",
981
+ "type": {
982
+ "text": "boolean"
983
+ },
984
+ "description": "Shows the content without allowing edits.",
985
+ "fieldName": "readOnly",
986
+ "attribute": "readonly",
987
+ "default": "false"
988
+ },
989
+ {
990
+ "name": "required",
991
+ "type": {
992
+ "text": "boolean"
993
+ },
994
+ "description": "Requires some text before the form submits.",
995
+ "fieldName": "required",
996
+ "attribute": "required",
997
+ "default": "false"
998
+ },
999
+ {
1000
+ "name": "no-toolbar",
1001
+ "type": {
1002
+ "text": "boolean"
1003
+ },
1004
+ "description": "Hides the toolbar (keyboard shortcuts and Markdown shortcuts still work).",
1005
+ "fieldName": "noToolbar",
1006
+ "attribute": "no-toolbar",
1007
+ "default": "false"
1008
+ },
1009
+ {
1010
+ "name": "value",
1011
+ "type": {
1012
+ "text": "string"
1013
+ },
1014
+ "description": "The content as sanitized HTML. Setting it sanitizes the input (never\ntrust it), so assigning user or server HTML is safe.",
1015
+ "fieldName": "value",
1016
+ "attribute": "value"
1017
+ }
1018
+ ],
1019
+ "superclass": {
1020
+ "name": "UndElement",
1021
+ "package": "@und-ui/core/base/UndElement"
1022
+ },
1023
+ "tagName": "und-rich-text-editor",
1024
+ "customElement": true,
1025
+ "summary": "A small, security-first rich text editor with Markdown shortcuts."
1026
+ }
1027
+ ],
1028
+ "exports": [
1029
+ {
1030
+ "kind": "js",
1031
+ "name": "setRichTextStrings",
1032
+ "declaration": {
1033
+ "name": "setRichTextStrings",
1034
+ "module": "src/components/rich-text-editor/rich-text-editor.ts"
1035
+ }
1036
+ },
1037
+ {
1038
+ "kind": "js",
1039
+ "name": "UndRichTextEditor",
1040
+ "declaration": {
1041
+ "name": "UndRichTextEditor",
1042
+ "module": "src/components/rich-text-editor/rich-text-editor.ts"
1043
+ }
1044
+ }
1045
+ ]
1046
+ }
1047
+ ]
1048
+ }