@arbidocs/blocks 0.4.104 → 0.4.105

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.
Files changed (46) hide show
  1. package/dist/agents/index.cjs +208 -208
  2. package/dist/agents/index.js +3 -3
  3. package/dist/agents/runs/AgentSteps.d.ts +3 -3
  4. package/dist/chat/ModelPicker.d.ts +7 -7
  5. package/dist/chat/index.cjs +65 -65
  6. package/dist/chat/index.js +1 -1
  7. package/dist/{chunk-IF6VAYIA.cjs → chunk-24ND4S6Y.cjs} +8 -8
  8. package/dist/chunk-24ND4S6Y.cjs.map +1 -0
  9. package/dist/{chunk-NW3LFDZL.cjs → chunk-3PCHGUL5.cjs} +6 -6
  10. package/dist/{chunk-NW3LFDZL.cjs.map → chunk-3PCHGUL5.cjs.map} +1 -1
  11. package/dist/{chunk-NJX774HB.js → chunk-IU542FPZ.js} +6 -6
  12. package/dist/{chunk-NJX774HB.js.map → chunk-IU542FPZ.js.map} +1 -1
  13. package/dist/{chunk-ICBAFX5B.js → chunk-S7RHJI5Q.js} +8 -8
  14. package/dist/chunk-S7RHJI5Q.js.map +1 -0
  15. package/dist/connect/index.cjs +2 -2
  16. package/dist/connect/index.js +2 -2
  17. package/dist/facts/index.cjs +1 -1
  18. package/dist/facts/index.js +1 -1
  19. package/dist/files/index.cjs +1 -1
  20. package/dist/files/index.js +1 -1
  21. package/dist/home/index.cjs +1 -1
  22. package/dist/home/index.js +1 -1
  23. package/dist/index.cjs +332 -332
  24. package/dist/index.js +6 -6
  25. package/dist/settings/Billing.d.ts +1 -1
  26. package/dist/settings/PlanCard.d.ts +2 -2
  27. package/dist/settings/QuotaMeter.d.ts +1 -1
  28. package/dist/settings/{ReferralCredit.d.ts → ReferralReward.d.ts} +15 -15
  29. package/dist/settings/SubscriptionParts.d.ts +3 -3
  30. package/dist/settings/Usage.d.ts +7 -11
  31. package/dist/settings/WelcomeDialog.d.ts +1 -1
  32. package/dist/settings/index.cjs +33 -39
  33. package/dist/settings/index.cjs.map +1 -1
  34. package/dist/settings/index.d.ts +2 -2
  35. package/dist/settings/index.js +31 -36
  36. package/dist/settings/index.js.map +1 -1
  37. package/dist/shell/index.cjs +1 -1
  38. package/dist/shell/index.js +1 -1
  39. package/dist/studio/index.cjs +1 -1
  40. package/dist/studio/index.js +1 -1
  41. package/dist/workflow-canvas/index.cjs +10 -10
  42. package/dist/workflow-canvas/index.js +3 -3
  43. package/node_modules/@arbidocs/coedit/package.json +1 -1
  44. package/package.json +4 -4
  45. package/dist/chunk-ICBAFX5B.js.map +0 -1
  46. package/dist/chunk-IF6VAYIA.cjs.map +0 -1
@@ -23,14 +23,14 @@ export { TriStateFilterMenu, DEFAULT_TRI_STATE_FILTER_MENU_LABELS, type TriState
23
23
  export { PlanBadge, type PlanBadgeProps } from './PlanBadge';
24
24
  export { QuotaMeter, type QuotaMeterProps, type QuotaMeterItem } from './QuotaMeter';
25
25
  export { PlanCard, PlanCardGrid, PlanTierOption, PricingToggle, PromoCodeInput, PlanInfoPopover, type PlanCardProps, type PlanCardView, type PlanCardPrice, type PlanTierOptionView, DEFAULT_PLAN_CARD_LABELS, type PlanCardLabels, } from './PlanCard';
26
- export { ReferralCreditBadge, ReferralCreditSummary, ReferralCreditNote, type ReferralCreditBreakdown, type ReferralCreditSummaryProps, DEFAULT_REFERRAL_CREDIT_LABELS, type ReferralCreditLabels, } from './ReferralCredit';
26
+ export { ReferralRewardBadge, ReferralRewardSummary, ReferralRewardNote, type ReferralRewardBreakdown, type ReferralRewardSummaryProps, DEFAULT_REFERRAL_REWARD_LABELS, type ReferralRewardLabels, } from './ReferralReward';
27
27
  export { ActiveSessionsDialog, DeleteAccountDialog, type ActiveSessionView, type ActiveSessionsDialogProps, type DeleteAccountBlocker, type DeleteAccountDialogProps, DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS, DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS, type ActiveSessionsDialogLabels, type DeleteAccountDialogLabels, } from './AccountDialogs';
28
28
  export { ConnectionCard, ConnectionsEmpty, ConnectionsLoading, ConnectionsError, type ConnectionCardProps, type ConnectionCardView, type ConnectionCardStatus, DEFAULT_CONNECTION_CARD_LABELS, type ConnectionCardLabels, } from './ConnectionCard';
29
29
  export { AvatarPicker, type AvatarPickerProps, DEFAULT_AVATAR_PICKER_LABELS, type AvatarPickerLabels, } from './AvatarPicker';
30
30
  export { ProjectRow, ProjectList, SharedProjectsSection, SharedProjectRow, ProjectDetailHeader, ProjectDetailSection, RenameDialog, type ProjectRowProps, type ProjectListProps, type SharedProjectsSectionProps, type ProjectDetailHeaderProps, type RenameDialogProps, DEFAULT_PROJECT_LIST_LABELS, DEFAULT_SHARED_PROJECTS_SECTION_LABELS, DEFAULT_PROJECT_DETAIL_HEADER_LABELS, DEFAULT_RENAME_DIALOG_LABELS, type ProjectListLabels, type SharedProjectsSectionLabels, type ProjectDetailHeaderLabels, type RenameDialogLabels, } from './Projects';
31
31
  export { SupportPanel, SupportUnavailable, type SupportPanelProps, type SupportTab, DEFAULT_SUPPORT_PANEL_LABELS, type SupportPanelLabels, } from './SupportPanel';
32
32
  export { WelcomeDialog, InviteContactsDialog, type WelcomeDialogProps, type WelcomeQuotaView, type InviteContactsDialogProps, DEFAULT_WELCOME_DIALOG_LABELS, DEFAULT_INVITE_CONTACTS_DIALOG_LABELS, type WelcomeDialogLabels, type InviteContactsDialogLabels, } from './WelcomeDialog';
33
- export { UsagePanel, UsageLineChart, UsageLegend, UsageProportionBar, UsageSummary, UsageToggle, CreditsGlyph, type UsagePanelProps, type UsageLineChartProps, type UsageSeries, type UsageShare, type UsageStat, type UsageMetric, type UsageToggleProps, DEFAULT_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_USAGE_PANEL_LABELS, type UsageLineChartLabels, type UsageProportionBarLabels, type UsagePanelLabels, } from './Usage';
33
+ export { UsagePanel, UsageLineChart, UsageLegend, UsageProportionBar, UsageSummary, UsageToggle, type UsagePanelProps, type UsageLineChartProps, type UsageSeries, type UsageShare, type UsageStat, type UsageMetric, type UsageToggleProps, DEFAULT_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_USAGE_PANEL_LABELS, type UsageLineChartLabels, type UsageProportionBarLabels, type UsagePanelLabels, } from './Usage';
34
34
  export { InvoicesDialog, DailyCapField, MemberProjectRow, InlineNameEditor, ProjectCardView, type InvoiceRowView, type InvoicesDialogProps, type DailyCapFieldProps, type MemberProjectRowProps, type InlineNameEditorProps, type ProjectCardViewProps, DEFAULT_INVOICES_DIALOG_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS, DEFAULT_MEMBER_PROJECT_ROW_LABELS, DEFAULT_INLINE_NAME_EDITOR_LABELS, DEFAULT_PROJECT_CARD_VIEW_LABELS, type InvoicesDialogLabels, type DailyCapFieldLabels, type MemberProjectRowLabels, type InlineNameEditorLabels, type ProjectCardViewLabels, } from './Billing';
35
35
  export { ProfileCard, type ProfileCardProps, type ProfileNameView, type ProfileEmailChangeView, DEFAULT_PROFILE_CARD_LABELS, type ProfileCardLabels, } from './ProfileCard';
36
36
  export { EmailWorkspaceDialogView, DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, type EmailWorkspaceDialogViewProps, type EmailWorkspaceDialogLabels, type EmailAssistantAccess, } from './EmailWorkspaceDialogView';
@@ -4,9 +4,9 @@ export { ModalBreadcrumbHeader, ModalCrumbs } from '../chunk-RC6VTY2H.js';
4
4
  import { UsageMeter } from '../chunk-D5T53XCL.js';
5
5
  export { DEFAULT_DOCUMENT_PICKER_LABELS, DocumentPicker, MultiSelect } from '../chunk-4XJZ6AAY.js';
6
6
  export { DEFAULT_TRI_STATE_FILTER_MENU_LABELS, TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
7
- import { TabHeader } from '../chunk-4WWM3GQ5.js';
8
7
  import { ToneBadge } from '../chunk-5LXQPP2K.js';
9
8
  import { TONE_BORDER, TONE_SURFACE } from '../chunk-AUS3KBHJ.js';
9
+ import { TabHeader } from '../chunk-4WWM3GQ5.js';
10
10
  import '../chunk-VILAPTCB.js';
11
11
  import '../chunk-NPLYHR2E.js';
12
12
  import { formatCount } from '../chunk-OXF2IFXG.js';
@@ -15,7 +15,7 @@ export { MODAL_SECTION_TITLE_CLASS, ModalHeader, ModalScaffold, ModalSection, Mo
15
15
  import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
16
16
  import '../chunk-VUNV25KB.js';
17
17
  import { useMemo, useRef, useState, useId, Fragment as Fragment$1 } from 'react';
18
- import { AlertTriangle, History, Undo2, Star, Trash2, Users, Sparkles, Brain, RefreshCw, Wifi, WifiOff, Crown, ChevronDown, ChevronRight, Pencil, Plus, Loader2, Check, Tag, Info, Gift, PlugIcon, CheckCircle2, ExternalLink, ShieldCheck, Plug, AlertCircle, MessageCircleQuestionMark, BookOpen, UserPlus, BadgeCent, ChartNoAxesColumn, FileText, X, Mail, Send, Clock, Infinity, ArrowRight, Copy, LogOut } from 'lucide-react';
18
+ import { AlertTriangle, History, Undo2, Star, Trash2, Users, Sparkles, Brain, RefreshCw, Wifi, WifiOff, Crown, ChevronDown, ChevronRight, Pencil, Plus, Loader2, Check, Tag, Info, Gift, PlugIcon, CheckCircle2, ExternalLink, ShieldCheck, Plug, AlertCircle, MessageCircleQuestionMark, BookOpen, UserPlus, ChartNoAxesColumn, FileText, X, Mail, Send, Clock, Infinity, ArrowRight, Copy, LogOut } from 'lucide-react';
19
19
  import { Button, cn, DialogFooter, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Tooltip, TooltipTrigger, TooltipContent, Switch, Dialog, DialogContent, DialogTitle, DialogDescription, Label, Textarea, Checkbox, ScrollArea, Popover, PopoverTrigger, PopoverContent, Badge, DialogHeader, Progress } from '@arbidocs/react/ui';
20
20
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
21
21
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -1476,13 +1476,13 @@ var DEFAULT_PLAN_CARD_LABELS = {
1476
1476
  enterCode: "Enter code",
1477
1477
  pricingExplainer: "How pricing works",
1478
1478
  explainerTiers: [
1479
- "Credits and storage are shared by everyone in the project. Credits reset monthly.",
1480
- "Need more? Add 1,000 credits or 10 GB at a time. Add-ons renew until you remove them.",
1479
+ "AI usage and storage are shared by everyone in the project. AI usage resets monthly.",
1480
+ "Need more? Add \xA310 of AI usage or 10 GB at a time. Add-ons renew until you remove them.",
1481
1481
  "Automatic add-ons stay within your monthly add-on budget (\xA3250 by default, \xA30 turns them off).",
1482
1482
  "Upgrades start now: you pay the difference for the rest of this period. Downgrades start at the end of the period. No refunds.",
1483
1483
  "Prices are shown + VAT; the total for your country is shown before you pay."
1484
1484
  ],
1485
- explainerCredits: "About 1 credit buys one moderately complex request, or reading ~25 documents, on a Standard model. Premium models can cost 10\u2013100\xD7 more.",
1485
+ explainerAiUsage: "About 1p of AI usage buys one moderately complex request, or reading ~25 documents, on a Standard model. Premium models can cost 10\u2013100\xD7 more.",
1486
1486
  seeModelList: "AI model prices \u2192"
1487
1487
  };
1488
1488
  function PlanCard({ plan, onSelect, labels }) {
@@ -1694,7 +1694,7 @@ function PlanInfoPopover({
1694
1694
  /* @__PURE__ */ jsx("div", { className: "text-base font-semibold", children: l.pricingExplainer }),
1695
1695
  /* @__PURE__ */ jsx("ul", { className: "list-disc space-y-1 pl-4", children: l.explainerTiers.map((line) => /* @__PURE__ */ jsx("li", { children: line }, line)) }),
1696
1696
  /* @__PURE__ */ jsxs("p", { children: [
1697
- l.explainerCredits,
1697
+ l.explainerAiUsage,
1698
1698
  " ",
1699
1699
  /* @__PURE__ */ jsx(
1700
1700
  "button",
@@ -1711,7 +1711,7 @@ function PlanInfoPopover({
1711
1711
  )
1712
1712
  ] });
1713
1713
  }
1714
- var DEFAULT_REFERRAL_CREDIT_LABELS = {
1714
+ var DEFAULT_REFERRAL_REWARD_LABELS = {
1715
1715
  badgeTitle: "Reward \u2014 automatically applied to your invoice period",
1716
1716
  badge: (amount) => `${amount} reward`,
1717
1717
  subtotal: "Subtotal",
@@ -1721,18 +1721,18 @@ var DEFAULT_REFERRAL_CREDIT_LABELS = {
1721
1721
  applied: (amount) => `${amount} reward applied automatically to your invoice period.`,
1722
1722
  note: (amount) => `Your ${amount} reward applies to your invoice period.`
1723
1723
  };
1724
- function ReferralCreditBadge({
1724
+ function ReferralRewardBadge({
1725
1725
  amountLabel,
1726
1726
  labels,
1727
1727
  testId
1728
1728
  }) {
1729
- const l = useMemo(() => ({ ...DEFAULT_REFERRAL_CREDIT_LABELS, ...labels }), [labels]);
1729
+ const l = useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
1730
1730
  return /* @__PURE__ */ jsxs(
1731
1731
  "span",
1732
1732
  {
1733
1733
  className: "flex h-8 items-center gap-1.5 rounded-full bg-green-bg px-2.5 text-sm font-medium text-green-text",
1734
1734
  title: l.badgeTitle,
1735
- "data-testid": testIdOr(testId, { testId: "referral-credit-badge" }),
1735
+ "data-testid": testIdOr(testId, { testId: "referral-reward-badge" }),
1736
1736
  children: [
1737
1737
  /* @__PURE__ */ jsx(Gift, { className: "h-3.5 w-3.5" }),
1738
1738
  l.badge(amountLabel)
@@ -1740,19 +1740,19 @@ function ReferralCreditBadge({
1740
1740
  }
1741
1741
  );
1742
1742
  }
1743
- function ReferralCreditSummary({
1743
+ function ReferralRewardSummary({
1744
1744
  amountLabel,
1745
1745
  breakdown,
1746
1746
  labels,
1747
1747
  testId,
1748
1748
  testIds
1749
1749
  }) {
1750
- const l = useMemo(() => ({ ...DEFAULT_REFERRAL_CREDIT_LABELS, ...labels }), [labels]);
1750
+ const l = useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
1751
1751
  return /* @__PURE__ */ jsx(
1752
1752
  "div",
1753
1753
  {
1754
1754
  className: "rounded-lg bg-green-bg/60 p-3 text-sm",
1755
- "data-testid": testIdOr(testId, { testId: "referral-credit-summary" }),
1755
+ "data-testid": testIdOr(testId, { testId: "referral-reward-summary" }),
1756
1756
  children: breakdown ? /* @__PURE__ */ jsxs("dl", { className: "space-y-1 tabular-nums", children: [
1757
1757
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-muted-foreground", children: [
1758
1758
  /* @__PURE__ */ jsx("dt", { children: l.subtotal }),
@@ -1763,14 +1763,14 @@ function ReferralCreditSummary({
1763
1763
  /* @__PURE__ */ jsx(Gift, { className: "h-3.5 w-3.5" }),
1764
1764
  l.reward
1765
1765
  ] }),
1766
- /* @__PURE__ */ jsxs("dd", { "data-testid": testIdOr(testIds?.applied, { testId: "referral-credit-applied" }), children: [
1766
+ /* @__PURE__ */ jsxs("dd", { "data-testid": testIdOr(testIds?.applied, { testId: "referral-reward-applied" }), children: [
1767
1767
  "\u2212",
1768
1768
  breakdown.reward
1769
1769
  ] })
1770
1770
  ] }),
1771
1771
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t border-green-border pt-1 font-semibold text-foreground", children: [
1772
1772
  /* @__PURE__ */ jsx("dt", { children: l.youPayNow }),
1773
- /* @__PURE__ */ jsx("dd", { "data-testid": testIdOr(testIds?.youPay, { testId: "referral-credit-you-pay" }), children: breakdown.youPay })
1773
+ /* @__PURE__ */ jsx("dd", { "data-testid": testIdOr(testIds?.youPay, { testId: "referral-reward-you-pay" }), children: breakdown.youPay })
1774
1774
  ] }),
1775
1775
  breakdown.rollover && /* @__PURE__ */ jsx("p", { className: "pt-0.5 text-xs font-normal text-muted-foreground", children: l.rollover(breakdown.rollover) })
1776
1776
  ] }) : /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-1.5 font-medium text-green-text", children: [
@@ -1780,17 +1780,17 @@ function ReferralCreditSummary({
1780
1780
  }
1781
1781
  );
1782
1782
  }
1783
- function ReferralCreditNote({
1783
+ function ReferralRewardNote({
1784
1784
  amountLabel,
1785
1785
  labels,
1786
1786
  testId
1787
1787
  }) {
1788
- const l = useMemo(() => ({ ...DEFAULT_REFERRAL_CREDIT_LABELS, ...labels }), [labels]);
1788
+ const l = useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
1789
1789
  return /* @__PURE__ */ jsxs(
1790
1790
  "p",
1791
1791
  {
1792
1792
  className: "flex items-center gap-1.5 text-sm text-green-text",
1793
- "data-testid": testIdOr(testId, { testId: "referral-credit-note" }),
1793
+ "data-testid": testIdOr(testId, { testId: "referral-reward-note" }),
1794
1794
  children: [
1795
1795
  /* @__PURE__ */ jsx(Gift, { className: "h-3.5 w-3.5 shrink-0" }),
1796
1796
  l.note(amountLabel)
@@ -2327,7 +2327,7 @@ var DEFAULT_USAGE_LINE_CHART_LABELS = {
2327
2327
  };
2328
2328
  var DEFAULT_USAGE_PROPORTION_BAR_LABELS = {
2329
2329
  tokens: (formatted) => `${formatted} tokens`,
2330
- credits: (formatted) => `${formatted} credits`,
2330
+ gbp: (formatted) => formatted,
2331
2331
  tokensShort: (formatted) => `${formatted} tok`
2332
2332
  };
2333
2333
  var DEFAULT_USAGE_PANEL_LABELS = {
@@ -2484,7 +2484,7 @@ function UsageProportionBar({
2484
2484
  {
2485
2485
  className: cn("h-full first:rounded-l-full last:rounded-r-full", styleAt(i).bg),
2486
2486
  style: { width: `${pct}%` },
2487
- title: `${item.label}: ${metric === "tokens" ? l.tokens(item.tokens) : l.credits(item.credits)}`
2487
+ title: `${item.label}: ${metric === "tokens" ? l.tokens(item.tokens) : l.gbp(item.gbp)}`
2488
2488
  },
2489
2489
  item.label
2490
2490
  );
@@ -2500,17 +2500,14 @@ function UsageProportionBar({
2500
2500
  /* @__PURE__ */ jsx("span", { className: "truncate", children: item.label })
2501
2501
  ] }),
2502
2502
  /* @__PURE__ */ jsxs("div", { className: "ml-2 flex flex-shrink-0 items-center gap-2 tabular-nums", children: [
2503
- /* @__PURE__ */ jsxs(
2503
+ /* @__PURE__ */ jsx(
2504
2504
  "span",
2505
2505
  {
2506
2506
  className: cn(
2507
2507
  "flex items-center gap-0.5",
2508
- metric === "credits" ? "font-medium text-muted-foreground" : "text-muted-foreground/60"
2508
+ metric === "gbp" ? "font-medium text-muted-foreground" : "text-muted-foreground/60"
2509
2509
  ),
2510
- children: [
2511
- item.credits,
2512
- /* @__PURE__ */ jsx(BadgeCent, { className: "h-3 w-3 text-yellow-500" })
2513
- ]
2510
+ children: item.gbp
2514
2511
  }
2515
2512
  ),
2516
2513
  /* @__PURE__ */ jsx(
@@ -2534,9 +2531,6 @@ function UsageSummary({ stats }) {
2534
2531
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: stat.label })
2535
2532
  ] }, stat.key)) });
2536
2533
  }
2537
- function CreditsGlyph({ className }) {
2538
- return /* @__PURE__ */ jsx(BadgeCent, { className: cn("h-4 w-4 text-yellow-500", className) });
2539
- }
2540
2534
  function UsageToggle({
2541
2535
  value,
2542
2536
  onChange,
@@ -2602,8 +2596,8 @@ var DEFAULT_INVOICES_DIALOG_LABELS = {
2602
2596
  };
2603
2597
  var DEFAULT_DAILY_CAP_FIELD_LABELS = {
2604
2598
  noLimit: "No limit",
2605
- ariaLabel: "Daily credit limit per collaborator",
2606
- unit: "credits / user / day",
2599
+ ariaLabel: "Daily AI usage limit per collaborator (\xA3)",
2600
+ unit: "\xA3 / user / day",
2607
2601
  save: "Save"
2608
2602
  };
2609
2603
  var DEFAULT_MEMBER_PROJECT_ROW_LABELS = {
@@ -2692,6 +2686,7 @@ function DailyCapField({
2692
2686
  {
2693
2687
  type: "number",
2694
2688
  min: 0,
2689
+ step: 0.01,
2695
2690
  value,
2696
2691
  onChange: (e) => onChange(e.target.value),
2697
2692
  onKeyDown: (e) => {
@@ -3076,7 +3071,7 @@ function PlanActionButton({
3076
3071
  );
3077
3072
  }
3078
3073
  var DEFAULT_SUBSCRIPTION_STATUS_LABELS = {
3079
- creditsReset: (date) => `Credits reset ${date}`,
3074
+ aiUsageResets: (date) => `AI usage resets ${date}`,
3080
3075
  cancelsAtPeriodEnd: "\xB7 Cancels at period end",
3081
3076
  cancelsAtEndOfBillingPeriod: "Cancels at end of billing period"
3082
3077
  };
@@ -3090,7 +3085,7 @@ function SubscriptionStatusView({
3090
3085
  const l = { ...DEFAULT_SUBSCRIPTION_STATUS_LABELS, ...labels };
3091
3086
  return /* @__PURE__ */ jsxs("div", { "data-slot": "subscription-status", className: "space-y-3", children: [
3092
3087
  resetDate && /* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
3093
- l.creditsReset(resetDate),
3088
+ l.aiUsageResets(resetDate),
3094
3089
  isCanceling && /* @__PURE__ */ jsx("span", { className: "ml-2 text-yellow-text", children: l.cancelsAtPeriodEnd })
3095
3090
  ] }),
3096
3091
  !resetDate && isCanceling && /* @__PURE__ */ jsx("p", { className: "text-sm text-yellow-text", children: l.cancelsAtEndOfBillingPeriod }),
@@ -3186,9 +3181,9 @@ function CheckoutDialogFrame({
3186
3181
  ) });
3187
3182
  }
3188
3183
  var DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS = {
3189
- title: "Out of AI credits",
3184
+ title: "AI usage used up",
3190
3185
  projectUsage: "Project usage",
3191
- progress: "AI credits used this month",
3186
+ progress: "AI usage this month",
3192
3187
  project: "Project:",
3193
3188
  close: "Not now",
3194
3189
  upgrade: "Upgrade"
@@ -3463,6 +3458,6 @@ function ErrorDialogView({
3463
3458
  ) });
3464
3459
  }
3465
3460
 
3466
- export { CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConfirmDialog, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, CreditsGlyph, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, DEFAULT_CONFIRM_DIALOG_LABELS, DEFAULT_CONNECTION_CARD_LABELS, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS, DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, DEFAULT_ERROR_DIALOG_LABELS, DEFAULT_INLINE_NAME_EDITOR_LABELS, DEFAULT_INVITE_CONTACTS_DIALOG_LABELS, DEFAULT_INVOICES_DIALOG_LABELS, DEFAULT_MEMBER_PROJECT_ROW_LABELS, DEFAULT_MODEL_SELECTION_SECTION_LABELS, DEFAULT_PLAN_CARD_LABELS, DEFAULT_PROJECT_CARD_VIEW_LABELS, DEFAULT_PROJECT_DETAIL_HEADER_LABELS, DEFAULT_PROJECT_LIST_LABELS, DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS, DEFAULT_REFERRAL_CREDIT_LABELS, DEFAULT_RENAME_DIALOG_LABELS, DEFAULT_SHARED_PROJECTS_SECTION_LABELS, DEFAULT_SUBSCRIPTION_SECTION_LABELS, DEFAULT_SUBSCRIPTION_STATUS_LABELS, DEFAULT_SUPPORT_PANEL_LABELS, DEFAULT_SYNC_DIALOG_FOOTER_LABELS, DEFAULT_SYNC_FOLDER_ROW_LABELS, DEFAULT_TIPS_EDITOR_LABELS, DEFAULT_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PANEL_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_WELCOME_DIALOG_LABELS, DEFAULT_WORK_OFFLINE_LABELS, DailyCapField, EmailWorkspaceDialogView, ErrorDialogView, FloatingPanel, InlineNameEditor, InviteContactsDialog, InvoicesDialog, JsonTree, MemberProjectRow, ModelProviderLabel, ModelSelectionSection, PanelActionsRow, PanelAddButton, PanelFrame, PanelFrameBody, PanelNote, PanelScroll, PanelTitleBar, PlanActionButton, PlanActionRow, PlanBadge, PlanCard, PlanCardGrid, PlanDialogFrame, PlanInfoPopover, PlanNotice, PlanPickerCard, PlanPickerHeader, PlanStack, PlanTierOption, PlanTransition, PremiumModelsFrame, PricingToggle, ProjectCardView, ProjectDetailHeader, ProjectDetailSection, ProjectGroup, ProjectList, ProjectNameLabel, ProjectPlanPicker, ProjectRow, ProjectRowActions, PromoCodeInput, QuotaExceededDialogView, QuotaMeter, ReferralCreditBadge, ReferralCreditNote, ReferralCreditSummary, RenameDialog, RowButton, RowIconAction, SegmentedControl, ServerConnectionButton, SharedProjectRow, SharedProjectsSection, SubscriptionSectionView, SubscriptionStatusView, SupportPanel, SupportUnavailable, SyncCheckList, SyncDialogBody, SyncDialogFooter, SyncField, SyncFolderRow, SyncFolderStatus, SyncLinkButton, SyncLinkRow, SyncLoading, SyncNote, SyncOptionToggle, SyncOptions, SyncReconnectNotice, SyncSelect, SyncSmallNote, SyncTreeFrame, ThreadPreviewDialog, TipsEditorDialog, UsageActionButton, UsageLegend, UsageLineChart, UsagePanel, UsageProportionBar, UsageQuotaHint, UsageSection, UsageSummary, UsageToggle, WelcomeDialog, WelcomeProjectPicker, WorkOfflineToggle };
3461
+ export { CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConfirmDialog, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, DEFAULT_CONFIRM_DIALOG_LABELS, DEFAULT_CONNECTION_CARD_LABELS, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS, DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, DEFAULT_ERROR_DIALOG_LABELS, DEFAULT_INLINE_NAME_EDITOR_LABELS, DEFAULT_INVITE_CONTACTS_DIALOG_LABELS, DEFAULT_INVOICES_DIALOG_LABELS, DEFAULT_MEMBER_PROJECT_ROW_LABELS, DEFAULT_MODEL_SELECTION_SECTION_LABELS, DEFAULT_PLAN_CARD_LABELS, DEFAULT_PROJECT_CARD_VIEW_LABELS, DEFAULT_PROJECT_DETAIL_HEADER_LABELS, DEFAULT_PROJECT_LIST_LABELS, DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS, DEFAULT_REFERRAL_REWARD_LABELS, DEFAULT_RENAME_DIALOG_LABELS, DEFAULT_SHARED_PROJECTS_SECTION_LABELS, DEFAULT_SUBSCRIPTION_SECTION_LABELS, DEFAULT_SUBSCRIPTION_STATUS_LABELS, DEFAULT_SUPPORT_PANEL_LABELS, DEFAULT_SYNC_DIALOG_FOOTER_LABELS, DEFAULT_SYNC_FOLDER_ROW_LABELS, DEFAULT_TIPS_EDITOR_LABELS, DEFAULT_USAGE_LINE_CHART_LABELS, DEFAULT_USAGE_PANEL_LABELS, DEFAULT_USAGE_PROPORTION_BAR_LABELS, DEFAULT_WELCOME_DIALOG_LABELS, DEFAULT_WORK_OFFLINE_LABELS, DailyCapField, EmailWorkspaceDialogView, ErrorDialogView, FloatingPanel, InlineNameEditor, InviteContactsDialog, InvoicesDialog, JsonTree, MemberProjectRow, ModelProviderLabel, ModelSelectionSection, PanelActionsRow, PanelAddButton, PanelFrame, PanelFrameBody, PanelNote, PanelScroll, PanelTitleBar, PlanActionButton, PlanActionRow, PlanBadge, PlanCard, PlanCardGrid, PlanDialogFrame, PlanInfoPopover, PlanNotice, PlanPickerCard, PlanPickerHeader, PlanStack, PlanTierOption, PlanTransition, PremiumModelsFrame, PricingToggle, ProjectCardView, ProjectDetailHeader, ProjectDetailSection, ProjectGroup, ProjectList, ProjectNameLabel, ProjectPlanPicker, ProjectRow, ProjectRowActions, PromoCodeInput, QuotaExceededDialogView, QuotaMeter, ReferralRewardBadge, ReferralRewardNote, ReferralRewardSummary, RenameDialog, RowButton, RowIconAction, SegmentedControl, ServerConnectionButton, SharedProjectRow, SharedProjectsSection, SubscriptionSectionView, SubscriptionStatusView, SupportPanel, SupportUnavailable, SyncCheckList, SyncDialogBody, SyncDialogFooter, SyncField, SyncFolderRow, SyncFolderStatus, SyncLinkButton, SyncLinkRow, SyncLoading, SyncNote, SyncOptionToggle, SyncOptions, SyncReconnectNotice, SyncSelect, SyncSmallNote, SyncTreeFrame, ThreadPreviewDialog, TipsEditorDialog, UsageActionButton, UsageLegend, UsageLineChart, UsagePanel, UsageProportionBar, UsageQuotaHint, UsageSection, UsageSummary, UsageToggle, WelcomeDialog, WelcomeProjectPicker, WorkOfflineToggle };
3467
3462
  //# sourceMappingURL=index.js.map
3468
3463
  //# sourceMappingURL=index.js.map