@astryx-vue/core 0.33.3 → 0.34.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BwH9WU-t.js → AlertDialog-CdrF01J0.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BwzRYOky.js → AppShell-4hWTPKSD.js} +5 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-C0V--ipx.js → AvatarGroup-CACtdvXz.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Ds5KIeES.js → Banner-CAyN5-NO.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DWAYp-JJ.js → Breadcrumbs-BQnrbWXt.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-X-Q_ghg8.js → Button-CrZtv_4j.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DsYdUmF1.js → ButtonGroup-Jgx-IWPz.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-D8uVV1J_.js → Carousel-BdhtUtf-.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Dy-icS2C.js → Chat-DT712Yft.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CiUtutIS.js → CheckboxInput-D8N6yvK5.js} +79 -74
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-B6sV7-Og.js → CheckboxListItem--iUp9-KO.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DDk_RtHd.js → ClickableCard-B_upAn7L.js} +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +3 -2
- package/dist/Code/languages/dockerfile/index.d.ts +5 -0
- package/dist/Code/languages/dockerfile/index.js +47 -0
- package/dist/Code/languages/graphql/index.d.ts +5 -0
- package/dist/Code/languages/graphql/index.js +24 -0
- package/dist/Code/languages/java/index.d.ts +5 -0
- package/dist/Code/languages/java/index.js +17 -0
- package/dist/Code/languages/lua/index.d.ts +5 -0
- package/dist/Code/languages/lua/index.js +14 -0
- package/dist/Code/languages/objective-c/index.d.ts +5 -0
- package/dist/Code/languages/objective-c/index.js +29 -0
- package/dist/Code/languages/powershell/index.d.ts +5 -0
- package/dist/Code/languages/powershell/index.js +36 -0
- package/dist/Code/languages/ruby/index.d.ts +5 -0
- package/dist/Code/languages/ruby/index.js +21 -0
- package/dist/Code/languages/thrift/index.d.ts +5 -0
- package/dist/Code/languages/thrift/index.js +15 -0
- package/dist/Code/languages/toml/index.d.ts +5 -0
- package/dist/Code/languages/toml/index.js +55 -0
- package/dist/{CodeBlock-r2-MlpBB.js → CodeBlock-BkqcfoZ1.js} +309 -96
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-0XI3tKgj.js → Collapsible-BKt7UCeF.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BYR0Lxxd.js → CommandPalette-CvOeE6i-.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CIXrqCoX.js → ComplexSelector-CVEfoN0k.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CfVyaP5v.js → ContextMenu-ZqWtb5Si.js} +3 -3
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DRzZ8dY7.js → DateInput-7FFzOvcu.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DL2aOQXJ.js → DateRangeInput-C0ICAvm7.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-KWkpamG4.js → DateTimeInput-CaX09wfm.js} +4 -4
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BM5VEE8z.js → Dialog-B1xC9xMC.js} +1 -1
- package/dist/{Dialog-CJzq1gms.js → Dialog-BmdNX3NC.js} +1 -1
- package/dist/{DialogHeader-Do4EOX2f.js → DialogHeader-DLaiYrvF.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DuQ620WO.js → Drawer-BpuER-VT.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CbENfJOq.js → DropdownMenu-K8JPIcSk.js} +6 -6
- package/dist/Field/index.js +3 -3
- package/dist/{Field-B1fsgAqp.js → Field-CjC4qc2q.js} +1 -1
- package/dist/{FieldInfoTip-CntJCcnM.js → FieldInfoTip-Cu4LNidQ.js} +1 -1
- package/dist/{FieldLabel-D56uJrRE.js → FieldLabel-BFBAGrFY.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-EjlruVVX.js → FileInput-DFsbOoe-.js} +3 -3
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CXg9qTRM.js → IconButton-BPjZPGRy.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-jFet-iAx.js → InfoTip-DqDgJRtp.js} +1 -1
- package/dist/{InputClearButton-DBTrsrSH.js → InputClearButton-BZzOtoH7.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-D7UBxktR.js → InputGroup-BN6v-b9L.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
- package/dist/{Item-DbalBZXc.js → Item-BzjepDWA.js} +2 -2
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-BEJwZon4.js → Layout-SJoCw8NC.js} +1 -1
- package/dist/{LayoutPanel-BgJdL0KV.js → LayoutPanel-DZN4RxX6.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DJXB22k0.js → Lightbox-K2cAUZRG.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-eXwB0Hjg.js → Link-v-K2lhCh.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C5B8uYyn.js → ListItem-BTcwwpFb.js} +3 -3
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/Markdown/parser/index.js +1 -1
- package/dist/{Markdown-COub2yng.js → Markdown-B4WsMYzN.js} +80 -5
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DI5yDKfp.js → MobileNavToggle-AgT6hzTg.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-C7gie2PE.js → MoreMenu-BF9qhsxq.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CnGUU8P3.js → MultiSelector-CDMoxGKV.js} +4 -4
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-Cciu9aok.js → NavItem-DUnSwKRl.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu--iyy_m84.js → NavMenu-DAnQr1S5.js} +1 -1
- package/dist/{NavMenuItem-BmAm-Cv8.js → NavMenuItem-CrTUxgBP.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CD9sHbON.js → NumberInput-DQ7FMUTd.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-vieAJS2J.js → Outline-CSHJqtg4.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-YLVHypB3.js → OverflowList-CK6sgmY3.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bnkp4oAA.js → Pagination-B-337WLy.js} +2 -2
- package/dist/{PanGestureRecognizer-CzIWpazn.js → PanGestureRecognizer-yYMpXB93.js} +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CYJ1z_7L.js → Popover-DVrWAYg2.js} +4 -4
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DEpXEmgs.js → PowerSearch-sWyeh9Az.js} +19 -19
- package/dist/{PressTracker-L5-Ark_9.js → PressTracker-CjfG1d8n.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BdO-xZv0.js → RadioGroup-BloTgj7H.js} +8 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-DzGPuWTt.js → RadioListItem-BERujpW8.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Dcel1HkU.js → ResizeHandle-J9-dAMuo.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/SegmentedControl-BzvLJL8T.js +1465 -0
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BZTF6qw-.js → SelectableCard-IAv2X4dq.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-SkwSbf4j.js → Selector-CsEWOfWV.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-BxJfJU95.js → SideNav-CVAi462m.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-ORmi7QJ7.js → Slider-D0omHlRI.js} +6 -5
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C4-wtxn4.js → Stepper-CetoMTog.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-Cw1UKVjQ.js → Switch-DTwurKmh.js} +11 -82
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DNDe2ipJ.js → TabList-BJTT4nm6.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqppyRk8.js → Table-CUqi9BXT.js} +13 -13
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-I3ghDb9r.js → TextArea-BKwmXPGQ.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Xz_ibpOl.js → TextInput-CRXs8cDs.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-bS62Tr_f.js → Thumbnail-GUwgnwZb.js} +2 -2
- package/dist/{TimeField-Bsb8n22d.js → TimeField-Bn_ziTCi.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D40_6GrX.js → TimeInput-BKkwmN1V.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Bt9ZR975.js → Timestamp-Dlz2SvSe.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BQxfIeVU.js → Toast-BSnsRCyB.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-IFhFMpQh.js → ToggleButton-DE79lIQq.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CpmqfG4i.js → Token-BdClMOG9.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Dvr7ICpS.js → Tokenizer-BitI30VU.js} +7 -7
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Cw_dcKpf.js → TopNav-BUjEldSq.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CBfKKbUQ.js → TreeList-BVJ3V-xI.js} +4 -4
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-D9-WjsCU.js → Typeahead-C54ao2ye.js} +3 -3
- package/dist/{accessibleName-Cw9s1690.js → accessibleName-19W3jhkD.js} +2 -2
- package/dist/{assertOptions-V_jJxpn9.js → assertOptions-Byu4Yqfg.js} +1 -1
- package/dist/boxHold-0ChMpiin.js +170 -0
- package/dist/browserClickWait-DIj9tkLa.js +77 -0
- package/dist/{coarsePointer-DGnAPIcU.js → coarsePointer-BWNSUIY8.js} +2 -32
- package/dist/code-block-DCVrTLMZ.js +19 -0
- package/dist/composables/index.js +6 -6
- package/dist/{composables-BJoAw6XA.js → composables-CF2weN-L.js} +3 -2
- package/dist/{context-WDet15_N.js → context-C1MPE6J5.js} +1 -1
- package/dist/{geometry-CoQRz-F1.js → geometry-BnZ6uDX_.js} +6 -131
- package/dist/grammar-4Pn2745Q.d.ts +58 -0
- package/dist/grammar-Dz71GleT.js +144 -0
- package/dist/{holdEntranceInput-BsusS3bM.js → holdEntranceInput-C8B_DYYs.js} +1 -1
- package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
- package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-CY0KtUSC.d.ts → index-CArlEl1O.d.ts} +515 -119
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-DuxRUPMc.d.ts → index-D1C2Nt3F.d.ts} +3 -3
- package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
- package/dist/{index-D1JOMiI5.d.ts → index-DHsYyqMP.d.ts} +4 -4
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-BqQlY3fL.d.ts → index-QC9FDUDA.d.ts} +2 -2
- package/dist/{index-BI1QLuYB.d.ts → index-ZXrvTM3A.d.ts} +3 -3
- package/dist/{index-Pad9p8CU.d.ts → index-a6o69uPN.d.ts} +1 -1
- package/dist/{index-GyRgg1-v.d.ts → index-uLDBzCDo.d.ts} +5 -5
- package/dist/index.d.ts +19 -19
- package/dist/index.js +90 -88
- package/dist/{landing-Qk_FHR-s.js → landing-BW6qLvC8.js} +1 -1
- package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
- package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -2
- package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
- package/dist/{presentationHold-CZsVmjlY.js → presentationHold-ZKixVLcz.js} +1 -1
- package/dist/pressClaim-DvdlIn4w.js +24 -0
- package/dist/{pressFeedback-9ogipvI4.js → pressFeedback-B3cqaMGl.js} +45 -5
- package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
- package/dist/{reportChange-BUTgduu-.js → reportChange-DwOfucSf.js} +1 -1
- package/dist/{resizableChannel-_j_AW2B6.js → resizableChannel-BnwrR5tr.js} +2 -2
- package/dist/selectionLock-BrUpRS0E.js +130 -0
- package/dist/{themeTiming-ClYaZxGf.js → themeTiming-BJziEh4O.js} +1 -1
- package/dist/touchQueries-xy5IeZfe.js +32 -0
- package/dist/{useActionGroupTracking-ByLJoM-8.js → useActionGroupTracking-D0IwimcQ.js} +2 -2
- package/dist/{useAnimatedLayout-IcX0UfS4.js → useAnimatedLayout-CRAuCwTZ.js} +1 -1
- package/dist/{useHeldPresentation-DJEthuMT.js → useHeldPresentation-CaIKTwUh.js} +1 -1
- package/dist/{useInputStatusIcon-D0q4S1Ye.js → useInputStatusIcon-C2AkJiAT.js} +1 -1
- package/dist/{useMenuEntranceHold-B7f9ShX2.js → useMenuEntranceHold-C-kHicUN.js} +1 -1
- package/dist/{useMenuPress-cBIQyTsN.js → useMenuPress-B5h9PBx_.js} +3 -1
- package/dist/{usePressFeedback-Dx-a3i82.js → usePressFeedback-iyoKakPX.js} +1 -1
- package/dist/{useResizable-JvgYydox.js → useResizable-I0APFcMz.js} +1 -1
- package/dist/{useTouchHitArea-BGkvMAyp.js → useTouchHitArea-MvzPCmJg.js} +1 -1
- package/package.json +37 -1
- package/reset.css +14 -0
- package/styles/code.css +85 -8
- package/styles/markdown.css +6 -5
- package/styles/progress-bar.css +25 -26
- package/styles/segmented-control.css +20 -11
- package/dist/SegmentedControl-BURyE9XU.js +0 -416
- package/dist/index-C9ZssPUV.d.ts +0 -380
package/dist/index-C9ZssPUV.d.ts
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { k as MarkdownAstDataValue, l as MarkdownPluginEntry, t as MarkdownExtensionNode } from "./protocol-DwUmpC5G.js";
|
|
2
|
-
import { Component, PropType, VNode, VNodeChild } from "vue";
|
|
3
|
-
//#region src/Markdown/ast.d.ts
|
|
4
|
-
interface MdPoint {
|
|
5
|
-
offset?: number | null;
|
|
6
|
-
line?: number;
|
|
7
|
-
column?: number;
|
|
8
|
-
}
|
|
9
|
-
interface MdPosition {
|
|
10
|
-
start?: MdPoint;
|
|
11
|
-
end?: MdPoint;
|
|
12
|
-
}
|
|
13
|
-
interface MdNode {
|
|
14
|
-
type: string;
|
|
15
|
-
value?: string;
|
|
16
|
-
children?: MdNode[];
|
|
17
|
-
depth?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
18
|
-
ordered?: boolean;
|
|
19
|
-
start?: number | null;
|
|
20
|
-
spread?: boolean | null;
|
|
21
|
-
checked?: boolean | null;
|
|
22
|
-
lang?: string | null;
|
|
23
|
-
url?: string;
|
|
24
|
-
alt?: string | null;
|
|
25
|
-
title?: string | null;
|
|
26
|
-
align?: Array<'left' | 'right' | 'center' | null> | null;
|
|
27
|
-
identifier?: string;
|
|
28
|
-
label?: string | null;
|
|
29
|
-
/** Parser offsets. Used to tell a bare autolink from an explicit link. */
|
|
30
|
-
position?: MdPosition;
|
|
31
|
-
/**
|
|
32
|
-
* Set on `type: 'extension'` nodes a plugin inserts.
|
|
33
|
-
* `plugin` matches `MarkdownPlugin.name` or `MarkdownInlinePlugin.name`.
|
|
34
|
-
*/
|
|
35
|
-
plugin?: string;
|
|
36
|
-
/** Name of an extension node within its plugin. */
|
|
37
|
-
name?: string;
|
|
38
|
-
/** `block` extension nodes are rendered as their own block. */
|
|
39
|
-
display?: 'inline' | 'block';
|
|
40
|
-
/** Matched source text on an extension node. */
|
|
41
|
-
source?: string;
|
|
42
|
-
/** Citation id, set when a parser turns `[id]` into a citation node. */
|
|
43
|
-
sourceId?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Extra fields a plugin wants the renderer to read.
|
|
46
|
-
* Nested objects and arrays are allowed so document metadata can live here.
|
|
47
|
-
*/
|
|
48
|
-
data?: MarkdownAstDataValue;
|
|
49
|
-
}
|
|
50
|
-
declare function isMarkdownExtensionNode(node: MdNode, plugin?: string, name?: string): node is MdNode & {
|
|
51
|
-
type: 'extension';
|
|
52
|
-
plugin: string;
|
|
53
|
-
name: string;
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/Markdown/plugins.d.ts
|
|
57
|
-
interface MarkdownTransformContext {
|
|
58
|
-
/** Record a problem. The document still renders. */
|
|
59
|
-
report: (message: string) => void;
|
|
60
|
-
}
|
|
61
|
-
interface MarkdownPluginRenderContext {
|
|
62
|
-
/** Render this node's children with the normal Markdown renderers. */
|
|
63
|
-
renderChildren: () => VNodeChild[];
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* A document plugin. `transform` receives the parsed root and returns the next
|
|
67
|
-
* root. Return the same root when nothing changed so a streaming render can
|
|
68
|
-
* reuse settled blocks. `render` draws `extension` nodes whose `plugin` equals
|
|
69
|
-
* `name`.
|
|
70
|
-
*/
|
|
71
|
-
interface MarkdownPlugin {
|
|
72
|
-
name: string;
|
|
73
|
-
transform?: (root: MdNode, context: MarkdownTransformContext) => MdNode;
|
|
74
|
-
render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* A text-node plugin. `pattern` needs the `g` flag. Matches inside inline
|
|
78
|
-
* code and fenced code never run, because those nodes are not text.
|
|
79
|
-
* `replace` returns the node for the match, or `null` to skip it.
|
|
80
|
-
* `render` draws an extension node whose `plugin` equals `name`.
|
|
81
|
-
*/
|
|
82
|
-
interface MarkdownInlinePlugin {
|
|
83
|
-
name?: string;
|
|
84
|
-
pattern: RegExp;
|
|
85
|
-
getEndIndex?: (text: string, match: RegExpMatchArray) => number | false;
|
|
86
|
-
replace: (match: RegExpMatchArray) => MdNode | null;
|
|
87
|
-
render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
|
|
88
|
-
}
|
|
89
|
-
declare function defineMarkdownPlugin<Plugin extends MarkdownPlugin>(plugin: Plugin): Plugin;
|
|
90
|
-
declare function applyMarkdownPlugins(root: MdNode, plugins?: readonly MarkdownPlugin[]): MdNode;
|
|
91
|
-
declare function applyInlinePlugins(root: MdNode, plugins?: readonly MarkdownInlinePlugin[]): MdNode;
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/Markdown/types.d.ts
|
|
94
|
-
type MarkdownDisplay = 'block' | 'inline';
|
|
95
|
-
type MarkdownDensity = 'default' | 'compact';
|
|
96
|
-
type MarkdownAlign = 'start' | 'center';
|
|
97
|
-
type MarkdownHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
98
|
-
type MarkdownAutolink = 'gfm';
|
|
99
|
-
type MarkdownCitationStyle = 'label' | 'number';
|
|
100
|
-
interface MarkdownHeadingProps {
|
|
101
|
-
level: MarkdownHeadingLevel;
|
|
102
|
-
id: string;
|
|
103
|
-
}
|
|
104
|
-
interface MarkdownLinkProps {
|
|
105
|
-
href: string;
|
|
106
|
-
}
|
|
107
|
-
interface MarkdownImageProps {
|
|
108
|
-
alt: string;
|
|
109
|
-
src: string;
|
|
110
|
-
}
|
|
111
|
-
interface MarkdownCodeProps {
|
|
112
|
-
code: string;
|
|
113
|
-
language?: string;
|
|
114
|
-
}
|
|
115
|
-
interface MarkdownInlineCodeProps {
|
|
116
|
-
value: string;
|
|
117
|
-
}
|
|
118
|
-
interface MarkdownListProps {
|
|
119
|
-
ordered: boolean;
|
|
120
|
-
start?: number;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Replacement renderers for a node kind. Each component receives the node's
|
|
124
|
-
* data as props and, where the node has content, that content as the default
|
|
125
|
-
* slot. A string tag such as `'p'` is also a valid component.
|
|
126
|
-
*/
|
|
127
|
-
interface MarkdownComponents {
|
|
128
|
-
blockquote?: Component;
|
|
129
|
-
code?: Component;
|
|
130
|
-
heading?: Component;
|
|
131
|
-
hr?: Component;
|
|
132
|
-
image?: Component;
|
|
133
|
-
inlineCode?: Component;
|
|
134
|
-
link?: Component;
|
|
135
|
-
list?: Component;
|
|
136
|
-
paragraph?: Component;
|
|
137
|
-
table?: Component;
|
|
138
|
-
}
|
|
139
|
-
interface MarkdownSource {
|
|
140
|
-
title?: string;
|
|
141
|
-
url?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Favicon or logo URL, drawn in a round slot before the label.
|
|
144
|
-
*/
|
|
145
|
-
icon?: string;
|
|
146
|
-
}
|
|
147
|
-
interface MarkdownProps {
|
|
148
|
-
/**
|
|
149
|
-
* Horizontal alignment of the prose measure when `contentWidth` is set.
|
|
150
|
-
* @default 'start'
|
|
151
|
-
*/
|
|
152
|
-
contentAlign?: MarkdownAlign;
|
|
153
|
-
/**
|
|
154
|
-
* Markdown source. A default slot string is used when this is omitted.
|
|
155
|
-
*/
|
|
156
|
-
content?: string;
|
|
157
|
-
/**
|
|
158
|
-
* Maximum width of prose blocks. Tables and code blocks keep the container
|
|
159
|
-
* width. Numbers are pixels.
|
|
160
|
-
*/
|
|
161
|
-
contentWidth?: number | string;
|
|
162
|
-
/**
|
|
163
|
-
* Renderers that replace the built-in node views.
|
|
164
|
-
*/
|
|
165
|
-
components?: MarkdownComponents;
|
|
166
|
-
/**
|
|
167
|
-
* Vertical rhythm. `compact` tightens the space between blocks.
|
|
168
|
-
* @default 'default'
|
|
169
|
-
*/
|
|
170
|
-
density?: MarkdownDensity;
|
|
171
|
-
/**
|
|
172
|
-
* `inline` renders the source as phrasing content inside a span.
|
|
173
|
-
* @default 'block'
|
|
174
|
-
*/
|
|
175
|
-
display?: MarkdownDisplay;
|
|
176
|
-
/**
|
|
177
|
-
* The heading level that a markdown `#` maps to. Deeper headings shift with
|
|
178
|
-
* it and stop at `h6`.
|
|
179
|
-
* @default 1
|
|
180
|
-
*/
|
|
181
|
-
headingLevelStart?: MarkdownHeadingLevel;
|
|
182
|
-
/**
|
|
183
|
-
* Re-parses only the open trailing block and fades in appended text.
|
|
184
|
-
* Settled blocks keep their rendered nodes. This prop does not reveal
|
|
185
|
-
* characters on its own. Run `useStreamingText` first and pass that string
|
|
186
|
-
* as `content`; `Markdown` will not smooth the string a second time.
|
|
187
|
-
* @default false
|
|
188
|
-
*/
|
|
189
|
-
isStreaming?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Called when a link is activated. Return `false` to cancel navigation.
|
|
192
|
-
*/
|
|
193
|
-
onLinkClick?: (href: string, event: MouseEvent) => void | false;
|
|
194
|
-
/**
|
|
195
|
-
* Document plugins. A `MarkdownPlugin` may replace the parsed tree and draw
|
|
196
|
-
* the extension nodes it owns. A `MarkdownPluginEntry` from
|
|
197
|
-
* `createMarkdownPlugin` runs syntax and transforms, including
|
|
198
|
-
* `markdownSourceLinesPlugin`. An empty list leaves the document unchanged.
|
|
199
|
-
*/
|
|
200
|
-
plugins?: readonly (MarkdownPlugin | MarkdownPluginEntry)[];
|
|
201
|
-
/**
|
|
202
|
-
* Patterns matched against text nodes, in order. The first match at a
|
|
203
|
-
* position wins. Inline code and fenced code are left alone.
|
|
204
|
-
*/
|
|
205
|
-
inlinePlugins?: readonly MarkdownInlinePlugin[];
|
|
206
|
-
/**
|
|
207
|
-
* `'gfm'` links bare `https://` URLs, `www.` hosts, and emails.
|
|
208
|
-
* Omit it and those stay text. `<https://…>` and `<email>` stay links.
|
|
209
|
-
*/
|
|
210
|
-
autolink?: MarkdownAutolink;
|
|
211
|
-
/**
|
|
212
|
-
* `label` is a chip with the source title. `number` is a compact badge.
|
|
213
|
-
* @default 'label'
|
|
214
|
-
*/
|
|
215
|
-
citationStyle?: MarkdownCitationStyle;
|
|
216
|
-
/**
|
|
217
|
-
* Citation sources keyed by id. `[id]` and `【id】` that match a key render
|
|
218
|
-
* as a citation chip instead of literal text.
|
|
219
|
-
*/
|
|
220
|
-
sources?: Record<string, MarkdownSource>;
|
|
221
|
-
}
|
|
222
|
-
interface MarkdownSlots {
|
|
223
|
-
default?: () => VNodeChild;
|
|
224
|
-
}
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region src/Markdown/Markdown.vue.d.ts
|
|
227
|
-
declare const _default: typeof __VLS_export;
|
|
228
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
229
|
-
content: {
|
|
230
|
-
type: StringConstructor;
|
|
231
|
-
default: undefined;
|
|
232
|
-
};
|
|
233
|
-
contentAlign: {
|
|
234
|
-
type: PropType<MarkdownProps["contentAlign"]>;
|
|
235
|
-
default: string;
|
|
236
|
-
};
|
|
237
|
-
contentWidth: {
|
|
238
|
-
type: PropType<MarkdownProps["contentWidth"]>;
|
|
239
|
-
default: undefined;
|
|
240
|
-
};
|
|
241
|
-
components: {
|
|
242
|
-
type: PropType<MarkdownProps["components"]>;
|
|
243
|
-
default: undefined;
|
|
244
|
-
};
|
|
245
|
-
density: {
|
|
246
|
-
type: PropType<MarkdownProps["density"]>;
|
|
247
|
-
default: string;
|
|
248
|
-
};
|
|
249
|
-
display: {
|
|
250
|
-
type: PropType<MarkdownProps["display"]>;
|
|
251
|
-
default: string;
|
|
252
|
-
};
|
|
253
|
-
headingLevelStart: {
|
|
254
|
-
type: PropType<MarkdownProps["headingLevelStart"]>;
|
|
255
|
-
default: number;
|
|
256
|
-
};
|
|
257
|
-
isStreaming: {
|
|
258
|
-
type: BooleanConstructor;
|
|
259
|
-
default: boolean;
|
|
260
|
-
};
|
|
261
|
-
onLinkClick: {
|
|
262
|
-
type: PropType<MarkdownProps["onLinkClick"]>;
|
|
263
|
-
default: undefined;
|
|
264
|
-
};
|
|
265
|
-
plugins: {
|
|
266
|
-
type: PropType<MarkdownProps["plugins"]>;
|
|
267
|
-
default: undefined;
|
|
268
|
-
};
|
|
269
|
-
inlinePlugins: {
|
|
270
|
-
type: PropType<MarkdownProps["inlinePlugins"]>;
|
|
271
|
-
default: undefined;
|
|
272
|
-
};
|
|
273
|
-
autolink: {
|
|
274
|
-
type: PropType<MarkdownProps["autolink"]>;
|
|
275
|
-
default: undefined;
|
|
276
|
-
};
|
|
277
|
-
citationStyle: {
|
|
278
|
-
type: PropType<MarkdownProps["citationStyle"]>;
|
|
279
|
-
default: string;
|
|
280
|
-
};
|
|
281
|
-
sources: {
|
|
282
|
-
type: PropType<MarkdownProps["sources"]>;
|
|
283
|
-
default: undefined;
|
|
284
|
-
};
|
|
285
|
-
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
286
|
-
[key: string]: any;
|
|
287
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
288
|
-
content: {
|
|
289
|
-
type: StringConstructor;
|
|
290
|
-
default: undefined;
|
|
291
|
-
};
|
|
292
|
-
contentAlign: {
|
|
293
|
-
type: PropType<MarkdownProps["contentAlign"]>;
|
|
294
|
-
default: string;
|
|
295
|
-
};
|
|
296
|
-
contentWidth: {
|
|
297
|
-
type: PropType<MarkdownProps["contentWidth"]>;
|
|
298
|
-
default: undefined;
|
|
299
|
-
};
|
|
300
|
-
components: {
|
|
301
|
-
type: PropType<MarkdownProps["components"]>;
|
|
302
|
-
default: undefined;
|
|
303
|
-
};
|
|
304
|
-
density: {
|
|
305
|
-
type: PropType<MarkdownProps["density"]>;
|
|
306
|
-
default: string;
|
|
307
|
-
};
|
|
308
|
-
display: {
|
|
309
|
-
type: PropType<MarkdownProps["display"]>;
|
|
310
|
-
default: string;
|
|
311
|
-
};
|
|
312
|
-
headingLevelStart: {
|
|
313
|
-
type: PropType<MarkdownProps["headingLevelStart"]>;
|
|
314
|
-
default: number;
|
|
315
|
-
};
|
|
316
|
-
isStreaming: {
|
|
317
|
-
type: BooleanConstructor;
|
|
318
|
-
default: boolean;
|
|
319
|
-
};
|
|
320
|
-
onLinkClick: {
|
|
321
|
-
type: PropType<MarkdownProps["onLinkClick"]>;
|
|
322
|
-
default: undefined;
|
|
323
|
-
};
|
|
324
|
-
plugins: {
|
|
325
|
-
type: PropType<MarkdownProps["plugins"]>;
|
|
326
|
-
default: undefined;
|
|
327
|
-
};
|
|
328
|
-
inlinePlugins: {
|
|
329
|
-
type: PropType<MarkdownProps["inlinePlugins"]>;
|
|
330
|
-
default: undefined;
|
|
331
|
-
};
|
|
332
|
-
autolink: {
|
|
333
|
-
type: PropType<MarkdownProps["autolink"]>;
|
|
334
|
-
default: undefined;
|
|
335
|
-
};
|
|
336
|
-
citationStyle: {
|
|
337
|
-
type: PropType<MarkdownProps["citationStyle"]>;
|
|
338
|
-
default: string;
|
|
339
|
-
};
|
|
340
|
-
sources: {
|
|
341
|
-
type: PropType<MarkdownProps["sources"]>;
|
|
342
|
-
default: undefined;
|
|
343
|
-
};
|
|
344
|
-
}>> & Readonly<{}>, {
|
|
345
|
-
plugins: readonly (MarkdownPluginEntry<MarkdownExtensionNode<string, string, MarkdownAstDataValue, "inline" | "block">> | MarkdownPlugin)[] | undefined;
|
|
346
|
-
density: MarkdownDensity | undefined;
|
|
347
|
-
content: string;
|
|
348
|
-
display: MarkdownDisplay | undefined;
|
|
349
|
-
contentWidth: string | number | undefined;
|
|
350
|
-
components: MarkdownComponents | undefined;
|
|
351
|
-
contentAlign: MarkdownAlign | undefined;
|
|
352
|
-
headingLevelStart: MarkdownHeadingLevel | undefined;
|
|
353
|
-
onLinkClick: ((href: string, event: MouseEvent) => void | false) | undefined;
|
|
354
|
-
inlinePlugins: readonly MarkdownInlinePlugin[] | undefined;
|
|
355
|
-
autolink: "gfm" | undefined;
|
|
356
|
-
citationStyle: MarkdownCitationStyle | undefined;
|
|
357
|
-
sources: Record<string, MarkdownSource> | undefined;
|
|
358
|
-
isStreaming: boolean;
|
|
359
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/Markdown/parse.d.ts
|
|
362
|
-
interface ParseMarkdownOptions {
|
|
363
|
-
/**
|
|
364
|
-
* `'gfm'` keeps GitHub-style bare URLs, `www.` hosts, and emails as links.
|
|
365
|
-
* Omit it and those stay text. Angle-bracket autolinks stay either way.
|
|
366
|
-
*/
|
|
367
|
-
autolink?: 'gfm';
|
|
368
|
-
}
|
|
369
|
-
declare function parseMarkdown(source: string, options?: ParseMarkdownOptions): MdNode;
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/Markdown/slug.d.ts
|
|
372
|
-
/** URL slug for a heading. Letters and numbers from any language are kept. */
|
|
373
|
-
declare function slugify(value: string): string;
|
|
374
|
-
/**
|
|
375
|
-
* `setup`, then `setup-1`, then `setup-2`. An empty slug becomes `section`.
|
|
376
|
-
* One map covers a whole document.
|
|
377
|
-
*/
|
|
378
|
-
declare function uniqueSlug(baseSlug: string, counts: Map<string, number>): string;
|
|
379
|
-
//#endregion
|
|
380
|
-
export { MarkdownPlugin as C, applyMarkdownPlugins as D, applyInlinePlugins as E, defineMarkdownPlugin as O, MarkdownInlinePlugin as S, MarkdownTransformContext as T, MarkdownLinkProps as _, _default as a, MarkdownSlots as b, MarkdownCitationStyle as c, MarkdownDensity as d, MarkdownDisplay as f, MarkdownInlineCodeProps as g, MarkdownImageProps as h, parseMarkdown as i, isMarkdownExtensionNode as k, MarkdownCodeProps as l, MarkdownHeadingProps as m, uniqueSlug as n, MarkdownAlign as o, MarkdownHeadingLevel as p, ParseMarkdownOptions as r, MarkdownAutolink as s, slugify as t, MarkdownComponents as u, MarkdownListProps as v, MarkdownPluginRenderContext as w, MarkdownSource as x, MarkdownProps as y };
|