@vllnt/ui 0.4.0-canary.sha1342d11 → 0.4.0-canary.sha2f78bdd
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/components/accordion/index.js +12 -0
- package/dist/components/activity-heatmap/index.js +6 -0
- package/dist/components/activity-log/index.js +6 -0
- package/dist/components/agent-activity/index.js +18 -0
- package/dist/components/ai-artifact/index.js +24 -0
- package/dist/components/ai-chat-input/index.js +4 -0
- package/dist/components/ai-message-bubble/index.js +6 -0
- package/dist/components/ai-sidebar/index.js +22 -0
- package/dist/components/ai-source-citation/index.js +6 -0
- package/dist/components/ai-streaming-text/index.js +6 -0
- package/dist/components/ai-tool-call-display/index.js +6 -0
- package/dist/components/alert/index.js +7 -0
- package/dist/components/alert-dialog/index.js +26 -0
- package/dist/components/alert-pulse/index.js +6 -0
- package/dist/components/anchor-port/index.js +4 -0
- package/dist/components/animated-beam/index.js +4 -0
- package/dist/components/animated-grid-pattern/index.js +6 -0
- package/dist/components/animated-list/index.js +4 -0
- package/dist/components/animated-tabs/index.js +6 -0
- package/dist/components/animated-testimonials/index.js +6 -0
- package/dist/components/animated-text/animated-text.js +5 -10
- package/dist/components/animated-text/index.js +4 -0
- package/dist/components/animated-tooltip/index.js +6 -0
- package/dist/components/annotation/index.js +8 -0
- package/dist/components/aspect-ratio/index.js +4 -0
- package/dist/components/auto-reload/index.js +6 -0
- package/dist/components/avatar/index.js +6 -0
- package/dist/components/avatar-group/index.js +10 -0
- package/dist/components/badge/index.js +5 -0
- package/dist/components/banner/index.js +10 -0
- package/dist/components/bento-grid/index.js +8 -0
- package/dist/components/blog-card/index.js +5 -0
- package/dist/components/blur-reveal/index.js +4 -0
- package/dist/components/border-beam/index.js +4 -0
- package/dist/components/bottom-activity-strip/index.js +6 -0
- package/dist/components/bottom-bar/index.js +4 -0
- package/dist/components/breadcrumb/index.js +4 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/button-group/index.js +8 -0
- package/dist/components/calendar/index.js +4 -0
- package/dist/components/callout/index.js +4 -0
- package/dist/components/candlestick-chart/index.js +6 -0
- package/dist/components/canvas-shell/index.js +4 -0
- package/dist/components/canvas-view/index.js +6 -0
- package/dist/components/card/index.js +16 -0
- package/dist/components/card-flip/index.js +4 -0
- package/dist/components/carousel/index.js +14 -0
- package/dist/components/category-filter/category-filter.js +1 -1
- package/dist/components/category-filter/index.js +4 -0
- package/dist/components/chain-of-thought/index.js +6 -0
- package/dist/components/chart/index.js +3 -0
- package/dist/components/chat-dock-section/index.js +6 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox-group/index.js +8 -0
- package/dist/components/checklist/checklist.js +21 -27
- package/dist/components/checklist/index.js +14 -0
- package/dist/components/choropleth-map/index.js +10 -0
- package/dist/components/chronological-timeline/chronological-timeline.js +1 -0
- package/dist/components/chronological-timeline/index.js +8 -0
- package/dist/components/civilization-card/index.js +8 -0
- package/dist/components/code-block/index.js +4 -0
- package/dist/components/code-playground/index.js +8 -0
- package/dist/components/collapsible/index.js +10 -0
- package/dist/components/color-picker/color-picker.js +1 -1
- package/dist/components/color-picker/index.js +4 -0
- package/dist/components/combobox/index.js +4 -0
- package/dist/components/command/command.js +17 -14
- package/dist/components/command/index.js +22 -0
- package/dist/components/comment-pin/index.js +6 -0
- package/dist/components/comparison/index.js +8 -0
- package/dist/components/completion-dialog/completion-dialog.js +38 -61
- package/dist/components/completion-dialog/index.js +6 -0
- package/dist/components/connector-edge/index.js +6 -0
- package/dist/components/content-intro/content-intro.js +102 -145
- package/dist/components/content-intro/index.js +6 -0
- package/dist/components/context-lens/index.js +6 -0
- package/dist/components/context-menu/index.js +34 -0
- package/dist/components/contribution-graph/index.js +6 -0
- package/dist/components/conversation-thread/index.js +20 -0
- package/dist/components/cookie-consent/index.js +8 -0
- package/dist/components/copy-button/index.js +8 -0
- package/dist/components/countdown-timer/index.js +4 -0
- package/dist/components/credit-badge/index.js +6 -0
- package/dist/components/curriculum/index.js +10 -0
- package/dist/components/cursor/index.js +4 -0
- package/dist/components/data-list/index.js +16 -0
- package/dist/components/data-table/index.js +6 -0
- package/dist/components/date-field/index.js +4 -0
- package/dist/components/date-picker/index.js +4 -0
- package/dist/components/date-range-picker/date-range-picker.js +2 -2
- package/dist/components/date-range-picker/index.js +6 -0
- package/dist/components/dialog/index.js +24 -0
- package/dist/components/display/index.js +4 -0
- package/dist/components/dock/index.js +5 -0
- package/dist/components/document-sibling-nav/index.js +8 -0
- package/dist/components/dot-pattern/index.js +4 -0
- package/dist/components/drawer/index.js +24 -0
- package/dist/components/dropdown-menu/index.js +34 -0
- package/dist/components/edge-label/index.js +4 -0
- package/dist/components/empty-state/index.js +8 -0
- package/dist/components/era-comparison/index.js +16 -0
- package/dist/components/exercise/index.js +4 -0
- package/dist/components/expandable-cards/index.js +6 -0
- package/dist/components/faq/index.js +5 -0
- package/dist/components/field/index.js +16 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/file-upload/index.js +4 -0
- package/dist/components/filter-bar/filter-bar.js +9 -27
- package/dist/components/filter-bar/index.js +6 -0
- package/dist/components/flashcard/index.js +4 -0
- package/dist/components/floating-action-button/index.js +6 -0
- package/dist/components/floating-navbar/index.js +4 -0
- package/dist/components/floating-toolbar/index.js +6 -0
- package/dist/components/follow-mode/index.js +6 -0
- package/dist/components/form/index.js +20 -0
- package/dist/components/gantt-chart/index.js +6 -0
- package/dist/components/gauge-chart/index.js +4 -0
- package/dist/components/geography-quiz-map/index.js +12 -0
- package/dist/components/glass-card/index.js +4 -0
- package/dist/components/glass-panel/index.js +4 -0
- package/dist/components/glass-progress/index.js +4 -0
- package/dist/components/globe-3d/index.js +10 -0
- package/dist/components/grid/index.js +4 -0
- package/dist/components/group-hull/index.js +4 -0
- package/dist/components/handoff-beacon/index.js +6 -0
- package/dist/components/heading/index.js +4 -0
- package/dist/components/heat-map-overlay/index.js +6 -0
- package/dist/components/heat-overlay/index.js +6 -0
- package/dist/components/historic-timeline/index.js +6 -0
- package/dist/components/historical-figure-card/index.js +6 -0
- package/dist/components/horizontal-scroll-row/index.js +6 -0
- package/dist/components/hover-card/index.js +6 -0
- package/dist/components/index.js +322 -428
- package/dist/components/infinite-plane/index.js +6 -0
- package/dist/components/inline-input/index.js +4 -0
- package/dist/components/inline-input/inline-input.js +1 -4
- package/dist/components/input/index.js +4 -0
- package/dist/components/input-group/index.js +14 -0
- package/dist/components/input-otp/index.js +12 -0
- package/dist/components/interactive-timeline/index.js +16 -0
- package/dist/components/item/index.js +18 -0
- package/dist/components/jarvis-dock/index.js +6 -0
- package/dist/components/kbd/index.js +5 -0
- package/dist/components/key-concept/index.js +8 -0
- package/dist/components/keyboard-shortcuts-help/index.js +6 -0
- package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +36 -44
- package/dist/components/knowledge-check/index.js +6 -0
- package/dist/components/label/index.js +4 -0
- package/dist/components/lang-provider/index.js +4 -0
- package/dist/components/learning-objectives/index.js +10 -0
- package/dist/components/left-rail/index.js +4 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/liquid-glass/index.js +4 -0
- package/dist/components/list-box/index.js +8 -0
- package/dist/components/live-cursor/index.js +6 -0
- package/dist/components/live-feed/index.js +4 -0
- package/dist/components/magnetic/index.js +4 -0
- package/dist/components/magnetic-button/index.js +4 -0
- package/dist/components/map-2d/index.js +20 -0
- package/dist/components/map-timeline/index.js +16 -0
- package/dist/components/market-treemap/index.js +6 -0
- package/dist/components/marquee/index.js +4 -0
- package/dist/components/mdx-content/index.js +4 -0
- package/dist/components/mdx-content/mdx-content.js +1 -0
- package/dist/components/menubar/index.js +36 -0
- package/dist/components/meteors/index.js +4 -0
- package/dist/components/meter/index.js +5 -0
- package/dist/components/metric-cluster/index.js +6 -0
- package/dist/components/metric-gauge/index.js +6 -0
- package/dist/components/mini-map-panel/index.js +6 -0
- package/dist/components/model-comparison/index.js +12 -0
- package/dist/components/model-selector/index.js +6 -0
- package/dist/components/multi-select/index.js +6 -0
- package/dist/components/multi-select-lasso/index.js +6 -0
- package/dist/components/native-select/index.js +4 -0
- package/dist/components/navbar-saas/index.js +6 -0
- package/dist/components/navigation-menu/index.js +22 -0
- package/dist/components/newsletter-signup/index.js +8 -0
- package/dist/components/number-input/index.js +4 -0
- package/dist/components/number-ticker/index.js +4 -0
- package/dist/components/object-card/index.js +6 -0
- package/dist/components/object-handle/index.js +4 -0
- package/dist/components/object-inspector/index.js +6 -0
- package/dist/components/order-book/index.js +6 -0
- package/dist/components/overview-board/index.js +8 -0
- package/dist/components/pagination/index.js +4 -0
- package/dist/components/panel/index.js +16 -0
- package/dist/components/parallel-timeline/index.js +6 -0
- package/dist/components/particles/index.js +4 -0
- package/dist/components/password-input/index.js +4 -0
- package/dist/components/phone-input/index.js +6 -0
- package/dist/components/pie-chart/index.js +4 -0
- package/dist/components/plan-badge/index.js +6 -0
- package/dist/components/playback-ghost/index.js +6 -0
- package/dist/components/policy-delivery-panel/index.js +6 -0
- package/dist/components/popover/index.js +12 -0
- package/dist/components/presence-stack/index.js +6 -0
- package/dist/components/presence-sync-indicator/index.js +6 -0
- package/dist/components/pricing-table/index.js +8 -0
- package/dist/components/primary-source-viewer/index.js +26 -0
- package/dist/components/pro-tip/index.js +8 -0
- package/dist/components/pro-tip/pro-tip.js +24 -30
- package/dist/components/profile-section/index.js +4 -0
- package/dist/components/progress-bar/index.js +4 -0
- package/dist/components/progress-card/index.js +6 -0
- package/dist/components/progress-tracker/index.js +20 -0
- package/dist/components/progress-tracker/progress-tracker.js +169 -296
- package/dist/components/progressive-blur/index.js +6 -0
- package/dist/components/prompt-input/index.js +4 -0
- package/dist/components/prompt-templates/index.js +6 -0
- package/dist/components/property-section/index.js +6 -0
- package/dist/components/prose/index.js +4 -0
- package/dist/components/qr-code/index.js +4 -0
- package/dist/components/quiz/index.js +4 -0
- package/dist/components/quiz/quiz.js +76 -85
- package/dist/components/radar-chart/index.js +6 -0
- package/dist/components/radio-group/index.js +5 -0
- package/dist/components/range-calendar/index.js +4 -0
- package/dist/components/range-calendar/range-calendar.js +1 -1
- package/dist/components/rating/index.js +4 -0
- package/dist/components/reasoning/index.js +4 -0
- package/dist/components/relationship-inspector/index.js +6 -0
- package/dist/components/resizable/index.js +10 -0
- package/dist/components/reveal-text/index.js +6 -0
- package/dist/components/right-dock/index.js +4 -0
- package/dist/components/role-badge/index.js +6 -0
- package/dist/components/route-map/index.js +6 -0
- package/dist/components/routing-assignment-panel/index.js +6 -0
- package/dist/components/run-timeline/index.js +6 -0
- package/dist/components/runtime-overview-panel/index.js +6 -0
- package/dist/components/sankey-chart/index.js +6 -0
- package/dist/components/scope-selector/index.js +6 -0
- package/dist/components/scramble-text/index.js +4 -0
- package/dist/components/scroll-area/index.js +5 -0
- package/dist/components/scroll-progress/index.js +4 -0
- package/dist/components/search-bar/index.js +4 -0
- package/dist/components/search-dialog/index.js +4 -0
- package/dist/components/search-field/index.js +4 -0
- package/dist/components/segmented-control/index.js +12 -0
- package/dist/components/select/index.js +24 -0
- package/dist/components/selection-halo/index.js +6 -0
- package/dist/components/selection-presence/index.js +6 -0
- package/dist/components/separator/index.js +4 -0
- package/dist/components/severity-badge/index.js +8 -0
- package/dist/components/share-dialog/index.js +6 -0
- package/dist/components/share-section/index.js +6 -0
- package/dist/components/sheet/index.js +24 -0
- package/dist/components/shimmer-button/index.js +4 -0
- package/dist/components/shimmer-text/index.js +4 -0
- package/dist/components/shine-border/index.js +4 -0
- package/dist/components/shiny-button/index.js +4 -0
- package/dist/components/sidebar/index.js +4 -0
- package/dist/components/sidebar/sidebar.js +100 -191
- package/dist/components/sidebar-provider/index.js +5 -0
- package/dist/components/sidebar-toggle/index.js +4 -0
- package/dist/components/skeleton/index.js +4 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slideshow/index.js +6 -0
- package/dist/components/slideshow/slideshow.js +8 -24
- package/dist/components/snap-guides/index.js +6 -0
- package/dist/components/social-fab/index.js +6 -0
- package/dist/components/sparkles/index.js +4 -0
- package/dist/components/sparkline-grid/index.js +6 -0
- package/dist/components/spinner/index.js +8 -0
- package/dist/components/spinning-text/index.js +4 -0
- package/dist/components/spotlight-card/index.js +4 -0
- package/dist/components/stat-card/index.js +5 -0
- package/dist/components/state-badge-overlay/index.js +6 -0
- package/dist/components/static-code/index.js +4 -0
- package/dist/components/status-board/index.js +6 -0
- package/dist/components/status-indicator/index.js +10 -0
- package/dist/components/step-by-step/index.js +8 -0
- package/dist/components/step-by-step/step-by-step.js +93 -86
- package/dist/components/step-navigation/index.js +4 -0
- package/dist/components/step-navigation/step-navigation.js +50 -31
- package/dist/components/stepper/index.js +4 -0
- package/dist/components/sticky-metric/index.js +6 -0
- package/dist/components/story-map/index.js +8 -0
- package/dist/components/subscription-card/index.js +6 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/table/index.js +20 -0
- package/dist/components/table-of-contents/index.js +4 -0
- package/dist/components/table-of-contents-panel/index.js +6 -0
- package/dist/components/table-of-contents-panel/table-of-contents-panel.js +134 -181
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/tabs/tabs.js +9 -23
- package/dist/components/tag-group/index.js +8 -0
- package/dist/components/tags-input/index.js +4 -0
- package/dist/components/terminal/index.js +8 -0
- package/dist/components/text/index.js +5 -0
- package/dist/components/text-animate/index.js +6 -0
- package/dist/components/text-field/index.js +4 -0
- package/dist/components/text-reveal/index.js +4 -0
- package/dist/components/text-shimmer/index.js +4 -0
- package/dist/components/textarea/index.js +4 -0
- package/dist/components/theme-preset-provider/index.js +4 -0
- package/dist/components/theme-provider/index.js +4 -0
- package/dist/components/theme-switcher/index.js +4 -0
- package/dist/components/theme-toggle/index.js +4 -0
- package/dist/components/thinking-block/index.js +4 -0
- package/dist/components/thread-bubble/index.js +6 -0
- package/dist/components/threshold-ring/index.js +6 -0
- package/dist/components/ticker-tape/index.js +6 -0
- package/dist/components/tilt-card/index.js +4 -0
- package/dist/components/time-field/index.js +4 -0
- package/dist/components/time-picker/index.js +4 -0
- package/dist/components/time-picker/time-picker.js +1 -1
- package/dist/components/timeline/index.js +12 -0
- package/dist/components/timeline-scrubber/index.js +6 -0
- package/dist/components/tldr-section/index.js +4 -0
- package/dist/components/toast/index.js +18 -0
- package/dist/components/toggle/index.js +5 -0
- package/dist/components/toggle-group/index.js +5 -0
- package/dist/components/toolbar/index.js +8 -0
- package/dist/components/tooltip/index.js +12 -0
- package/dist/components/top-bar/index.js +4 -0
- package/dist/components/tour/index.js +4 -0
- package/dist/components/transaction-list/index.js +14 -0
- package/dist/components/tree-view/index.js +6 -0
- package/dist/components/truncated-text/index.js +4 -0
- package/dist/components/tutorial-card/index.js +6 -0
- package/dist/components/tutorial-complete/index.js +6 -0
- package/dist/components/tutorial-complete/tutorial-complete.js +86 -155
- package/dist/components/tutorial-filters/index.js +6 -0
- package/dist/components/tutorial-intro-content/index.js +6 -0
- package/dist/components/tutorial-mdx/index.js +8 -0
- package/dist/components/typewriter/index.js +4 -0
- package/dist/components/typography/index.js +26 -0
- package/dist/components/usage-breakdown/index.js +6 -0
- package/dist/components/video-embed/index.js +4 -0
- package/dist/components/view-switcher/index.js +6 -0
- package/dist/components/viewport-bookmarks/index.js +6 -0
- package/dist/components/wallet-card/index.js +4 -0
- package/dist/components/watchlist/index.js +6 -0
- package/dist/components/workspace-switcher/index.js +6 -0
- package/dist/components/world-breadcrumbs/index.js +6 -0
- package/dist/components/world-clock-bar/index.js +6 -0
- package/dist/components/zoom-hud/index.js +4 -0
- package/dist/index.d.ts +6 -12
- package/package.json +4 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentActivity,
|
|
3
|
+
AgentStep,
|
|
4
|
+
AgentStepDetail,
|
|
5
|
+
AgentStepDuration,
|
|
6
|
+
AgentStepProgress,
|
|
7
|
+
AgentStepTitle,
|
|
8
|
+
useAgentStepStatus
|
|
9
|
+
} from "./agent-activity.js";
|
|
10
|
+
export {
|
|
11
|
+
AgentActivity,
|
|
12
|
+
AgentStep,
|
|
13
|
+
AgentStepDetail,
|
|
14
|
+
AgentStepDuration,
|
|
15
|
+
AgentStepProgress,
|
|
16
|
+
AgentStepTitle,
|
|
17
|
+
useAgentStepStatus
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AIArtifact,
|
|
3
|
+
AIArtifactContent,
|
|
4
|
+
AIArtifactCopyButton,
|
|
5
|
+
AIArtifactDownloadButton,
|
|
6
|
+
AIArtifactEditButton,
|
|
7
|
+
AIArtifactFullscreenButton,
|
|
8
|
+
AIArtifactToolbar,
|
|
9
|
+
AIArtifactVersion,
|
|
10
|
+
AIArtifactVersions,
|
|
11
|
+
useAIArtifact
|
|
12
|
+
} from "./ai-artifact.js";
|
|
13
|
+
export {
|
|
14
|
+
AIArtifact,
|
|
15
|
+
AIArtifactContent,
|
|
16
|
+
AIArtifactCopyButton,
|
|
17
|
+
AIArtifactDownloadButton,
|
|
18
|
+
AIArtifactEditButton,
|
|
19
|
+
AIArtifactFullscreenButton,
|
|
20
|
+
AIArtifactToolbar,
|
|
21
|
+
AIArtifactVersion,
|
|
22
|
+
AIArtifactVersions,
|
|
23
|
+
useAIArtifact
|
|
24
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AISidebar,
|
|
3
|
+
AISidebarClose,
|
|
4
|
+
AISidebarContent,
|
|
5
|
+
AISidebarFooter,
|
|
6
|
+
AISidebarHeader,
|
|
7
|
+
AISidebarProvider,
|
|
8
|
+
AISidebarTitle,
|
|
9
|
+
AISidebarTrigger,
|
|
10
|
+
useAISidebar
|
|
11
|
+
} from "./ai-sidebar.js";
|
|
12
|
+
export {
|
|
13
|
+
AISidebar,
|
|
14
|
+
AISidebarClose,
|
|
15
|
+
AISidebarContent,
|
|
16
|
+
AISidebarFooter,
|
|
17
|
+
AISidebarHeader,
|
|
18
|
+
AISidebarProvider,
|
|
19
|
+
AISidebarTitle,
|
|
20
|
+
AISidebarTrigger,
|
|
21
|
+
useAISidebar
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AlertDialog,
|
|
3
|
+
AlertDialogAction,
|
|
4
|
+
AlertDialogCancel,
|
|
5
|
+
AlertDialogContent,
|
|
6
|
+
AlertDialogDescription,
|
|
7
|
+
AlertDialogFooter,
|
|
8
|
+
AlertDialogHeader,
|
|
9
|
+
AlertDialogOverlay,
|
|
10
|
+
AlertDialogPortal,
|
|
11
|
+
AlertDialogTitle,
|
|
12
|
+
AlertDialogTrigger
|
|
13
|
+
} from "./alert-dialog.js";
|
|
14
|
+
export {
|
|
15
|
+
AlertDialog,
|
|
16
|
+
AlertDialogAction,
|
|
17
|
+
AlertDialogCancel,
|
|
18
|
+
AlertDialogContent,
|
|
19
|
+
AlertDialogDescription,
|
|
20
|
+
AlertDialogFooter,
|
|
21
|
+
AlertDialogHeader,
|
|
22
|
+
AlertDialogOverlay,
|
|
23
|
+
AlertDialogPortal,
|
|
24
|
+
AlertDialogTitle,
|
|
25
|
+
AlertDialogTrigger
|
|
26
|
+
};
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
glyphSegmenterCache.segmenter = typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
9
|
-
}
|
|
10
|
-
const { segmenter } = glyphSegmenterCache;
|
|
11
|
-
return segmenter ? Array.from(segmenter.segment(text), ({ segment }) => segment) : text.match(/./gsu) ?? [];
|
|
12
|
-
}
|
|
5
|
+
const GLYPH_SEGMENTER = new Intl.Segmenter(void 0, {
|
|
6
|
+
granularity: "grapheme"
|
|
7
|
+
});
|
|
13
8
|
const ASCII_RANDOM_CHARACTERS = Array.from(
|
|
14
9
|
{ length: 94 },
|
|
15
10
|
(_, index) => String.fromCodePoint(index + 33)
|
|
@@ -29,12 +24,12 @@ const ANIMATED_TEXT_RANDOM_CHARACTER_PRESETS = {
|
|
|
29
24
|
const DEFAULT_RANDOM_CHARACTERS = ANIMATED_TEXT_RANDOM_CHARACTER_PRESETS.matrix;
|
|
30
25
|
function getSegments(text, splitBy) {
|
|
31
26
|
if (splitBy === "character") {
|
|
32
|
-
return
|
|
27
|
+
return Array.from(GLYPH_SEGMENTER.segment(text), ({ segment }) => segment);
|
|
33
28
|
}
|
|
34
29
|
return text.match(/\S+\s*/g) ?? [];
|
|
35
30
|
}
|
|
36
31
|
function getGlyphs(text) {
|
|
37
|
-
return
|
|
32
|
+
return Array.from(GLYPH_SEGMENTER.segment(text), ({ segment }) => segment);
|
|
38
33
|
}
|
|
39
34
|
function getRandomMatrixGlyph(randomCharacters) {
|
|
40
35
|
const glyphs = getGlyphs(randomCharacters);
|
|
@@ -8,7 +8,7 @@ function slugify(text) {
|
|
|
8
8
|
}
|
|
9
9
|
function CategoryFilter({ categories, lang }) {
|
|
10
10
|
const pathname = usePathname();
|
|
11
|
-
const allCategories =
|
|
11
|
+
const allCategories = Array.from(new Set(categories)).sort();
|
|
12
12
|
if (allCategories.length === 0) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
@@ -130,29 +130,6 @@ function ChecklistHeader({
|
|
|
130
130
|
] })
|
|
131
131
|
] });
|
|
132
132
|
}
|
|
133
|
-
function readPersistedChecklist(persistKey) {
|
|
134
|
-
if (typeof window !== "undefined" && persistKey) {
|
|
135
|
-
const saved = localStorage.getItem(`checklist:${persistKey}`);
|
|
136
|
-
if (saved) {
|
|
137
|
-
return new Set(parseChecklistStorageValue(saved));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return /* @__PURE__ */ new Set();
|
|
141
|
-
}
|
|
142
|
-
function persistChecklist(persistKey, ids) {
|
|
143
|
-
try {
|
|
144
|
-
localStorage.setItem(
|
|
145
|
-
`checklist:${persistKey}`,
|
|
146
|
-
createChecklistStorageValue(ids)
|
|
147
|
-
);
|
|
148
|
-
window.dispatchEvent(
|
|
149
|
-
new CustomEvent(CHECKLIST_PROGRESS_EVENT, {
|
|
150
|
-
detail: { persistKey }
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
} catch {
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
133
|
function Checklist({
|
|
157
134
|
as: Heading = "h4",
|
|
158
135
|
className,
|
|
@@ -161,16 +138,33 @@ function Checklist({
|
|
|
161
138
|
persistKey,
|
|
162
139
|
title
|
|
163
140
|
}) {
|
|
164
|
-
const [checked, setChecked] = useState(
|
|
165
|
-
(
|
|
166
|
-
|
|
141
|
+
const [checked, setChecked] = useState(() => {
|
|
142
|
+
if (typeof window !== "undefined" && persistKey) {
|
|
143
|
+
const saved = localStorage.getItem(`checklist:${persistKey}`);
|
|
144
|
+
if (saved) {
|
|
145
|
+
return new Set(parseChecklistStorageValue(saved));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return /* @__PURE__ */ new Set();
|
|
149
|
+
});
|
|
167
150
|
const toggleItem = (id) => {
|
|
168
151
|
const newChecked = new Set(checked);
|
|
169
152
|
if (newChecked.has(id)) newChecked.delete(id);
|
|
170
153
|
else newChecked.add(id);
|
|
171
154
|
setChecked(newChecked);
|
|
172
155
|
if (persistKey) {
|
|
173
|
-
|
|
156
|
+
try {
|
|
157
|
+
localStorage.setItem(
|
|
158
|
+
`checklist:${persistKey}`,
|
|
159
|
+
createChecklistStorageValue(newChecked)
|
|
160
|
+
);
|
|
161
|
+
window.dispatchEvent(
|
|
162
|
+
new CustomEvent(CHECKLIST_PROGRESS_EVENT, {
|
|
163
|
+
detail: { persistKey }
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
} catch {
|
|
167
|
+
}
|
|
174
168
|
}
|
|
175
169
|
if (newChecked.size === items.length) {
|
|
176
170
|
onComplete?.();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Checklist,
|
|
3
|
+
CHECKLIST_PROGRESS_EVENT,
|
|
4
|
+
CHECKLIST_STORAGE_VERSION,
|
|
5
|
+
createChecklistStorageValue,
|
|
6
|
+
parseChecklistStorageValue
|
|
7
|
+
} from "./checklist.js";
|
|
8
|
+
export {
|
|
9
|
+
CHECKLIST_PROGRESS_EVENT,
|
|
10
|
+
CHECKLIST_STORAGE_VERSION,
|
|
11
|
+
Checklist,
|
|
12
|
+
createChecklistStorageValue,
|
|
13
|
+
parseChecklistStorageValue
|
|
14
|
+
};
|
|
@@ -175,6 +175,7 @@ const ChronoEvent = ({
|
|
|
175
175
|
return (
|
|
176
176
|
/* Passive focus tracking: the container observes focus bubbling from
|
|
177
177
|
its interactive children to drive the scroll-spy active state. */
|
|
178
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
178
179
|
/* @__PURE__ */ jsxs(
|
|
179
180
|
"article",
|
|
180
181
|
{
|