@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
|
@@ -2216,14 +2216,13 @@ var DEFAULT_PLAN_CARD_LABELS = {
|
|
|
2216
2216
|
enterCode: "Enter code",
|
|
2217
2217
|
pricingExplainer: "How pricing works",
|
|
2218
2218
|
explainerTiers: [
|
|
2219
|
-
"
|
|
2220
|
-
"
|
|
2221
|
-
"
|
|
2222
|
-
"
|
|
2223
|
-
"
|
|
2224
|
-
"Prices are shown + VAT; the total for your country is shown before you pay."
|
|
2219
|
+
"Compare monthly and annual prices. Annual savings apply to add-ons too.",
|
|
2220
|
+
"Choose your monthly spend cap. Your plan price is included.",
|
|
2221
|
+
"We automatically add capacity when needed, stopping at your spend cap.",
|
|
2222
|
+
"Use + and \u2212 to adjust usage add-ons. Increases start now; reductions apply at renewal if your usage fits.",
|
|
2223
|
+
"Prices exclude VAT. You see the full total before paying."
|
|
2225
2224
|
],
|
|
2226
|
-
explainerAiUsage: "
|
|
2225
|
+
explainerAiUsage: "AI credits depends on the model you choose and the size of your request.",
|
|
2227
2226
|
seeModelList: "AI model prices \u2192"
|
|
2228
2227
|
};
|
|
2229
2228
|
function PlanCard({ plan, onSelect, labels }) {
|
|
@@ -2413,19 +2412,15 @@ function PlanInfoPopover({
|
|
|
2413
2412
|
const l = react.useMemo(() => ({ ...DEFAULT_PLAN_CARD_LABELS, ...labels }), [labels]);
|
|
2414
2413
|
return /* @__PURE__ */ jsxRuntime.jsxs(MoreInfo, { title: l.pricingExplainer, label: l.pricingExplainer, testId: "pricing-explainer", children: [
|
|
2415
2414
|
/* @__PURE__ */ jsxRuntime.jsx(MoreInfoList, { items: l.explainerTiers.map((text) => ({ text })) }),
|
|
2416
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
children: l.seeModelList
|
|
2426
|
-
}
|
|
2427
|
-
)
|
|
2428
|
-
] })
|
|
2415
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
|
+
"button",
|
|
2417
|
+
{
|
|
2418
|
+
type: "button",
|
|
2419
|
+
onClick: onOpenModelList,
|
|
2420
|
+
className: "font-medium text-foreground underline underline-offset-2 hover:text-primary/80",
|
|
2421
|
+
children: l.seeModelList
|
|
2422
|
+
}
|
|
2423
|
+
) })
|
|
2429
2424
|
] });
|
|
2430
2425
|
}
|
|
2431
2426
|
var DEFAULT_REFERRAL_REWARD_LABELS = {
|
|
@@ -4079,7 +4074,7 @@ function PlanActionButton({
|
|
|
4079
4074
|
);
|
|
4080
4075
|
}
|
|
4081
4076
|
var DEFAULT_SUBSCRIPTION_STATUS_LABELS = {
|
|
4082
|
-
aiUsageResets: (date) => `AI
|
|
4077
|
+
aiUsageResets: (date) => `AI credits reset ${date}`,
|
|
4083
4078
|
cancelsAtPeriodEnd: "\xB7 Cancels at period end",
|
|
4084
4079
|
cancelsAtEndOfBillingPeriod: "Cancels at end of billing period"
|
|
4085
4080
|
};
|
|
@@ -4111,6 +4106,8 @@ function SubscriptionStatusView({
|
|
|
4111
4106
|
] });
|
|
4112
4107
|
}
|
|
4113
4108
|
function PlanDialogFrame({
|
|
4109
|
+
compact = false,
|
|
4110
|
+
className,
|
|
4114
4111
|
open,
|
|
4115
4112
|
onOpenChange,
|
|
4116
4113
|
title,
|
|
@@ -4121,7 +4118,35 @@ function PlanDialogFrame({
|
|
|
4121
4118
|
children,
|
|
4122
4119
|
labels
|
|
4123
4120
|
}) {
|
|
4124
|
-
|
|
4121
|
+
if (compact)
|
|
4122
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4123
|
+
chunkULWRNGGE_cjs.ModalScaffold,
|
|
4124
|
+
{
|
|
4125
|
+
open,
|
|
4126
|
+
onOpenChange,
|
|
4127
|
+
title,
|
|
4128
|
+
description: String(description),
|
|
4129
|
+
showDescription: !isDescriptionHidden,
|
|
4130
|
+
size: "md",
|
|
4131
|
+
className: ui.cn("project-purchase-modal sm:max-w-[500px]", className),
|
|
4132
|
+
children: [
|
|
4133
|
+
projectName !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4134
|
+
"p",
|
|
4135
|
+
{
|
|
4136
|
+
className: "text-sm text-muted-foreground",
|
|
4137
|
+
"data-testid": chunkPLIF5CUV_cjs.testIdOr(projectTestId, { testId: "change-plan-project" }),
|
|
4138
|
+
children: [
|
|
4139
|
+
labels?.project ?? `${ui.getEntityLabel("PROJECT")}:`,
|
|
4140
|
+
" ",
|
|
4141
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-foreground", children: projectName })
|
|
4142
|
+
]
|
|
4143
|
+
}
|
|
4144
|
+
),
|
|
4145
|
+
children
|
|
4146
|
+
]
|
|
4147
|
+
}
|
|
4148
|
+
);
|
|
4149
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { className: ui.cn("max-w-5xl", className), children: [
|
|
4125
4150
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { className: "flex-row items-start justify-between gap-3 space-y-0 pr-8", children: [
|
|
4126
4151
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
4127
4152
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: title }),
|
|
@@ -4189,11 +4214,11 @@ function CheckoutDialogFrame({
|
|
|
4189
4214
|
) });
|
|
4190
4215
|
}
|
|
4191
4216
|
var DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS = {
|
|
4192
|
-
title: "AI
|
|
4217
|
+
title: "AI credits used up",
|
|
4193
4218
|
get projectUsage() {
|
|
4194
4219
|
return `${ui.getEntityLabel("PROJECT")} usage`;
|
|
4195
4220
|
},
|
|
4196
|
-
progress: "AI
|
|
4221
|
+
progress: "AI credits this month",
|
|
4197
4222
|
get project() {
|
|
4198
4223
|
return `${ui.getEntityLabel("PROJECT")}:`;
|
|
4199
4224
|
},
|
|
@@ -5080,5 +5105,5 @@ exports.toActiveSessionViews = toActiveSessionViews;
|
|
|
5080
5105
|
exports.toDeleteBlockerViews = toDeleteBlockerViews;
|
|
5081
5106
|
exports.toLogoutSessionViews = toLogoutSessionViews;
|
|
5082
5107
|
exports.toNotificationCategories = toNotificationCategories;
|
|
5083
|
-
//# sourceMappingURL=chunk-
|
|
5084
|
-
//# sourceMappingURL=chunk-
|
|
5108
|
+
//# sourceMappingURL=chunk-LM5CPXJO.cjs.map
|
|
5109
|
+
//# sourceMappingURL=chunk-LM5CPXJO.cjs.map
|