@astryx-vue/core 0.2.3 → 0.2.4
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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
- package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
- package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
- package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
- package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
- package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -4
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
- package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
- package/dist/{index-DMQG6kdM.d.ts → index-6yB8BtEu.d.ts} +2 -2
- package/dist/{index-f4NGT-e2.d.ts → index-B4OOtNP8.d.ts} +3 -3
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
- package/dist/{index-D1Twv_fL.d.ts → index-BcZI402h.d.ts} +4 -4
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-BMn9ghAX.d.ts → index-Bu0Zd1uw.d.ts} +3 -3
- package/dist/{index-Ctu32CLv.d.ts → index-BxhJqiZ7.d.ts} +2 -2
- package/dist/{index-CA6RbRWx.d.ts → index-By2mSzUA.d.ts} +1 -1
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
- package/dist/{index-DAiGhkNZ.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-ViSV0RBx.d.ts → index-CI9kyg74.d.ts} +12 -2
- package/dist/{index-C-QpeUlQ.d.ts → index-CNjbOgty.d.ts} +2 -2
- package/dist/{index-BB5yVIN-.d.ts → index-CUCcYKxl.d.ts} +3 -3
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-xfkEuGLY.d.ts → index-CZeoAr0a.d.ts} +2 -2
- package/dist/{index-C2sfHfBw.d.ts → index-D-ezcKaY.d.ts} +3 -3
- package/dist/{index-BcJBLWJ0.d.ts → index-DA52oIdw.d.ts} +2 -2
- package/dist/{index-D7-WTV6I.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-BTAgQRP0.d.ts → index-EtZgovdH.d.ts} +169 -81
- package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-D8o50qOE.d.ts → index-cL3q7O4R.d.ts} +32 -3
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DkVEBdWa.d.ts → index-fa72tWIU.d.ts} +2 -2
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-foQMNKZO.d.ts → index-hCpxKePE.d.ts} +49 -3
- package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +81 -80
- package/dist/index.js +118 -115
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +3 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/heading.css +47 -0
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +2 -0
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-CejS9MHm.js +0 -447
- package/dist/Typeahead-DQ3tmqYe.js +0 -375
- package/dist/index-Bqb_Fyju.d.ts +0 -80
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/locale-CCwVnyMZ.js +0 -42
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-jmqqnkKA.d.ts +0 -163
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BXkNZF3q.d.ts → index-IdK2g5B4.d.ts} +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as _default, Qr as _default$1, ei as CheckboxListEmits, ni as CheckboxListItemProps, ri as CheckboxListProps, ti as CheckboxListItemEmits } from "../index-EtZgovdH.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-BlPf7vPe.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as _sfc_main$2 } from "./Tooltip-
|
|
3
|
-
import { r as useItemDescriptionId } from "./Item-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Tooltip-C2fh9anJ.js";
|
|
3
|
+
import { r as useItemDescriptionId } from "./Item-DrYJL1TG.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./CheckboxInput-25Q8ItH-.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
|
|
6
|
-
import { n as _sfc_main$5, t as _sfc_main$6 } from "./ListItem-
|
|
6
|
+
import { n as _sfc_main$5, t as _sfc_main$6 } from "./ListItem-CcRHWuEm.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeModels, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
8
8
|
import "../styles/checkbox-list.css";
|
|
9
9
|
import "../styles/visually-hidden-utility.css";
|
package/dist/Citation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Citation-
|
|
1
|
+
import { t as _sfc_main } from "../Citation-BG-vg9ia.js";
|
|
2
2
|
export { _sfc_main as Citation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./Icon-bteSId7T.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, toDisplayString, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/citation.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Jr as
|
|
1
|
+
import { Jr as _default, Xr as ClickableCardProps, Yr as ClickableCardEmits, Zr as ClickableCardSlots } from "../index-EtZgovdH.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { A as
|
|
1
|
+
import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
|
|
2
|
+
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-hCpxKePE.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
|
-
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
4
|
+
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
|
|
2
|
-
import { a as tokenizeAsync, c as _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as
|
|
3
|
-
import { n as
|
|
4
|
-
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-
|
|
5
|
-
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
2
|
+
import { a as tokenizeAsync, c as splitDiffLines, d as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-B2pnEOJY.js";
|
|
3
|
+
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
4
|
+
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-XnPuGxey.js";
|
|
5
|
+
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, DIFF_SYNTAX_TOKEN_KEYS, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
2
|
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as syntaxThemeStyle, i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme } from "./syntaxTheme-R7xnu5x5.js";
|
|
4
4
|
import { n as resolveLightDark, r as syntaxThemeKey, t as readColorMode } from "./colorMode-CBgdgDSn.js";
|
|
5
5
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot } from "vue";
|
|
6
6
|
//#region src/Code/syntaxPresets.ts
|
|
@@ -2,7 +2,7 @@ import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
|
2
2
|
import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
|
|
3
3
|
import { t as _sfc_main$4 } from "./IconButton-BNQuz9W_.js";
|
|
4
4
|
import { t as _sfc_main$5 } from "./Icon-bteSId7T.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
7
7
|
import "../styles/code.css";
|
|
8
8
|
//#region src/Code/Code.vue
|
|
@@ -130,9 +130,14 @@ const _hoisted_2$1 = [
|
|
|
130
130
|
"data-size",
|
|
131
131
|
"data-wrapped"
|
|
132
132
|
];
|
|
133
|
-
const _hoisted_3$1 = ["data-line"];
|
|
133
|
+
const _hoisted_3$1 = ["data-diff", "data-line"];
|
|
134
134
|
const _hoisted_4$1 = {
|
|
135
135
|
key: 0,
|
|
136
|
+
class: "astryx-code-block__diff-marker",
|
|
137
|
+
"data-diff-marker": ""
|
|
138
|
+
};
|
|
139
|
+
const _hoisted_5$1 = {
|
|
140
|
+
key: 1,
|
|
136
141
|
class: "astryx-code-block__line-content"
|
|
137
142
|
};
|
|
138
143
|
const CHUNK_SIZE = 20;
|
|
@@ -141,6 +146,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
141
146
|
name: "AstryxCodeBlockContent",
|
|
142
147
|
__name: "CodeBlockContent",
|
|
143
148
|
props: {
|
|
149
|
+
diff: {},
|
|
144
150
|
hasLineNumbers: { type: Boolean },
|
|
145
151
|
highlightSet: {},
|
|
146
152
|
isCompact: { type: Boolean },
|
|
@@ -198,7 +204,26 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
198
204
|
type: null
|
|
199
205
|
}];
|
|
200
206
|
}
|
|
201
|
-
|
|
207
|
+
function lineText(index) {
|
|
208
|
+
const diff = props.diff;
|
|
209
|
+
const line = props.lines[index] ?? "";
|
|
210
|
+
if (diff == null) return line;
|
|
211
|
+
if (diff.kinds[index] === "header") return line;
|
|
212
|
+
return diff.content[index] ?? "";
|
|
213
|
+
}
|
|
214
|
+
function lineTokens(index) {
|
|
215
|
+
if (props.diff?.kinds[index] === "header") return [];
|
|
216
|
+
return props.tokenLines[index] ?? [];
|
|
217
|
+
}
|
|
218
|
+
const lineParts = computed(() => props.lines.map((_, index) => buildParts(lineText(index), lineTokens(index))));
|
|
219
|
+
function diffKind(index) {
|
|
220
|
+
const kind = props.diff?.kinds[index];
|
|
221
|
+
if (kind == null || kind === "context") return void 0;
|
|
222
|
+
return kind;
|
|
223
|
+
}
|
|
224
|
+
function glyph(index) {
|
|
225
|
+
return props.diff?.glyphs[index] || " ";
|
|
226
|
+
}
|
|
202
227
|
const codeStyle = computed(() => {
|
|
203
228
|
const style = {};
|
|
204
229
|
if (props.hasLineNumbers) style["--astryx-code-block-gutter-width"] = `${String(props.lines.length).length}ch`;
|
|
@@ -249,22 +274,106 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
249
274
|
return openBlock(), createElementBlock("div", {
|
|
250
275
|
key: chunk.start + offset,
|
|
251
276
|
class: normalizeClass(["astryx-code-block__line", {
|
|
277
|
+
"astryx-code-block__line--diff": __props.diff != null,
|
|
252
278
|
"astryx-code-block__line--highlighted": isHighlighted(chunk.start + offset),
|
|
253
279
|
"astryx-code-block__line--numbered": __props.hasLineNumbers
|
|
254
280
|
}]),
|
|
281
|
+
"data-diff": diffKind(chunk.start + offset),
|
|
255
282
|
"data-line": chunk.start + offset + 1
|
|
256
|
-
}, [__props.mode === "spans" ? (openBlock(), createElementBlock("span",
|
|
283
|
+
}, [__props.diff != null ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(glyph(chunk.start + offset)), 1)) : createCommentVNode("v-if", true), __props.mode === "spans" || __props.diff != null ? (openBlock(), createElementBlock("span", _hoisted_5$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(lineParts.value[chunk.start + offset], (part, index) => {
|
|
257
284
|
return openBlock(), createElementBlock(Fragment, { key: index }, [part.type != null ? (openBlock(), createElementBlock("span", {
|
|
258
285
|
key: 0,
|
|
259
286
|
class: normalizeClass(`astryx-token-${part.type}`)
|
|
260
287
|
}, toDisplayString(part.text), 3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
|
|
261
|
-
}), 128))])) : (openBlock(), createElementBlock(Fragment, { key:
|
|
288
|
+
}), 128))])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(line || ""), 1)], 64))], 10, _hoisted_3$1);
|
|
262
289
|
}), 128))], 6);
|
|
263
290
|
}), 128))], 12, _hoisted_2$1)], 2)], 12, _hoisted_1$1);
|
|
264
291
|
};
|
|
265
292
|
}
|
|
266
293
|
});
|
|
267
294
|
//#endregion
|
|
295
|
+
//#region src/Code/diff.ts
|
|
296
|
+
/**
|
|
297
|
+
* Read a fence info string the way a diff layer does.
|
|
298
|
+
* `diff` is the layer over plaintext. `diff-<lang>` is the layer over that
|
|
299
|
+
* language. Anything else, including `patch`, is just a language name.
|
|
300
|
+
*/
|
|
301
|
+
function parseFenceLanguage(info) {
|
|
302
|
+
const value = (info ?? "").trim();
|
|
303
|
+
if (value === "diff") return {
|
|
304
|
+
language: "plaintext",
|
|
305
|
+
isDiff: true
|
|
306
|
+
};
|
|
307
|
+
const layered = /^diff-(.+)$/.exec(value);
|
|
308
|
+
if (layered?.[1] != null) return {
|
|
309
|
+
language: layered[1],
|
|
310
|
+
isDiff: true
|
|
311
|
+
};
|
|
312
|
+
return {
|
|
313
|
+
language: value || "plaintext",
|
|
314
|
+
isDiff: false
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Split a diff into the glyph column and the code the base language sees.
|
|
319
|
+
* Added, removed, and space-led context lines lose their first character.
|
|
320
|
+
* A context line with no leading space keeps all of it. Header lines
|
|
321
|
+
* contribute an empty line so token offsets stay per line; the renderer
|
|
322
|
+
* paints those rows from the original text.
|
|
323
|
+
*/
|
|
324
|
+
function splitDiffLines(lines) {
|
|
325
|
+
const kinds = [];
|
|
326
|
+
const glyphs = [];
|
|
327
|
+
const content = [];
|
|
328
|
+
const fileHeaders = fileHeaderLines(lines);
|
|
329
|
+
lines.forEach((line, index) => {
|
|
330
|
+
const kind = diffLineKind(line, fileHeaders.has(index));
|
|
331
|
+
kinds.push(kind);
|
|
332
|
+
if (kind === "header") {
|
|
333
|
+
glyphs.push("");
|
|
334
|
+
content.push("");
|
|
335
|
+
} else if (kind === "context" && !line.startsWith(" ")) {
|
|
336
|
+
glyphs.push("");
|
|
337
|
+
content.push(line);
|
|
338
|
+
} else {
|
|
339
|
+
glyphs.push(line.slice(0, 1));
|
|
340
|
+
content.push(line.slice(1));
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
return {
|
|
344
|
+
kinds,
|
|
345
|
+
glyphs,
|
|
346
|
+
content
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Classify one line by its first character.
|
|
351
|
+
* `+` is added, `-` is removed, `@@` is a hunk header. A `--- ` line
|
|
352
|
+
* directly followed by a `+++ ` line and then an `@@` line is a file header
|
|
353
|
+
* wherever it occurs. Every other `---` or `+++` line is a change, so
|
|
354
|
+
* `---i;` is never mistaken for a header.
|
|
355
|
+
*/
|
|
356
|
+
function diffLineKind(line, isFileHeader = false) {
|
|
357
|
+
if (line.startsWith("@@") || isFileHeader) return "header";
|
|
358
|
+
if (line.startsWith("+")) return "added";
|
|
359
|
+
if (line.startsWith("-")) return "removed";
|
|
360
|
+
return "context";
|
|
361
|
+
}
|
|
362
|
+
/** Indexes of the `--- ` / `+++ ` pair that sits directly before an `@@` line. */
|
|
363
|
+
function fileHeaderLines(lines) {
|
|
364
|
+
const headers = /* @__PURE__ */ new Set();
|
|
365
|
+
for (let index = 0; index + 2 < lines.length; index++) {
|
|
366
|
+
const current = lines[index] ?? "";
|
|
367
|
+
const next = lines[index + 1] ?? "";
|
|
368
|
+
const after = lines[index + 2] ?? "";
|
|
369
|
+
if (current.startsWith("--- ") && next.startsWith("+++ ") && after.startsWith("@@")) {
|
|
370
|
+
headers.add(index);
|
|
371
|
+
headers.add(index + 1);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return headers;
|
|
375
|
+
}
|
|
376
|
+
//#endregion
|
|
268
377
|
//#region src/Code/tokenizer.ts
|
|
269
378
|
const langCache = /* @__PURE__ */ new Map();
|
|
270
379
|
const JS_KEYWORDS = /\b(const|let|var|function|class|if|else|for|while|return|import|export|from|default|async|await|try|catch|throw|new|typeof|instanceof|interface|type|enum|extends|implements|switch|case|break|continue|do|in|of|void|null|undefined|true|false|this|super|yield|delete|static|public|private|protected|readonly|abstract|as|is|keyof|declare|module|namespace|require)\b/;
|
|
@@ -988,6 +1097,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
988
1097
|
default: false
|
|
989
1098
|
},
|
|
990
1099
|
highlightLines: {},
|
|
1100
|
+
isDiff: {
|
|
1101
|
+
type: Boolean,
|
|
1102
|
+
default: false
|
|
1103
|
+
},
|
|
991
1104
|
hasCopyButton: {
|
|
992
1105
|
type: Boolean,
|
|
993
1106
|
default: true
|
|
@@ -1025,21 +1138,30 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1025
1138
|
});
|
|
1026
1139
|
const asyncTokens = ref(null);
|
|
1027
1140
|
let pendingLoad = null;
|
|
1141
|
+
/**
|
|
1142
|
+
* With the diff layer on, the base language sees the code after the glyph
|
|
1143
|
+
* column is set aside. Header rows contribute an empty line and are painted
|
|
1144
|
+
* from the original text.
|
|
1145
|
+
*/
|
|
1146
|
+
const diffLines = computed(() => props.isDiff ? splitDiffLines(lines.value) : null);
|
|
1147
|
+
const tokenSource = computed(() => diffLines.value?.content.join("\n") ?? props.code);
|
|
1028
1148
|
const syncTokenLines = computed(() => {
|
|
1029
|
-
|
|
1030
|
-
if (props.
|
|
1031
|
-
|
|
1149
|
+
const source = tokenSource.value;
|
|
1150
|
+
if (props.tokenizer != null) return flatTokensToLines(props.tokenizer(source, props.language), source);
|
|
1151
|
+
if (source.length >= 2e3) return null;
|
|
1152
|
+
return tokenize(source, props.language);
|
|
1032
1153
|
});
|
|
1033
1154
|
const tokenLines = computed(() => {
|
|
1034
1155
|
const sync = syncTokenLines.value;
|
|
1035
1156
|
if (sync != null) return sync;
|
|
1036
1157
|
const async = asyncTokens.value;
|
|
1037
|
-
if (async != null && async.code ===
|
|
1158
|
+
if (async != null && async.code === tokenSource.value && async.language === props.language) return async.tokens;
|
|
1038
1159
|
return [];
|
|
1039
1160
|
});
|
|
1040
1161
|
async function loadTokens() {
|
|
1041
|
-
|
|
1042
|
-
|
|
1162
|
+
const source = tokenSource.value;
|
|
1163
|
+
if (props.tokenizer != null || source.length < 2e3) return;
|
|
1164
|
+
const code = source;
|
|
1043
1165
|
const language = props.language;
|
|
1044
1166
|
const controller = new AbortController();
|
|
1045
1167
|
pendingLoad?.abort();
|
|
@@ -1060,7 +1182,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1060
1182
|
}
|
|
1061
1183
|
}
|
|
1062
1184
|
watch([
|
|
1063
|
-
|
|
1185
|
+
tokenSource,
|
|
1064
1186
|
() => props.language,
|
|
1065
1187
|
() => props.tokenizer
|
|
1066
1188
|
], () => {
|
|
@@ -1077,12 +1199,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1077
1199
|
}
|
|
1078
1200
|
/** Safari ships the Highlight API objects but paints them unreliably in code. */
|
|
1079
1201
|
const paintMode = computed(() => {
|
|
1080
|
-
if (props.highlightMode === "spans" || !supportsHighlightApi()) return "spans";
|
|
1202
|
+
if (props.isDiff || props.highlightMode === "spans" || !supportsHighlightApi()) return "spans";
|
|
1081
1203
|
if (props.highlightMode === "ranges") return "ranges";
|
|
1082
1204
|
return isSafari() ? "spans" : "ranges";
|
|
1083
1205
|
});
|
|
1084
1206
|
const highlightSet = computed(() => props.highlightLines == null ? null : new Set(props.highlightLines));
|
|
1085
|
-
const languageLabel = computed(() =>
|
|
1207
|
+
const languageLabel = computed(() => {
|
|
1208
|
+
if (!props.hasLanguageLabel) return null;
|
|
1209
|
+
if (props.isDiff) return props.language === "plaintext" ? "diff" : `${props.language} diff`;
|
|
1210
|
+
return props.language === "plaintext" ? null : props.language;
|
|
1211
|
+
});
|
|
1086
1212
|
/** `filename — language`, omitting whichever half is missing. */
|
|
1087
1213
|
const headerText = computed(() => [props.title, languageLabel.value].filter((part) => part != null && part !== "").join(" — "));
|
|
1088
1214
|
const showHeader = computed(() => headerText.value !== "");
|
|
@@ -1216,6 +1342,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1216
1342
|
createElementVNode("div", _hoisted_6, [
|
|
1217
1343
|
_cache[12] || (_cache[12] = createTextVNode("\n ", -1)),
|
|
1218
1344
|
createVNode(_sfc_main$1, {
|
|
1345
|
+
diff: diffLines.value,
|
|
1219
1346
|
"has-line-numbers": __props.hasLineNumbers,
|
|
1220
1347
|
"highlight-set": highlightSet.value,
|
|
1221
1348
|
"is-compact": showHeader.value && !__props.hasLineNumbers,
|
|
@@ -1227,6 +1354,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1227
1354
|
size: __props.size,
|
|
1228
1355
|
"token-lines": tokenLines.value
|
|
1229
1356
|
}, null, 8, [
|
|
1357
|
+
"diff",
|
|
1230
1358
|
"has-line-numbers",
|
|
1231
1359
|
"highlight-set",
|
|
1232
1360
|
"is-compact",
|
|
@@ -1243,6 +1371,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1243
1371
|
_cache[15] || (_cache[15] = createTextVNode("\n ", -1))
|
|
1244
1372
|
], 10, _hoisted_5)) : (openBlock(), createBlock(_sfc_main$1, {
|
|
1245
1373
|
key: 2,
|
|
1374
|
+
diff: diffLines.value,
|
|
1246
1375
|
"has-line-numbers": __props.hasLineNumbers,
|
|
1247
1376
|
"highlight-set": highlightSet.value,
|
|
1248
1377
|
"is-compact": showHeader.value && !__props.hasLineNumbers,
|
|
@@ -1254,6 +1383,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1254
1383
|
size: __props.size,
|
|
1255
1384
|
"token-lines": tokenLines.value
|
|
1256
1385
|
}, null, 8, [
|
|
1386
|
+
"diff",
|
|
1257
1387
|
"has-line-numbers",
|
|
1258
1388
|
"highlight-set",
|
|
1259
1389
|
"is-compact",
|
|
@@ -1298,4 +1428,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1298
1428
|
}
|
|
1299
1429
|
});
|
|
1300
1430
|
//#endregion
|
|
1301
|
-
export { tokenizeAsync as a, _sfc_main$2 as
|
|
1431
|
+
export { tokenizeAsync as a, splitDiffLines as c, _sfc_main$2 as d, tokenize as i, HIGHLIGHTED_TOKEN_TYPES as l, SYNC_TOKENIZE_THRESHOLD as n, diffLineKind as o, flatTokensToLines as r, parseFenceLanguage as s, _sfc_main as t, applyHighlightRanges as u };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollapsibleGroupDensity, c as _default, d as CollapsibleProps, f as CollapsibleSlots, i as CollapsibleGroupSlots, l as CollapsibleChevronPosition, n as CollapsibleGroupEmits, o as CollapsibleGroupType, r as CollapsibleGroupProps, s as CollapsibleGroupValue, t as _default$1, u as CollapsibleEmits } from "../index-
|
|
1
|
+
import { a as CollapsibleGroupDensity, c as _default, d as CollapsibleProps, f as CollapsibleSlots, i as CollapsibleGroupSlots, l as CollapsibleChevronPosition, n as CollapsibleGroupEmits, o as CollapsibleGroupType, r as CollapsibleGroupProps, s as CollapsibleGroupValue, t as _default$1, u as CollapsibleEmits } from "../index-DA52oIdw.js";
|
|
2
2
|
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-
|
|
1
|
+
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-DKgHzmJk.js";
|
|
2
2
|
export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
2
2
|
import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as _sfc_main$8 } from "./
|
|
6
|
-
import { t as _sfc_main$9 } from "./
|
|
3
|
+
import { t as _sfc_main$7 } from "./Kbd-BB-Dw6zE.js";
|
|
4
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
5
|
+
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$8 } from "./Dialog-rfUt3y8P.js";
|
|
6
|
+
import { t as _sfc_main$9 } from "./Spinner-9cYUCnDy.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
8
8
|
import "../styles/command-palette.css";
|
|
9
9
|
//#region src/CommandPalette/CommandPaletteEmpty.vue
|
|
@@ -31,12 +31,12 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
31
31
|
return (_ctx, _cache) => {
|
|
32
32
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [renderSlot(_ctx.$slots, "default", {}, () => [
|
|
33
33
|
createElementVNode("span", _hoisted_2$3, [
|
|
34
|
-
createVNode(_sfc_main$
|
|
35
|
-
createVNode(_sfc_main$
|
|
34
|
+
createVNode(_sfc_main$7, { keys: "up" }),
|
|
35
|
+
createVNode(_sfc_main$7, { keys: "down" }),
|
|
36
36
|
createTextVNode(" " + toDisplayString(unref(messages).commandPalette.navigate), 1)
|
|
37
37
|
]),
|
|
38
|
-
createElementVNode("span", _hoisted_3$2, [createVNode(_sfc_main$
|
|
39
|
-
createElementVNode("span", _hoisted_4, [createVNode(_sfc_main$
|
|
38
|
+
createElementVNode("span", _hoisted_3$2, [createVNode(_sfc_main$7, { keys: "enter" }), createTextVNode(" " + toDisplayString(unref(messages).commandPalette.select), 1)]),
|
|
39
|
+
createElementVNode("span", _hoisted_4, [createVNode(_sfc_main$7, { keys: "escape" }), createTextVNode(" " + toDisplayString(unref(messages).commandPalette.close), 1)])
|
|
40
40
|
])]);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -130,7 +130,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
130
130
|
onInput,
|
|
131
131
|
onKeydown: _cache[0] || (_cache[0] = (...args) => unref(palette)?.onKeyDown && unref(palette)?.onKeyDown(...args))
|
|
132
132
|
}, null, 40, _hoisted_2$1),
|
|
133
|
-
createElementVNode("span", _hoisted_3$1, [unref(palette)?.isBusy.value ? (openBlock(), createBlock(_sfc_main$
|
|
133
|
+
createElementVNode("span", _hoisted_3$1, [unref(palette)?.isBusy.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
134
134
|
key: 0,
|
|
135
135
|
class: "astryx-command-palette-spinner",
|
|
136
136
|
size: "sm"
|
|
@@ -419,7 +419,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
419
419
|
value: computed(() => value.value)
|
|
420
420
|
});
|
|
421
421
|
return (_ctx, _cache) => {
|
|
422
|
-
return openBlock(), createBlock(_sfc_main$
|
|
422
|
+
return openBlock(), createBlock(_sfc_main$8, {
|
|
423
423
|
"aria-label": label.value,
|
|
424
424
|
"is-inline": isInline.value,
|
|
425
425
|
"is-open": __props.isOpen,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-
|
|
1
|
+
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-Dv44FFhN.js";
|
|
2
2
|
export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./Icon-bteSId7T.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Ar as
|
|
2
|
-
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-
|
|
1
|
+
import { Ar as ContextMenuItemIcon, Br as ContextMenuSize, Cr as ContextMenuDividerProps, Dr as ContextMenuGroupSlots, Er as ContextMenuGroupProps, Fr as ContextMenuPresentation, Gr as ContextMenuTriggerElement, Hr as ContextMenuSubMenuEmits, Ir as ContextMenuProps, Kr as ContextMenuVariant, Lr as ContextMenuRadioData, Mr as ContextMenuItemSlots, Nr as ContextMenuItemTarget, Or as ContextMenuItemData, Pr as ContextMenuOption, Rr as ContextMenuRadioOptionData, Sr as ContextMenuDividerData, Tr as ContextMenuEntry, Ur as ContextMenuSubMenuProps, Vr as ContextMenuSlots, Wr as ContextMenuSubMenuSlots, _r as _default$2, br as useContextMenuSize, gr as _default$3, hr as _default$4, jr as ContextMenuItemProps, kr as ContextMenuItemEmits, mr as _default$7, qr as ContextMenuWidth, vr as _default, wr as ContextMenuEmits, xr as ContextMenuCheckboxData, yr as useContextMenu, zr as ContextMenuSection } from "../index-EtZgovdH.js";
|
|
2
|
+
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-CXEURBcq.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-
|
|
1
|
+
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-BgjJcY3K.js";
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-BeJO5HYx.js";
|
|
3
3
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|