sparkdesign 0.4.1 → 0.4.3
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/README.md +112 -204
- package/{cli/dist → dist}/commands/add.js +11 -2
- package/package.json +19 -126
- package/{cli/registry → registry}/chat/markdown.tsx +1 -1
- package/{cli/registry → registry}/chat/tool-invocation-card.tsx +5 -5
- package/registry/meta.json +750 -0
- package/cli/registry/meta.json +0 -1
- package/dist/_basePickBy-DnQN8w3y.js +0 -151
- package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
- package/dist/_baseUniq-B-N2NQ50.js +0 -614
- package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
- package/dist/arc-BQBhijZ6.js +0 -83
- package/dist/arc-mWQt0Yph.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
- package/dist/channel-BQn0o8bs.js +0 -5
- package/dist/channel-DaN7XniJ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
- package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
- package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
- package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
- package/dist/clone-Cde_NQ8V.js +0 -8
- package/dist/clone-DCNjWuM2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
- package/dist/graph-DIbblrZP.cjs +0 -1
- package/dist/graph-DPcK91G3.js +0 -247
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
- package/dist/katex.css +0 -1
- package/dist/layout-Byuh8f-J.cjs +0 -1
- package/dist/layout-CdLdvj1j.js +0 -1335
- package/dist/linear-C2Q_PI9B.js +0 -259
- package/dist/linear-C69aPBW1.cjs +0 -1
- package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
- package/dist/mermaid.core-gFR0XUlD.js +0 -15300
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
- package/dist/qoder-design.css +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
- package/dist/registry/basic/alert-dialog.d.ts +0 -40
- package/dist/registry/basic/avatar.d.ts +0 -30
- package/dist/registry/basic/button.d.ts +0 -16
- package/dist/registry/basic/collapse.d.ts +0 -22
- package/dist/registry/basic/collapsible-card.d.ts +0 -34
- package/dist/registry/basic/collapsible.d.ts +0 -15
- package/dist/registry/basic/dropdown-menu.d.ts +0 -52
- package/dist/registry/basic/icon-button.d.ts +0 -12
- package/dist/registry/basic/icons-inline.d.ts +0 -51
- package/dist/registry/basic/kbd.d.ts +0 -23
- package/dist/registry/basic/option-list.d.ts +0 -16
- package/dist/registry/basic/pagination.d.ts +0 -33
- package/dist/registry/basic/progress.d.ts +0 -18
- package/dist/registry/basic/radio-group.d.ts +0 -25
- package/dist/registry/basic/resizable.d.ts +0 -318
- package/dist/registry/basic/scrollbar.d.ts +0 -12
- package/dist/registry/basic/select.d.ts +0 -35
- package/dist/registry/basic/shimmering-text.d.ts +0 -27
- package/dist/registry/basic/sidebar-menu.d.ts +0 -23
- package/dist/registry/basic/skeleton.d.ts +0 -10
- package/dist/registry/basic/slider.d.ts +0 -16
- package/dist/registry/basic/sonner.d.ts +0 -23
- package/dist/registry/basic/spinner.d.ts +0 -5
- package/dist/registry/basic/switch.d.ts +0 -20
- package/dist/registry/basic/table.d.ts +0 -18
- package/dist/registry/basic/tabs.d.ts +0 -29
- package/dist/registry/basic/tag.d.ts +0 -23
- package/dist/registry/basic/theme-from-document.d.ts +0 -10
- package/dist/registry/basic/toggle.d.ts +0 -29
- package/dist/registry/basic/tooltip.d.ts +0 -34
- package/dist/registry/basic/typography.d.ts +0 -76
- package/dist/registry/chat/ask-user-part.d.ts +0 -24
- package/dist/registry/chat/browser-action-part.d.ts +0 -28
- package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +0 -22
- package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +0 -12
- package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +0 -9
- package/dist/registry/chat/chat-input/compound.d.ts +0 -97
- package/dist/registry/chat/chat-input/context.d.ts +0 -64
- package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +0 -11
- package/dist/registry/chat/chat-input/index.d.ts +0 -34
- package/dist/registry/chat/chat-input/types.d.ts +0 -79
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +0 -7
- package/dist/registry/chat/code-block-part.d.ts +0 -23
- package/dist/registry/chat/file-attachment.d.ts +0 -19
- package/dist/registry/chat/file-card.d.ts +0 -10
- package/dist/registry/chat/file-review-part.d.ts +0 -30
- package/dist/registry/chat/folder-button.d.ts +0 -20
- package/dist/registry/chat/generated-images-grid.d.ts +0 -15
- package/dist/registry/chat/generation-status-bar.d.ts +0 -19
- package/dist/registry/chat/hint-banner.d.ts +0 -28
- package/dist/registry/chat/image-attachment.d.ts +0 -19
- package/dist/registry/chat/image-generating.d.ts +0 -15
- package/dist/registry/chat/markdown.d.ts +0 -8
- package/dist/registry/chat/mermaid-part.d.ts +0 -17
- package/dist/registry/chat/permission-card.d.ts +0 -24
- package/dist/registry/chat/plan-part.d.ts +0 -30
- package/dist/registry/chat/queue-indicator.d.ts +0 -27
- package/dist/registry/chat/reasoning-step/compound.d.ts +0 -17
- package/dist/registry/chat/reasoning-step/context.d.ts +0 -10
- package/dist/registry/chat/reasoning-step/index.d.ts +0 -14
- package/dist/registry/chat/reasoning-step/types.d.ts +0 -95
- package/dist/registry/chat/related-prompts.d.ts +0 -23
- package/dist/registry/chat/response/compound.d.ts +0 -25
- package/dist/registry/chat/response/context.d.ts +0 -9
- package/dist/registry/chat/response/index.d.ts +0 -15
- package/dist/registry/chat/response/types.d.ts +0 -99
- package/dist/registry/chat/send-button.d.ts +0 -17
- package/dist/registry/chat/streaming-markdown-block.d.ts +0 -8
- package/dist/registry/chat/task-part.d.ts +0 -28
- package/dist/registry/chat/terminal-code-block-part.d.ts +0 -18
- package/dist/registry/chat/thinking-indicator.d.ts +0 -14
- package/dist/registry/chat/tool-invocation-card.d.ts +0 -20
- package/dist/registry/chat/user-message.d.ts +0 -6
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -30
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -18
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -20
- package/dist/registry/chat/user-question/compound.d.ts +0 -37
- package/dist/registry/chat/user-question/context.d.ts +0 -55
- package/dist/registry/chat/user-question/index.d.ts +0 -15
- package/dist/registry/chat/user-question/types.d.ts +0 -52
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +0 -17
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
- package/dist/registry/chat/user-question-answer.d.ts +0 -13
- package/dist/registry/lib/file-icon-maps.d.ts +0 -20
- package/dist/registry/lib/use-mermaid-render.d.ts +0 -5
- package/dist/registry/lib/utils.d.ts +0 -11
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
- package/dist/scale/computed.css +0 -103
- package/dist/scale/config.css +0 -110
- package/dist/scale/index.css +0 -30
- package/dist/scale/presets/compact.css +0 -30
- package/dist/scale/presets/dense.css +0 -64
- package/dist/scale/presets/sharp.css +0 -40
- package/dist/scale/presets/soft.css +0 -16
- package/dist/scale.css +0 -13
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
- package/dist/spark-design.cjs.js +0 -265
- package/dist/spark-design.es.js +0 -13425
- package/dist/src/components/basic/AlertDialog/index.d.ts +0 -20
- package/dist/src/components/basic/Avatar/index.d.ts +0 -7
- package/dist/src/components/basic/Button/index.d.ts +0 -7
- package/dist/src/components/basic/Collapse/index.d.ts +0 -15
- package/dist/src/components/basic/Collapsible/index.d.ts +0 -7
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +0 -7
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
- package/dist/src/components/basic/DropdownMenu/index.d.ts +0 -19
- package/dist/src/components/basic/EllipsisText/index.d.ts +0 -53
- package/dist/src/components/basic/IconButton/index.d.ts +0 -7
- package/dist/src/components/basic/Kbd/index.d.ts +0 -7
- package/dist/src/components/basic/OptionList/index.d.ts +0 -7
- package/dist/src/components/basic/Pagination/index.d.ts +0 -7
- package/dist/src/components/basic/Progress/index.d.ts +0 -7
- package/dist/src/components/basic/RadioGroup/index.d.ts +0 -7
- package/dist/src/components/basic/Resizable/index.d.ts +0 -7
- package/dist/src/components/basic/Scrollbar/index.d.ts +0 -7
- package/dist/src/components/basic/Select/index.d.ts +0 -17
- package/dist/src/components/basic/ShimmeringText/index.d.ts +0 -7
- package/dist/src/components/basic/SidebarMenu/index.d.ts +0 -4
- package/dist/src/components/basic/Skeleton/index.d.ts +0 -7
- package/dist/src/components/basic/Slider/index.d.ts +0 -7
- package/dist/src/components/basic/Spinner/index.d.ts +0 -7
- package/dist/src/components/basic/Switch/index.d.ts +0 -38
- package/dist/src/components/basic/Table/index.d.ts +0 -7
- package/dist/src/components/basic/Tabs/index.d.ts +0 -7
- package/dist/src/components/basic/Tag/index.d.ts +0 -10
- package/dist/src/components/basic/Toast/index.d.ts +0 -12
- package/dist/src/components/basic/Toggle/index.d.ts +0 -7
- package/dist/src/components/basic/Tooltip/index.d.ts +0 -21
- package/dist/src/components/basic/Typography/index.d.ts +0 -7
- package/dist/src/components/chat/AskUserPart/index.d.ts +0 -6
- package/dist/src/components/chat/BrowserActionPart/index.d.ts +0 -7
- package/dist/src/components/chat/ChatInput/index.d.ts +0 -29
- package/dist/src/components/chat/CodeBlockPart/index.d.ts +0 -7
- package/dist/src/components/chat/FileAttachment/index.d.ts +0 -3
- package/dist/src/components/chat/FileCard/index.d.ts +0 -3
- package/dist/src/components/chat/FileReviewPart/index.d.ts +0 -7
- package/dist/src/components/chat/FolderButton/index.d.ts +0 -5
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +0 -7
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +0 -7
- package/dist/src/components/chat/HintBanner/index.d.ts +0 -6
- package/dist/src/components/chat/ImageAttachment/index.d.ts +0 -3
- package/dist/src/components/chat/ImageGenerating/index.d.ts +0 -6
- package/dist/src/components/chat/Markdown/demo-content.d.ts +0 -1
- package/dist/src/components/chat/Markdown/index.d.ts +0 -7
- package/dist/src/components/chat/MermaidPart/index.d.ts +0 -6
- package/dist/src/components/chat/PermissionCard/index.d.ts +0 -4
- package/dist/src/components/chat/PlanPart/index.d.ts +0 -6
- package/dist/src/components/chat/QueueIndicator/index.d.ts +0 -4
- package/dist/src/components/chat/ReasoningStep/index.d.ts +0 -13
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +0 -6
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -6
- package/dist/src/components/chat/Response/index.d.ts +0 -16
- package/dist/src/components/chat/SendButton/index.d.ts +0 -5
- package/dist/src/components/chat/TaskPart/index.d.ts +0 -7
- package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +0 -6
- package/dist/src/components/chat/ThinkingIndicator/index.d.ts +0 -6
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +0 -4
- package/dist/src/components/chat/UserMessage/index.d.ts +0 -7
- package/dist/src/components/chat/UserQuestion/index.d.ts +0 -19
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +0 -3
- package/dist/src/components/index.d.ts +0 -138
- package/dist/src/icons/context.d.ts +0 -26
- package/dist/src/icons/types.d.ts +0 -18
- package/dist/src/lib/ThemeStyleContext.d.ts +0 -21
- package/dist/src/lib/file-icon.d.ts +0 -16
- package/dist/src/lib/i18n.d.ts +0 -12
- package/dist/src/lib/index.d.ts +0 -10
- package/dist/src/lib/motion.d.ts +0 -22
- package/dist/src/lib/utils.d.ts +0 -11
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
- package/dist/theme-base.css +0 -270
- package/dist/theme.css +0 -17
- package/dist/themes/dark-parchment.css +0 -133
- package/dist/themes/dark-qoder.css +0 -133
- package/dist/themes/light-parchment.css +0 -124
- package/dist/themes/light-qoder.css +0 -132
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
- package/dist/tokens/index.css +0 -35
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
- /package/{cli/dist → dist}/commands/diff.js +0 -0
- /package/{cli/dist → dist}/commands/init.js +0 -0
- /package/{cli/dist → dist}/commands/list.js +0 -0
- /package/{cli/dist → dist}/index.js +0 -0
- /package/{cli/dist → dist}/utils/config.js +0 -0
- /package/{cli/dist → dist}/utils/registry.js +0 -0
- /package/{cli/dist → dist}/utils/tokens.js +0 -0
- /package/{cli/dist → dist}/utils/transform.js +0 -0
- /package/{cli/registry → registry}/__tests__/basic/button.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/markdown.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
- /package/{cli/registry → registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
- /package/{cli/registry → registry}/basic/alert-dialog.tsx +0 -0
- /package/{cli/registry → registry}/basic/avatar.tsx +0 -0
- /package/{cli/registry → registry}/basic/button.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapse.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapsible-card.tsx +0 -0
- /package/{cli/registry → registry}/basic/collapsible.tsx +0 -0
- /package/{cli/registry → registry}/basic/dropdown-menu.tsx +0 -0
- /package/{cli/registry → registry}/basic/icon-button.tsx +0 -0
- /package/{cli/registry → registry}/basic/icons-inline.tsx +0 -0
- /package/{cli/registry → registry}/basic/kbd.tsx +0 -0
- /package/{cli/registry → registry}/basic/option-list.tsx +0 -0
- /package/{cli/registry → registry}/basic/pagination.tsx +0 -0
- /package/{cli/registry → registry}/basic/progress.tsx +0 -0
- /package/{cli/registry → registry}/basic/radio-group.tsx +0 -0
- /package/{cli/registry → registry}/basic/resizable.tsx +0 -0
- /package/{cli/registry → registry}/basic/scrollbar.tsx +0 -0
- /package/{cli/registry → registry}/basic/select.tsx +0 -0
- /package/{cli/registry → registry}/basic/shimmering-text.tsx +0 -0
- /package/{cli/registry → registry}/basic/sidebar-menu.tsx +0 -0
- /package/{cli/registry → registry}/basic/skeleton.tsx +0 -0
- /package/{cli/registry → registry}/basic/slider.tsx +0 -0
- /package/{cli/registry → registry}/basic/sonner.tsx +0 -0
- /package/{cli/registry → registry}/basic/spinner.tsx +0 -0
- /package/{cli/registry → registry}/basic/switch.tsx +0 -0
- /package/{cli/registry → registry}/basic/table.tsx +0 -0
- /package/{cli/registry → registry}/basic/tabs.tsx +0 -0
- /package/{cli/registry → registry}/basic/tag.tsx +0 -0
- /package/{cli/registry → registry}/basic/theme-from-document.ts +0 -0
- /package/{cli/registry → registry}/basic/toggle.tsx +0 -0
- /package/{cli/registry → registry}/basic/tooltip.tsx +0 -0
- /package/{cli/registry → registry}/basic/typography.tsx +0 -0
- /package/{cli/registry → registry}/chat/ask-user-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/browser-action-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/chat-input/types.ts +0 -0
- /package/{cli/registry → registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
- /package/{cli/registry → registry}/chat/code-block-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-attachment.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-card.tsx +0 -0
- /package/{cli/registry → registry}/chat/file-review-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/folder-button.tsx +0 -0
- /package/{cli/registry → registry}/chat/generated-images-grid.tsx +0 -0
- /package/{cli/registry → registry}/chat/generation-status-bar.tsx +0 -0
- /package/{cli/registry → registry}/chat/hint-banner.tsx +0 -0
- /package/{cli/registry → registry}/chat/image-attachment.tsx +0 -0
- /package/{cli/registry → registry}/chat/image-generating.tsx +0 -0
- /package/{cli/registry → registry}/chat/mermaid-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/permission-card.tsx +0 -0
- /package/{cli/registry → registry}/chat/plan-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/queue-indicator.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/reasoning-step/types.ts +0 -0
- /package/{cli/registry → registry}/chat/related-prompts.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/response/types.ts +0 -0
- /package/{cli/registry → registry}/chat/send-button.tsx +0 -0
- /package/{cli/registry → registry}/chat/streaming-markdown-block.tsx +0 -0
- /package/{cli/registry → registry}/chat/task-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/terminal-code-block-part.tsx +0 -0
- /package/{cli/registry → registry}/chat/thinking-indicator.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-message.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionCard.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/compound.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/context.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/index.tsx +0 -0
- /package/{cli/registry → registry}/chat/user-question/types.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question/useUserQuestionState.ts +0 -0
- /package/{cli/registry → registry}/chat/user-question-answer.tsx +0 -0
- /package/{cli/registry → registry}/lib/file-icon-maps.ts +0 -0
- /package/{cli/registry → registry}/lib/use-mermaid-render.ts +0 -0
- /package/{cli/registry → registry}/lib/utils.ts +0 -0
- /package/{cli/registry → registry}/tokens/index.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/computed.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/config.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/index.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/compact.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/dense.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/sharp.css +0 -0
- /package/{cli/registry → registry}/tokens/scale/presets/soft.css +0 -0
- /package/{cli/registry → registry}/tokens/scale.css +0 -0
- /package/{cli/registry → registry}/tokens/scrollbar-utility.css +0 -0
- /package/{cli/registry → registry}/tokens/theme.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/dark-parchment.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/dark-qoder.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/light-parchment.css +0 -0
- /package/{cli/registry → registry}/tokens/themes/light-qoder.css +0 -0
package/dist/linear-C2Q_PI9B.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { aM as j, aN as p, aO as w, aP as k, aQ as q } from "./mermaid.core-gFR0XUlD.js";
|
|
2
|
-
import { i as D } from "./init-DjUOC4st.js";
|
|
3
|
-
import { e as M, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js";
|
|
4
|
-
function g(n, r) {
|
|
5
|
-
return n == null || r == null ? NaN : n < r ? -1 : n > r ? 1 : n >= r ? 0 : NaN;
|
|
6
|
-
}
|
|
7
|
-
function B(n, r) {
|
|
8
|
-
return n == null || r == null ? NaN : r < n ? -1 : r > n ? 1 : r >= n ? 0 : NaN;
|
|
9
|
-
}
|
|
10
|
-
function R(n) {
|
|
11
|
-
let r, t, e;
|
|
12
|
-
n.length !== 2 ? (r = g, t = (o, c) => g(n(o), c), e = (o, c) => n(o) - c) : (r = n === g || n === B ? n : I, t = n, e = n);
|
|
13
|
-
function u(o, c, i = 0, h = o.length) {
|
|
14
|
-
if (i < h) {
|
|
15
|
-
if (r(c, c) !== 0) return h;
|
|
16
|
-
do {
|
|
17
|
-
const l = i + h >>> 1;
|
|
18
|
-
t(o[l], c) < 0 ? i = l + 1 : h = l;
|
|
19
|
-
} while (i < h);
|
|
20
|
-
}
|
|
21
|
-
return i;
|
|
22
|
-
}
|
|
23
|
-
function f(o, c, i = 0, h = o.length) {
|
|
24
|
-
if (i < h) {
|
|
25
|
-
if (r(c, c) !== 0) return h;
|
|
26
|
-
do {
|
|
27
|
-
const l = i + h >>> 1;
|
|
28
|
-
t(o[l], c) <= 0 ? i = l + 1 : h = l;
|
|
29
|
-
} while (i < h);
|
|
30
|
-
}
|
|
31
|
-
return i;
|
|
32
|
-
}
|
|
33
|
-
function a(o, c, i = 0, h = o.length) {
|
|
34
|
-
const l = u(o, c, i, h - 1);
|
|
35
|
-
return l > i && e(o[l - 1], c) > -e(o[l], c) ? l - 1 : l;
|
|
36
|
-
}
|
|
37
|
-
return { left: u, center: a, right: f };
|
|
38
|
-
}
|
|
39
|
-
function I() {
|
|
40
|
-
return 0;
|
|
41
|
-
}
|
|
42
|
-
function O(n) {
|
|
43
|
-
return n === null ? NaN : +n;
|
|
44
|
-
}
|
|
45
|
-
const V = R(g), $ = V.right;
|
|
46
|
-
R(O).center;
|
|
47
|
-
const x = Math.sqrt(50), Q = Math.sqrt(10), T = Math.sqrt(2);
|
|
48
|
-
function v(n, r, t) {
|
|
49
|
-
const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= x ? 10 : f >= Q ? 5 : f >= T ? 2 : 1;
|
|
50
|
-
let o, c, i;
|
|
51
|
-
return u < 0 ? (i = Math.pow(10, -u) / a, o = Math.round(n * i), c = Math.round(r * i), o / i < n && ++o, c / i > r && --c, i = -i) : (i = Math.pow(10, u) * a, o = Math.round(n / i), c = Math.round(r / i), o * i < n && ++o, c * i > r && --c), c < o && 0.5 <= t && t < 2 ? v(n, r, t * 2) : [o, c, i];
|
|
52
|
-
}
|
|
53
|
-
function C(n, r, t) {
|
|
54
|
-
if (r = +r, n = +n, t = +t, !(t > 0)) return [];
|
|
55
|
-
if (n === r) return [n];
|
|
56
|
-
const e = r < n, [u, f, a] = e ? v(r, n, t) : v(n, r, t);
|
|
57
|
-
if (!(f >= u)) return [];
|
|
58
|
-
const o = f - u + 1, c = new Array(o);
|
|
59
|
-
if (e)
|
|
60
|
-
if (a < 0) for (let i = 0; i < o; ++i) c[i] = (f - i) / -a;
|
|
61
|
-
else for (let i = 0; i < o; ++i) c[i] = (f - i) * a;
|
|
62
|
-
else if (a < 0) for (let i = 0; i < o; ++i) c[i] = (u + i) / -a;
|
|
63
|
-
else for (let i = 0; i < o; ++i) c[i] = (u + i) * a;
|
|
64
|
-
return c;
|
|
65
|
-
}
|
|
66
|
-
function y(n, r, t) {
|
|
67
|
-
return r = +r, n = +n, t = +t, v(n, r, t)[2];
|
|
68
|
-
}
|
|
69
|
-
function E(n, r, t) {
|
|
70
|
-
r = +r, n = +n, t = +t;
|
|
71
|
-
const e = r < n, u = e ? y(r, n, t) : y(n, r, t);
|
|
72
|
-
return (e ? -1 : 1) * (u < 0 ? 1 / -u : u);
|
|
73
|
-
}
|
|
74
|
-
function G(n, r) {
|
|
75
|
-
r || (r = []);
|
|
76
|
-
var t = n ? Math.min(r.length, n.length) : 0, e = r.slice(), u;
|
|
77
|
-
return function(f) {
|
|
78
|
-
for (u = 0; u < t; ++u) e[u] = n[u] * (1 - f) + r[u] * f;
|
|
79
|
-
return e;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function H(n) {
|
|
83
|
-
return ArrayBuffer.isView(n) && !(n instanceof DataView);
|
|
84
|
-
}
|
|
85
|
-
function J(n, r) {
|
|
86
|
-
var t = r ? r.length : 0, e = n ? Math.min(t, n.length) : 0, u = new Array(e), f = new Array(t), a;
|
|
87
|
-
for (a = 0; a < e; ++a) u[a] = d(n[a], r[a]);
|
|
88
|
-
for (; a < t; ++a) f[a] = r[a];
|
|
89
|
-
return function(o) {
|
|
90
|
-
for (a = 0; a < e; ++a) f[a] = u[a](o);
|
|
91
|
-
return f;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
function K(n, r) {
|
|
95
|
-
var t = /* @__PURE__ */ new Date();
|
|
96
|
-
return n = +n, r = +r, function(e) {
|
|
97
|
-
return t.setTime(n * (1 - e) + r * e), t;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function L(n, r) {
|
|
101
|
-
var t = {}, e = {}, u;
|
|
102
|
-
(n === null || typeof n != "object") && (n = {}), (r === null || typeof r != "object") && (r = {});
|
|
103
|
-
for (u in r)
|
|
104
|
-
u in n ? t[u] = d(n[u], r[u]) : e[u] = r[u];
|
|
105
|
-
return function(f) {
|
|
106
|
-
for (u in t) e[u] = t[u](f);
|
|
107
|
-
return e;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function d(n, r) {
|
|
111
|
-
var t = typeof r, e;
|
|
112
|
-
return r == null || t === "boolean" ? j(r) : (t === "number" ? p : t === "string" ? (e = w(r)) ? (r = e, k) : q : r instanceof w ? k : r instanceof Date ? K : H(r) ? G : Array.isArray(r) ? J : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? L : p)(n, r);
|
|
113
|
-
}
|
|
114
|
-
function U(n, r) {
|
|
115
|
-
return n = +n, r = +r, function(t) {
|
|
116
|
-
return Math.round(n * (1 - t) + r * t);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
function W(n) {
|
|
120
|
-
return Math.max(0, -M(Math.abs(n)));
|
|
121
|
-
}
|
|
122
|
-
function X(n, r) {
|
|
123
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(M(r) / 3))) * 3 - M(Math.abs(n)));
|
|
124
|
-
}
|
|
125
|
-
function Y(n, r) {
|
|
126
|
-
return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, M(r) - M(n)) + 1;
|
|
127
|
-
}
|
|
128
|
-
function Z(n) {
|
|
129
|
-
return function() {
|
|
130
|
-
return n;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function _(n) {
|
|
134
|
-
return +n;
|
|
135
|
-
}
|
|
136
|
-
var A = [0, 1];
|
|
137
|
-
function m(n) {
|
|
138
|
-
return n;
|
|
139
|
-
}
|
|
140
|
-
function N(n, r) {
|
|
141
|
-
return (r -= n = +n) ? function(t) {
|
|
142
|
-
return (t - n) / r;
|
|
143
|
-
} : Z(isNaN(r) ? NaN : 0.5);
|
|
144
|
-
}
|
|
145
|
-
function b(n, r) {
|
|
146
|
-
var t;
|
|
147
|
-
return n > r && (t = n, n = r, r = t), function(e) {
|
|
148
|
-
return Math.max(n, Math.min(r, e));
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function nn(n, r, t) {
|
|
152
|
-
var e = n[0], u = n[1], f = r[0], a = r[1];
|
|
153
|
-
return u < e ? (e = N(u, e), f = t(a, f)) : (e = N(e, u), f = t(f, a)), function(o) {
|
|
154
|
-
return f(e(o));
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function rn(n, r, t) {
|
|
158
|
-
var e = Math.min(n.length, r.length) - 1, u = new Array(e), f = new Array(e), a = -1;
|
|
159
|
-
for (n[e] < n[0] && (n = n.slice().reverse(), r = r.slice().reverse()); ++a < e; )
|
|
160
|
-
u[a] = N(n[a], n[a + 1]), f[a] = t(r[a], r[a + 1]);
|
|
161
|
-
return function(o) {
|
|
162
|
-
var c = $(n, o, 1, e) - 1;
|
|
163
|
-
return f[c](u[c](o));
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function en(n, r) {
|
|
167
|
-
return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
168
|
-
}
|
|
169
|
-
function tn() {
|
|
170
|
-
var n = A, r = A, t = d, e, u, f, a = m, o, c, i;
|
|
171
|
-
function h() {
|
|
172
|
-
var s = Math.min(n.length, r.length);
|
|
173
|
-
return a !== m && (a = b(n[0], n[s - 1])), o = s > 2 ? rn : nn, c = i = null, l;
|
|
174
|
-
}
|
|
175
|
-
function l(s) {
|
|
176
|
-
return s == null || isNaN(s = +s) ? f : (c || (c = o(n.map(e), r, t)))(e(a(s)));
|
|
177
|
-
}
|
|
178
|
-
return l.invert = function(s) {
|
|
179
|
-
return a(u((i || (i = o(r, n.map(e), p)))(s)));
|
|
180
|
-
}, l.domain = function(s) {
|
|
181
|
-
return arguments.length ? (n = Array.from(s, _), h()) : n.slice();
|
|
182
|
-
}, l.range = function(s) {
|
|
183
|
-
return arguments.length ? (r = Array.from(s), h()) : r.slice();
|
|
184
|
-
}, l.rangeRound = function(s) {
|
|
185
|
-
return r = Array.from(s), t = U, h();
|
|
186
|
-
}, l.clamp = function(s) {
|
|
187
|
-
return arguments.length ? (a = s ? !0 : m, h()) : a !== m;
|
|
188
|
-
}, l.interpolate = function(s) {
|
|
189
|
-
return arguments.length ? (t = s, h()) : t;
|
|
190
|
-
}, l.unknown = function(s) {
|
|
191
|
-
return arguments.length ? (f = s, l) : f;
|
|
192
|
-
}, function(s, S) {
|
|
193
|
-
return e = s, u = S, h();
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function un() {
|
|
197
|
-
return tn()(m, m);
|
|
198
|
-
}
|
|
199
|
-
function an(n, r, t, e) {
|
|
200
|
-
var u = E(n, r, t), f;
|
|
201
|
-
switch (e = F(e ?? ",f"), e.type) {
|
|
202
|
-
case "s": {
|
|
203
|
-
var a = Math.max(Math.abs(n), Math.abs(r));
|
|
204
|
-
return e.precision == null && !isNaN(f = X(u, a)) && (e.precision = f), P(e, a);
|
|
205
|
-
}
|
|
206
|
-
case "":
|
|
207
|
-
case "e":
|
|
208
|
-
case "g":
|
|
209
|
-
case "p":
|
|
210
|
-
case "r": {
|
|
211
|
-
e.precision == null && !isNaN(f = Y(u, Math.max(Math.abs(n), Math.abs(r)))) && (e.precision = f - (e.type === "e"));
|
|
212
|
-
break;
|
|
213
|
-
}
|
|
214
|
-
case "f":
|
|
215
|
-
case "%": {
|
|
216
|
-
e.precision == null && !isNaN(f = W(u)) && (e.precision = f - (e.type === "%") * 2);
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
return z(e);
|
|
221
|
-
}
|
|
222
|
-
function on(n) {
|
|
223
|
-
var r = n.domain;
|
|
224
|
-
return n.ticks = function(t) {
|
|
225
|
-
var e = r();
|
|
226
|
-
return C(e[0], e[e.length - 1], t ?? 10);
|
|
227
|
-
}, n.tickFormat = function(t, e) {
|
|
228
|
-
var u = r();
|
|
229
|
-
return an(u[0], u[u.length - 1], t ?? 10, e);
|
|
230
|
-
}, n.nice = function(t) {
|
|
231
|
-
t == null && (t = 10);
|
|
232
|
-
var e = r(), u = 0, f = e.length - 1, a = e[u], o = e[f], c, i, h = 10;
|
|
233
|
-
for (o < a && (i = a, a = o, o = i, i = u, u = f, f = i); h-- > 0; ) {
|
|
234
|
-
if (i = y(a, o, t), i === c)
|
|
235
|
-
return e[u] = a, e[f] = o, r(e);
|
|
236
|
-
if (i > 0)
|
|
237
|
-
a = Math.floor(a / i) * i, o = Math.ceil(o / i) * i;
|
|
238
|
-
else if (i < 0)
|
|
239
|
-
a = Math.ceil(a * i) / i, o = Math.floor(o * i) / i;
|
|
240
|
-
else
|
|
241
|
-
break;
|
|
242
|
-
c = i;
|
|
243
|
-
}
|
|
244
|
-
return n;
|
|
245
|
-
}, n;
|
|
246
|
-
}
|
|
247
|
-
function fn() {
|
|
248
|
-
var n = un();
|
|
249
|
-
return n.copy = function() {
|
|
250
|
-
return en(n, fn());
|
|
251
|
-
}, D.apply(n, arguments), on(n);
|
|
252
|
-
}
|
|
253
|
-
export {
|
|
254
|
-
en as a,
|
|
255
|
-
R as b,
|
|
256
|
-
un as c,
|
|
257
|
-
fn as l,
|
|
258
|
-
E as t
|
|
259
|
-
};
|
package/dist/linear-C69aPBW1.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./mermaid.core-DBwAx_jp.cjs"),x=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,m=a.length){if(i<m){if(r(f,f)!==0)return m;do{const l=i+m>>>1;t(a[l],f)<0?i=l+1:m=l}while(i<m)}return i}function c(a,f,i=0,m=a.length){if(i<m){if(r(f,f)!==0)return m;do{const l=i+m>>>1;t(a[l],f)<=0?i=l+1:m=l}while(i<m)}return i}function o(a,f,i=0,m=a.length){const l=u(a,f,i,m-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function L(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function O(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function T(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function _(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function C(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function E(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?s.constant$2(r):(t==="number"?s.interpolateNumber:t==="string"?(e=s.color(r))?(r=e,s.interpolateRgb):s.interpolateString:r instanceof s.color?s.interpolateRgb:r instanceof Date?C:T(r)?O:Array.isArray(r)?_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?E:s.interpolateNumber)(n,r)}function G(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function H(n){return Math.max(0,-g.exponent(Math.abs(n)))}function J(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function K(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function Q(n){return function(){return n}}function U(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Q(isNaN(r)?NaN:.5)}function W(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function X(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Y(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Z(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function m(){var h=Math.min(n.length,r.length);return o!==M&&(o=W(n[0],n[h-1])),a=h>2?Y:X,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),s.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,U),m()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),m()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=G,m()},l.clamp=function(h){return arguments.length?(o=h?!0:M,m()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,m()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,j){return e=h,u=j,m()}}function q(){return Z()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=J(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=K(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=H(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return L(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,m=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);m-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},x.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
|