@designa8/vibedesign-v6 1.10.4 → 1.10.6
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 +1 -1
- package/dist/index.cjs +213 -203
- package/dist/index.js +213 -203
- package/package.json +1 -1
- package/src/atoms/AppSidebarMobile/AppSidebarMobile.tsx +206 -199
- package/src/atoms/HomePageTemplate/HomePageTemplate.tsx +34 -7
- package/src/atoms/HomePageTemplate/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -2937,6 +2937,7 @@ AppSidebar.displayName = "AppSidebar";
|
|
|
2937
2937
|
|
|
2938
2938
|
// virtual-pkg:src/atoms/AppSidebarMobile/AppSidebarMobile.tsx
|
|
2939
2939
|
import React11 from "react";
|
|
2940
|
+
import ReactDOM from "react-dom";
|
|
2940
2941
|
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2941
2942
|
var LogoIcon2 = () => /* @__PURE__ */ jsxs11("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "none", "aria-hidden": "true", children: [
|
|
2942
2943
|
/* @__PURE__ */ jsx11("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
|
|
@@ -3030,216 +3031,217 @@ var AppSidebarMobile = React11.forwardRef(
|
|
|
3030
3031
|
}
|
|
3031
3032
|
}, [open]);
|
|
3032
3033
|
const showFooterRow = !!(userInitials || onInboxClick || onDarkModeToggle);
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
"
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
},
|
|
3057
|
-
children: [
|
|
3058
|
-
/* @__PURE__ */ jsx11(
|
|
3059
|
-
"div",
|
|
3060
|
-
{
|
|
3061
|
-
"aria-hidden": "true",
|
|
3062
|
-
onClick: () => setOpen(false),
|
|
3063
|
-
style: {
|
|
3064
|
-
position: "absolute",
|
|
3065
|
-
inset: 0,
|
|
3066
|
-
backgroundColor: "var(--color-scrim)",
|
|
3067
|
-
opacity: visible ? 0.5 : 0,
|
|
3068
|
-
transition: "opacity 0.25s ease"
|
|
3069
|
-
}
|
|
3034
|
+
const overlayContent = mounted ? /* @__PURE__ */ jsxs11(
|
|
3035
|
+
"div",
|
|
3036
|
+
{
|
|
3037
|
+
role: "dialog",
|
|
3038
|
+
"aria-modal": "true",
|
|
3039
|
+
"aria-label": "Navigation menu",
|
|
3040
|
+
style: {
|
|
3041
|
+
position: "fixed",
|
|
3042
|
+
inset: 0,
|
|
3043
|
+
zIndex: 9999
|
|
3044
|
+
},
|
|
3045
|
+
children: [
|
|
3046
|
+
/* @__PURE__ */ jsx11(
|
|
3047
|
+
"div",
|
|
3048
|
+
{
|
|
3049
|
+
"aria-hidden": "true",
|
|
3050
|
+
onClick: () => setOpen(false),
|
|
3051
|
+
style: {
|
|
3052
|
+
position: "absolute",
|
|
3053
|
+
inset: 0,
|
|
3054
|
+
backgroundColor: "var(--color-scrim)",
|
|
3055
|
+
opacity: visible ? 0.5 : 0,
|
|
3056
|
+
transition: "opacity 0.25s ease"
|
|
3070
3057
|
}
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3058
|
+
}
|
|
3059
|
+
),
|
|
3060
|
+
/* @__PURE__ */ jsxs11(
|
|
3061
|
+
"div",
|
|
3062
|
+
{
|
|
3063
|
+
style: {
|
|
3064
|
+
position: "absolute",
|
|
3065
|
+
top: 0,
|
|
3066
|
+
left: 0,
|
|
3067
|
+
bottom: 0,
|
|
3068
|
+
width: "min(280px, 85vw)",
|
|
3069
|
+
display: "flex",
|
|
3070
|
+
flexDirection: "column",
|
|
3071
|
+
backgroundColor: "var(--color-canvas)",
|
|
3072
|
+
borderRight: "1px solid var(--color-hairline)",
|
|
3073
|
+
boxShadow: "var(--shadow-lg)",
|
|
3074
|
+
transform: visible ? "translateX(0)" : "translateX(-100%)",
|
|
3075
|
+
transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
|
|
3076
|
+
overflowY: "auto",
|
|
3077
|
+
overflowX: "hidden"
|
|
3078
|
+
},
|
|
3079
|
+
children: [
|
|
3080
|
+
/* @__PURE__ */ jsxs11(
|
|
3081
|
+
"div",
|
|
3082
|
+
{
|
|
3083
|
+
className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
|
|
3084
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3085
|
+
children: [
|
|
3086
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-sm", children: [
|
|
3087
|
+
/* @__PURE__ */ jsx11(LogoIcon2, {}),
|
|
3088
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
|
|
3089
|
+
] }),
|
|
3090
|
+
/* @__PURE__ */ jsx11(
|
|
3091
|
+
Button,
|
|
3092
|
+
{
|
|
3093
|
+
variant: "ghost",
|
|
3094
|
+
size: "sm",
|
|
3095
|
+
"aria-label": "Close navigation",
|
|
3096
|
+
onClick: () => setOpen(false),
|
|
3097
|
+
className: "!p-xs !rounded-md",
|
|
3098
|
+
children: /* @__PURE__ */ jsx11(CloseIcon, {})
|
|
3099
|
+
}
|
|
3100
|
+
)
|
|
3101
|
+
]
|
|
3102
|
+
}
|
|
3103
|
+
),
|
|
3104
|
+
workspaceName && /* @__PURE__ */ jsx11(
|
|
3105
|
+
"div",
|
|
3106
|
+
{
|
|
3107
|
+
className: "px-sm pb-sm",
|
|
3108
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3109
|
+
children: /* @__PURE__ */ jsx11(
|
|
3110
|
+
WorkspaceMenu,
|
|
3111
|
+
{
|
|
3112
|
+
workspaceName,
|
|
3113
|
+
initials: workspaceName.charAt(0).toUpperCase()
|
|
3114
|
+
}
|
|
3115
|
+
)
|
|
3116
|
+
}
|
|
3117
|
+
),
|
|
3118
|
+
/* @__PURE__ */ jsx11(
|
|
3119
|
+
"div",
|
|
3120
|
+
{
|
|
3121
|
+
className: "flex-1 overflow-y-auto px-sm pb-sm",
|
|
3122
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3123
|
+
children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
|
|
3124
|
+
const isActive = activeId === entry.id;
|
|
3125
|
+
const hasSubItems = !!entry.subItems?.length;
|
|
3126
|
+
const isExpanded = expandedIds.has(entry.id);
|
|
3127
|
+
const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
|
|
3128
|
+
id: sub.id,
|
|
3129
|
+
label: sub.label,
|
|
3130
|
+
onDelete: sub.onDelete,
|
|
3131
|
+
onClick: onSubSelect ? (_id) => {
|
|
3132
|
+
onSubSelect(_id);
|
|
3133
|
+
setOpen(false);
|
|
3134
|
+
} : void 0
|
|
3135
|
+
})) : void 0;
|
|
3136
|
+
return /* @__PURE__ */ jsx11(
|
|
3137
|
+
NavItem,
|
|
3138
|
+
{
|
|
3139
|
+
icon: entry.icon,
|
|
3140
|
+
label: entry.label,
|
|
3141
|
+
active: isActive,
|
|
3142
|
+
subItems: mappedSubItems,
|
|
3143
|
+
expanded: hasSubItems ? isExpanded : void 0,
|
|
3144
|
+
onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
|
|
3145
|
+
onClick: (e) => {
|
|
3146
|
+
onSelect?.(entry.id);
|
|
3147
|
+
if (!hasSubItems) setOpen(false);
|
|
3148
|
+
else e.preventDefault();
|
|
3149
|
+
}
|
|
3150
|
+
},
|
|
3151
|
+
entry.id
|
|
3152
|
+
);
|
|
3153
|
+
}) })
|
|
3154
|
+
}
|
|
3155
|
+
),
|
|
3156
|
+
/* @__PURE__ */ jsxs11(
|
|
3157
|
+
"div",
|
|
3158
|
+
{
|
|
3159
|
+
className: "flex-shrink-0 px-sm pb-lg space-y-sm",
|
|
3160
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3161
|
+
children: [
|
|
3162
|
+
showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
|
|
3163
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3164
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
|
|
3165
|
+
/* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
|
|
3101
3166
|
] }),
|
|
3102
3167
|
/* @__PURE__ */ jsx11(
|
|
3103
|
-
|
|
3168
|
+
"span",
|
|
3104
3169
|
{
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
onClick: () => setOpen(false),
|
|
3109
|
-
className: "!p-xs !rounded-md",
|
|
3110
|
-
children: /* @__PURE__ */ jsx11(CloseIcon, {})
|
|
3170
|
+
className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
|
|
3171
|
+
style: { width: "36px", height: "36px" },
|
|
3172
|
+
children: /* @__PURE__ */ jsx11(GiftIcon2, {})
|
|
3111
3173
|
}
|
|
3112
3174
|
)
|
|
3113
|
-
]
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
{
|
|
3119
|
-
className: "px-sm pb-sm",
|
|
3120
|
-
style: { backgroundColor: "var(--color-canvas)" },
|
|
3121
|
-
children: /* @__PURE__ */ jsx11(
|
|
3122
|
-
WorkspaceMenu,
|
|
3123
|
-
{
|
|
3124
|
-
workspaceName,
|
|
3125
|
-
initials: workspaceName.charAt(0).toUpperCase()
|
|
3126
|
-
}
|
|
3127
|
-
)
|
|
3128
|
-
}
|
|
3129
|
-
),
|
|
3130
|
-
/* @__PURE__ */ jsx11(
|
|
3131
|
-
"div",
|
|
3132
|
-
{
|
|
3133
|
-
className: "flex-1 overflow-y-auto px-sm pb-sm",
|
|
3134
|
-
style: { backgroundColor: "var(--color-canvas)" },
|
|
3135
|
-
children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
|
|
3136
|
-
const isActive = activeId === entry.id;
|
|
3137
|
-
const hasSubItems = !!entry.subItems?.length;
|
|
3138
|
-
const isExpanded = expandedIds.has(entry.id);
|
|
3139
|
-
const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
|
|
3140
|
-
id: sub.id,
|
|
3141
|
-
label: sub.label,
|
|
3142
|
-
onDelete: sub.onDelete,
|
|
3143
|
-
onClick: onSubSelect ? (_id) => {
|
|
3144
|
-
onSubSelect(_id);
|
|
3145
|
-
setOpen(false);
|
|
3146
|
-
} : void 0
|
|
3147
|
-
})) : void 0;
|
|
3148
|
-
return /* @__PURE__ */ jsx11(
|
|
3149
|
-
NavItem,
|
|
3175
|
+
] }),
|
|
3176
|
+
showUpgradeCard && /* @__PURE__ */ jsx11(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
|
|
3177
|
+
showFooterRow && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
|
|
3178
|
+
userInitials && /* @__PURE__ */ jsx11(
|
|
3179
|
+
"span",
|
|
3150
3180
|
{
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
else e.preventDefault();
|
|
3161
|
-
}
|
|
3162
|
-
},
|
|
3163
|
-
entry.id
|
|
3164
|
-
);
|
|
3165
|
-
}) })
|
|
3166
|
-
}
|
|
3167
|
-
),
|
|
3168
|
-
/* @__PURE__ */ jsxs11(
|
|
3169
|
-
"div",
|
|
3170
|
-
{
|
|
3171
|
-
className: "flex-shrink-0 px-sm pb-lg space-y-sm",
|
|
3172
|
-
style: { backgroundColor: "var(--color-canvas)" },
|
|
3173
|
-
children: [
|
|
3174
|
-
showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
|
|
3175
|
-
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3176
|
-
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
|
|
3177
|
-
/* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
|
|
3178
|
-
] }),
|
|
3179
|
-
/* @__PURE__ */ jsx11(
|
|
3180
|
-
"span",
|
|
3181
|
+
className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-body-sm font-weight-heading-sm cursor-pointer hover:bg-primary-hover transition-colors duration-150",
|
|
3182
|
+
style: { width: "36px", height: "36px" },
|
|
3183
|
+
"aria-label": "User profile",
|
|
3184
|
+
children: userInitials
|
|
3185
|
+
}
|
|
3186
|
+
),
|
|
3187
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-xs ml-auto", children: [
|
|
3188
|
+
onDarkModeToggle && /* @__PURE__ */ jsx11(
|
|
3189
|
+
Button,
|
|
3181
3190
|
{
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3191
|
+
variant: "ghost",
|
|
3192
|
+
size: "sm",
|
|
3193
|
+
"aria-label": darkMode ? "Switch to light mode" : "Switch to dark mode",
|
|
3194
|
+
onClick: onDarkModeToggle,
|
|
3195
|
+
className: "!p-xs !rounded-sm",
|
|
3196
|
+
children: darkMode ? /* @__PURE__ */ jsx11(SunIcon3, {}) : /* @__PURE__ */ jsx11(MoonIcon3, {})
|
|
3185
3197
|
}
|
|
3186
|
-
)
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
showFooterRow && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
|
|
3190
|
-
userInitials && /* @__PURE__ */ jsx11(
|
|
3191
|
-
"span",
|
|
3198
|
+
),
|
|
3199
|
+
onInboxClick && /* @__PURE__ */ jsxs11(
|
|
3200
|
+
Button,
|
|
3192
3201
|
{
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
"aria-label": "
|
|
3196
|
-
|
|
3202
|
+
variant: "ghost",
|
|
3203
|
+
size: "sm",
|
|
3204
|
+
"aria-label": "Inbox",
|
|
3205
|
+
onClick: onInboxClick,
|
|
3206
|
+
className: "!p-xs !rounded-sm relative",
|
|
3207
|
+
children: [
|
|
3208
|
+
/* @__PURE__ */ jsx11(InboxIcon2, {}),
|
|
3209
|
+
/* @__PURE__ */ jsx11(
|
|
3210
|
+
"span",
|
|
3211
|
+
{
|
|
3212
|
+
className: "absolute rounded-full bg-semantic-error",
|
|
3213
|
+
"aria-label": "New notifications",
|
|
3214
|
+
style: { width: "8px", height: "8px", top: "4px", right: "4px" }
|
|
3215
|
+
}
|
|
3216
|
+
)
|
|
3217
|
+
]
|
|
3197
3218
|
}
|
|
3198
|
-
)
|
|
3199
|
-
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-xs ml-auto", children: [
|
|
3200
|
-
onDarkModeToggle && /* @__PURE__ */ jsx11(
|
|
3201
|
-
Button,
|
|
3202
|
-
{
|
|
3203
|
-
variant: "ghost",
|
|
3204
|
-
size: "sm",
|
|
3205
|
-
"aria-label": darkMode ? "Switch to light mode" : "Switch to dark mode",
|
|
3206
|
-
onClick: onDarkModeToggle,
|
|
3207
|
-
className: "!p-xs !rounded-sm",
|
|
3208
|
-
children: darkMode ? /* @__PURE__ */ jsx11(SunIcon3, {}) : /* @__PURE__ */ jsx11(MoonIcon3, {})
|
|
3209
|
-
}
|
|
3210
|
-
),
|
|
3211
|
-
onInboxClick && /* @__PURE__ */ jsxs11(
|
|
3212
|
-
Button,
|
|
3213
|
-
{
|
|
3214
|
-
variant: "ghost",
|
|
3215
|
-
size: "sm",
|
|
3216
|
-
"aria-label": "Inbox",
|
|
3217
|
-
onClick: onInboxClick,
|
|
3218
|
-
className: "!p-xs !rounded-sm relative",
|
|
3219
|
-
children: [
|
|
3220
|
-
/* @__PURE__ */ jsx11(InboxIcon2, {}),
|
|
3221
|
-
/* @__PURE__ */ jsx11(
|
|
3222
|
-
"span",
|
|
3223
|
-
{
|
|
3224
|
-
className: "absolute rounded-full bg-semantic-error",
|
|
3225
|
-
"aria-label": "New notifications",
|
|
3226
|
-
style: { width: "8px", height: "8px", top: "4px", right: "4px" }
|
|
3227
|
-
}
|
|
3228
|
-
)
|
|
3229
|
-
]
|
|
3230
|
-
}
|
|
3231
|
-
)
|
|
3232
|
-
] })
|
|
3219
|
+
)
|
|
3233
3220
|
] })
|
|
3234
|
-
]
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3221
|
+
] })
|
|
3222
|
+
]
|
|
3223
|
+
}
|
|
3224
|
+
)
|
|
3225
|
+
]
|
|
3226
|
+
}
|
|
3227
|
+
)
|
|
3228
|
+
]
|
|
3229
|
+
}
|
|
3230
|
+
) : null;
|
|
3231
|
+
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
3232
|
+
/* @__PURE__ */ jsx11("div", { ref, className, children: /* @__PURE__ */ jsx11(
|
|
3233
|
+
Button,
|
|
3234
|
+
{
|
|
3235
|
+
variant: "ghost",
|
|
3236
|
+
size: "sm",
|
|
3237
|
+
"aria-label": "Open navigation",
|
|
3238
|
+
"aria-expanded": open,
|
|
3239
|
+
onClick: () => setOpen(true),
|
|
3240
|
+
className: "!p-xs !rounded-md",
|
|
3241
|
+
children: /* @__PURE__ */ jsx11(HamburgerIcon, {})
|
|
3241
3242
|
}
|
|
3242
|
-
)
|
|
3243
|
+
) }),
|
|
3244
|
+
typeof window !== "undefined" ? ReactDOM.createPortal(overlayContent, document.body) : overlayContent
|
|
3243
3245
|
] });
|
|
3244
3246
|
}
|
|
3245
3247
|
);
|
|
@@ -3735,6 +3737,12 @@ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx16(
|
|
|
3735
3737
|
children: label
|
|
3736
3738
|
}
|
|
3737
3739
|
);
|
|
3740
|
+
var DEFAULT_MODELS = [
|
|
3741
|
+
{ id: "claude-sonnet", name: "Claude Sonnet 4.6" },
|
|
3742
|
+
{ id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
|
|
3743
|
+
{ id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
|
|
3744
|
+
];
|
|
3745
|
+
var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
|
|
3738
3746
|
var NAV_ENTRIES = [
|
|
3739
3747
|
{ id: "home", label: "Home", icon: /* @__PURE__ */ jsx16(HomeIcon2, {}) },
|
|
3740
3748
|
{
|
|
@@ -3778,6 +3786,9 @@ var HomePageTemplate = React16.forwardRef(
|
|
|
3778
3786
|
onSubSelect,
|
|
3779
3787
|
darkMode,
|
|
3780
3788
|
onDarkModeToggle,
|
|
3789
|
+
models,
|
|
3790
|
+
selectedModelId,
|
|
3791
|
+
onModelChange,
|
|
3781
3792
|
className,
|
|
3782
3793
|
style
|
|
3783
3794
|
}, ref) => {
|
|
@@ -3786,6 +3797,8 @@ var HomePageTemplate = React16.forwardRef(
|
|
|
3786
3797
|
const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
|
|
3787
3798
|
const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
|
|
3788
3799
|
const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
|
|
3800
|
+
const resolvedModels = models !== void 0 ? models : DEFAULT_MODELS;
|
|
3801
|
+
const resolvedSelectedModelId = selectedModelId !== void 0 ? selectedModelId : DEFAULT_SELECTED_MODEL_ID;
|
|
3789
3802
|
const handleChange = (val) => {
|
|
3790
3803
|
if (promptValue === void 0) setInternalPrompt(val);
|
|
3791
3804
|
onPromptChange?.(val);
|
|
@@ -3931,12 +3944,9 @@ var HomePageTemplate = React16.forwardRef(
|
|
|
3931
3944
|
onSend: handleSend,
|
|
3932
3945
|
onMic: () => {
|
|
3933
3946
|
},
|
|
3934
|
-
models:
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
{ id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
|
|
3938
|
-
],
|
|
3939
|
-
selectedModelId: "claude-sonnet"
|
|
3947
|
+
models: resolvedModels,
|
|
3948
|
+
selectedModelId: resolvedSelectedModelId,
|
|
3949
|
+
onModelChange
|
|
3940
3950
|
}
|
|
3941
3951
|
) }),
|
|
3942
3952
|
/* @__PURE__ */ jsx16(
|