@raylang/elements 0.8.0 → 0.9.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.
- package/components/code/code.js +8 -5
- package/components/command-palette/command-palette.js +16 -1
- package/components/doc-tabs/doc-tabs.js +255 -0
- package/components/icon-button/icon-button.js +4 -0
- package/components/input/input.js +13 -1
- package/components/menu/menu.js +42 -7
- package/components/mode-input/mode-input.js +221 -0
- package/components/sidebar/sidebar.js +140 -5
- package/components/split/split.js +13 -1
- package/components/tabs/tabs.js +44 -6
- package/components/textarea/textarea.js +13 -1
- package/core/complete.js +252 -0
- package/core/scroll.js +85 -1
- package/core/textlayer.js +214 -0
- package/custom-elements.json +1414 -88
- package/index.js +2 -0
- package/llms-full.txt +184 -12
- package/llms.txt +7 -3
- package/package.json +9 -1
- package/ray-elements.d.ts +158 -6
- package/vscode.html-custom-data.json +397 -4
|
@@ -1599,6 +1599,242 @@
|
|
|
1599
1599
|
}
|
|
1600
1600
|
]
|
|
1601
1601
|
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "suggestions-label",
|
|
1604
|
+
"description": "Accessible name of the suggestion list."
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "autocomplete",
|
|
1608
|
+
"description": "Forwarded to the inner input."
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"name": "inputmode",
|
|
1612
|
+
"description": "Virtual keyboard hint."
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"name": "pattern",
|
|
1616
|
+
"description": "Validation pattern (regular expression)."
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "min",
|
|
1620
|
+
"description": "Minimum (number/date types)."
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"name": "max",
|
|
1624
|
+
"description": "Maximum (number/date types)."
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "step",
|
|
1628
|
+
"description": "Step (number types)."
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"name": "minlength",
|
|
1632
|
+
"description": "Minimum length."
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"name": "maxlength",
|
|
1636
|
+
"description": "Maximum length."
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"name": "autocapitalize",
|
|
1640
|
+
"description": "Mobile auto-capitalization."
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"name": "enterkeyhint",
|
|
1644
|
+
"description": "Label of the Enter key on virtual keyboards."
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"name": "list",
|
|
1648
|
+
"description": "Id of a <datalist> with suggestions."
|
|
1649
|
+
}
|
|
1650
|
+
]
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"name": "ray-mode-input",
|
|
1654
|
+
"description": "Declare the modes as <option> children (label, data-icon, data-hint, data-description, disabled, and data-set-<attribute> for each attribute the mode sets on the field) or with the options property. A mode's attributes replace the field's own while it is chosen and give them back after. The menu is a ray-menu of radio items in the field's shadow root; Alt+ArrowDown opens it from the field, and the trigger keeps the caret in the field.",
|
|
1655
|
+
"attributes": [
|
|
1656
|
+
{
|
|
1657
|
+
"name": "mode",
|
|
1658
|
+
"description": "The chosen mode's value (default: the first). Setting it applies that mode without ray-mode-change."
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "display",
|
|
1662
|
+
"description": "What the trigger shows: the mode's hint or label, its icon, or both. Default: the icon when the mode has one, else the label.",
|
|
1663
|
+
"values": [
|
|
1664
|
+
{
|
|
1665
|
+
"name": "label"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"name": "icon"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"name": "both"
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"name": "position",
|
|
1677
|
+
"description": "The side of the field the trigger sits on.",
|
|
1678
|
+
"values": [
|
|
1679
|
+
{
|
|
1680
|
+
"name": "start"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"name": "end"
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"name": "menu-label",
|
|
1689
|
+
"description": "The trigger's accessible name, read with the current mode (\"Mode: File\")."
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "native-menu",
|
|
1693
|
+
"description": "With a native host (a std/ui window with the bridge), the system's menu (no descriptions there).",
|
|
1694
|
+
"valueSet": "v"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "value",
|
|
1698
|
+
"description": "Current value. The value attribute is the initial value (restored on form reset)."
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "type",
|
|
1702
|
+
"description": "Input type.",
|
|
1703
|
+
"values": [
|
|
1704
|
+
{
|
|
1705
|
+
"name": "text"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "email"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "password"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"name": "search"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"name": "number"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "url"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "tel"
|
|
1724
|
+
}
|
|
1725
|
+
]
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "name",
|
|
1729
|
+
"description": "Form field name."
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "label",
|
|
1733
|
+
"description": "Visible label (also the accessible name)."
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "description",
|
|
1737
|
+
"description": "Help text under the label."
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"name": "description-position",
|
|
1741
|
+
"description": "The description before the control (help first) or after it, with the error (fields in a row stay aligned).",
|
|
1742
|
+
"values": [
|
|
1743
|
+
{
|
|
1744
|
+
"name": "above"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "below"
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "error",
|
|
1753
|
+
"description": "Error text; marks the field invalid (display only — does not block submit)."
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"name": "placeholder",
|
|
1757
|
+
"description": "Placeholder text."
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"name": "required",
|
|
1761
|
+
"description": "Required for form submission; shows an asterisk.",
|
|
1762
|
+
"valueSet": "v"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"name": "disabled",
|
|
1766
|
+
"description": "Not editable nor submitted.",
|
|
1767
|
+
"valueSet": "v"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "readonly",
|
|
1771
|
+
"description": "Not editable, still submitted.",
|
|
1772
|
+
"valueSet": "v"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "size",
|
|
1776
|
+
"description": "Height and font size.",
|
|
1777
|
+
"values": [
|
|
1778
|
+
{
|
|
1779
|
+
"name": "xs"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "sm"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "md"
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"name": "lg"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"name": "xl"
|
|
1792
|
+
}
|
|
1793
|
+
]
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"name": "radius",
|
|
1797
|
+
"description": "Corner radius.",
|
|
1798
|
+
"values": [
|
|
1799
|
+
{
|
|
1800
|
+
"name": "xs"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"name": "sm"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "md"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "lg"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"name": "xl"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"name": "full"
|
|
1816
|
+
}
|
|
1817
|
+
]
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"name": "variant",
|
|
1821
|
+
"description": "Box style.",
|
|
1822
|
+
"values": [
|
|
1823
|
+
{
|
|
1824
|
+
"name": "default"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "filled"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "unstyled"
|
|
1831
|
+
}
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "suggestions-label",
|
|
1836
|
+
"description": "Accessible name of the suggestion list."
|
|
1837
|
+
},
|
|
1602
1838
|
{
|
|
1603
1839
|
"name": "autocomplete",
|
|
1604
1840
|
"description": "Forwarded to the inner input."
|
|
@@ -1981,6 +2217,10 @@
|
|
|
1981
2217
|
}
|
|
1982
2218
|
]
|
|
1983
2219
|
},
|
|
2220
|
+
{
|
|
2221
|
+
"name": "suggestions-label",
|
|
2222
|
+
"description": "Accessible name of the suggestion list."
|
|
2223
|
+
},
|
|
1984
2224
|
{
|
|
1985
2225
|
"name": "autocomplete",
|
|
1986
2226
|
"description": "Forwarded to the inner input."
|
|
@@ -2196,6 +2436,10 @@
|
|
|
2196
2436
|
}
|
|
2197
2437
|
]
|
|
2198
2438
|
},
|
|
2439
|
+
{
|
|
2440
|
+
"name": "suggestions-label",
|
|
2441
|
+
"description": "Accessible name of the suggestion list."
|
|
2442
|
+
},
|
|
2199
2443
|
{
|
|
2200
2444
|
"name": "autocomplete",
|
|
2201
2445
|
"description": "Forwarded to the inner input."
|
|
@@ -3166,6 +3410,10 @@
|
|
|
3166
3410
|
}
|
|
3167
3411
|
]
|
|
3168
3412
|
},
|
|
3413
|
+
{
|
|
3414
|
+
"name": "suggestions-label",
|
|
3415
|
+
"description": "Accessible name of the suggestion list."
|
|
3416
|
+
},
|
|
3169
3417
|
{
|
|
3170
3418
|
"name": "radius",
|
|
3171
3419
|
"description": "Corner radius.",
|
|
@@ -3523,6 +3771,52 @@
|
|
|
3523
3771
|
}
|
|
3524
3772
|
]
|
|
3525
3773
|
},
|
|
3774
|
+
{
|
|
3775
|
+
"name": "ray-doc-tabs",
|
|
3776
|
+
"description": "Unlike ray-tabs, a tab has no panel of its own: they all control the element named by panel, whose content the app fills for the selected one. Closing is the app's: the ×, a middle click or Delete/Backspace fire ray-request-close, and the app removes the tab (after asking about unsaved changes, if it must). When the selected tab is removed, the one at its place is selected (change) and, if the closed tab had the focus, focused. More tabs than width: the bar scrolls sideways, fades the edge that hides tabs (data-overflow-start / data-overflow-end on the host), scrolls with a vertical wheel and keeps the selected tab in view.",
|
|
3777
|
+
"attributes": [
|
|
3778
|
+
{
|
|
3779
|
+
"name": "value",
|
|
3780
|
+
"description": "Value of the selected tab (default: the first)."
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"name": "panel",
|
|
3784
|
+
"description": "The id of the shared panel: it gets role=tabpanel and aria-labelledby the selected tab; the tabs get aria-controls."
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"name": "label",
|
|
3788
|
+
"description": "Accessible name of the tab list (\"Open requests\")."
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"name": "close-label",
|
|
3792
|
+
"description": "Tooltip of the ×."
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
"name": "dirty-label",
|
|
3796
|
+
"description": "What assistive technology hears after the name of a dirty tab."
|
|
3797
|
+
}
|
|
3798
|
+
]
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"name": "ray-doc-tab",
|
|
3802
|
+
"description": "A document's tab: an icon or tag (slot left), its name (cut with an ellipsis; give the full one in title), and the × or the unsaved dot.",
|
|
3803
|
+
"attributes": [
|
|
3804
|
+
{
|
|
3805
|
+
"name": "value",
|
|
3806
|
+
"description": "Identifies the document (ray-doc-tabs value)."
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"name": "dirty",
|
|
3810
|
+
"description": "Unsaved changes: a dot in place of the ×, which comes back under the pointer.",
|
|
3811
|
+
"valueSet": "v"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"name": "hide-close",
|
|
3815
|
+
"description": "Cannot be closed: no ×, no middle click, no Delete.",
|
|
3816
|
+
"valueSet": "v"
|
|
3817
|
+
}
|
|
3818
|
+
]
|
|
3819
|
+
},
|
|
3526
3820
|
{
|
|
3527
3821
|
"name": "ray-nav-link",
|
|
3528
3822
|
"description": "A link with href (aria-current=page when active), or a button that toggles its nested links.",
|
|
@@ -3676,9 +3970,21 @@
|
|
|
3676
3970
|
"attributes": [
|
|
3677
3971
|
{
|
|
3678
3972
|
"name": "collapsed",
|
|
3679
|
-
"description": "Wide screens: an icon rail
|
|
3973
|
+
"description": "Wide screens: collapsed as collapse says (an icon rail, or out of view).",
|
|
3680
3974
|
"valueSet": "v"
|
|
3681
3975
|
},
|
|
3976
|
+
{
|
|
3977
|
+
"name": "collapse",
|
|
3978
|
+
"description": "What collapsed does on wide screens: icon, a rail of the nav links' icons; offcanvas, hidden entirely (no width, out of the tab order).",
|
|
3979
|
+
"values": [
|
|
3980
|
+
{
|
|
3981
|
+
"name": "icon"
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
"name": "offcanvas"
|
|
3985
|
+
}
|
|
3986
|
+
]
|
|
3987
|
+
},
|
|
3682
3988
|
{
|
|
3683
3989
|
"name": "open",
|
|
3684
3990
|
"description": "Narrow screens: the drawer is shown (modal, focus trapped; Escape, backdrop click or a followed link close it).",
|
|
@@ -3729,6 +4035,27 @@
|
|
|
3729
4035
|
{
|
|
3730
4036
|
"name": "label",
|
|
3731
4037
|
"description": "Accessible name of its navigation."
|
|
4038
|
+
},
|
|
4039
|
+
{
|
|
4040
|
+
"name": "resizable",
|
|
4041
|
+
"description": "Wide screens, expanded: its inner edge drags (or, focused, arrow-keys; Shift is faster, Home/End go to the limits) the width between min-width and max-width.",
|
|
4042
|
+
"valueSet": "v"
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
"name": "min-width",
|
|
4046
|
+
"description": "Narrowest width when resizing, in px."
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"name": "max-width",
|
|
4050
|
+
"description": "Widest width when resizing, in px."
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"name": "autosave",
|
|
4054
|
+
"description": "A key: the resized width is saved in localStorage and restored. A later change of width wins."
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"name": "resize-label",
|
|
4058
|
+
"description": "Accessible name of the resize edge."
|
|
3732
4059
|
}
|
|
3733
4060
|
]
|
|
3734
4061
|
},
|
|
@@ -3850,7 +4177,7 @@
|
|
|
3850
4177
|
},
|
|
3851
4178
|
{
|
|
3852
4179
|
"name": "ray-tabs",
|
|
3853
|
-
"description": "
|
|
4180
|
+
"description": "More tabs than width: the list scrolls sideways, fades the edge that hides tabs, scrolls with a vertical wheel and keeps the selected tab in view. The host then carries data-overflow-start and data-overflow-end (following the writing direction), to style it further.",
|
|
3854
4181
|
"attributes": [
|
|
3855
4182
|
{
|
|
3856
4183
|
"name": "value",
|
|
@@ -3887,6 +4214,27 @@
|
|
|
3887
4214
|
"name": "color",
|
|
3888
4215
|
"description": "Active indicator color."
|
|
3889
4216
|
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "size",
|
|
4219
|
+
"description": "Height, font size and padding of the tabs (xs for a compact bar).",
|
|
4220
|
+
"values": [
|
|
4221
|
+
{
|
|
4222
|
+
"name": "xs"
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
"name": "sm"
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"name": "md"
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"name": "lg"
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
"name": "xl"
|
|
4235
|
+
}
|
|
4236
|
+
]
|
|
4237
|
+
},
|
|
3890
4238
|
{
|
|
3891
4239
|
"name": "activation",
|
|
3892
4240
|
"description": "manual: arrows move focus, Enter/Space activates.",
|
|
@@ -3918,6 +4266,10 @@
|
|
|
3918
4266
|
"name": "disabled",
|
|
3919
4267
|
"description": "Cannot be activated.",
|
|
3920
4268
|
"valueSet": "v"
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
"name": "count",
|
|
4272
|
+
"description": "A small number after the label (\"3\", \"99+\"), lighter than a badge; part of the tab's accessible name. Empty: none."
|
|
3921
4273
|
}
|
|
3922
4274
|
]
|
|
3923
4275
|
},
|
|
@@ -3969,6 +4321,18 @@
|
|
|
3969
4321
|
"description": "No keyboard hint at the bottom.",
|
|
3970
4322
|
"valueSet": "v"
|
|
3971
4323
|
},
|
|
4324
|
+
{
|
|
4325
|
+
"name": "navigate-label",
|
|
4326
|
+
"description": "The keyboard hint's word for ↑↓."
|
|
4327
|
+
},
|
|
4328
|
+
{
|
|
4329
|
+
"name": "run-label",
|
|
4330
|
+
"description": "The keyboard hint's word for ↵."
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
"name": "close-label",
|
|
4334
|
+
"description": "The keyboard hint's word for esc."
|
|
4335
|
+
},
|
|
3972
4336
|
{
|
|
3973
4337
|
"name": "native-menus",
|
|
3974
4338
|
"description": "With a native host (ray-elements/core/raylang.js in a std/ui window, menus declared with elements/bridge), also lists the app's menu bar, grouped by menu with its shortcuts; running one gives the program the menu's own event.",
|
|
@@ -4224,6 +4588,30 @@
|
|
|
4224
4588
|
{
|
|
4225
4589
|
"name": "color",
|
|
4226
4590
|
"description": "Text and hover color (e.g. red for destructive actions)."
|
|
4591
|
+
},
|
|
4592
|
+
{
|
|
4593
|
+
"name": "type",
|
|
4594
|
+
"description": "checkbox: choosing it toggles checked (menuitemcheckbox); radio: choosing it checks it and unchecks the radio items of the menu with the same name (menuitemradio). Both show a check mark when checked, in the native menu too.",
|
|
4595
|
+
"values": [
|
|
4596
|
+
{
|
|
4597
|
+
"name": "item"
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
"name": "checkbox"
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"name": "radio"
|
|
4604
|
+
}
|
|
4605
|
+
]
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
"name": "checked",
|
|
4609
|
+
"description": "Checked (checkbox and radio items). Already updated when ray-select fires.",
|
|
4610
|
+
"valueSet": "v"
|
|
4611
|
+
},
|
|
4612
|
+
{
|
|
4613
|
+
"name": "name",
|
|
4614
|
+
"description": "The group of a radio item: one checked per name in the menu."
|
|
4227
4615
|
}
|
|
4228
4616
|
]
|
|
4229
4617
|
},
|
|
@@ -4998,7 +5386,7 @@
|
|
|
4998
5386
|
},
|
|
4999
5387
|
{
|
|
5000
5388
|
"name": "ray-code",
|
|
5001
|
-
"description": "The code comes from the code property, a <script type=\"text/plain\"> child (raw text: anything but a closing script tag), a <template> child (parsed as HTML: the easiest for markup, but a < that is not a tag, as in Promise<void>, breaks it), or the element's text; common indentation and blank edges are removed. Built-in languages: js/ts (jsx, tsx), json, html/xml/svg/vue, css, shell, ray and diff; others show as plain text. Library classes painted with the tokens: Prism's .token.*, highlight.js's .hljs-*, and Shiki's css-variables theme.",
|
|
5389
|
+
"description": "The code comes from the code property, a <script type=\"text/plain\"> child (raw text: anything but a closing script tag), a <template> child (parsed as HTML: the easiest for markup, but a < that is not a tag, as in Promise<void>, breaks it), or the element's text; common indentation and blank edges are removed (not with verbatim). Built-in languages: js/ts (jsx, tsx), json, html/xml/svg/vue, css, shell, ray and diff; others show as plain text. Library classes painted with the tokens: Prism's .token.*, highlight.js's .hljs-*, and Shiki's css-variables theme.",
|
|
5002
5390
|
"attributes": [
|
|
5003
5391
|
{
|
|
5004
5392
|
"name": "language",
|
|
@@ -5022,6 +5410,11 @@
|
|
|
5022
5410
|
"description": "Wraps long lines instead of scrolling sideways.",
|
|
5023
5411
|
"valueSet": "v"
|
|
5024
5412
|
},
|
|
5413
|
+
{
|
|
5414
|
+
"name": "verbatim",
|
|
5415
|
+
"description": "Shows and copies the text exactly as given: no common indentation or blank first and last lines removed. For data (a response body, a log) rather than code written in the page.",
|
|
5416
|
+
"valueSet": "v"
|
|
5417
|
+
},
|
|
5025
5418
|
{
|
|
5026
5419
|
"name": "max-height",
|
|
5027
5420
|
"description": "Height before it scrolls: px as a number, or a CSS length. A taller block gets a \"Show all N lines\" button."
|
|
@@ -6985,7 +7378,7 @@
|
|
|
6985
7378
|
},
|
|
6986
7379
|
{
|
|
6987
7380
|
"name": "autosave",
|
|
6988
|
-
"description": "A key: the size
|
|
7381
|
+
"description": "A key: the size and the collapsed state are saved in localStorage and restored (a saved state wins over the collapsed attribute)."
|
|
6989
7382
|
}
|
|
6990
7383
|
]
|
|
6991
7384
|
},
|