@astryx-vue/core 0.34.1 → 0.35.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/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +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/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +2 -2
- package/dist/Code/index.js +2 -2
- package/dist/{Code-_PngYOKp.js → Code-BqqB2kUM.js} +159 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DzNfleAX.js → InternationalizationProvider-yLbf4Wi_.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BvWEX29v.js → Markdown-BY5Bju8w.js} +75 -59
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- 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-v_MRx2nn.js → PowerSearch-DopZnZDZ.js} +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CbMxkm2v.js → Table-DG_GVUF4.js} +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/{index-BZDl_iLU.d.ts → index-8FJZ4hpI.d.ts} +39 -1
- package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-BZx7HHxY.d.ts → index-BqAI9Sxh.d.ts} +9 -9
- package/dist/{index-BHoivOHG.d.ts → index-C9TEn6LQ.d.ts} +93 -86
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-E4L3DiiH.d.ts → index-C_iTVOHQ.d.ts} +3 -3
- package/dist/{index-a_FOKJMw.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-DEJlE6_N.d.ts → index-CdvmnNMH.d.ts} +2 -2
- package/dist/{index-BWWirRm3.d.ts → index-DHUCHxn2.d.ts} +1 -1
- package/dist/{index-BWzEt0gT.d.ts → index-DXHmlFcC.d.ts} +4 -4
- package/dist/{index-B44fLswd.d.ts → index-DYabo8TI.d.ts} +2 -2
- package/dist/{index-CukA-J8A.d.ts → index-DoYrlaEI.d.ts} +9 -9
- package/dist/{index-Dk50Zh3F.d.ts → index-DofC9Rll.d.ts} +2 -2
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-BRr_eg_u.d.ts → index-OP4ntESa.d.ts} +1 -1
- package/dist/{index-DN5Ga_Zm.d.ts → index-QC9FDUDA.d.ts} +3 -3
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-D1C2Nt3F.d.ts → index-rr6Rns7h.d.ts} +1 -1
- package/dist/{index-D9t_l8pJ.d.ts → index-tXYy8MJ0.d.ts} +1 -1
- package/dist/{index-a6o69uPN.d.ts → index-tdOyqA_U.d.ts} +2 -2
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +27 -27
- package/dist/index.js +8 -8
- package/dist/{loadCatalog-VlWGFIMU.js → loadCatalog-CKntEldg.js} +3 -0
- package/dist/{loadCatalog-C_Cy_8WN.d.ts → loadCatalog-CdEXyPYj.d.ts} +1 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +2 -2
- package/dist/{locale-U0KLmREA.js → locale-CHA0DNw5.js} +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Al as BannerStatus, Dl as BannerEmits, El as BannerContainer, Ol as BannerProps, Tl as _default, kl as BannerSlots } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-
|
|
1
|
+
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-JE1HrzdJ.js";
|
|
2
2
|
export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-DRpOiAlm.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-DXHmlFcC.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cl as
|
|
1
|
+
import { Cl as ButtonGroupSlots, Sl as ButtonGroupProps, wl as ButtonGroupOrientation, xl as _default } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _l as
|
|
1
|
+
import { _l as CalendarHandleRef, al as UseCalendarNavigationReturn, bl as CalendarSlots, cl as UseCalendarDaysOptions, dl as UseCalendarConstraintsOptions, fl as UseCalendarConstraintsReturn, gl as CalendarHandle, hl as CalendarEmits, il as UseCalendarNavigationOptions, ll as UseCalendarDaysReturn, ml as _default, ol as useCalendarNavigation, pl as useCalendarConstraints, sl as CalendarDay, ul as useCalendarDays, vl as CalendarProps, yl as CalendarRangeValue } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as Calendar, type CalendarDay, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots, type UseCalendarConstraintsOptions, type UseCalendarConstraintsReturn, type UseCalendarDaysOptions, type UseCalendarDaysReturn, type UseCalendarNavigationOptions, type UseCalendarNavigationReturn, useCalendarConstraints, useCalendarDays, useCalendarNavigation };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $c as
|
|
1
|
+
import { $c as _default, el as CarouselGap, nl as CarouselProps, rl as CarouselSlots, tl as CarouselHandle } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $s as
|
|
1
|
+
import { $s as ChatComposerDrawerSlots, Ac as ChatMessageBubbleVariant, As as useChatListContext, Bc as ChatReasoningEmits, Bs as _default$9, Cc as ChatLayoutScrollButtonEmits, Cs as TokenPortal, Dc as ChatMessageBubbleGroup, Ds as ChatComposerContextValue, Ec as ChatLayoutSlots, Es as useChatComposerTokens, Fc as ChatMessageMetadataSlots, Fs as _default$14, Gc as ChatSystemMessageVariant, Gs as _default$4, Hc as ChatReasoningSlots, Hs as _default$7, Ic as ChatMessageProps, Is as _default$13, Jc as ChatToolCallsEmits, Js as _default$1, Kc as ChatToolCallItem, Ks as _default$3, Lc as ChatMessageSender, Ls as _default$12, Mc as ChatMessageListProps, Ms as _default$17, Nc as ChatMessageListSlots, Ns as _default$16, Oc as ChatMessageBubbleProps, Os as useChatComposerContext, Pc as ChatMessageMetadataProps, Ps as _default$15, Qc as ChatUnreadDividerProps, Qs as ChatComposerDrawerProps, Rc as ChatMessageSlots, Rs as _default$11, Sc as ChatLayoutProps, Ss as useSpeechRecognition, Tc as ChatLayoutScrollSlotProps, Ts as UseChatComposerTokensReturn, Uc as ChatSystemMessageProps, Us as _default$6, Vc as ChatReasoningProps, Vs as _default$8, Wc as ChatSystemMessageSlots, Ws as _default$5, Xc as ChatToolCallsSlots, Xs as ChatComposerDensity, Yc as ChatToolCallsProps, Ys as _default, Zc as ChatTypingIndicatorProps, Zs as ChatComposerDrawerEmits, _c as ChatSendButtonProps, _s as UseChatDictationOptions, ac as ChatComposerInputProps, bc as ChatTokenizedTextSlots, bs as UseSpeechRecognitionOptions, cc as ChatComposerStatus, dc as ChatComposerTokenCustom, ec as ChatComposerElevation, fc as ChatComposerTokenElementProps, fs as PASTE_TOKEN_THRESHOLD, gc as ChatSendButtonEmits, gs as useChatPasteAsToken, hc as ChatDictationButtonProps, hs as pastedTextLabel, ic as ChatComposerInputHandle, jc as ChatMessageListAlign, js as useChatMessageContext, kc as ChatMessageBubbleSlots, ks as useChatLayoutContext, lc as ChatComposerToken, mc as ChatComposerTriggerItem, ms as UseChatPasteAsTokenReturn, nc as ChatComposerInputControl, oc as ChatComposerProps, pc as ChatComposerTrigger, ps as UseChatPasteAsTokenOptions, qc as ChatToolCallStatus, qs as _default$2, rc as ChatComposerInputEmits, sc as ChatComposerSlots, tc as ChatComposerEmits, uc as ChatComposerTokenBadge, vc as ChatSendButtonSlots, vs as useChatDictation, wc as ChatLayoutScrollButtonProps, ws as UseChatComposerTokensOptions, xc as ChatDensity, xs as UseSpeechRecognitionReturn, yc as ChatTokenizedTextProps, ys as SpeechRecognitionError, zc as ChatMessageStatus, zs as _default$10 } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { as as
|
|
1
|
+
import { as as _default, cs as CheckboxInputEmits, ds as CheckboxValue, ls as CheckboxInputProps, os as CheckboxInputChangeAction, ss as CheckboxInputChangeEvent, us as CheckboxInputSlots } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $o as _default,
|
|
1
|
+
import { $o as _default$1, es as _default, is as CheckboxListProps, ns as CheckboxListItemEmits, rs as CheckboxListItemProps, ts as CheckboxListEmits } from "../index-C9TEn6LQ.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 {
|
|
1
|
+
import { Qo as ClickableCardSlots, Xo as ClickableCardEmits, Yo as _default, Zo as ClickableCardProps } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as createCodeLanguage, i as CreateCodeLanguageOptions, n as CodeLanguageToken, o as isCodeLanguage, r as CodeLanguageTokenize, t as CodeLanguage } from "../grammar-4Pn2745Q.js";
|
|
2
2
|
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";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as CodeLineTokens, B as CodeHighlightMode, C as applyHighlightRanges, D as diffLineKind, E as DiffLines, F as CodeBlockProps, G as TokenLine, H as CodeSize, I as CodeBlockSize, L as CodeBlockSlots, M as _default, N as CodeBlockContainer, O as parseFenceLanguage, P as CodeBlockEmits, R as CodeBlockTokenizer, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLineKind, U as CodeSlots, V as CodeProps, W 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 _default$1, k as splitDiffLines, 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 applyHighlightRangesFlat, x as tokyoNightLight, y as solarizedLight, z as CodeColor } from "../index-8FJZ4hpI.js";
|
|
4
4
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-DeO8fCW_.js";
|
|
5
|
-
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockSlots, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeLanguage, type CodeLanguageToken, type CodeLanguageTokenize, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, type CreateCodeLanguageOptions, 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, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, createCodeLanguage, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, isCodeLanguage, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
5
|
+
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockSlots, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeLanguage, type CodeLanguageToken, type CodeLanguageTokenize, CodeLineTokens, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, type CreateCodeLanguageOptions, 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, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, createCodeLanguage, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, isCodeLanguage, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
package/dist/Code/index.js
CHANGED
|
@@ -2,5 +2,5 @@ import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
|
|
|
2
2
|
import { a as tokenizeAsync, c as splitDiffLines, d as applyHighlightRangesFlat, f 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-D7ZJQV5Q.js";
|
|
3
3
|
import { g as isCodeLanguage, m as createCodeLanguage } from "../grammar-Dz71GleT.js";
|
|
4
4
|
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
5
|
-
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-
|
|
6
|
-
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, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, createCodeLanguage, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, isCodeLanguage, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
5
|
+
import { _ as CodeLineTokens, 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-BqqB2kUM.js";
|
|
6
|
+
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, CodeLineTokens, DIFF_SYNTAX_TOKEN_KEYS, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, createCodeLanguage, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, isCodeLanguage, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -1,9 +1,167 @@
|
|
|
1
1
|
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
2
2
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
3
|
+
import { i as tokenize } from "./CodeBlock-D7ZJQV5Q.js";
|
|
3
4
|
import { a as syntaxThemeStyle, i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme } from "./syntaxTheme-R7xnu5x5.js";
|
|
4
5
|
import { t as syntaxThemeKey } from "./syntaxContext-DmIfNNtb.js";
|
|
5
6
|
import { n as useResolvedColorMode, r as resolveLightDark } from "./useResolvedColorMode-Df97_9w_.js";
|
|
6
7
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot } from "vue";
|
|
8
|
+
//#region src/Code/codeLineTokens.ts
|
|
9
|
+
const FAMILIES = /* @__PURE__ */ new Map([
|
|
10
|
+
["typescript", "javascript"],
|
|
11
|
+
["javascript", "javascript"],
|
|
12
|
+
["tsx", "javascript"],
|
|
13
|
+
["jsx", "javascript"],
|
|
14
|
+
["ts", "javascript"],
|
|
15
|
+
["js", "javascript"],
|
|
16
|
+
["python", "python"],
|
|
17
|
+
["py", "python"],
|
|
18
|
+
["bash", "shell"],
|
|
19
|
+
["sh", "shell"],
|
|
20
|
+
["zsh", "shell"],
|
|
21
|
+
["shell", "shell"]
|
|
22
|
+
]);
|
|
23
|
+
/** What can open a string or comment that runs on past its line. */
|
|
24
|
+
const OPENERS = {
|
|
25
|
+
javascript: /['"`]|\/\*/,
|
|
26
|
+
python: /['"]/,
|
|
27
|
+
shell: /['"`]|\$\{|\$\(|<</
|
|
28
|
+
};
|
|
29
|
+
/** A line whose last visible character can end a function name. */
|
|
30
|
+
const NAME_END = /[\w$]\s*$/;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the name that ends a line can change color with the code after
|
|
33
|
+
* it: its last visible character is a name character outside every string,
|
|
34
|
+
* comment, number, keyword, and constant, whose patterns come before
|
|
35
|
+
* function names.
|
|
36
|
+
*/
|
|
37
|
+
function endsInOpenName(text, tokens) {
|
|
38
|
+
const last = text.trimEnd().length - 1;
|
|
39
|
+
return NAME_END.test(text) && !tokens.some((token) => token.start <= last && token.end > last && token.type !== "function" && token.type !== "type");
|
|
40
|
+
}
|
|
41
|
+
/** A line's first visible character, or '' when it has none. */
|
|
42
|
+
function firstVisible(line) {
|
|
43
|
+
return /\S/.exec(line)?.[0] ?? "";
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Whether a line's strings and comments all close on it. Their patterns
|
|
47
|
+
* match line breaks, so an opener left open can run on to a later line.
|
|
48
|
+
* Only a string or comment the tokenizer emitted shields an opener: one that
|
|
49
|
+
* another token swallowed, such as `/*` in the operator `+/*`, still counts
|
|
50
|
+
* as open. Python tries triple quotes first, so `"""` can pair with another
|
|
51
|
+
* line even where its quotes close as single strings on this one.
|
|
52
|
+
*/
|
|
53
|
+
function standsAlone(text, tokens, family) {
|
|
54
|
+
if (family === "python" && /'''|"""/.test(text)) return false;
|
|
55
|
+
const opener = OPENERS[family];
|
|
56
|
+
let position = 0;
|
|
57
|
+
for (const token of tokens) {
|
|
58
|
+
if (token.end > text.length) return false;
|
|
59
|
+
if (token.type === "string" || token.type === "comment") {
|
|
60
|
+
if (opener.test(text.slice(position, token.start))) return false;
|
|
61
|
+
position = token.end;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return !opener.test(text.slice(position));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Core CodeBlock's tokens for a block of code, kept line by line with
|
|
68
|
+
* line-relative offsets, exactly as `tokenize` returns them for the whole
|
|
69
|
+
* code.
|
|
70
|
+
*/
|
|
71
|
+
var CodeLineTokens = class {
|
|
72
|
+
language;
|
|
73
|
+
/** Where each line starts in the code. */
|
|
74
|
+
starts = [];
|
|
75
|
+
/** Each line's tokens. */
|
|
76
|
+
tokens = [];
|
|
77
|
+
lines = [];
|
|
78
|
+
family;
|
|
79
|
+
/** Whether every line stands alone, so an edit re-tokenizes lines alone. */
|
|
80
|
+
linesStandAlone = false;
|
|
81
|
+
constructor(text, language) {
|
|
82
|
+
this.language = language;
|
|
83
|
+
this.family = typeof language === "string" ? FAMILIES.get(language) ?? null : null;
|
|
84
|
+
this.tokenizeAll(text);
|
|
85
|
+
}
|
|
86
|
+
/** The code. */
|
|
87
|
+
get text() {
|
|
88
|
+
return this.lines.join("\n");
|
|
89
|
+
}
|
|
90
|
+
/** The line that holds `offset` in the code. */
|
|
91
|
+
lineAt(offset) {
|
|
92
|
+
let low = 0;
|
|
93
|
+
let high = this.starts.length - 1;
|
|
94
|
+
while (low < high) {
|
|
95
|
+
const mid = low + high + 1 >>> 1;
|
|
96
|
+
if (this.starts[mid] <= offset) low = mid;
|
|
97
|
+
else high = mid - 1;
|
|
98
|
+
}
|
|
99
|
+
return low;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Replaces `removed` characters at `offset` in the code with `inserted`.
|
|
103
|
+
* Returns the lines it re-tokenized when the edit stays inside one line
|
|
104
|
+
* and every line still stands alone; otherwise it re-tokenizes all the
|
|
105
|
+
* code and returns null.
|
|
106
|
+
*/
|
|
107
|
+
replace(offset, removed, inserted) {
|
|
108
|
+
const line = this.lineAt(offset);
|
|
109
|
+
const before = this.lines[line];
|
|
110
|
+
const column = offset - this.starts[line];
|
|
111
|
+
if (this.family == null || !this.linesStandAlone || column + removed > before.length || inserted.includes("\n")) {
|
|
112
|
+
const text = this.text;
|
|
113
|
+
this.tokenizeAll(text.slice(0, offset) + inserted + text.slice(offset + removed));
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
const after = before.slice(0, column) + inserted + before.slice(column + removed);
|
|
117
|
+
this.lines[line] = after;
|
|
118
|
+
const tokens = this.tokenizeLine(line);
|
|
119
|
+
if (!standsAlone(after, tokens, this.family)) {
|
|
120
|
+
this.tokenizeAll(this.text);
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
this.tokens[line] = tokens;
|
|
124
|
+
for (let i = line + 1; i < this.starts.length; i++) this.starts[i] += inserted.length - removed;
|
|
125
|
+
const changed = [line];
|
|
126
|
+
if (firstVisible(before) !== firstVisible(after)) {
|
|
127
|
+
let above = line - 1;
|
|
128
|
+
while (above >= 0 && firstVisible(this.lines[above]) === "") above--;
|
|
129
|
+
if (above >= 0 && endsInOpenName(this.lines[above], this.tokens[above] ?? [])) {
|
|
130
|
+
this.tokens[above] = this.tokenizeLine(above);
|
|
131
|
+
changed.unshift(above);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return changed;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* A line's tokens as `tokenize` finds them in the whole code. A function
|
|
138
|
+
* name is a name followed by `(` past any whitespace, line breaks
|
|
139
|
+
* included, so when the line ends in a name, the code up to the next
|
|
140
|
+
* visible character is tokenized with it.
|
|
141
|
+
*/
|
|
142
|
+
tokenizeLine(line) {
|
|
143
|
+
let text = this.lines[line];
|
|
144
|
+
if (NAME_END.test(text)) for (let next = line + 1; next < this.lines.length; next++) {
|
|
145
|
+
const visible = /\S/.exec(this.lines[next]);
|
|
146
|
+
text += `\n${visible == null ? this.lines[next] : this.lines[next].slice(0, visible.index + 1)}`;
|
|
147
|
+
if (visible != null) break;
|
|
148
|
+
}
|
|
149
|
+
return tokenize(text, this.language)[0] ?? [];
|
|
150
|
+
}
|
|
151
|
+
tokenizeAll(text) {
|
|
152
|
+
this.lines = text.split("\n");
|
|
153
|
+
let start = 0;
|
|
154
|
+
this.starts = this.lines.map((line) => {
|
|
155
|
+
const lineStart = start;
|
|
156
|
+
start += line.length + 1;
|
|
157
|
+
return lineStart;
|
|
158
|
+
});
|
|
159
|
+
this.tokens = tokenize(text, this.language);
|
|
160
|
+
const family = this.family;
|
|
161
|
+
this.linesStandAlone = family != null && this.lines.every((line, i) => standsAlone(line, this.tokens[i] ?? [], family));
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
7
165
|
//#region src/Code/syntaxPresets.ts
|
|
8
166
|
/** One Dark Pro (Binaryify), MIT. */
|
|
9
167
|
const oneDarkPro = defineSyntaxTheme({
|
|
@@ -294,4 +452,4 @@ function useSyntaxTheme() {
|
|
|
294
452
|
};
|
|
295
453
|
}
|
|
296
454
|
//#endregion
|
|
297
|
-
export { catppuccinMocha as a, githubLight as c, nord as d, oneDarkPro as f, tokyoNightLight as g, tokyoNight as h, catppuccinLatte as i, lightSyntaxPresets as l, solarizedLight as m, _sfc_main as n, darkSyntaxPresets as o, oneLight as p, allSyntaxPresets as r, dracula as s, useSyntaxTheme as t, monokai as u };
|
|
455
|
+
export { CodeLineTokens as _, catppuccinMocha as a, githubLight as c, nord as d, oneDarkPro as f, tokyoNightLight as g, tokyoNight as h, catppuccinLatte as i, lightSyntaxPresets as l, solarizedLight as m, _sfc_main as n, darkSyntaxPresets as o, oneLight as p, allSyntaxPresets as r, dracula as s, useSyntaxTheme as t, monokai as u };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-
|
|
1
|
+
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-yQc-te9a.js";
|
|
2
2
|
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CommandPaletteSlots, a as _default$2, c as CommandPaletteEmits, d as CommandPaletteInputProps, f as CommandPaletteItemEmits, g as CommandPaletteProps, h as CommandPaletteListProps, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteItemSlotProps, n as _default$5, o as _default$1, p as CommandPaletteItemProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputEmits } from "../index-
|
|
1
|
+
import { _ as CommandPaletteSlots, a as _default$2, c as CommandPaletteEmits, d as CommandPaletteInputProps, f as CommandPaletteItemEmits, g as CommandPaletteProps, h as CommandPaletteListProps, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteItemSlotProps, n as _default$5, o as _default$1, p as CommandPaletteItemProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputEmits } from "../index-BjqoHLMq.js";
|
|
2
2
|
export { _default as CommandPalette, type CommandPaletteEmits, _default$1 as CommandPaletteEmpty, _default$2 as CommandPaletteFooter, _default$3 as CommandPaletteGroup, type CommandPaletteGroupProps, _default$4 as CommandPaletteInput, type CommandPaletteInputEmits, type CommandPaletteInputProps, _default$5 as CommandPaletteItem, type CommandPaletteItemEmits, type CommandPaletteItemProps, type CommandPaletteItemSlotProps, _default$6 as CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, type CommandPaletteSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-
|
|
1
|
+
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-AgTJRqUY.js";
|
|
2
2
|
export { _default as ComplexSelector, _default as default, type ComplexSelectorEmits, type ComplexSelectorHandle, type ComplexSelectorHandleRef, type ComplexSelectorProps, type ComplexSelectorSlotProps, type ComplexSelectorSlots, type ComplexSelectorState, type ComplexSelectorTriggerProps, type ComplexSelectorVariant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Ao as
|
|
1
|
+
import { Ao as ContextMenuItemEmits, Bo as ContextMenuSection, Co as ContextMenuDividerData, Do as ContextMenuGroupProps, Eo as ContextMenuEntry, Fo as ContextMenuOption, Go as ContextMenuSubMenuSlots, Ho as ContextMenuSlots, Io as ContextMenuPresentation, Jo as ContextMenuWidth, Ko as ContextMenuTriggerElement, Lo as ContextMenuProps, Mo as ContextMenuItemProps, No as ContextMenuItemSlots, Oo as ContextMenuGroupSlots, Po as ContextMenuItemTarget, Ro as ContextMenuRadioData, So as ContextMenuCheckboxData, To as ContextMenuEmits, Uo as ContextMenuSubMenuEmits, Vo as ContextMenuSize, Wo as ContextMenuSubMenuProps, _o as _default$3, bo as useContextMenu, go as _default$4, ho as _default$7, jo as ContextMenuItemIcon, ko as ContextMenuItemData, qo as ContextMenuVariant, vo as _default$2, wo as ContextMenuDividerProps, xo as useContextMenuSize, yo as _default, zo as ContextMenuRadioOptionData } from "../index-C9TEn6LQ.js";
|
|
2
2
|
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-BDDI4EZK.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,2 +1,2 @@
|
|
|
1
|
-
import { ao as
|
|
1
|
+
import { ao as DateInputEntryError, co as DateInputFormatName, do as DateInputProps, fo as DateInputSlots, io as _default, lo as DateInputNativePicker, mo as DateInputStatusType, oo as DateInputEmits, po as DateInputStatus, so as DateInputFormat, uo as DateInputPresentation } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputEntryError, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as _default, eo as DateRange, no as DateRangeInputProps, ro as DateRangePreset, to as DateRangeInputEmits } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qa as DateTimeInputSize, Xa as DateTimeInputEmits, Ya as _default, Za as DateTimeInputProps } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-
|
|
1
|
+
import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-CbA8rR_b.js";
|
|
2
2
|
export { _default as Dialog, type DialogBlockPosition, type DialogContext, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useDialogContext, useImperativeDialog };
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as _default, Ga as
|
|
1
|
+
import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileInputSize, i as FileInputProps, n as FileInputEmits, o as FileInputStatus, r as FileInputMode, s as FileInputValue, t as _default } from "../index-
|
|
1
|
+
import { a as FileInputSize, i as FileInputProps, n as FileInputEmits, o as FileInputStatus, r as FileInputMode, s as FileInputValue, t as _default } from "../index-DHUCHxn2.js";
|
|
2
2
|
export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-
|
|
1
|
+
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-DofC9Rll.js";
|
|
2
2
|
export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
|
package/dist/InfoTip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-
|
|
1
|
+
import { a as useLocaleDirection, c as ProviderMessagesByLocale, i as astryxDirectionKey, l as ProviderOverrides, n as InternationalizationProviderProps, o as TextDirection, r as InternationalizationProviderSlots, s as getLocaleDirection, t as _default, u as resolveProviderMessages } from "../index-OP4ntESa.js";
|
|
2
2
|
export { _default as InternationalizationProvider, type InternationalizationProviderProps, type InternationalizationProviderSlots, type ProviderMessagesByLocale, type ProviderOverrides, type TextDirection, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-
|
|
1
|
+
import { a as resolveProviderMessages, i as getLocaleDirection, n as astryxDirectionKey, r as useLocaleDirection, t as _sfc_main } from "../InternationalizationProvider-yLbf4Wi_.js";
|
|
2
2
|
export { _sfc_main as InternationalizationProvider, astryxDirectionKey, getLocaleDirection, resolveProviderMessages, useLocaleDirection };
|
package/dist/{InternationalizationProvider-DzNfleAX.js → InternationalizationProvider-yLbf4Wi_.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
2
2
|
import { a as useAstryxLocale, i as provideAstryxLocale, r as normalizeLocale } from "./context-B8IEFCDR.js";
|
|
3
3
|
import { t as provideAstryxCalendar } from "./calendar-C7py_wtb.js";
|
|
4
|
-
import { h as icuPlaceholderNames, m as formatIcu, n as upstreamMessageMap, r as builtInMessages, t as loadAstryxCatalog } from "./loadCatalog-
|
|
4
|
+
import { h as icuPlaceholderNames, m as formatIcu, n as upstreamMessageMap, r as builtInMessages, t as loadAstryxCatalog } from "./loadCatalog-CKntEldg.js";
|
|
5
5
|
import { computed, defineComponent, inject, provide, renderSlot } from "vue";
|
|
6
6
|
//#region src/InternationalizationProvider/catalog.ts
|
|
7
7
|
/**
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ia as _default } from "../index-C9TEn6LQ.js";
|
|
3
3
|
export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as ListItemProps, a as ItemLayout, b as ListProps, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListEdgeCompensation, h as ListEdge, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListItemSlots, x as ListSlots, y as ListMarkerStyle } from "../types-BHHT6Bho.js";
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-rr6Rns7h.js";
|
|
3
3
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as
|
|
1
|
+
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-C9TEn6LQ.js";
|
|
2
2
|
import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
|
|
3
3
|
import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
|
|
4
4
|
import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
|
|
5
|
-
export { type BlockNode, type InlineNode, _default as Markdown, type MarkdownAlign, type MarkdownAstPhrasingContent, type MarkdownAstRoot, type MarkdownAutolink, type MarkdownCitationStyle, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownInlinePlugin, type MarkdownLinkProps, type MarkdownListProps, type MarkdownPlugin, type MarkdownPluginRenderContext, type MarkdownProps, type MarkdownSlots, type MarkdownSource, type MarkdownTransformContext, type ParseMarkdownOptions, type ParseOptions, type SourceRange, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
|
5
|
+
export { type BlockNode, type InlineNode, _default as Markdown, type MarkdownAlign, type MarkdownAstPhrasingContent, type MarkdownAstRoot, type MarkdownAutolink, type MarkdownCitationStyle, type MarkdownCodeProps, type MarkdownComponents, type MarkdownDensity, type MarkdownDisplay, type MarkdownHeadingLevel, type MarkdownHeadingProps, type MarkdownImageProps, type MarkdownInlineCodeProps, type MarkdownInlinePlugin, type MarkdownLinkProps, type MarkdownListProps, type MarkdownPlugin, type MarkdownPluginRenderContext, type MarkdownProps, type MarkdownSlots, type MarkdownSource, type MarkdownTransformContext, type ParseMarkdownOptions, type ParseOptions, type SourceRange, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, firstStrongDirection, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
package/dist/Markdown/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as parseMarkdownAst, c as decodeMarkdownCharacterReferences, d as parseMarkdown, g as isMarkdownExtensionNode, n as parseInline, o as parseMarkdownIncremental, r as parseInlineAst, t as createIncrementalState } from "../publicParser-Dbu2LRTf.js";
|
|
2
|
-
import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main } from "../Markdown-
|
|
2
|
+
import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, o as firstStrongDirection, r as applyMarkdownPlugins, t as _sfc_main } from "../Markdown-BY5Bju8w.js";
|
|
3
3
|
import { n as uniqueSlug, t as slugify } from "../slug-D6ln5PTq.js";
|
|
4
|
-
export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
|
4
|
+
export { _sfc_main as Markdown, applyInlinePlugins, applyMarkdownPlugins, createIncrementalState, decodeMarkdownCharacterReferences, defineMarkdownPlugin, firstStrongDirection, isMarkdownExtensionNode, parseInline, parseInlineAst, parseMarkdown, parseMarkdownAst, parseMarkdownIncremental, slugify, uniqueSlug, visitMarkdownNodes };
|
|
@@ -15,6 +15,80 @@ import { l as isMarkdownPluginEntry, t as collectProtocolRenderers, u as isMarkd
|
|
|
15
15
|
import { n as uniqueSlug, t as slugify } from "./slug-D6ln5PTq.js";
|
|
16
16
|
import { Fragment, computed, defineComponent, h, ref } from "vue";
|
|
17
17
|
import "../styles/markdown.css";
|
|
18
|
+
//#region src/Markdown/blockDirection.ts
|
|
19
|
+
/**
|
|
20
|
+
* 强从右到左的字符(Unicode 双向算法的 Bidi_Class `R` 和 `AL`)。现行文字按名字列出;
|
|
21
|
+
* 两段范围覆盖补充多文种平面里的古代从右到左文字。
|
|
22
|
+
*
|
|
23
|
+
* JavaScript 没有 `\p{Bidi_Class=…}`,这里按文字和类别近似,并把需要的几处写出来:
|
|
24
|
+
* 分号、问号、阿拉伯字母标记和 tatweel 的文字属性是 Common,但 Bidi_Class 是 `AL`;
|
|
25
|
+
* tatweel 同时是修饰字母,不写出来的话以它开头的阿拉伯词会被读成从左到右。
|
|
26
|
+
*/
|
|
27
|
+
const STRONG_RTL = unicodeRegExp(String.raw`[\p{Script=Adlam}\p{Script=Arabic}\p{Script=Hebrew}\p{Script=Mandaic}\p{Script=Nko}\p{Script=Samaritan}\p{Script=Syriac}\p{Script=Thaana}\u061B\u061C\u061F\u0640\u200F\u{10800}-\u{10FFF}\u{1E800}-\u{1EFFF}]`);
|
|
28
|
+
/**
|
|
29
|
+
* 扫描时跳过的字符:Bidi_Class `AN`、`EN`、`ET`、`ON`,它们定不了方向。
|
|
30
|
+
* 一部分是阿拉伯文字自己的数字、数字前的符号、货币和百分号;一部分是处处都弱的数字
|
|
31
|
+
* (ASCII、全角、数学用的是 `EN`);其余落在上面两段补充平面范围里,那两段按整个平面划,
|
|
32
|
+
* 连这些文字的数字和标点也圈了进去:腓尼基词分隔符、阿维斯陀标点、哈乃斐罗兴亚、加雷、
|
|
33
|
+
* 耶兹迪和鲁米数字、一个加雷符号、阿拉伯数学运算符。
|
|
34
|
+
* 是否属于这里只看 Bidi_Class,不看像不像数字:印度和奥斯曼 Siyaq 数字是 `AL`,N'Ko 和
|
|
35
|
+
* Adlam 的数字是 `R`,都仍然是强的。
|
|
36
|
+
*/
|
|
37
|
+
const WEAK_NUMBER_OR_NEUTRAL = /[0-9\u0600-\u0605\u0609\u060A\u0660-\u0669\u066A-\u066C\u06DD\u06F0-\u06F9\u0890\u0891\u08E2\uFF10-\uFF19\u{1091F}\u{10B39}-\u{10B3F}\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10D6E}\u{10E60}-\u{10E7E}\u{10ED0}-\u{10ED8}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1EEF0}\u{1EEF1}\u{1FBF0}-\u{1FBF9}]/u;
|
|
38
|
+
/**
|
|
39
|
+
* Bidi_Class `L`:其余所有字母、字母数字(`\p{Letter}` 不含)、从左到右标记和十进制数字。
|
|
40
|
+
* 多数文字的数字是 `L`(天城文、孟加拉文、泰米尔文、泰文……),所以以它们开头的行读作从左到右;
|
|
41
|
+
* 不是 `L` 的数字在上面已先跳过。标点和符号不在内。
|
|
42
|
+
*/
|
|
43
|
+
const STRONG_LTR = unicodeRegExp(String.raw`[\p{Letter}\p{Nl}\p{Nd}\u200E]`);
|
|
44
|
+
/** 组合符号跟随它的基字符的方向,所以扫描时跳过。 */
|
|
45
|
+
const COMBINING_MARK = unicodeRegExp(String.raw`\p{Mark}`);
|
|
46
|
+
/**
|
|
47
|
+
* 按文字和类别近似双向算法的 P2、P3:第一个强方向字符的方向,没有就是 null。
|
|
48
|
+
* 不跳过隔离段。按码点读,代理对算一个字符。
|
|
49
|
+
*/
|
|
50
|
+
function firstStrongDirection(text) {
|
|
51
|
+
for (const character of text) {
|
|
52
|
+
if (COMBINING_MARK.test(character) || WEAK_NUMBER_OR_NEUTRAL.test(character)) continue;
|
|
53
|
+
if (STRONG_RTL.test(character)) return "rtl";
|
|
54
|
+
if (STRONG_LTR.test(character)) return "ltr";
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 不计入方向的节点:图片、代码块、公式、表格各按自己的规则读;
|
|
60
|
+
* 扩展节点和引用显示的文字不在树里。
|
|
61
|
+
*/
|
|
62
|
+
const SKIPPED_TYPES = /* @__PURE__ */ new Set([
|
|
63
|
+
"image",
|
|
64
|
+
"imageReference",
|
|
65
|
+
"code",
|
|
66
|
+
"math",
|
|
67
|
+
"inlineMath",
|
|
68
|
+
"table",
|
|
69
|
+
"thematicBreak",
|
|
70
|
+
"citation",
|
|
71
|
+
"break",
|
|
72
|
+
"extension"
|
|
73
|
+
]);
|
|
74
|
+
function nodeDirection(node) {
|
|
75
|
+
if (SKIPPED_TYPES.has(node.type)) return null;
|
|
76
|
+
if (typeof node.value === "string") return firstStrongDirection(node.value);
|
|
77
|
+
for (const child of node.children ?? []) {
|
|
78
|
+
const direction = nodeDirection(child);
|
|
79
|
+
if (direction != null) return direction;
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 一块正文(段落、标题、引用、列表项、表格单元格)自己文字的方向;
|
|
85
|
+
* 一个强方向字符都没有时返回 undefined,这一块沿用外面的方向。
|
|
86
|
+
* 列表项和引用读它们下面的全部内容,嵌套列表也算在内。
|
|
87
|
+
*/
|
|
88
|
+
function markdownBlockDirection(node) {
|
|
89
|
+
return nodeDirection(node) ?? void 0;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
18
92
|
//#region src/Markdown/canonicalAst.ts
|
|
19
93
|
function visitMarkdownNodes(root, type, visitor) {
|
|
20
94
|
const visit = (node) => {
|
|
@@ -139,64 +213,6 @@ function applyInlinePlugins(root, plugins) {
|
|
|
139
213
|
};
|
|
140
214
|
}
|
|
141
215
|
//#endregion
|
|
142
|
-
//#region src/Markdown/blockDirection.ts
|
|
143
|
-
/**
|
|
144
|
-
* 强从右到左的字符(Unicode 双向算法的 Bidi_Class `R` 和 `AL`)。现行文字按名字列出;
|
|
145
|
-
* 两段范围覆盖补充多文种平面里的古代从右到左文字(含 Adlam)。
|
|
146
|
-
*/
|
|
147
|
-
const STRONG_RTL = unicodeRegExp(String.raw`[\p{Script=Arabic}\p{Script=Hebrew}\p{Script=Mandaic}\p{Script=Nko}\p{Script=Samaritan}\p{Script=Syriac}\p{Script=Thaana}\u200F\u{10800}-\u{10FFF}\u{1E800}-\u{1EFFF}]`);
|
|
148
|
-
/** 阿拉伯文字里的弱字符:数字、数字前的符号、货币和百分号。扫描时跳过。 */
|
|
149
|
-
const WEAK_ARABIC_NUMBER = /[\u0600-\u0605\u0609\u060A\u0660-\u0669\u066A-\u066C\u06DD\u06F0-\u06F9\u0890\u0891\u08E2]/u;
|
|
150
|
-
/** Bidi_Class `L`:其余所有字母、字母数字(`\p{Letter}` 不含)和从左到右标记。数字、标点、符号不在内。 */
|
|
151
|
-
const STRONG_LTR = unicodeRegExp(String.raw`[\p{Letter}\p{Nl}\u200E]`);
|
|
152
|
-
/** 组合符号跟随它的基字符的方向,所以扫描时跳过。 */
|
|
153
|
-
const COMBINING_MARK = unicodeRegExp(String.raw`\p{Mark}`);
|
|
154
|
-
/**
|
|
155
|
-
* 双向算法 P2、P3 两条规则:第一个强方向字符的方向,没有就是 null。
|
|
156
|
-
* 按码点读,代理对算一个字符。
|
|
157
|
-
*/
|
|
158
|
-
function firstStrongDirection(text) {
|
|
159
|
-
for (const character of text) {
|
|
160
|
-
if (COMBINING_MARK.test(character) || WEAK_ARABIC_NUMBER.test(character)) continue;
|
|
161
|
-
if (STRONG_RTL.test(character)) return "rtl";
|
|
162
|
-
if (STRONG_LTR.test(character)) return "ltr";
|
|
163
|
-
}
|
|
164
|
-
return null;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* 不计入方向的节点:图片、代码块、公式、表格各按自己的规则读;
|
|
168
|
-
* 扩展节点和引用显示的文字不在树里。
|
|
169
|
-
*/
|
|
170
|
-
const SKIPPED_TYPES = /* @__PURE__ */ new Set([
|
|
171
|
-
"image",
|
|
172
|
-
"imageReference",
|
|
173
|
-
"code",
|
|
174
|
-
"math",
|
|
175
|
-
"inlineMath",
|
|
176
|
-
"table",
|
|
177
|
-
"thematicBreak",
|
|
178
|
-
"citation",
|
|
179
|
-
"break",
|
|
180
|
-
"extension"
|
|
181
|
-
]);
|
|
182
|
-
function nodeDirection(node) {
|
|
183
|
-
if (SKIPPED_TYPES.has(node.type)) return null;
|
|
184
|
-
if (typeof node.value === "string") return firstStrongDirection(node.value);
|
|
185
|
-
for (const child of node.children ?? []) {
|
|
186
|
-
const direction = nodeDirection(child);
|
|
187
|
-
if (direction != null) return direction;
|
|
188
|
-
}
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* 一块正文(段落、标题、引用、列表项、表格单元格)自己文字的方向;
|
|
193
|
-
* 一个强方向字符都没有时返回 undefined,这一块沿用外面的方向。
|
|
194
|
-
* 列表项和引用读它们下面的全部内容,嵌套列表也算在内。
|
|
195
|
-
*/
|
|
196
|
-
function markdownBlockDirection(node) {
|
|
197
|
-
return nodeDirection(node) ?? void 0;
|
|
198
|
-
}
|
|
199
|
-
//#endregion
|
|
200
216
|
//#region src/Markdown/streaming.ts
|
|
201
217
|
/**
|
|
202
218
|
* Record the previous rendered length as a fade boundary.
|
|
@@ -1065,4 +1081,4 @@ const _sfc_main = defineComponent({
|
|
|
1065
1081
|
}
|
|
1066
1082
|
});
|
|
1067
1083
|
//#endregion
|
|
1068
|
-
export { visitMarkdownNodes as a, defineMarkdownPlugin as i, applyInlinePlugins as n, applyMarkdownPlugins as r, _sfc_main as t };
|
|
1084
|
+
export { visitMarkdownNodes as a, defineMarkdownPlugin as i, applyInlinePlugins as n, firstStrongDirection as o, applyMarkdownPlugins as r, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-
|
|
1
|
+
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-utZGF4GR.js";
|
|
2
2
|
export { _default as MetadataList, type MetadataListColumns, _default$1 as MetadataListItem, type MetadataListItemProps, type MetadataListItemSlots, type MetadataListLabelConfig, type MetadataListLabelPosition, type MetadataListOrientation, type MetadataListProps, type MetadataListSlots };
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as MoreMenuItemVariant, Ji as MoreMenuDivider, Qi as MoreMenuItem, Xi as MoreMenuIcon, Yi as MoreMenuEmits, Zi as MoreMenuInitialFocus, aa as MoreMenuSlots, ea as MoreMenuOption, ia as MoreMenuSection, na as MoreMenuProps, qi as _default, ra as MoreMenuResolvedPresentation, ta as MoreMenuPresentation } from "../index-
|
|
1
|
+
import { $i as MoreMenuItemVariant, Ji as MoreMenuDivider, Qi as MoreMenuItem, Xi as MoreMenuIcon, Yi as MoreMenuEmits, Zi as MoreMenuInitialFocus, aa as MoreMenuSlots, ea as MoreMenuOption, ia as MoreMenuSection, na as MoreMenuProps, qi as _default, ra as MoreMenuResolvedPresentation, ta as MoreMenuPresentation } from "../index-C9TEn6LQ.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|