@kubex/zinc 1.0.103 → 1.0.104
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/custom-elements.json +520 -1
- package/dist/vscode.html-custom-data.json +67 -0
- package/dist/web-types.json +182 -1
- package/dist/zn.d.ts +101 -0
- package/dist/zn.min.js +476 -345
- package/docs/pages/components/markdown-editor.md +301 -0
- package/package.json +2 -1
- package/src/components/markdown-editor/index.ts +12 -0
- package/src/components/markdown-editor/markdown-editor.component.ts +332 -0
- package/src/components/markdown-editor/markdown-editor.scss +212 -0
- package/src/components/markdown-editor/markdown-editor.test.ts +22 -0
- package/src/zinc.ts +1 -0
|
@@ -16329,6 +16329,525 @@
|
|
|
16329
16329
|
}
|
|
16330
16330
|
]
|
|
16331
16331
|
},
|
|
16332
|
+
{
|
|
16333
|
+
"kind": "javascript-module",
|
|
16334
|
+
"path": "components/markdown-editor/markdown-editor.js",
|
|
16335
|
+
"declarations": [
|
|
16336
|
+
{
|
|
16337
|
+
"kind": "class",
|
|
16338
|
+
"description": "",
|
|
16339
|
+
"name": "ZnMarkdownEditor",
|
|
16340
|
+
"cssParts": [
|
|
16341
|
+
{
|
|
16342
|
+
"description": "The component's base wrapper.",
|
|
16343
|
+
"name": "base"
|
|
16344
|
+
},
|
|
16345
|
+
{
|
|
16346
|
+
"description": "The toolbar containing the view-mode and fullscreen controls.",
|
|
16347
|
+
"name": "toolbar"
|
|
16348
|
+
},
|
|
16349
|
+
{
|
|
16350
|
+
"description": "The textarea wrapper.",
|
|
16351
|
+
"name": "editor"
|
|
16352
|
+
},
|
|
16353
|
+
{
|
|
16354
|
+
"description": "The rendered markdown preview.",
|
|
16355
|
+
"name": "preview"
|
|
16356
|
+
}
|
|
16357
|
+
],
|
|
16358
|
+
"slots": [
|
|
16359
|
+
{
|
|
16360
|
+
"description": "The editor label. Alternatively, use the `label` attribute.",
|
|
16361
|
+
"name": "label"
|
|
16362
|
+
},
|
|
16363
|
+
{
|
|
16364
|
+
"description": "Help text shown below the editor. Alternatively, use the `help-text` attribute.",
|
|
16365
|
+
"name": "help-text"
|
|
16366
|
+
}
|
|
16367
|
+
],
|
|
16368
|
+
"members": [
|
|
16369
|
+
{
|
|
16370
|
+
"kind": "field",
|
|
16371
|
+
"name": "formControlController",
|
|
16372
|
+
"privacy": "private",
|
|
16373
|
+
"readonly": true,
|
|
16374
|
+
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-input', 'zn-change'], })"
|
|
16375
|
+
},
|
|
16376
|
+
{
|
|
16377
|
+
"kind": "field",
|
|
16378
|
+
"name": "hasSlotController",
|
|
16379
|
+
"privacy": "private",
|
|
16380
|
+
"readonly": true,
|
|
16381
|
+
"default": "new HasSlotController(this, 'label', 'help-text')"
|
|
16382
|
+
},
|
|
16383
|
+
{
|
|
16384
|
+
"kind": "field",
|
|
16385
|
+
"name": "debounceTimer",
|
|
16386
|
+
"type": {
|
|
16387
|
+
"text": "ReturnType<typeof setTimeout> | null"
|
|
16388
|
+
},
|
|
16389
|
+
"privacy": "private",
|
|
16390
|
+
"default": "null"
|
|
16391
|
+
},
|
|
16392
|
+
{
|
|
16393
|
+
"kind": "field",
|
|
16394
|
+
"name": "textarea",
|
|
16395
|
+
"type": {
|
|
16396
|
+
"text": "ZnTextarea"
|
|
16397
|
+
}
|
|
16398
|
+
},
|
|
16399
|
+
{
|
|
16400
|
+
"kind": "field",
|
|
16401
|
+
"name": "previewEl",
|
|
16402
|
+
"type": {
|
|
16403
|
+
"text": "HTMLDivElement"
|
|
16404
|
+
}
|
|
16405
|
+
},
|
|
16406
|
+
{
|
|
16407
|
+
"kind": "field",
|
|
16408
|
+
"name": "name",
|
|
16409
|
+
"type": {
|
|
16410
|
+
"text": "string"
|
|
16411
|
+
},
|
|
16412
|
+
"default": "''",
|
|
16413
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
16414
|
+
"attribute": "name"
|
|
16415
|
+
},
|
|
16416
|
+
{
|
|
16417
|
+
"kind": "field",
|
|
16418
|
+
"name": "value",
|
|
16419
|
+
"type": {
|
|
16420
|
+
"text": "string"
|
|
16421
|
+
},
|
|
16422
|
+
"default": "''",
|
|
16423
|
+
"description": "The current markdown content.",
|
|
16424
|
+
"attribute": "value"
|
|
16425
|
+
},
|
|
16426
|
+
{
|
|
16427
|
+
"kind": "field",
|
|
16428
|
+
"name": "defaultValue",
|
|
16429
|
+
"type": {
|
|
16430
|
+
"text": "string"
|
|
16431
|
+
},
|
|
16432
|
+
"default": "''",
|
|
16433
|
+
"description": "The default value — used when resetting the form."
|
|
16434
|
+
},
|
|
16435
|
+
{
|
|
16436
|
+
"kind": "field",
|
|
16437
|
+
"name": "label",
|
|
16438
|
+
"type": {
|
|
16439
|
+
"text": "string"
|
|
16440
|
+
},
|
|
16441
|
+
"default": "''",
|
|
16442
|
+
"description": "The control's label. If you need HTML, use the `label` slot.",
|
|
16443
|
+
"attribute": "label"
|
|
16444
|
+
},
|
|
16445
|
+
{
|
|
16446
|
+
"kind": "field",
|
|
16447
|
+
"name": "helpText",
|
|
16448
|
+
"type": {
|
|
16449
|
+
"text": "string"
|
|
16450
|
+
},
|
|
16451
|
+
"default": "''",
|
|
16452
|
+
"description": "Help text displayed below the editor. If you need HTML, use the `help-text` slot.",
|
|
16453
|
+
"attribute": "help-text"
|
|
16454
|
+
},
|
|
16455
|
+
{
|
|
16456
|
+
"kind": "field",
|
|
16457
|
+
"name": "placeholder",
|
|
16458
|
+
"type": {
|
|
16459
|
+
"text": "string"
|
|
16460
|
+
},
|
|
16461
|
+
"default": "'Enter markdown content...'",
|
|
16462
|
+
"description": "Placeholder text shown when the editor is empty.",
|
|
16463
|
+
"attribute": "placeholder"
|
|
16464
|
+
},
|
|
16465
|
+
{
|
|
16466
|
+
"kind": "field",
|
|
16467
|
+
"name": "rows",
|
|
16468
|
+
"type": {
|
|
16469
|
+
"text": "number"
|
|
16470
|
+
},
|
|
16471
|
+
"default": "20",
|
|
16472
|
+
"description": "Number of rows for the textarea.",
|
|
16473
|
+
"attribute": "rows"
|
|
16474
|
+
},
|
|
16475
|
+
{
|
|
16476
|
+
"kind": "field",
|
|
16477
|
+
"name": "viewMode",
|
|
16478
|
+
"type": {
|
|
16479
|
+
"text": "ViewMode"
|
|
16480
|
+
},
|
|
16481
|
+
"default": "'editor'",
|
|
16482
|
+
"description": "Which view to show.",
|
|
16483
|
+
"attribute": "view-mode",
|
|
16484
|
+
"reflects": true
|
|
16485
|
+
},
|
|
16486
|
+
{
|
|
16487
|
+
"kind": "field",
|
|
16488
|
+
"name": "storageKey",
|
|
16489
|
+
"type": {
|
|
16490
|
+
"text": "string"
|
|
16491
|
+
},
|
|
16492
|
+
"default": "'zn-markdown-editor-view-mode'",
|
|
16493
|
+
"description": "Key used to persist the selected view mode to `localStorage`. Set to an empty string to disable persistence.",
|
|
16494
|
+
"attribute": "storage-key"
|
|
16495
|
+
},
|
|
16496
|
+
{
|
|
16497
|
+
"kind": "field",
|
|
16498
|
+
"name": "required",
|
|
16499
|
+
"type": {
|
|
16500
|
+
"text": "boolean"
|
|
16501
|
+
},
|
|
16502
|
+
"default": "false",
|
|
16503
|
+
"description": "Makes the editor required for form submission.",
|
|
16504
|
+
"attribute": "required",
|
|
16505
|
+
"reflects": true
|
|
16506
|
+
},
|
|
16507
|
+
{
|
|
16508
|
+
"kind": "field",
|
|
16509
|
+
"name": "readonly",
|
|
16510
|
+
"type": {
|
|
16511
|
+
"text": "boolean"
|
|
16512
|
+
},
|
|
16513
|
+
"default": "false",
|
|
16514
|
+
"description": "Makes the editor read-only.",
|
|
16515
|
+
"attribute": "readonly",
|
|
16516
|
+
"reflects": true
|
|
16517
|
+
},
|
|
16518
|
+
{
|
|
16519
|
+
"kind": "field",
|
|
16520
|
+
"name": "disabled",
|
|
16521
|
+
"type": {
|
|
16522
|
+
"text": "boolean"
|
|
16523
|
+
},
|
|
16524
|
+
"default": "false",
|
|
16525
|
+
"description": "Disables the editor.",
|
|
16526
|
+
"attribute": "disabled",
|
|
16527
|
+
"reflects": true
|
|
16528
|
+
},
|
|
16529
|
+
{
|
|
16530
|
+
"kind": "field",
|
|
16531
|
+
"name": "expanded",
|
|
16532
|
+
"type": {
|
|
16533
|
+
"text": "boolean"
|
|
16534
|
+
},
|
|
16535
|
+
"default": "false",
|
|
16536
|
+
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor."
|
|
16537
|
+
},
|
|
16538
|
+
{
|
|
16539
|
+
"kind": "field",
|
|
16540
|
+
"name": "validity",
|
|
16541
|
+
"type": {
|
|
16542
|
+
"text": "ValidityState"
|
|
16543
|
+
},
|
|
16544
|
+
"readonly": true
|
|
16545
|
+
},
|
|
16546
|
+
{
|
|
16547
|
+
"kind": "field",
|
|
16548
|
+
"name": "validationMessage",
|
|
16549
|
+
"type": {
|
|
16550
|
+
"text": "string"
|
|
16551
|
+
},
|
|
16552
|
+
"readonly": true
|
|
16553
|
+
},
|
|
16554
|
+
{
|
|
16555
|
+
"kind": "method",
|
|
16556
|
+
"name": "checkValidity",
|
|
16557
|
+
"return": {
|
|
16558
|
+
"type": {
|
|
16559
|
+
"text": "boolean"
|
|
16560
|
+
}
|
|
16561
|
+
}
|
|
16562
|
+
},
|
|
16563
|
+
{
|
|
16564
|
+
"kind": "method",
|
|
16565
|
+
"name": "getForm",
|
|
16566
|
+
"return": {
|
|
16567
|
+
"type": {
|
|
16568
|
+
"text": "HTMLFormElement | null"
|
|
16569
|
+
}
|
|
16570
|
+
}
|
|
16571
|
+
},
|
|
16572
|
+
{
|
|
16573
|
+
"kind": "method",
|
|
16574
|
+
"name": "reportValidity",
|
|
16575
|
+
"return": {
|
|
16576
|
+
"type": {
|
|
16577
|
+
"text": "boolean"
|
|
16578
|
+
}
|
|
16579
|
+
}
|
|
16580
|
+
},
|
|
16581
|
+
{
|
|
16582
|
+
"kind": "method",
|
|
16583
|
+
"name": "setCustomValidity",
|
|
16584
|
+
"return": {
|
|
16585
|
+
"type": {
|
|
16586
|
+
"text": "void"
|
|
16587
|
+
}
|
|
16588
|
+
},
|
|
16589
|
+
"parameters": [
|
|
16590
|
+
{
|
|
16591
|
+
"name": "message",
|
|
16592
|
+
"type": {
|
|
16593
|
+
"text": "string"
|
|
16594
|
+
}
|
|
16595
|
+
}
|
|
16596
|
+
]
|
|
16597
|
+
},
|
|
16598
|
+
{
|
|
16599
|
+
"kind": "method",
|
|
16600
|
+
"name": "focus",
|
|
16601
|
+
"parameters": [
|
|
16602
|
+
{
|
|
16603
|
+
"name": "options",
|
|
16604
|
+
"optional": true,
|
|
16605
|
+
"type": {
|
|
16606
|
+
"text": "FocusOptions"
|
|
16607
|
+
}
|
|
16608
|
+
}
|
|
16609
|
+
],
|
|
16610
|
+
"description": "Sets focus on the editor."
|
|
16611
|
+
},
|
|
16612
|
+
{
|
|
16613
|
+
"kind": "method",
|
|
16614
|
+
"name": "blur",
|
|
16615
|
+
"description": "Removes focus from the editor."
|
|
16616
|
+
},
|
|
16617
|
+
{
|
|
16618
|
+
"kind": "method",
|
|
16619
|
+
"name": "readStoredViewMode",
|
|
16620
|
+
"privacy": "private",
|
|
16621
|
+
"return": {
|
|
16622
|
+
"type": {
|
|
16623
|
+
"text": "ViewMode | null"
|
|
16624
|
+
}
|
|
16625
|
+
}
|
|
16626
|
+
},
|
|
16627
|
+
{
|
|
16628
|
+
"kind": "method",
|
|
16629
|
+
"name": "writeStoredViewMode",
|
|
16630
|
+
"privacy": "private",
|
|
16631
|
+
"parameters": [
|
|
16632
|
+
{
|
|
16633
|
+
"name": "mode",
|
|
16634
|
+
"type": {
|
|
16635
|
+
"text": "ViewMode"
|
|
16636
|
+
}
|
|
16637
|
+
}
|
|
16638
|
+
]
|
|
16639
|
+
},
|
|
16640
|
+
{
|
|
16641
|
+
"kind": "method",
|
|
16642
|
+
"name": "renderPreview",
|
|
16643
|
+
"privacy": "private"
|
|
16644
|
+
},
|
|
16645
|
+
{
|
|
16646
|
+
"kind": "field",
|
|
16647
|
+
"name": "handleInput",
|
|
16648
|
+
"privacy": "private"
|
|
16649
|
+
},
|
|
16650
|
+
{
|
|
16651
|
+
"kind": "field",
|
|
16652
|
+
"name": "handleChange",
|
|
16653
|
+
"privacy": "private"
|
|
16654
|
+
},
|
|
16655
|
+
{
|
|
16656
|
+
"kind": "field",
|
|
16657
|
+
"name": "handleViewToggle",
|
|
16658
|
+
"privacy": "private"
|
|
16659
|
+
},
|
|
16660
|
+
{
|
|
16661
|
+
"kind": "field",
|
|
16662
|
+
"name": "handleExpandToggle",
|
|
16663
|
+
"privacy": "private"
|
|
16664
|
+
},
|
|
16665
|
+
{
|
|
16666
|
+
"kind": "method",
|
|
16667
|
+
"name": "handleViewModeChange"
|
|
16668
|
+
},
|
|
16669
|
+
{
|
|
16670
|
+
"kind": "method",
|
|
16671
|
+
"name": "handleValueChange"
|
|
16672
|
+
},
|
|
16673
|
+
{
|
|
16674
|
+
"kind": "method",
|
|
16675
|
+
"name": "handleMarkedReady"
|
|
16676
|
+
},
|
|
16677
|
+
{
|
|
16678
|
+
"kind": "method",
|
|
16679
|
+
"name": "renderViewButton",
|
|
16680
|
+
"privacy": "private",
|
|
16681
|
+
"parameters": [
|
|
16682
|
+
{
|
|
16683
|
+
"name": "mode",
|
|
16684
|
+
"type": {
|
|
16685
|
+
"text": "ViewMode"
|
|
16686
|
+
}
|
|
16687
|
+
},
|
|
16688
|
+
{
|
|
16689
|
+
"name": "icon",
|
|
16690
|
+
"type": {
|
|
16691
|
+
"text": "string"
|
|
16692
|
+
}
|
|
16693
|
+
},
|
|
16694
|
+
{
|
|
16695
|
+
"name": "label",
|
|
16696
|
+
"type": {
|
|
16697
|
+
"text": "string"
|
|
16698
|
+
}
|
|
16699
|
+
}
|
|
16700
|
+
]
|
|
16701
|
+
}
|
|
16702
|
+
],
|
|
16703
|
+
"events": [
|
|
16704
|
+
{
|
|
16705
|
+
"name": "zn-view-mode-change",
|
|
16706
|
+
"type": {
|
|
16707
|
+
"text": "CustomEvent"
|
|
16708
|
+
},
|
|
16709
|
+
"description": "Emitted when the user switches between editor / split / preview."
|
|
16710
|
+
},
|
|
16711
|
+
{
|
|
16712
|
+
"description": "Emitted when the markdown content changes.",
|
|
16713
|
+
"name": "zn-change"
|
|
16714
|
+
},
|
|
16715
|
+
{
|
|
16716
|
+
"description": "Emitted on each keystroke in the editor.",
|
|
16717
|
+
"name": "zn-input"
|
|
16718
|
+
}
|
|
16719
|
+
],
|
|
16720
|
+
"attributes": [
|
|
16721
|
+
{
|
|
16722
|
+
"name": "name",
|
|
16723
|
+
"type": {
|
|
16724
|
+
"text": "string"
|
|
16725
|
+
},
|
|
16726
|
+
"default": "''",
|
|
16727
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
16728
|
+
"fieldName": "name"
|
|
16729
|
+
},
|
|
16730
|
+
{
|
|
16731
|
+
"name": "value",
|
|
16732
|
+
"type": {
|
|
16733
|
+
"text": "string"
|
|
16734
|
+
},
|
|
16735
|
+
"default": "''",
|
|
16736
|
+
"description": "The current markdown content.",
|
|
16737
|
+
"fieldName": "value"
|
|
16738
|
+
},
|
|
16739
|
+
{
|
|
16740
|
+
"name": "label",
|
|
16741
|
+
"type": {
|
|
16742
|
+
"text": "string"
|
|
16743
|
+
},
|
|
16744
|
+
"default": "''",
|
|
16745
|
+
"description": "The control's label. If you need HTML, use the `label` slot.",
|
|
16746
|
+
"fieldName": "label"
|
|
16747
|
+
},
|
|
16748
|
+
{
|
|
16749
|
+
"name": "help-text",
|
|
16750
|
+
"type": {
|
|
16751
|
+
"text": "string"
|
|
16752
|
+
},
|
|
16753
|
+
"default": "''",
|
|
16754
|
+
"description": "Help text displayed below the editor. If you need HTML, use the `help-text` slot.",
|
|
16755
|
+
"fieldName": "helpText"
|
|
16756
|
+
},
|
|
16757
|
+
{
|
|
16758
|
+
"name": "placeholder",
|
|
16759
|
+
"type": {
|
|
16760
|
+
"text": "string"
|
|
16761
|
+
},
|
|
16762
|
+
"default": "'Enter markdown content...'",
|
|
16763
|
+
"description": "Placeholder text shown when the editor is empty.",
|
|
16764
|
+
"fieldName": "placeholder"
|
|
16765
|
+
},
|
|
16766
|
+
{
|
|
16767
|
+
"name": "rows",
|
|
16768
|
+
"type": {
|
|
16769
|
+
"text": "number"
|
|
16770
|
+
},
|
|
16771
|
+
"default": "20",
|
|
16772
|
+
"description": "Number of rows for the textarea.",
|
|
16773
|
+
"fieldName": "rows"
|
|
16774
|
+
},
|
|
16775
|
+
{
|
|
16776
|
+
"name": "view-mode",
|
|
16777
|
+
"type": {
|
|
16778
|
+
"text": "ViewMode"
|
|
16779
|
+
},
|
|
16780
|
+
"default": "'editor'",
|
|
16781
|
+
"description": "Which view to show.",
|
|
16782
|
+
"fieldName": "viewMode"
|
|
16783
|
+
},
|
|
16784
|
+
{
|
|
16785
|
+
"name": "storage-key",
|
|
16786
|
+
"type": {
|
|
16787
|
+
"text": "string"
|
|
16788
|
+
},
|
|
16789
|
+
"default": "'zn-markdown-editor-view-mode'",
|
|
16790
|
+
"description": "Key used to persist the selected view mode to `localStorage`. Set to an empty string to disable persistence.",
|
|
16791
|
+
"fieldName": "storageKey"
|
|
16792
|
+
},
|
|
16793
|
+
{
|
|
16794
|
+
"name": "required",
|
|
16795
|
+
"type": {
|
|
16796
|
+
"text": "boolean"
|
|
16797
|
+
},
|
|
16798
|
+
"default": "false",
|
|
16799
|
+
"description": "Makes the editor required for form submission.",
|
|
16800
|
+
"fieldName": "required"
|
|
16801
|
+
},
|
|
16802
|
+
{
|
|
16803
|
+
"name": "readonly",
|
|
16804
|
+
"type": {
|
|
16805
|
+
"text": "boolean"
|
|
16806
|
+
},
|
|
16807
|
+
"default": "false",
|
|
16808
|
+
"description": "Makes the editor read-only.",
|
|
16809
|
+
"fieldName": "readonly"
|
|
16810
|
+
},
|
|
16811
|
+
{
|
|
16812
|
+
"name": "disabled",
|
|
16813
|
+
"type": {
|
|
16814
|
+
"text": "boolean"
|
|
16815
|
+
},
|
|
16816
|
+
"default": "false",
|
|
16817
|
+
"description": "Disables the editor.",
|
|
16818
|
+
"fieldName": "disabled"
|
|
16819
|
+
}
|
|
16820
|
+
],
|
|
16821
|
+
"superclass": {
|
|
16822
|
+
"name": "ZincElement",
|
|
16823
|
+
"module": "/src/internal/zinc-element"
|
|
16824
|
+
},
|
|
16825
|
+
"summary": "A markdown editor with live preview, split view, and a fullscreen mode.",
|
|
16826
|
+
"tagNameWithoutPrefix": "markdown-editor",
|
|
16827
|
+
"tagName": "zn-markdown-editor",
|
|
16828
|
+
"customElement": true,
|
|
16829
|
+
"jsDoc": "/**\n * @summary A markdown editor with live preview, split view, and a fullscreen mode.\n * @documentation https://zinc.style/components/markdown-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-textarea\n * @dependency zn-button-group\n * @dependency zn-icon\n *\n * @event zn-change - Emitted when the markdown content changes.\n * @event zn-input - Emitted on each keystroke in the editor.\n * @event zn-view-mode-change - Emitted when the user switches between editor / split / preview.\n *\n * @slot label - The editor label. Alternatively, use the `label` attribute.\n * @slot help-text - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The toolbar containing the view-mode and fullscreen controls.\n * @csspart editor - The textarea wrapper.\n * @csspart preview - The rendered markdown preview.\n */",
|
|
16830
|
+
"documentation": "https://zinc.style/components/markdown-editor",
|
|
16831
|
+
"status": "experimental",
|
|
16832
|
+
"since": "1.0",
|
|
16833
|
+
"dependencies": [
|
|
16834
|
+
"zn-textarea",
|
|
16835
|
+
"zn-button-group",
|
|
16836
|
+
"zn-icon"
|
|
16837
|
+
]
|
|
16838
|
+
}
|
|
16839
|
+
],
|
|
16840
|
+
"exports": [
|
|
16841
|
+
{
|
|
16842
|
+
"kind": "js",
|
|
16843
|
+
"name": "default",
|
|
16844
|
+
"declaration": {
|
|
16845
|
+
"name": "ZnMarkdownEditor",
|
|
16846
|
+
"module": "components/markdown-editor/markdown-editor.js"
|
|
16847
|
+
}
|
|
16848
|
+
}
|
|
16849
|
+
]
|
|
16850
|
+
},
|
|
16332
16851
|
{
|
|
16333
16852
|
"kind": "javascript-module",
|
|
16334
16853
|
"path": "components/menu/menu.js",
|
|
@@ -32043,7 +32562,7 @@
|
|
|
32043
32562
|
"package": {
|
|
32044
32563
|
"name": "@kubex/zinc",
|
|
32045
32564
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
32046
|
-
"version": "1.0.
|
|
32565
|
+
"version": "1.0.104",
|
|
32047
32566
|
"author": "",
|
|
32048
32567
|
"license": "MIT"
|
|
32049
32568
|
}
|
|
@@ -1954,6 +1954,73 @@
|
|
|
1954
1954
|
}
|
|
1955
1955
|
]
|
|
1956
1956
|
},
|
|
1957
|
+
{
|
|
1958
|
+
"name": "zn-markdown-editor",
|
|
1959
|
+
"description": "A markdown editor with live preview, split view, and a fullscreen mode.\n---\n\n\n### **Events:**\n - **zn-view-mode-change** - Emitted when the user switches between editor / split / preview.\n- **zn-change** - Emitted when the markdown content changes.\n- **zn-input** - Emitted on each keystroke in the editor.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the editor.\n- **blur()** - Removes focus from the editor.\n\n### **Slots:**\n - **label** - The editor label. Alternatively, use the `label` attribute.\n- **help-text** - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The toolbar containing the view-mode and fullscreen controls.\n- **editor** - The textarea wrapper.\n- **preview** - The rendered markdown preview.",
|
|
1960
|
+
"attributes": [
|
|
1961
|
+
{
|
|
1962
|
+
"name": "name",
|
|
1963
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
1964
|
+
"values": []
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "value",
|
|
1968
|
+
"description": "The current markdown content.",
|
|
1969
|
+
"values": []
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"name": "label",
|
|
1973
|
+
"description": "The control's label. If you need HTML, use the `label` slot.",
|
|
1974
|
+
"values": []
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"name": "help-text",
|
|
1978
|
+
"description": "Help text displayed below the editor. If you need HTML, use the `help-text` slot.",
|
|
1979
|
+
"values": []
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"name": "placeholder",
|
|
1983
|
+
"description": "Placeholder text shown when the editor is empty.",
|
|
1984
|
+
"values": []
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
"name": "rows",
|
|
1988
|
+
"description": "Number of rows for the textarea.",
|
|
1989
|
+
"values": []
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
"name": "view-mode",
|
|
1993
|
+
"description": "Which view to show.",
|
|
1994
|
+
"values": [{ "name": "ViewMode" }]
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
"name": "storage-key",
|
|
1998
|
+
"description": "Key used to persist the selected view mode to `localStorage`. Set to an empty string to disable persistence.",
|
|
1999
|
+
"values": []
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
"name": "required",
|
|
2003
|
+
"description": "Makes the editor required for form submission.",
|
|
2004
|
+
"values": []
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
"name": "readonly",
|
|
2008
|
+
"description": "Makes the editor read-only.",
|
|
2009
|
+
"values": []
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "disabled",
|
|
2013
|
+
"description": "Disables the editor.",
|
|
2014
|
+
"values": []
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
"references": [
|
|
2018
|
+
{
|
|
2019
|
+
"name": "Documentation",
|
|
2020
|
+
"url": "https://zinc.style/components/markdown-editor"
|
|
2021
|
+
}
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
1957
2024
|
{
|
|
1958
2025
|
"name": "zn-menu",
|
|
1959
2026
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|