@heyramzi/ui 1.54.1 → 1.54.2
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/package.json +3 -2
- package/scripts/sync-shadcn.mjs +2 -2
- package/src/ai/ai-button/AiButton.svelte +1 -1
- package/src/ai/confirmation/Confirmation.svelte +1 -1
- package/src/ai/confirmation/ConfirmationAction.svelte +1 -1
- package/src/ai/confirmation/ConfirmationActions.svelte +1 -1
- package/src/ai/confirmation/ConfirmationTitle.svelte +1 -1
- package/src/ai/generation-progress/GenerationProgress.svelte +1 -1
- package/src/ai/loading-state/PixelLoader.svelte +1 -1
- package/src/ai/prompt-input/PromptInput.svelte +1 -1
- package/src/ai/prompt-input/PromptInputBody.svelte +1 -1
- package/src/ai/prompt-input/PromptInputSubmit.svelte +1 -1
- package/src/ai/prompt-input/PromptInputTextarea.svelte +1 -1
- package/src/ai/prompt-input/PromptInputToolbar.svelte +1 -1
- package/src/ai/reasoning/Reasoning.svelte +1 -1
- package/src/ai/reasoning/ReasoningContent.svelte +1 -1
- package/src/ai/reasoning/ReasoningTrigger.svelte +1 -1
- package/src/ai/response/Response.svelte +1 -1
- package/src/ai/suggestion/Suggestion.svelte +1 -1
- package/src/ai/suggestion/Suggestions.svelte +1 -1
- package/src/ai/thinking-dots/ThinkingDots.svelte +1 -1
- package/src/ai/typing-dots/TypingDots.svelte +1 -1
- package/src/ai/voice-waveform/VoiceWaveform.svelte +1 -1
- package/src/components/copy/clipboard.ts +13 -9
- package/src/components/copy/copy-button.svelte +1 -1
- package/src/components/data-table/row-arrow.svelte +1 -1
- package/src/components/data-table/sortable-head.svelte +1 -1
- package/src/components/field-row/field-row.svelte +1 -1
- package/src/components/hold-to-confirm/hold-to-confirm.svelte +1 -1
- package/src/components/language-flag/language-flag.svelte +1 -1
- package/src/components/list-page/detail-empty.svelte +1 -1
- package/src/components/list-page/detail-header.svelte +1 -1
- package/src/components/list-page/detail-panel.svelte +1 -1
- package/src/components/list-page/detail-row.svelte +1 -1
- package/src/components/list-page/detail-stack.svelte +1 -1
- package/src/components/list-page/filter-item.svelte +1 -1
- package/src/components/list-page/filter-popover.svelte +1 -1
- package/src/components/list-page/filter-section.ts +1 -1
- package/src/components/list-page/grouped-list.svelte +1 -1
- package/src/components/list-page/list-page-shell.svelte +1 -1
- package/src/components/list-page/list-table.ts +1 -1
- package/src/components/list-page/master-detail.svelte +1 -1
- package/src/components/list-page/notice-bar.svelte +1 -1
- package/src/components/list-page/prev-next.svelte +1 -1
- package/src/components/list-page/rail-body.svelte +1 -1
- package/src/components/list-page/rail-empty.svelte +1 -1
- package/src/components/list-page/rail-head.svelte +1 -1
- package/src/components/list-page/rail-row.svelte +1 -1
- package/src/components/list-page/section-label.svelte +1 -1
- package/src/components/list-page/toolbar-search.svelte +1 -1
- package/src/components/list-page/toolbar-trigger.ts +1 -1
- package/src/components/mark/mark.svelte +1 -1
- package/src/components/open-in/open-in.svelte +1 -1
- package/src/components/picker/mark-picker.svelte +1 -1
- package/src/components/picker/picker.svelte +1 -1
- package/src/components/section-card/section-card.svelte +1 -1
- package/src/components/segmented/animated-tabs.svelte +1 -1
- package/src/components/segmented/section-runs.svelte +1 -1
- package/src/components/segmented/segment.svelte +1 -1
- package/src/components/segmented/segmented-filter.svelte +1 -1
- package/src/components/segmented/segmented-nav.svelte +1 -1
- package/src/components/segmented/segmented-overflow.svelte +1 -1
- package/src/components/segmented/segmented-track.svelte +1 -1
- package/src/components/star-rating-input/star-rating-input.svelte +1 -1
- package/src/components/table-view/table-view.svelte +1 -1
- package/src/effects/animated-beam/AnimatedBeam.svelte +1 -1
- package/src/effects/border-beam/register-properties.ts +4 -2
- package/src/effects/image-comparison/ImageComparison.svelte +1 -1
- package/src/effects/image-reveal/ImageReveal.svelte +1 -1
- package/src/effects/magic-card/MagicCard.svelte +1 -1
- package/src/effects/marquee/Marquee.svelte +1 -1
- package/src/effects/progressive-blur/ProgressiveBlur.svelte +1 -1
- package/src/effects/reveal/AnimatedGroup.svelte +1 -1
- package/src/effects/reveal/InView.svelte +1 -1
- package/src/effects/reveal/TextEffect.svelte +1 -1
- package/src/effects/shader-gradient/ShaderGradient.svelte +1 -1
- package/src/effects/spotlight/Spotlight.svelte +1 -1
- package/src/effects/theme-toggle/ThemeToggle.svelte +4 -4
- package/src/lib/utils.ts +18 -0
- package/src/shadcn/accordion/accordion-content.svelte +1 -1
- package/src/shadcn/accordion/accordion-item.svelte +1 -1
- package/src/shadcn/accordion/accordion-trigger.svelte +1 -1
- package/src/shadcn/accordion/accordion.svelte +1 -1
- package/src/shadcn/alert/alert-description.svelte +1 -1
- package/src/shadcn/alert/alert-title.svelte +1 -1
- package/src/shadcn/alert/alert.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-action.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-cancel.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-content.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-description.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-footer.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-header.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-overlay.svelte +1 -1
- package/src/shadcn/alert-dialog/alert-dialog-title.svelte +1 -1
- package/src/shadcn/attachment/attachment-action.svelte +1 -1
- package/src/shadcn/attachment/attachment-actions.svelte +1 -1
- package/src/shadcn/attachment/attachment-content.svelte +1 -1
- package/src/shadcn/attachment/attachment-description.svelte +1 -1
- package/src/shadcn/attachment/attachment-group.svelte +1 -1
- package/src/shadcn/attachment/attachment-media.svelte +1 -1
- package/src/shadcn/attachment/attachment-title.svelte +1 -1
- package/src/shadcn/attachment/attachment-trigger.svelte +1 -1
- package/src/shadcn/attachment/attachment.svelte +1 -1
- package/src/shadcn/avatar/avatar-badge.svelte +1 -1
- package/src/shadcn/avatar/avatar-fallback.svelte +1 -1
- package/src/shadcn/avatar/avatar-group-count.svelte +1 -1
- package/src/shadcn/avatar/avatar-group.svelte +1 -1
- package/src/shadcn/avatar/avatar-image.svelte +1 -1
- package/src/shadcn/avatar/avatar.svelte +1 -1
- package/src/shadcn/badge/badge.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-ellipsis.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-item.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-link.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-list.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-page.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-separator.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb.svelte +1 -1
- package/src/shadcn/bubble/bubble-content.svelte +1 -1
- package/src/shadcn/bubble/bubble-group.svelte +1 -1
- package/src/shadcn/bubble/bubble-reactions.svelte +1 -1
- package/src/shadcn/bubble/bubble.svelte +1 -1
- package/src/shadcn/button/button.svelte +1 -1
- package/src/shadcn/calendar/calendar-cell.svelte +1 -1
- package/src/shadcn/calendar/calendar-day.svelte +1 -1
- package/src/shadcn/calendar/calendar-grid-body.svelte +1 -1
- package/src/shadcn/calendar/calendar-grid-head.svelte +1 -1
- package/src/shadcn/calendar/calendar-grid-row.svelte +1 -1
- package/src/shadcn/calendar/calendar-grid.svelte +1 -1
- package/src/shadcn/calendar/calendar-head-cell.svelte +1 -1
- package/src/shadcn/calendar/calendar-header.svelte +1 -1
- package/src/shadcn/calendar/calendar-heading.svelte +1 -1
- package/src/shadcn/calendar/calendar-month-select.svelte +1 -1
- package/src/shadcn/calendar/calendar-month.svelte +1 -1
- package/src/shadcn/calendar/calendar-months.svelte +1 -1
- package/src/shadcn/calendar/calendar-nav.svelte +1 -1
- package/src/shadcn/calendar/calendar-next-button.svelte +1 -1
- package/src/shadcn/calendar/calendar-prev-button.svelte +1 -1
- package/src/shadcn/calendar/calendar-year-select.svelte +1 -1
- package/src/shadcn/calendar/calendar.svelte +1 -1
- package/src/shadcn/card/card-action.svelte +1 -1
- package/src/shadcn/card/card-content.svelte +1 -1
- package/src/shadcn/card/card-description.svelte +1 -1
- package/src/shadcn/card/card-footer.svelte +1 -1
- package/src/shadcn/card/card-header.svelte +1 -1
- package/src/shadcn/card/card-title.svelte +1 -1
- package/src/shadcn/card/card.svelte +1 -1
- package/src/shadcn/checkbox/checkbox.svelte +1 -1
- package/src/shadcn/code-block/code-block-actions.svelte +1 -1
- package/src/shadcn/code-block/code-block-content.svelte +1 -1
- package/src/shadcn/code-block/code-block-footer.svelte +1 -1
- package/src/shadcn/code-block/code-block-header.svelte +1 -1
- package/src/shadcn/code-block/code-block-line.svelte +1 -1
- package/src/shadcn/code-block/code-block-title.svelte +1 -1
- package/src/shadcn/code-block/code-block.svelte +1 -1
- package/src/shadcn/command/command-dialog.svelte +1 -1
- package/src/shadcn/command/command-empty.svelte +1 -1
- package/src/shadcn/command/command-group.svelte +1 -1
- package/src/shadcn/command/command-input.svelte +1 -1
- package/src/shadcn/command/command-item.svelte +1 -1
- package/src/shadcn/command/command-link-item.svelte +1 -1
- package/src/shadcn/command/command-list.svelte +1 -1
- package/src/shadcn/command/command-separator.svelte +1 -1
- package/src/shadcn/command/command-shortcut.svelte +1 -1
- package/src/shadcn/command/command.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-checkbox-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-content.svelte +2 -2
- package/src/shadcn/context-menu/context-menu-group-heading.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-label.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-radio-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-separator.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-shortcut.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-sub-content.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-sub-trigger.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-trigger.svelte +1 -1
- package/src/shadcn/dialog/dialog-content.svelte +1 -1
- package/src/shadcn/dialog/dialog-description.svelte +1 -1
- package/src/shadcn/dialog/dialog-footer.svelte +1 -1
- package/src/shadcn/dialog/dialog-header.svelte +1 -1
- package/src/shadcn/dialog/dialog-overlay.svelte +1 -1
- package/src/shadcn/dialog/dialog-title.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/src/shadcn/empty/empty-content.svelte +1 -1
- package/src/shadcn/empty/empty-description.svelte +1 -1
- package/src/shadcn/empty/empty-header.svelte +1 -1
- package/src/shadcn/empty/empty-media.svelte +1 -1
- package/src/shadcn/empty/empty-title.svelte +1 -1
- package/src/shadcn/empty/empty.svelte +1 -1
- package/src/shadcn/field/field-content.svelte +1 -1
- package/src/shadcn/field/field-description.svelte +1 -1
- package/src/shadcn/field/field-error.svelte +1 -1
- package/src/shadcn/field/field-group.svelte +1 -1
- package/src/shadcn/field/field-label.svelte +1 -1
- package/src/shadcn/field/field-legend.svelte +1 -1
- package/src/shadcn/field/field-separator.svelte +1 -1
- package/src/shadcn/field/field-set.svelte +1 -1
- package/src/shadcn/field/field-title.svelte +1 -1
- package/src/shadcn/field/field.svelte +1 -1
- package/src/shadcn/field/simple-field.svelte +1 -1
- package/src/shadcn/hover-card/hover-card-content.svelte +1 -1
- package/src/shadcn/input/input.svelte +1 -1
- package/src/shadcn/input/secret-input.svelte +1 -1
- package/src/shadcn/input-otp/input-otp-group.svelte +1 -1
- package/src/shadcn/input-otp/input-otp-separator.svelte +1 -1
- package/src/shadcn/input-otp/input-otp-slot.svelte +1 -1
- package/src/shadcn/input-otp/input-otp.svelte +1 -1
- package/src/shadcn/kbd/kbd-group.svelte +1 -1
- package/src/shadcn/kbd/kbd.svelte +1 -1
- package/src/shadcn/label/label.svelte +1 -1
- package/src/shadcn/marker/marker-content.svelte +1 -1
- package/src/shadcn/marker/marker-icon.svelte +1 -1
- package/src/shadcn/marker/marker.svelte +1 -1
- package/src/shadcn/message/message-avatar.svelte +1 -1
- package/src/shadcn/message/message-content.svelte +1 -1
- package/src/shadcn/message/message-footer.svelte +1 -1
- package/src/shadcn/message/message-group.svelte +1 -1
- package/src/shadcn/message/message-header.svelte +1 -1
- package/src/shadcn/message/message.svelte +1 -1
- package/src/shadcn/message-scroller/message-scroller-button.svelte +1 -1
- package/src/shadcn/message-scroller/message-scroller-content.svelte +1 -1
- package/src/shadcn/message-scroller/message-scroller-item.svelte +1 -1
- package/src/shadcn/message-scroller/message-scroller-viewport.svelte +1 -1
- package/src/shadcn/message-scroller/message-scroller.svelte +1 -1
- package/src/shadcn/popover/popover-content.svelte +1 -1
- package/src/shadcn/popover/popover-description.svelte +1 -1
- package/src/shadcn/popover/popover-header.svelte +1 -1
- package/src/shadcn/popover/popover-title.svelte +1 -1
- package/src/shadcn/popover/popover-trigger.svelte +1 -1
- package/src/shadcn/progress/progress.svelte +1 -1
- package/src/shadcn/radio-group/radio-group-item.svelte +1 -1
- package/src/shadcn/radio-group/radio-group.svelte +1 -1
- package/src/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/src/shadcn/scroll-area/scroll-area.svelte +1 -1
- package/src/shadcn/select/select-content.svelte +2 -2
- package/src/shadcn/select/select-group-heading.svelte +1 -1
- package/src/shadcn/select/select-group.svelte +1 -1
- package/src/shadcn/select/select-item.svelte +1 -1
- package/src/shadcn/select/select-label.svelte +1 -1
- package/src/shadcn/select/select-scroll-down-button.svelte +1 -1
- package/src/shadcn/select/select-scroll-up-button.svelte +1 -1
- package/src/shadcn/select/select-separator.svelte +1 -1
- package/src/shadcn/select/select-trigger.svelte +1 -1
- package/src/shadcn/separator/separator.svelte +1 -1
- package/src/shadcn/sheet/sheet-content.svelte +1 -1
- package/src/shadcn/sheet/sheet-description.svelte +1 -1
- package/src/shadcn/sheet/sheet-footer.svelte +1 -1
- package/src/shadcn/sheet/sheet-header.svelte +1 -1
- package/src/shadcn/sheet/sheet-overlay.svelte +1 -1
- package/src/shadcn/sheet/sheet-title.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-content.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-footer.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-group-action.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-group-content.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-group-label.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-group.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-header.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-input.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-inset.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-action.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-badge.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-button.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-item.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-skeleton.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-sub-button.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-sub-item.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu-sub.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-menu.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-provider.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-rail.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-separator.svelte +1 -1
- package/src/shadcn/sidebar/sidebar-trigger.svelte +1 -1
- package/src/shadcn/sidebar/sidebar.svelte +1 -1
- package/src/shadcn/skeleton/skeleton.svelte +1 -1
- package/src/shadcn/slider/slider.svelte +1 -1
- package/src/shadcn/spinner/spinner.svelte +1 -1
- package/src/shadcn/switch/switch.svelte +1 -1
- package/src/shadcn/table/table-body.svelte +1 -1
- package/src/shadcn/table/table-caption.svelte +1 -1
- package/src/shadcn/table/table-cell.svelte +1 -1
- package/src/shadcn/table/table-footer.svelte +1 -1
- package/src/shadcn/table/table-head.svelte +1 -1
- package/src/shadcn/table/table-header.svelte +1 -1
- package/src/shadcn/table/table-row.svelte +1 -1
- package/src/shadcn/table/table.svelte +1 -1
- package/src/shadcn/tabs/tabs-content.svelte +1 -1
- package/src/shadcn/tabs/tabs-list.svelte +1 -1
- package/src/shadcn/tabs/tabs-trigger.svelte +1 -1
- package/src/shadcn/tabs/tabs.svelte +1 -1
- package/src/shadcn/textarea/textarea.svelte +1 -1
- package/src/shadcn/toggle/toggle.svelte +1 -1
- package/src/shadcn/toggle-group/toggle-group-item.svelte +1 -1
- package/src/shadcn/toggle-group/toggle-group.svelte +1 -1
- package/src/shadcn/tooltip/tooltip-content.svelte +2 -2
- package/src/shadcn/trace/trace-collapsible-content.svelte +1 -1
- package/src/shadcn/trace/trace-collapsible-trigger.svelte +1 -1
- package/src/shadcn/trace/trace-collapsible.svelte +1 -1
- package/src/shadcn/trace/trace-description.svelte +1 -1
- package/src/shadcn/trace/trace-icon.svelte +1 -1
- package/src/shadcn/trace/trace-line.svelte +1 -1
- package/src/shadcn/trace/trace-title.svelte +1 -1
- package/src/shadcn/trace/trace.svelte +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyramzi/ui",
|
|
3
|
-
"version": "1.54.
|
|
3
|
+
"version": "1.54.2",
|
|
4
4
|
"description": "Svelte 5 UI primitives: effects, animations, and shared component CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -169,11 +169,12 @@
|
|
|
169
169
|
"./agents/demo.svelte": "./src/agents/demo.svelte"
|
|
170
170
|
},
|
|
171
171
|
"dependencies": {
|
|
172
|
-
"@heyramzi/utils": "^1.8.1",
|
|
173
172
|
"@shadcn-svelte/primitives": "^0.0.1",
|
|
173
|
+
"clsx": "^2.1.1",
|
|
174
174
|
"marked": "^18.1.0",
|
|
175
175
|
"phosphor-svelte": "^3.1.0",
|
|
176
176
|
"shiki": "^4.5.0",
|
|
177
|
+
"tailwind-merge": "^3.7.0",
|
|
177
178
|
"tailwind-variants": "^3.3.1"
|
|
178
179
|
},
|
|
179
180
|
"devDependencies": {
|
package/scripts/sync-shadcn.mjs
CHANGED
|
@@ -39,7 +39,7 @@ const LOCAL_ONLY = new Set(["hooks"]);
|
|
|
39
39
|
/* The registry's aliases, resolved to what this package imports. Absolute
|
|
40
40
|
* `#src/` form, so a nested target resolves without counting `../`. */
|
|
41
41
|
const ALIASES = [
|
|
42
|
-
["$UTILS$.js", "
|
|
42
|
+
["$UTILS$.js", "../src/lib/utils.js"],
|
|
43
43
|
["$UI$/", "../src/shadcn"],
|
|
44
44
|
["$HOOKS$/", "../src/shadcn/hooks"],
|
|
45
45
|
["$LIB$/", "../src/shadcn/hooks"],
|
|
@@ -91,7 +91,7 @@ const NOT_SHIPPED = new Set([
|
|
|
91
91
|
"resizable",
|
|
92
92
|
// Its `pascalToKebab` has no importer, in the registry or here.
|
|
93
93
|
"casing",
|
|
94
|
-
// `
|
|
94
|
+
// The registry's `utils` is ours: src/lib/utils.ts, so a sync never overwrites it.
|
|
95
95
|
"utils",
|
|
96
96
|
"questionnaire",
|
|
97
97
|
]);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// =========================
|
|
21
21
|
// IMPORTS
|
|
22
22
|
// =========================
|
|
23
|
-
import { cn } from "
|
|
23
|
+
import { cn } from "../../lib/utils.js";
|
|
24
24
|
import { Sparkle } from "phosphor-svelte";
|
|
25
25
|
import { Spinner } from "../../shadcn/spinner/index.js";
|
|
26
26
|
import { Button } from "../../shadcn/button/index.js";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<script lang="ts">
|
|
12
|
-
import { cn } from "
|
|
12
|
+
import { cn } from "../../lib/utils.js";
|
|
13
13
|
import { getConfirmationContext } from "./confirmation-context.svelte.js";
|
|
14
14
|
|
|
15
15
|
let { class: className, children, ...rest }: ConfirmationActionsProps = $props();
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<script lang="ts">
|
|
23
|
-
import { cn } from "
|
|
23
|
+
import { cn } from "../../lib/utils.js";
|
|
24
24
|
import { Button } from "../../shadcn/button/index.js";
|
|
25
25
|
import { Spinner } from "../../shadcn/spinner/index.js";
|
|
26
26
|
import SendIcon from "phosphor-svelte/lib/PaperPlaneRight";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script lang="ts">
|
|
13
13
|
import { untrack } from "svelte";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils.js";
|
|
15
15
|
import { Collapsible } from "../../shadcn/collapsible/index.js";
|
|
16
16
|
import { setReasoningContext } from "./reasoning-context.svelte.js";
|
|
17
17
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
|
-
import { cn } from "
|
|
11
|
+
import { cn } from "../../lib/utils.js";
|
|
12
12
|
import { CollapsibleContent } from "../../shadcn/collapsible/index.js";
|
|
13
13
|
|
|
14
14
|
let { class: className, children, ...rest }: ReasoningContentProps = $props();
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<script lang="ts">
|
|
11
|
-
import { cn } from "
|
|
11
|
+
import { cn } from "../../lib/utils.js";
|
|
12
12
|
import BrainIcon from "phosphor-svelte/lib/Brain";
|
|
13
13
|
import ChevronDownIcon from "phosphor-svelte/lib/CaretDown";
|
|
14
14
|
import { CollapsibleTrigger } from "../../shadcn/collapsible/index.js";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { tryCatchAsync } from "@heyramzi/utils";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* The one write to the clipboard. A rejected permission, a missing gesture and
|
|
5
3
|
* an insecure origin get one answer: false. The caller decides what to show.
|
|
@@ -7,8 +5,12 @@ import { tryCatchAsync } from "@heyramzi/utils";
|
|
|
7
5
|
|
|
8
6
|
/** Plain text. Returns false when the browser refused the write. */
|
|
9
7
|
export async function copyText(value: string): Promise<boolean> {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
try {
|
|
9
|
+
await navigator.clipboard.writeText(value);
|
|
10
|
+
return true;
|
|
11
|
+
} catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -17,15 +19,17 @@ export async function copyText(value: string): Promise<boolean> {
|
|
|
17
19
|
*/
|
|
18
20
|
export async function copyRichText(html: string, plainText?: string): Promise<boolean> {
|
|
19
21
|
const text = plainText ?? htmlToPlainText(html);
|
|
20
|
-
|
|
21
|
-
navigator.clipboard.write([
|
|
22
|
+
try {
|
|
23
|
+
await navigator.clipboard.write([
|
|
22
24
|
new ClipboardItem({
|
|
23
25
|
"text/html": new Blob([html], { type: "text/html" }),
|
|
24
26
|
"text/plain": new Blob([text], { type: "text/plain" }),
|
|
25
27
|
}),
|
|
26
|
-
])
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
]);
|
|
29
|
+
return true;
|
|
30
|
+
} catch {
|
|
31
|
+
return copyText(text);
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
/** The plain-text twin of an HTML fragment. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// IMPORTS
|
|
9
9
|
// =========================
|
|
10
10
|
import { Check, Copy, StarFour } from "phosphor-svelte";
|
|
11
|
-
import { cn } from "
|
|
11
|
+
import { cn } from "../../lib/utils.js";
|
|
12
12
|
import { buttonVariants } from "../../shadcn/button/index.js";
|
|
13
13
|
import type { HTMLButtonAttributes } from "svelte/elements";
|
|
14
14
|
import { copyText } from "./clipboard.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
import { CaretDown, CaretUp, CaretUpDown } from "phosphor-svelte";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
5
|
import type { SortDirection, SortState } from "./data-table.js";
|
|
6
6
|
|
|
7
7
|
// ========================= TYPES
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
// ========================= IMPORTS
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
import { buttonVariants, type ButtonSize, type ButtonVariant } from "../../shadcn/button/index.js";
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import type { HTMLButtonAttributes } from "svelte/elements";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// IMPORTS
|
|
4
4
|
// =========================
|
|
5
5
|
import EmptyState from "./empty-state.svelte";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
import type { PhosphorIcon, IconWeight } from "../../lib/icon-types.js";
|
|
8
8
|
|
|
9
9
|
// =========================
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// =========================
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import SectionLabel from "./section-label.svelte";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
import { panelHeaderClass, panelShellClass } from "../../lib/panel.js";
|
|
9
9
|
import type { PhosphorIcon } from "../../lib/icon-types.js";
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import { Checkbox } from "../../shadcn/checkbox/index.js";
|
|
7
7
|
import { Check } from "phosphor-svelte";
|
|
8
|
-
import { cn } from "
|
|
8
|
+
import { cn } from "../../lib/utils.js";
|
|
9
9
|
|
|
10
10
|
// =========================
|
|
11
11
|
// TYPES
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import * as Popover from "../../shadcn/popover/index.js";
|
|
7
7
|
import { Funnel as FunnelIcon } from "phosphor-svelte";
|
|
8
|
-
import { cn } from "
|
|
8
|
+
import { cn } from "../../lib/utils.js";
|
|
9
9
|
import { Button } from "../../shadcn/button/index.js";
|
|
10
10
|
import { toolbarTriggerClass } from "./toolbar-trigger.js";
|
|
11
11
|
import type { PhosphorIcon } from "../../lib/icon-types.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { untrack, type Snippet } from "svelte";
|
|
6
6
|
import { SvelteSet } from "svelte/reactivity";
|
|
7
7
|
import { CaretDown } from "phosphor-svelte";
|
|
8
|
-
import { cn } from "
|
|
8
|
+
import { cn } from "../../lib/utils.js";
|
|
9
9
|
|
|
10
10
|
// =========================
|
|
11
11
|
// TYPES
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// =========================
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import EmptyState from "./empty-state.svelte";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
import { pageGutterClass } from "../../lib/layout.js";
|
|
9
9
|
import { getSectionHost } from "./section-host.js";
|
|
10
10
|
import SectionRuns from "../segmented/section-runs.svelte";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import { setContext } from "svelte";
|
|
7
7
|
import { CaretLeft } from "phosphor-svelte";
|
|
8
|
-
import { cn } from "
|
|
8
|
+
import { cn } from "../../lib/utils.js";
|
|
9
9
|
import { Button } from "../../shadcn/button/index.js";
|
|
10
10
|
import { MASTER_DETAIL_PANE, type MasterDetailPane } from "./queue-rail.js";
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// =========================
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import { Warning, Info, CheckCircle, WarningCircle } from "phosphor-svelte";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
import { Alert } from "../../shadcn/alert/index.js";
|
|
9
9
|
import { TONE_CLASS, type Tone as SeverityTone } from "../../lib/tone.js";
|
|
10
10
|
import type { PhosphorIcon } from "../../lib/icon-types.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// IMPORTS
|
|
4
4
|
// =========================
|
|
5
5
|
import { CaretLeft, CaretRight } from "phosphor-svelte";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
import { Button } from "../../shadcn/button/index.js";
|
|
8
8
|
import { stepTo } from "./step.js";
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// =========================
|
|
3
3
|
// IMPORTS
|
|
4
4
|
// =========================
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
import * as Empty from "../../shadcn/empty/index.js";
|
|
7
7
|
import type { PhosphorIcon, IconWeight } from "../../lib/icon-types.js";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// =========================
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
6
|
import { getContext } from "svelte";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
import { MASTER_DETAIL_PANE, type MasterDetailPane } from "./queue-rail.js";
|
|
9
9
|
|
|
10
10
|
// =========================
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// IMPORTS
|
|
25
25
|
// =========================
|
|
26
26
|
import { ArrowSquareOut } from "phosphor-svelte";
|
|
27
|
-
import { cn } from "
|
|
27
|
+
import { cn } from "../../lib/utils.js";
|
|
28
28
|
import { buttonVariants } from "../../shadcn/button/index.js";
|
|
29
29
|
|
|
30
30
|
// =========================
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// =========================
|
|
5
5
|
import { CaretDown } from "phosphor-svelte";
|
|
6
6
|
import { Mark } from "../mark/index.js";
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
import Picker from "./picker.svelte";
|
|
9
9
|
import { pickerTriggerClass } from "./trigger.js";
|
|
10
10
|
import type { PickerOption } from "./types.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
import * as Command from "../../shadcn/command/index.js";
|
|
4
4
|
import * as Popover from "../../shadcn/popover/index.js";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
import type { PickerGroup, PickerOption } from "./types.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<script lang="ts" generics="T extends string">
|
|
28
28
|
import { Tabs as TabsPrimitive } from "bits-ui";
|
|
29
|
-
import { cn } from "
|
|
29
|
+
import { cn } from "../../lib/utils.js";
|
|
30
30
|
import Segment from "./segment.svelte";
|
|
31
31
|
import SegmentedTrack from "./segmented-track.svelte";
|
|
32
32
|
import SegmentedOverflow from "./segmented-overflow.svelte";
|