@arbidocs/blocks 0.5.104 → 0.5.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/{DocumentReviewCard-MSHD73S3.cjs → DocumentReviewCard-QVQ2LGFH.cjs} +3 -3
- package/dist/{DocumentReviewCard-MSHD73S3.cjs.map → DocumentReviewCard-QVQ2LGFH.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-WZNBPG72.js → DocumentReviewCard-UOLXZKZE.js} +3 -3
- package/dist/{DocumentReviewCard-WZNBPG72.js.map → DocumentReviewCard-UOLXZKZE.js.map} +1 -1
- package/dist/{FilesViewerDialog-XETOHORQ.js → FilesViewerDialog-5ELQYWAZ.js} +3 -3
- package/dist/{FilesViewerDialog-XETOHORQ.js.map → FilesViewerDialog-5ELQYWAZ.js.map} +1 -1
- package/dist/{FilesViewerDialog-DV2U4USR.cjs → FilesViewerDialog-XNGHHWYS.cjs} +4 -4
- package/dist/{FilesViewerDialog-DV2U4USR.cjs.map → FilesViewerDialog-XNGHHWYS.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-WD754UBK.js → WorkspaceTableView-DIMTW5P5.js} +4 -4
- package/dist/{WorkspaceTableView-WD754UBK.js.map → WorkspaceTableView-DIMTW5P5.js.map} +1 -1
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs → WorkspaceTableView-HRCV6WR7.cjs} +6 -6
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs.map → WorkspaceTableView-HRCV6WR7.cjs.map} +1 -1
- package/dist/{chunk-N77UYRV7.js → chunk-632JXVXY.js} +51 -26
- package/dist/chunk-632JXVXY.js.map +1 -0
- package/dist/{chunk-5R67KX2O.cjs → chunk-6XNWGOS3.cjs} +70 -19
- package/dist/chunk-6XNWGOS3.cjs.map +1 -0
- package/dist/{chunk-TQFDPCWU.js → chunk-7Q6EVFMT.js} +3 -3
- package/dist/{chunk-TQFDPCWU.js.map → chunk-7Q6EVFMT.js.map} +1 -1
- package/dist/{chunk-MMSHLHTA.cjs → chunk-LM5CPXJO.cjs} +51 -26
- package/dist/chunk-LM5CPXJO.cjs.map +1 -0
- package/dist/{chunk-DDIV3MYQ.cjs → chunk-MW7FGIF4.cjs} +25 -59
- package/dist/chunk-MW7FGIF4.cjs.map +1 -0
- package/dist/{chunk-BSPPKX6X.cjs → chunk-OXHAZN43.cjs} +4 -4
- package/dist/{chunk-BSPPKX6X.cjs.map → chunk-OXHAZN43.cjs.map} +1 -1
- package/dist/{chunk-4UOXUWX3.js → chunk-QFKL4HV2.js} +54 -3
- package/dist/chunk-QFKL4HV2.js.map +1 -0
- package/dist/{chunk-FNGFSHVE.js → chunk-TRI3LQVR.js} +24 -50
- package/dist/chunk-TRI3LQVR.js.map +1 -0
- package/dist/connect/index.cjs +1874 -1860
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +1518 -1504
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +1 -1
- package/dist/connect/viewer.js +1 -1
- package/dist/connection/billing/AddAddonDialog.d.ts +1 -1
- package/dist/connection/billing/CollaboratorPlan.d.ts +7 -0
- package/dist/connection/billing/ConnectedQuotaDialog.d.ts +2 -2
- package/dist/connection/billing/ConnectedWelcomeDialog.d.ts +2 -2
- package/dist/connection/billing/MonthlySpendCap.d.ts +12 -0
- package/dist/connection/billing/NewProjectFlow.d.ts +0 -7
- package/dist/connection/billing/ProjectBilling.d.ts +1 -1
- package/dist/connection/billing/ProjectDetail.d.ts +1 -1
- package/dist/connection/billing/ProjectPurchaseOptions.d.ts +22 -0
- package/dist/connection/billing/ProjectUsageCard.d.ts +0 -13
- package/dist/connection/billing/ProjectUsageContent.d.ts +3 -3
- package/dist/connection/billing/ReduceAddonDialog.d.ts +2 -2
- package/dist/connection/billing/StripeCheckoutModal.d.ts +5 -2
- package/dist/connection/billing/SubscriptionPlans.d.ts +2 -10
- package/dist/connection/billing/SubscriptionStatus.d.ts +1 -1
- package/dist/connection/billing/SuspendedProjectRecovery.d.ts +8 -0
- package/dist/connection/billing/addon-pricing.d.ts +6 -6
- package/dist/connection/billing/payment-required.d.ts +2 -2
- package/dist/connection/billing/plan-constants.d.ts +6 -4
- package/dist/connection/billing/plan-pricing.d.ts +5 -5
- package/dist/connection/billing/quota-items.d.ts +2 -2
- package/dist/connection/billing/useAddonPurchase.d.ts +1 -1
- package/dist/connection/billing/usePaidWorkspaceMembers.d.ts +397 -0
- package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +17 -1
- package/dist/embed/index.cjs +8 -8
- package/dist/embed/index.js +2 -2
- package/dist/settings/PlanCard.d.ts +2 -2
- package/dist/settings/SubscriptionParts.d.ts +3 -1
- package/dist/settings/index.cjs +150 -150
- package/dist/settings/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +7 -7
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +6 -5
- package/src/blocks.css +2 -0
- package/src/connection/billing/project-purchase.css +453 -0
- package/dist/chunk-4UOXUWX3.js.map +0 -1
- package/dist/chunk-5R67KX2O.cjs.map +0 -1
- package/dist/chunk-DDIV3MYQ.cjs.map +0 -1
- package/dist/chunk-FNGFSHVE.js.map +0 -1
- package/dist/chunk-MMSHLHTA.cjs.map +0 -1
- package/dist/chunk-N77UYRV7.js.map +0 -1
- package/dist/connection/billing/CheckoutTotal.d.ts +0 -12
- package/dist/connection/billing/PlanSelector.d.ts +0 -50
- package/dist/connection/billing/billing-country.d.ts +0 -13
- package/dist/connection/billing/useCheckoutQuote.d.ts +0 -30
|
@@ -2194,14 +2194,13 @@ var DEFAULT_PLAN_CARD_LABELS = {
|
|
|
2194
2194
|
enterCode: "Enter code",
|
|
2195
2195
|
pricingExplainer: "How pricing works",
|
|
2196
2196
|
explainerTiers: [
|
|
2197
|
-
"
|
|
2198
|
-
"
|
|
2199
|
-
"
|
|
2200
|
-
"
|
|
2201
|
-
"
|
|
2202
|
-
"Prices are shown + VAT; the total for your country is shown before you pay."
|
|
2197
|
+
"Compare monthly and annual prices. Annual savings apply to add-ons too.",
|
|
2198
|
+
"Choose your monthly spend cap. Your plan price is included.",
|
|
2199
|
+
"We automatically add capacity when needed, stopping at your spend cap.",
|
|
2200
|
+
"Use + and \u2212 to adjust usage add-ons. Increases start now; reductions apply at renewal if your usage fits.",
|
|
2201
|
+
"Prices exclude VAT. You see the full total before paying."
|
|
2203
2202
|
],
|
|
2204
|
-
explainerAiUsage: "
|
|
2203
|
+
explainerAiUsage: "AI credits depends on the model you choose and the size of your request.",
|
|
2205
2204
|
seeModelList: "AI model prices \u2192"
|
|
2206
2205
|
};
|
|
2207
2206
|
function PlanCard({ plan, onSelect, labels }) {
|
|
@@ -2391,19 +2390,15 @@ function PlanInfoPopover({
|
|
|
2391
2390
|
const l = useMemo(() => ({ ...DEFAULT_PLAN_CARD_LABELS, ...labels }), [labels]);
|
|
2392
2391
|
return /* @__PURE__ */ jsxs(MoreInfo, { title: l.pricingExplainer, label: l.pricingExplainer, testId: "pricing-explainer", children: [
|
|
2393
2392
|
/* @__PURE__ */ jsx(MoreInfoList, { items: l.explainerTiers.map((text) => ({ text })) }),
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
children: l.seeModelList
|
|
2404
|
-
}
|
|
2405
|
-
)
|
|
2406
|
-
] })
|
|
2393
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx(
|
|
2394
|
+
"button",
|
|
2395
|
+
{
|
|
2396
|
+
type: "button",
|
|
2397
|
+
onClick: onOpenModelList,
|
|
2398
|
+
className: "font-medium text-foreground underline underline-offset-2 hover:text-primary/80",
|
|
2399
|
+
children: l.seeModelList
|
|
2400
|
+
}
|
|
2401
|
+
) })
|
|
2407
2402
|
] });
|
|
2408
2403
|
}
|
|
2409
2404
|
var DEFAULT_REFERRAL_REWARD_LABELS = {
|
|
@@ -4057,7 +4052,7 @@ function PlanActionButton({
|
|
|
4057
4052
|
);
|
|
4058
4053
|
}
|
|
4059
4054
|
var DEFAULT_SUBSCRIPTION_STATUS_LABELS = {
|
|
4060
|
-
aiUsageResets: (date) => `AI
|
|
4055
|
+
aiUsageResets: (date) => `AI credits reset ${date}`,
|
|
4061
4056
|
cancelsAtPeriodEnd: "\xB7 Cancels at period end",
|
|
4062
4057
|
cancelsAtEndOfBillingPeriod: "Cancels at end of billing period"
|
|
4063
4058
|
};
|
|
@@ -4089,6 +4084,8 @@ function SubscriptionStatusView({
|
|
|
4089
4084
|
] });
|
|
4090
4085
|
}
|
|
4091
4086
|
function PlanDialogFrame({
|
|
4087
|
+
compact = false,
|
|
4088
|
+
className,
|
|
4092
4089
|
open,
|
|
4093
4090
|
onOpenChange,
|
|
4094
4091
|
title,
|
|
@@ -4099,7 +4096,35 @@ function PlanDialogFrame({
|
|
|
4099
4096
|
children,
|
|
4100
4097
|
labels
|
|
4101
4098
|
}) {
|
|
4102
|
-
|
|
4099
|
+
if (compact)
|
|
4100
|
+
return /* @__PURE__ */ jsxs(
|
|
4101
|
+
ModalScaffold,
|
|
4102
|
+
{
|
|
4103
|
+
open,
|
|
4104
|
+
onOpenChange,
|
|
4105
|
+
title,
|
|
4106
|
+
description: String(description),
|
|
4107
|
+
showDescription: !isDescriptionHidden,
|
|
4108
|
+
size: "md",
|
|
4109
|
+
className: cn("project-purchase-modal sm:max-w-[500px]", className),
|
|
4110
|
+
children: [
|
|
4111
|
+
projectName !== void 0 && /* @__PURE__ */ jsxs(
|
|
4112
|
+
"p",
|
|
4113
|
+
{
|
|
4114
|
+
className: "text-sm text-muted-foreground",
|
|
4115
|
+
"data-testid": testIdOr(projectTestId, { testId: "change-plan-project" }),
|
|
4116
|
+
children: [
|
|
4117
|
+
labels?.project ?? `${getEntityLabel("PROJECT")}:`,
|
|
4118
|
+
" ",
|
|
4119
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: projectName })
|
|
4120
|
+
]
|
|
4121
|
+
}
|
|
4122
|
+
),
|
|
4123
|
+
children
|
|
4124
|
+
]
|
|
4125
|
+
}
|
|
4126
|
+
);
|
|
4127
|
+
return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: cn("max-w-5xl", className), children: [
|
|
4103
4128
|
/* @__PURE__ */ jsxs(DialogHeader, { className: "flex-row items-start justify-between gap-3 space-y-0 pr-8", children: [
|
|
4104
4129
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
4105
4130
|
/* @__PURE__ */ jsx(DialogTitle, { children: title }),
|
|
@@ -4167,11 +4192,11 @@ function CheckoutDialogFrame({
|
|
|
4167
4192
|
) });
|
|
4168
4193
|
}
|
|
4169
4194
|
var DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS = {
|
|
4170
|
-
title: "AI
|
|
4195
|
+
title: "AI credits used up",
|
|
4171
4196
|
get projectUsage() {
|
|
4172
4197
|
return `${getEntityLabel("PROJECT")} usage`;
|
|
4173
4198
|
},
|
|
4174
|
-
progress: "AI
|
|
4199
|
+
progress: "AI credits this month",
|
|
4175
4200
|
get project() {
|
|
4176
4201
|
return `${getEntityLabel("PROJECT")}:`;
|
|
4177
4202
|
},
|
|
@@ -4910,5 +4935,5 @@ function callsSwitchState(config, optedIn) {
|
|
|
4910
4935
|
}
|
|
4911
4936
|
|
|
4912
4937
|
export { ActiveSessionsDialog, AppearanceSettings, AvatarPicker, CONVERSATION_TITLE_MAX, CheckoutDialogFrame, ConfigSwitcherBar, ConnectionCard, ConnectionsEmpty, ConnectionsError, ConnectionsLoading, ConversationTitleSection, DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS, DEFAULT_APPEARANCE_PAIRING_IDS, DEFAULT_AVATAR_PICKER_LABELS, DEFAULT_CHECKOUT_DIALOG_LABELS, DEFAULT_CONFIG_SWITCHER_BAR_LABELS, DEFAULT_CONNECTION_CARD_LABELS, DEFAULT_CONVERSATION_TITLE_SECTION_LABELS, DEFAULT_DAILY_CAP_FIELD_LABELS, DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS, DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, DEFAULT_ERROR_DIALOG_LABELS, DEFAULT_IDENTITY_VERIFICATION_LABELS, DEFAULT_INVITE_CONTACTS_DIALOG_LABELS, DEFAULT_INVOICES_DIALOG_LABELS, DEFAULT_LOGOUT_DIALOG_LABELS, DEFAULT_MODEL_SELECTION_SECTION_LABELS, DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS, DEFAULT_PLAN_CARD_LABELS, DEFAULT_PROFILE_CARD_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_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, DeleteAccountDialog, DraggableHeader, EMAIL_NOTIFICATION_CATEGORIES, EMAIL_NOTIFICATION_KEYS, EmailWorkspaceDialogView, ErrorDialog, FilterChip, FloatingPanel, IdentityVerificationCard, IdentityVerificationDialog, InviteContactsDialog, InvoicesDialog, JsonTree, LogoutDialog, MessageJsonTree, ModelProviderLabel, ModelSelectionSection, MoreInfo, MoreInfoList, NotificationCategoryList, PanelActionsRow, PanelAddButton, PanelFrame, PanelFrameBody, PanelNote, PanelScroll, PasswordChangeDialog, PlanActionButton, PlanActionRow, PlanBadge, PlanCardGrid, PlanDialogFrame, PlanInfoPopover, PlanNotice, PlanPickerCard, PlanPickerHeader, PlanStack, PlanTierOption, PremiumModelsFrame, PricingToggle, ProfileCard, ProjectDetailHeader, ProjectDetailSection, ProjectList, ProjectRow, PromoCodeInput, QuotaExceededDialogView, QuotaMeter, ReferralRewardBadge, ReferralRewardNote, ReferralRewardSummary, RenameDialog, SegmentedControl, ServerConnectionButton, SettingsPage, SettingsSwitchGroup, SettingsSwitchRow, SharedProjectRow, SharedProjectsSection, SubscriptionStatusView, SupportPanel, SupportUnavailable, SyncDialogBody, SyncDialogFooter, SyncField, SyncFolderRow, SyncFolderStatus, SyncLinkButton, SyncLinkRow, SyncLoading, SyncNote, SyncOptionToggle, SyncOptions, SyncReconnectNotice, SyncSelect, SyncSmallNote, SyncTreeFrame, TipsEditor, TipsEditorDialog, UsageActionButton, UsageLegend, UsageLineChart, UsagePanel, UsageProportionBar, UsageQuotaHint, UsageSection, UsageSummary, UsageToggle, WelcomeDialog, WorkOfflineToggle, applyInvertedIndexFilter, applyTriStateFilters, buildInvertedIndex, callsSwitchState, formatErrorReport, formatSessionTtl, resolveSettingsSection, serverConnectionView, toActiveSessionViews, toDeleteBlockerViews, toLogoutSessionViews, toNotificationCategories };
|
|
4913
|
-
//# sourceMappingURL=chunk-
|
|
4914
|
-
//# sourceMappingURL=chunk-
|
|
4938
|
+
//# sourceMappingURL=chunk-632JXVXY.js.map
|
|
4939
|
+
//# sourceMappingURL=chunk-632JXVXY.js.map
|