@arbidocs/blocks 0.4.104 → 0.4.106
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/agents/index.cjs +207 -207
- package/dist/agents/index.js +2 -2
- package/dist/agents/runs/AgentSteps.d.ts +3 -3
- package/dist/chat/ModelPicker.d.ts +7 -7
- package/dist/chat/index.cjs +65 -65
- package/dist/chat/index.js +1 -1
- package/dist/{chunk-IF6VAYIA.cjs → chunk-24ND4S6Y.cjs} +8 -8
- package/dist/chunk-24ND4S6Y.cjs.map +1 -0
- package/dist/{chunk-NJX774HB.js → chunk-3Y6NQIDE.js} +5 -5
- package/dist/{chunk-NJX774HB.js.map → chunk-3Y6NQIDE.js.map} +1 -1
- package/dist/{chunk-NW3LFDZL.cjs → chunk-LLFW2T6S.cjs} +5 -5
- package/dist/{chunk-NW3LFDZL.cjs.map → chunk-LLFW2T6S.cjs.map} +1 -1
- package/dist/{chunk-ICBAFX5B.js → chunk-S7RHJI5Q.js} +8 -8
- package/dist/chunk-S7RHJI5Q.js.map +1 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +323 -323
- package/dist/index.js +5 -5
- package/dist/settings/Billing.d.ts +1 -1
- package/dist/settings/PlanCard.d.ts +2 -2
- package/dist/settings/QuotaMeter.d.ts +1 -1
- package/dist/settings/{ReferralCredit.d.ts → ReferralReward.d.ts} +15 -15
- package/dist/settings/SubscriptionParts.d.ts +3 -3
- package/dist/settings/Usage.d.ts +7 -11
- package/dist/settings/WelcomeDialog.d.ts +1 -1
- package/dist/settings/index.cjs +32 -38
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +2 -2
- package/dist/settings/index.js +30 -35
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-ICBAFX5B.js.map +0 -1
- package/dist/chunk-IF6VAYIA.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { ApplyLabelButton, ApplyLabelDialog, DEFAULT_APPLY_LABEL_DIALOG_LABELS, DEFAULT_RELEVANCE_STEPS, DEFAULT_SEARCH_BAR_LABELS, DEFAULT_SEARCH_EMPTY_STATE_LABELS, DEFAULT_SEARCH_GROUP_HEADER_LABELS, DEFAULT_SEARCH_NO_RESULTS_LABELS, DEFAULT_SEARCH_PAGINATION_LABELS, DEFAULT_SEARCH_TOTALS_LABELS, DOCUMENT_SEARCH_NOUNS, Highlight, RelevanceThreshold, SearchBar, SearchControlsBar, SearchEmptyState, SearchErrorBanner, SearchGroupCard, SearchGroupHeader, SearchNoResults, SearchPageBody, SearchPageFrame, SearchPageHeader, SearchPagination, SearchPillToggle, SearchResultList, SearchResultsInner, SearchResultsMain, SearchToolbarRow, SearchTotalsHeadline, getPageNumbers, highlightTerms, searchNouns, splitByTerms, stripMarkdownLinks } from './chunk-2MJWWPHY.js';
|
|
3
|
+
export { UsageMeter } from './chunk-D5T53XCL.js';
|
|
3
4
|
export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from './chunk-VLOPZHFH.js';
|
|
4
5
|
export { ArticleList, Chart, CheckList, CollectionDetail, CtaBand, DefinitionList, EditorialHeading, EditorialHero, EditorialProse, EditorialSection, Eyebrow, PanelGrid, ProofStrip, PullQuote, Reveal, TagList } from './chunk-LYUO3E6V.js';
|
|
5
|
-
export { UsageMeter } from './chunk-D5T53XCL.js';
|
|
6
6
|
export { DataTable, DataTableBlock, MetricCard, PageHeader, StatGroup } from './chunk-ZCF2JJFA.js';
|
|
7
7
|
export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Columns, ContactForm, Container, FAQ, FONT_PAIRINGS, FeatureGrid, Footer, Gallery, Hero, ListBlock, LogoCloud, MediaText, Navbar, PricingTable, ProfileCard, RichTextBlock, SectionHeading, Spacer, Steps, THEME_STYLE_ID, Tabs, TeamGrid, Testimonial, TestimonialGrid, ThemeEditor, VideoEmbed, applyFontVars, applyStoredTheme, applyThemeVars, clearFontVars, clearThemeVars, createThemeStore, fontPackages, getFontPairing, matchFontPairing, tid, toEmbedUrl, toHslTriplet } from './chunk-DLBUFHLY.js';
|
|
8
8
|
export { Timeline } from './chunk-OVEQERPO.js';
|
|
@@ -17,7 +17,7 @@ export { DEFAULT_SEARCH_HIT_LABELS, SearchHit } from './chunk-A2YAC22G.js';
|
|
|
17
17
|
export { TIMELINE_ZOOM, TimelineCalendar, TimelineGantt, TimelineZoomControl, dayKey, formatSpan, monthLabel, parseIso, utcDay } from './chunk-4EZVCGRL.js';
|
|
18
18
|
import './chunk-AF6RDAJF.js';
|
|
19
19
|
export { Callout } from './chunk-UJE32SST.js';
|
|
20
|
-
export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, skillSlug, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowFromSkillMarkdown, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowTriggerType, workflowWhen } from './chunk-
|
|
20
|
+
export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, skillSlug, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowFromSkillMarkdown, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowTriggerType, workflowWhen } from './chunk-3Y6NQIDE.js';
|
|
21
21
|
import './chunk-4XJZ6AAY.js';
|
|
22
22
|
export { EmptyState } from './chunk-P6GHJSLR.js';
|
|
23
23
|
export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, TaskActivityTimeline, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from './chunk-PGDL26TQ.js';
|
|
@@ -34,15 +34,15 @@ import './chunk-XD2M6LIG.js';
|
|
|
34
34
|
export { ActionLink } from './chunk-S7PSMMRG.js';
|
|
35
35
|
export { AccountRecoveryDialog, AuthAlert, AuthConsent, AuthDivider, AuthField, AuthFieldBadge, AuthFooterLinks, AuthHeading, AuthHero, AuthInput, AuthLayout, AuthLink, AuthNote, AuthOfflineBadge, AuthSubmitButton, AuthTabs, DEFAULT_ACCOUNT_RECOVERY_DIALOG_LABELS, DEFAULT_AUTH_CONSENT_LABELS, DEFAULT_AUTH_FOOTER_LINKS_LABELS, DEFAULT_AUTH_OFFLINE_BADGE_LABELS, DEFAULT_RECOVERY_KEY_DIALOG_LABELS, DEFAULT_REVEALABLE_PASSWORD_INPUT_LABELS, DEFAULT_SSO_LOGIN_BUTTON_LABELS, RecoveryKeyDialog, RevealablePasswordInput, SsoLoginButton } from './chunk-SFXVNFES.js';
|
|
36
36
|
export { DEFAULT_PASSWORD_STRENGTH_INPUT_LABELS, PasswordStrengthInput } from './chunk-VILAPTCB.js';
|
|
37
|
-
export {
|
|
38
|
-
export { BlocksProvider, useBlocksEnvironment } from './chunk-76JDDMSP.js';
|
|
39
|
-
export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, getParticipantTints, hasMessageBody, isLongPastedText, useDismissibleCard, useLongPaste, useRecipientDraft } from './chunk-ICBAFX5B.js';
|
|
37
|
+
export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, getParticipantTints, hasMessageBody, isLongPastedText, useDismissibleCard, useLongPaste, useRecipientDraft } from './chunk-S7RHJI5Q.js';
|
|
40
38
|
export { DEFAULT_DOCK_WIDTH, Toaster } from './chunk-BV7FEMSI.js';
|
|
41
39
|
export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStreamAnnouncement } from './chunk-EWSEQEPL.js';
|
|
42
40
|
export { BlocksTooltipProvider, DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from './chunk-KZJAG7T3.js';
|
|
43
41
|
export { useMentionAutocomplete } from './chunk-HOXKR26S.js';
|
|
44
42
|
export { DEFAULT_MENTION_LABELS, MENTION_HREF_PREFIX, MentionChip, MentionMenu, extractMentions, filterMentionCandidates, findMentionQuery, insertMention, linkMentions, mentionFromHref, toMessageMentions, useListKeyNav } from './chunk-AA3PT6KR.js';
|
|
45
43
|
import './chunk-NPLYHR2E.js';
|
|
44
|
+
export { CitationEditor, DEFAULT_PASSAGE_PILL_LABELS, DEFAULT_QUIET_MARK_LABELS, LabelMark, NoteMark, PassageMark, PassagePill, QuietLink, useCopyText } from './chunk-XQKGYGCJ.js';
|
|
45
|
+
export { BlocksProvider, useBlocksEnvironment } from './chunk-76JDDMSP.js';
|
|
46
46
|
export { daysUntil, displayName, fmtDate, fmtDateTime, formatCount, formatCurrency, formatPageRefs, fromNow, hrs, initials, pct, pluralize } from './chunk-OXF2IFXG.js';
|
|
47
47
|
export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_ADD_CONTACTS_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_CONTACT_OUTCOME_LABELS, DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, DEFAULT_DM_INVITE_CHIP_LABELS, DEFAULT_DM_THREAD_FRAME_LABELS, DEFAULT_MAIL_FOLDER_TREE_LABELS, DEFAULT_RECIPIENT_PICKER_LABELS, DmAccessRequestBanner, DmGrantAccessDialogView, DmInviteAvatar, DmInviteChip, DmNewTabIcon, DmThreadFrame, DmThreadHeader, MAX_INVITE_EMAILS, MailFolderTree, MemberBulkActions, MemberListLoading, MemberMutedText, MemberNameCell, MemberRoleCell, RecipientPicker, RoleSelect, WorkspaceDeleteButton, buildMailFolderTree, contactToVCard, descendantFolderIds, downloadVCard, isInboxFolder, parseEmails, toAddContactsRow, toAddContactsRows, toggleMailFolder, vCardFilename } from './chunk-7C35WXYB.js';
|
|
48
48
|
import './chunk-NBV56SGU.js';
|
|
@@ -65,7 +65,7 @@ export interface DailyCapFieldProps {
|
|
|
65
65
|
isSaving?: boolean;
|
|
66
66
|
labels?: Partial<DailyCapFieldLabels>;
|
|
67
67
|
}
|
|
68
|
-
/** Per-collaborator daily
|
|
68
|
+
/** Per-collaborator daily AI usage cap (£) input; Enter or Save commits, empty means no limit. */
|
|
69
69
|
export declare function DailyCapField({ value, onChange, onSave, canSave, isSaving, labels, }: DailyCapFieldProps): import("react").JSX.Element;
|
|
70
70
|
export interface MemberProjectRowProps {
|
|
71
71
|
icon: ReactNode;
|
|
@@ -17,7 +17,7 @@ export interface PlanCardLabels {
|
|
|
17
17
|
pricingExplainer: string;
|
|
18
18
|
/** One short line per idea, shown as a list. */
|
|
19
19
|
explainerTiers: string[];
|
|
20
|
-
|
|
20
|
+
explainerAiUsage: string;
|
|
21
21
|
seeModelList: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const DEFAULT_PLAN_CARD_LABELS: PlanCardLabels;
|
|
@@ -49,7 +49,7 @@ export interface PlanCardView {
|
|
|
49
49
|
isSelected?: boolean;
|
|
50
50
|
isPopular?: boolean;
|
|
51
51
|
price?: PlanCardPrice;
|
|
52
|
-
/** Entitlement lines, e.g. "
|
|
52
|
+
/** Entitlement lines, e.g. "£10 of AI usage / mo". */
|
|
53
53
|
features: string[];
|
|
54
54
|
}
|
|
55
55
|
export interface PlanCardProps {
|
|
@@ -27,5 +27,5 @@ export interface QuotaMeterProps {
|
|
|
27
27
|
*/
|
|
28
28
|
testIds?: Partial<Record<'root' | 'badge', string>>;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/** AI usage / storage / collaborators readout, in a compact row or as stat tiles. */
|
|
31
31
|
export declare function QuotaMeter({ items, size, showTooltips, showBars, showPercent, className, testIds, }: QuotaMeterProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** Every fixed string of the referral-
|
|
2
|
-
export interface
|
|
1
|
+
/** Every fixed string of the referral-reward parts. `amount` is the formatted reward. */
|
|
2
|
+
export interface ReferralRewardLabels {
|
|
3
3
|
badgeTitle: string;
|
|
4
4
|
badge: (amount: string) => string;
|
|
5
5
|
subtotal: string;
|
|
@@ -9,38 +9,38 @@ export interface ReferralCreditLabels {
|
|
|
9
9
|
applied: (amount: string) => string;
|
|
10
10
|
note: (amount: string) => string;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const DEFAULT_REFERRAL_REWARD_LABELS: ReferralRewardLabels;
|
|
13
13
|
/** Standing pill: the user's available referral reward. */
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function ReferralRewardBadge({ amountLabel, labels, testId, }: {
|
|
15
15
|
amountLabel: string;
|
|
16
|
-
labels?: Partial<
|
|
17
|
-
/** Default `referral-
|
|
16
|
+
labels?: Partial<ReferralRewardLabels>;
|
|
17
|
+
/** Default `referral-reward-badge` / `referral-reward-note` per part. */
|
|
18
18
|
testId?: string;
|
|
19
19
|
}): import("react").JSX.Element;
|
|
20
|
-
export interface
|
|
20
|
+
export interface ReferralRewardBreakdown {
|
|
21
21
|
subtotal: string;
|
|
22
22
|
reward: string;
|
|
23
23
|
youPay: string;
|
|
24
24
|
/** Set when part of the reward rolls over to the next invoice. */
|
|
25
25
|
rollover?: string;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface ReferralRewardSummaryProps {
|
|
28
28
|
/** The reward amount, formatted. */
|
|
29
29
|
amountLabel: string;
|
|
30
30
|
/** When the exact charge is known; otherwise a one-line note is shown. */
|
|
31
|
-
breakdown?:
|
|
32
|
-
labels?: Partial<
|
|
33
|
-
/** Root test id (default `referral-
|
|
31
|
+
breakdown?: ReferralRewardBreakdown;
|
|
32
|
+
labels?: Partial<ReferralRewardLabels>;
|
|
33
|
+
/** Root test id (default `referral-reward-summary`). */
|
|
34
34
|
testId?: string;
|
|
35
35
|
/** Breakdown rows; defaults are the current ids. */
|
|
36
36
|
testIds?: Partial<Record<'applied' | 'youPay', string>>;
|
|
37
37
|
}
|
|
38
38
|
/** Reward applied to a purchase: subtotal / reward / you pay now, or a one-line note. */
|
|
39
|
-
export declare function
|
|
39
|
+
export declare function ReferralRewardSummary({ amountLabel, breakdown, labels, testId, testIds, }: ReferralRewardSummaryProps): import("react").JSX.Element;
|
|
40
40
|
/** One-line note for charges whose exact amount is a proration computed server-side. */
|
|
41
|
-
export declare function
|
|
41
|
+
export declare function ReferralRewardNote({ amountLabel, labels, testId, }: {
|
|
42
42
|
amountLabel: string;
|
|
43
|
-
labels?: Partial<
|
|
44
|
-
/** Default `referral-
|
|
43
|
+
labels?: Partial<ReferralRewardLabels>;
|
|
44
|
+
/** Default `referral-reward-badge` / `referral-reward-note` per part. */
|
|
45
45
|
testId?: string;
|
|
46
46
|
}): import("react").JSX.Element;
|
|
@@ -59,7 +59,7 @@ export interface SubscriptionStatusViewProps {
|
|
|
59
59
|
labels?: Partial<SubscriptionStatusLabels>;
|
|
60
60
|
}
|
|
61
61
|
export interface SubscriptionStatusLabels {
|
|
62
|
-
|
|
62
|
+
aiUsageResets: (date: string) => string;
|
|
63
63
|
cancelsAtPeriodEnd: string;
|
|
64
64
|
cancelsAtEndOfBillingPeriod: string;
|
|
65
65
|
}
|
|
@@ -118,7 +118,7 @@ export interface QuotaExceededDialogViewProps {
|
|
|
118
118
|
/** Absent while the dialog closes (no usage to show). */
|
|
119
119
|
usage?: {
|
|
120
120
|
percent: number;
|
|
121
|
-
/** "
|
|
121
|
+
/** "£7.60 of £10". */
|
|
122
122
|
readout: string;
|
|
123
123
|
projectId?: string | null;
|
|
124
124
|
};
|
|
@@ -204,7 +204,7 @@ export declare function UsageActionButton({ label, icon, onClick, }: {
|
|
|
204
204
|
icon: ReactNode;
|
|
205
205
|
onClick: () => void;
|
|
206
206
|
}): import("react").JSX.Element;
|
|
207
|
-
/** "(12% of quota)" after the
|
|
207
|
+
/** "(12% of quota)" after the AI usage stat label. */
|
|
208
208
|
export declare function UsageQuotaHint({ children }: {
|
|
209
209
|
children: ReactNode;
|
|
210
210
|
}): import("react").JSX.Element;
|
package/dist/settings/Usage.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const DEFAULT_USAGE_LINE_CHART_LABELS: UsageLineChartLabels;
|
|
|
8
8
|
export interface UsageProportionBarLabels {
|
|
9
9
|
/** Bar tooltip when the metric is tokens: "3k tokens". */
|
|
10
10
|
tokens: (formatted: string) => string;
|
|
11
|
-
/** Bar tooltip when the metric is
|
|
12
|
-
|
|
11
|
+
/** Bar tooltip when the metric is £: "£12.40". */
|
|
12
|
+
gbp: (formatted: string) => string;
|
|
13
13
|
/** Row suffix: "3k tok". */
|
|
14
14
|
tokensShort: (formatted: string) => string;
|
|
15
15
|
}
|
|
@@ -41,17 +41,17 @@ export declare function UsageLineChart({ dates, series, formatDate, formatValue,
|
|
|
41
41
|
export declare function UsageLegend({ series }: {
|
|
42
42
|
series: UsageSeries[];
|
|
43
43
|
}): import("react").JSX.Element | null;
|
|
44
|
-
export type UsageMetric = '
|
|
44
|
+
export type UsageMetric = 'gbp' | 'tokens';
|
|
45
45
|
export interface UsageShare {
|
|
46
46
|
label: string;
|
|
47
47
|
/** Raw amount in the active metric, for the bar width. */
|
|
48
48
|
amount: number;
|
|
49
|
-
/** Formatted
|
|
50
|
-
|
|
49
|
+
/** Formatted £ amount, e.g. "£12.40". */
|
|
50
|
+
gbp: string;
|
|
51
51
|
/** Formatted tokens, e.g. "3k". */
|
|
52
52
|
tokens: string;
|
|
53
53
|
}
|
|
54
|
-
/** Stacked proportion bar plus a per-item list with
|
|
54
|
+
/** Stacked proportion bar plus a per-item list with £, tokens and share. */
|
|
55
55
|
export declare function UsageProportionBar({ items, metric, labels, }: {
|
|
56
56
|
items: UsageShare[];
|
|
57
57
|
metric: UsageMetric;
|
|
@@ -62,14 +62,10 @@ export interface UsageStat {
|
|
|
62
62
|
value: ReactNode;
|
|
63
63
|
label: ReactNode;
|
|
64
64
|
}
|
|
65
|
-
/** Row of summary tiles (
|
|
65
|
+
/** Row of summary tiles (£, requests, tokens). */
|
|
66
66
|
export declare function UsageSummary({ stats }: {
|
|
67
67
|
stats: UsageStat[];
|
|
68
68
|
}): import("react").JSX.Element;
|
|
69
|
-
/** Credit coin glyph used beside credit amounts. */
|
|
70
|
-
export declare function CreditsGlyph({ className }: {
|
|
71
|
-
className?: string;
|
|
72
|
-
}): import("react").JSX.Element;
|
|
73
69
|
export interface UsageToggleProps<T extends string> {
|
|
74
70
|
value: T;
|
|
75
71
|
onChange: (value: T) => void;
|
|
@@ -42,7 +42,7 @@ export interface WelcomeDialogProps {
|
|
|
42
42
|
/** Show the gift icon (a reward balance exists) instead of the sparkles. */
|
|
43
43
|
hasReward: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* Corner picker naming the project the numbers belong to (
|
|
45
|
+
* Corner picker naming the project the numbers belong to (AI usage is per project). The host
|
|
46
46
|
* supplies it, since the choice of control and its state are the host's.
|
|
47
47
|
*/
|
|
48
48
|
projectPicker?: ReactNode;
|
package/dist/settings/index.cjs
CHANGED
|
@@ -1497,13 +1497,13 @@ var DEFAULT_PLAN_CARD_LABELS = {
|
|
|
1497
1497
|
enterCode: "Enter code",
|
|
1498
1498
|
pricingExplainer: "How pricing works",
|
|
1499
1499
|
explainerTiers: [
|
|
1500
|
-
"
|
|
1501
|
-
"Need more? Add
|
|
1500
|
+
"AI usage and storage are shared by everyone in the project. AI usage resets monthly.",
|
|
1501
|
+
"Need more? Add \xA310 of AI usage or 10 GB at a time. Add-ons renew until you remove them.",
|
|
1502
1502
|
"Automatic add-ons stay within your monthly add-on budget (\xA3250 by default, \xA30 turns them off).",
|
|
1503
1503
|
"Upgrades start now: you pay the difference for the rest of this period. Downgrades start at the end of the period. No refunds.",
|
|
1504
1504
|
"Prices are shown + VAT; the total for your country is shown before you pay."
|
|
1505
1505
|
],
|
|
1506
|
-
|
|
1506
|
+
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.",
|
|
1507
1507
|
seeModelList: "AI model prices \u2192"
|
|
1508
1508
|
};
|
|
1509
1509
|
function PlanCard({ plan, onSelect, labels }) {
|
|
@@ -1715,7 +1715,7 @@ function PlanInfoPopover({
|
|
|
1715
1715
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base font-semibold", children: l.pricingExplainer }),
|
|
1716
1716
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "list-disc space-y-1 pl-4", children: l.explainerTiers.map((line) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: line }, line)) }),
|
|
1717
1717
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
1718
|
-
l.
|
|
1718
|
+
l.explainerAiUsage,
|
|
1719
1719
|
" ",
|
|
1720
1720
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1721
1721
|
"button",
|
|
@@ -1732,7 +1732,7 @@ function PlanInfoPopover({
|
|
|
1732
1732
|
)
|
|
1733
1733
|
] });
|
|
1734
1734
|
}
|
|
1735
|
-
var
|
|
1735
|
+
var DEFAULT_REFERRAL_REWARD_LABELS = {
|
|
1736
1736
|
badgeTitle: "Reward \u2014 automatically applied to your invoice period",
|
|
1737
1737
|
badge: (amount) => `${amount} reward`,
|
|
1738
1738
|
subtotal: "Subtotal",
|
|
@@ -1742,18 +1742,18 @@ var DEFAULT_REFERRAL_CREDIT_LABELS = {
|
|
|
1742
1742
|
applied: (amount) => `${amount} reward applied automatically to your invoice period.`,
|
|
1743
1743
|
note: (amount) => `Your ${amount} reward applies to your invoice period.`
|
|
1744
1744
|
};
|
|
1745
|
-
function
|
|
1745
|
+
function ReferralRewardBadge({
|
|
1746
1746
|
amountLabel,
|
|
1747
1747
|
labels,
|
|
1748
1748
|
testId
|
|
1749
1749
|
}) {
|
|
1750
|
-
const l = react.useMemo(() => ({ ...
|
|
1750
|
+
const l = react.useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
|
|
1751
1751
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1752
1752
|
"span",
|
|
1753
1753
|
{
|
|
1754
1754
|
className: "flex h-8 items-center gap-1.5 rounded-full bg-green-bg px-2.5 text-sm font-medium text-green-text",
|
|
1755
1755
|
title: l.badgeTitle,
|
|
1756
|
-
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-
|
|
1756
|
+
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-reward-badge" }),
|
|
1757
1757
|
children: [
|
|
1758
1758
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Gift, { className: "h-3.5 w-3.5" }),
|
|
1759
1759
|
l.badge(amountLabel)
|
|
@@ -1761,19 +1761,19 @@ function ReferralCreditBadge({
|
|
|
1761
1761
|
}
|
|
1762
1762
|
);
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function ReferralRewardSummary({
|
|
1765
1765
|
amountLabel,
|
|
1766
1766
|
breakdown,
|
|
1767
1767
|
labels,
|
|
1768
1768
|
testId,
|
|
1769
1769
|
testIds
|
|
1770
1770
|
}) {
|
|
1771
|
-
const l = react.useMemo(() => ({ ...
|
|
1771
|
+
const l = react.useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
|
|
1772
1772
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1773
1773
|
"div",
|
|
1774
1774
|
{
|
|
1775
1775
|
className: "rounded-lg bg-green-bg/60 p-3 text-sm",
|
|
1776
|
-
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-
|
|
1776
|
+
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-reward-summary" }),
|
|
1777
1777
|
children: breakdown ? /* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "space-y-1 tabular-nums", children: [
|
|
1778
1778
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-muted-foreground", children: [
|
|
1779
1779
|
/* @__PURE__ */ jsxRuntime.jsx("dt", { children: l.subtotal }),
|
|
@@ -1784,14 +1784,14 @@ function ReferralCreditSummary({
|
|
|
1784
1784
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Gift, { className: "h-3.5 w-3.5" }),
|
|
1785
1785
|
l.reward
|
|
1786
1786
|
] }),
|
|
1787
|
-
/* @__PURE__ */ jsxRuntime.jsxs("dd", { "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.applied, { testId: "referral-
|
|
1787
|
+
/* @__PURE__ */ jsxRuntime.jsxs("dd", { "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.applied, { testId: "referral-reward-applied" }), children: [
|
|
1788
1788
|
"\u2212",
|
|
1789
1789
|
breakdown.reward
|
|
1790
1790
|
] })
|
|
1791
1791
|
] }),
|
|
1792
1792
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t border-green-border pt-1 font-semibold text-foreground", children: [
|
|
1793
1793
|
/* @__PURE__ */ jsxRuntime.jsx("dt", { children: l.youPayNow }),
|
|
1794
|
-
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.youPay, { testId: "referral-
|
|
1794
|
+
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.youPay, { testId: "referral-reward-you-pay" }), children: breakdown.youPay })
|
|
1795
1795
|
] }),
|
|
1796
1796
|
breakdown.rollover && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pt-0.5 text-xs font-normal text-muted-foreground", children: l.rollover(breakdown.rollover) })
|
|
1797
1797
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 font-medium text-green-text", children: [
|
|
@@ -1801,17 +1801,17 @@ function ReferralCreditSummary({
|
|
|
1801
1801
|
}
|
|
1802
1802
|
);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function ReferralRewardNote({
|
|
1805
1805
|
amountLabel,
|
|
1806
1806
|
labels,
|
|
1807
1807
|
testId
|
|
1808
1808
|
}) {
|
|
1809
|
-
const l = react.useMemo(() => ({ ...
|
|
1809
|
+
const l = react.useMemo(() => ({ ...DEFAULT_REFERRAL_REWARD_LABELS, ...labels }), [labels]);
|
|
1810
1810
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1811
1811
|
"p",
|
|
1812
1812
|
{
|
|
1813
1813
|
className: "flex items-center gap-1.5 text-sm text-green-text",
|
|
1814
|
-
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-
|
|
1814
|
+
"data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "referral-reward-note" }),
|
|
1815
1815
|
children: [
|
|
1816
1816
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Gift, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
1817
1817
|
l.note(amountLabel)
|
|
@@ -2348,7 +2348,7 @@ var DEFAULT_USAGE_LINE_CHART_LABELS = {
|
|
|
2348
2348
|
};
|
|
2349
2349
|
var DEFAULT_USAGE_PROPORTION_BAR_LABELS = {
|
|
2350
2350
|
tokens: (formatted) => `${formatted} tokens`,
|
|
2351
|
-
|
|
2351
|
+
gbp: (formatted) => formatted,
|
|
2352
2352
|
tokensShort: (formatted) => `${formatted} tok`
|
|
2353
2353
|
};
|
|
2354
2354
|
var DEFAULT_USAGE_PANEL_LABELS = {
|
|
@@ -2505,7 +2505,7 @@ function UsageProportionBar({
|
|
|
2505
2505
|
{
|
|
2506
2506
|
className: ui.cn("h-full first:rounded-l-full last:rounded-r-full", styleAt(i).bg),
|
|
2507
2507
|
style: { width: `${pct}%` },
|
|
2508
|
-
title: `${item.label}: ${metric === "tokens" ? l.tokens(item.tokens) : l.
|
|
2508
|
+
title: `${item.label}: ${metric === "tokens" ? l.tokens(item.tokens) : l.gbp(item.gbp)}`
|
|
2509
2509
|
},
|
|
2510
2510
|
item.label
|
|
2511
2511
|
);
|
|
@@ -2521,17 +2521,14 @@ function UsageProportionBar({
|
|
|
2521
2521
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: item.label })
|
|
2522
2522
|
] }),
|
|
2523
2523
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-2 flex flex-shrink-0 items-center gap-2 tabular-nums", children: [
|
|
2524
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2524
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2525
2525
|
"span",
|
|
2526
2526
|
{
|
|
2527
2527
|
className: ui.cn(
|
|
2528
2528
|
"flex items-center gap-0.5",
|
|
2529
|
-
metric === "
|
|
2529
|
+
metric === "gbp" ? "font-medium text-muted-foreground" : "text-muted-foreground/60"
|
|
2530
2530
|
),
|
|
2531
|
-
children:
|
|
2532
|
-
item.credits,
|
|
2533
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.BadgeCent, { className: "h-3 w-3 text-yellow-500" })
|
|
2534
|
-
]
|
|
2531
|
+
children: item.gbp
|
|
2535
2532
|
}
|
|
2536
2533
|
),
|
|
2537
2534
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2555,9 +2552,6 @@ function UsageSummary({ stats }) {
|
|
|
2555
2552
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: stat.label })
|
|
2556
2553
|
] }, stat.key)) });
|
|
2557
2554
|
}
|
|
2558
|
-
function CreditsGlyph({ className }) {
|
|
2559
|
-
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BadgeCent, { className: ui.cn("h-4 w-4 text-yellow-500", className) });
|
|
2560
|
-
}
|
|
2561
2555
|
function UsageToggle({
|
|
2562
2556
|
value,
|
|
2563
2557
|
onChange,
|
|
@@ -2623,8 +2617,8 @@ var DEFAULT_INVOICES_DIALOG_LABELS = {
|
|
|
2623
2617
|
};
|
|
2624
2618
|
var DEFAULT_DAILY_CAP_FIELD_LABELS = {
|
|
2625
2619
|
noLimit: "No limit",
|
|
2626
|
-
ariaLabel: "Daily
|
|
2627
|
-
unit: "
|
|
2620
|
+
ariaLabel: "Daily AI usage limit per collaborator (\xA3)",
|
|
2621
|
+
unit: "\xA3 / user / day",
|
|
2628
2622
|
save: "Save"
|
|
2629
2623
|
};
|
|
2630
2624
|
var DEFAULT_MEMBER_PROJECT_ROW_LABELS = {
|
|
@@ -2713,6 +2707,7 @@ function DailyCapField({
|
|
|
2713
2707
|
{
|
|
2714
2708
|
type: "number",
|
|
2715
2709
|
min: 0,
|
|
2710
|
+
step: 0.01,
|
|
2716
2711
|
value,
|
|
2717
2712
|
onChange: (e) => onChange(e.target.value),
|
|
2718
2713
|
onKeyDown: (e) => {
|
|
@@ -3097,7 +3092,7 @@ function PlanActionButton({
|
|
|
3097
3092
|
);
|
|
3098
3093
|
}
|
|
3099
3094
|
var DEFAULT_SUBSCRIPTION_STATUS_LABELS = {
|
|
3100
|
-
|
|
3095
|
+
aiUsageResets: (date) => `AI usage resets ${date}`,
|
|
3101
3096
|
cancelsAtPeriodEnd: "\xB7 Cancels at period end",
|
|
3102
3097
|
cancelsAtEndOfBillingPeriod: "Cancels at end of billing period"
|
|
3103
3098
|
};
|
|
@@ -3111,7 +3106,7 @@ function SubscriptionStatusView({
|
|
|
3111
3106
|
const l = { ...DEFAULT_SUBSCRIPTION_STATUS_LABELS, ...labels };
|
|
3112
3107
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "subscription-status", className: "space-y-3", children: [
|
|
3113
3108
|
resetDate && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
3114
|
-
l.
|
|
3109
|
+
l.aiUsageResets(resetDate),
|
|
3115
3110
|
isCanceling && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-yellow-text", children: l.cancelsAtPeriodEnd })
|
|
3116
3111
|
] }),
|
|
3117
3112
|
!resetDate && isCanceling && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-yellow-text", children: l.cancelsAtEndOfBillingPeriod }),
|
|
@@ -3207,9 +3202,9 @@ function CheckoutDialogFrame({
|
|
|
3207
3202
|
) });
|
|
3208
3203
|
}
|
|
3209
3204
|
var DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS = {
|
|
3210
|
-
title: "
|
|
3205
|
+
title: "AI usage used up",
|
|
3211
3206
|
projectUsage: "Project usage",
|
|
3212
|
-
progress: "AI
|
|
3207
|
+
progress: "AI usage this month",
|
|
3213
3208
|
project: "Project:",
|
|
3214
3209
|
close: "Not now",
|
|
3215
3210
|
upgrade: "Upgrade"
|
|
@@ -3673,7 +3668,6 @@ exports.ConnectionsEmpty = ConnectionsEmpty;
|
|
|
3673
3668
|
exports.ConnectionsError = ConnectionsError;
|
|
3674
3669
|
exports.ConnectionsLoading = ConnectionsLoading;
|
|
3675
3670
|
exports.ConversationTitleSection = ConversationTitleSection;
|
|
3676
|
-
exports.CreditsGlyph = CreditsGlyph;
|
|
3677
3671
|
exports.DEFAULT_CHECKOUT_DIALOG_LABELS = DEFAULT_CHECKOUT_DIALOG_LABELS;
|
|
3678
3672
|
exports.DEFAULT_CONFIG_SWITCHER_BAR_LABELS = DEFAULT_CONFIG_SWITCHER_BAR_LABELS;
|
|
3679
3673
|
exports.DEFAULT_CONFIRM_DIALOG_LABELS = DEFAULT_CONFIRM_DIALOG_LABELS;
|
|
@@ -3692,7 +3686,7 @@ exports.DEFAULT_PROJECT_CARD_VIEW_LABELS = DEFAULT_PROJECT_CARD_VIEW_LABELS;
|
|
|
3692
3686
|
exports.DEFAULT_PROJECT_DETAIL_HEADER_LABELS = DEFAULT_PROJECT_DETAIL_HEADER_LABELS;
|
|
3693
3687
|
exports.DEFAULT_PROJECT_LIST_LABELS = DEFAULT_PROJECT_LIST_LABELS;
|
|
3694
3688
|
exports.DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS = DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS;
|
|
3695
|
-
exports.
|
|
3689
|
+
exports.DEFAULT_REFERRAL_REWARD_LABELS = DEFAULT_REFERRAL_REWARD_LABELS;
|
|
3696
3690
|
exports.DEFAULT_RENAME_DIALOG_LABELS = DEFAULT_RENAME_DIALOG_LABELS;
|
|
3697
3691
|
exports.DEFAULT_SHARED_PROJECTS_SECTION_LABELS = DEFAULT_SHARED_PROJECTS_SECTION_LABELS;
|
|
3698
3692
|
exports.DEFAULT_SUBSCRIPTION_SECTION_LABELS = DEFAULT_SUBSCRIPTION_SECTION_LABELS;
|
|
@@ -3751,9 +3745,9 @@ exports.ProjectRowActions = ProjectRowActions;
|
|
|
3751
3745
|
exports.PromoCodeInput = PromoCodeInput;
|
|
3752
3746
|
exports.QuotaExceededDialogView = QuotaExceededDialogView;
|
|
3753
3747
|
exports.QuotaMeter = QuotaMeter;
|
|
3754
|
-
exports.
|
|
3755
|
-
exports.
|
|
3756
|
-
exports.
|
|
3748
|
+
exports.ReferralRewardBadge = ReferralRewardBadge;
|
|
3749
|
+
exports.ReferralRewardNote = ReferralRewardNote;
|
|
3750
|
+
exports.ReferralRewardSummary = ReferralRewardSummary;
|
|
3757
3751
|
exports.RenameDialog = RenameDialog;
|
|
3758
3752
|
exports.RowButton = RowButton;
|
|
3759
3753
|
exports.RowIconAction = RowIconAction;
|