@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.
Files changed (81) hide show
  1. package/dist/{DocumentReviewCard-MSHD73S3.cjs → DocumentReviewCard-QVQ2LGFH.cjs} +3 -3
  2. package/dist/{DocumentReviewCard-MSHD73S3.cjs.map → DocumentReviewCard-QVQ2LGFH.cjs.map} +1 -1
  3. package/dist/{DocumentReviewCard-WZNBPG72.js → DocumentReviewCard-UOLXZKZE.js} +3 -3
  4. package/dist/{DocumentReviewCard-WZNBPG72.js.map → DocumentReviewCard-UOLXZKZE.js.map} +1 -1
  5. package/dist/{FilesViewerDialog-XETOHORQ.js → FilesViewerDialog-5ELQYWAZ.js} +3 -3
  6. package/dist/{FilesViewerDialog-XETOHORQ.js.map → FilesViewerDialog-5ELQYWAZ.js.map} +1 -1
  7. package/dist/{FilesViewerDialog-DV2U4USR.cjs → FilesViewerDialog-XNGHHWYS.cjs} +4 -4
  8. package/dist/{FilesViewerDialog-DV2U4USR.cjs.map → FilesViewerDialog-XNGHHWYS.cjs.map} +1 -1
  9. package/dist/{WorkspaceTableView-WD754UBK.js → WorkspaceTableView-DIMTW5P5.js} +4 -4
  10. package/dist/{WorkspaceTableView-WD754UBK.js.map → WorkspaceTableView-DIMTW5P5.js.map} +1 -1
  11. package/dist/{WorkspaceTableView-3D6SYOWT.cjs → WorkspaceTableView-HRCV6WR7.cjs} +6 -6
  12. package/dist/{WorkspaceTableView-3D6SYOWT.cjs.map → WorkspaceTableView-HRCV6WR7.cjs.map} +1 -1
  13. package/dist/{chunk-N77UYRV7.js → chunk-632JXVXY.js} +51 -26
  14. package/dist/chunk-632JXVXY.js.map +1 -0
  15. package/dist/{chunk-5R67KX2O.cjs → chunk-6XNWGOS3.cjs} +70 -19
  16. package/dist/chunk-6XNWGOS3.cjs.map +1 -0
  17. package/dist/{chunk-TQFDPCWU.js → chunk-7Q6EVFMT.js} +3 -3
  18. package/dist/{chunk-TQFDPCWU.js.map → chunk-7Q6EVFMT.js.map} +1 -1
  19. package/dist/{chunk-MMSHLHTA.cjs → chunk-LM5CPXJO.cjs} +51 -26
  20. package/dist/chunk-LM5CPXJO.cjs.map +1 -0
  21. package/dist/{chunk-DDIV3MYQ.cjs → chunk-MW7FGIF4.cjs} +25 -59
  22. package/dist/chunk-MW7FGIF4.cjs.map +1 -0
  23. package/dist/{chunk-BSPPKX6X.cjs → chunk-OXHAZN43.cjs} +4 -4
  24. package/dist/{chunk-BSPPKX6X.cjs.map → chunk-OXHAZN43.cjs.map} +1 -1
  25. package/dist/{chunk-4UOXUWX3.js → chunk-QFKL4HV2.js} +54 -3
  26. package/dist/chunk-QFKL4HV2.js.map +1 -0
  27. package/dist/{chunk-FNGFSHVE.js → chunk-TRI3LQVR.js} +24 -50
  28. package/dist/chunk-TRI3LQVR.js.map +1 -0
  29. package/dist/connect/index.cjs +1874 -1860
  30. package/dist/connect/index.cjs.map +1 -1
  31. package/dist/connect/index.js +1518 -1504
  32. package/dist/connect/index.js.map +1 -1
  33. package/dist/connect/viewer.cjs +1 -1
  34. package/dist/connect/viewer.js +1 -1
  35. package/dist/connection/billing/AddAddonDialog.d.ts +1 -1
  36. package/dist/connection/billing/CollaboratorPlan.d.ts +7 -0
  37. package/dist/connection/billing/ConnectedQuotaDialog.d.ts +2 -2
  38. package/dist/connection/billing/ConnectedWelcomeDialog.d.ts +2 -2
  39. package/dist/connection/billing/MonthlySpendCap.d.ts +12 -0
  40. package/dist/connection/billing/NewProjectFlow.d.ts +0 -7
  41. package/dist/connection/billing/ProjectBilling.d.ts +1 -1
  42. package/dist/connection/billing/ProjectDetail.d.ts +1 -1
  43. package/dist/connection/billing/ProjectPurchaseOptions.d.ts +22 -0
  44. package/dist/connection/billing/ProjectUsageCard.d.ts +0 -13
  45. package/dist/connection/billing/ProjectUsageContent.d.ts +3 -3
  46. package/dist/connection/billing/ReduceAddonDialog.d.ts +2 -2
  47. package/dist/connection/billing/StripeCheckoutModal.d.ts +5 -2
  48. package/dist/connection/billing/SubscriptionPlans.d.ts +2 -10
  49. package/dist/connection/billing/SubscriptionStatus.d.ts +1 -1
  50. package/dist/connection/billing/SuspendedProjectRecovery.d.ts +8 -0
  51. package/dist/connection/billing/addon-pricing.d.ts +6 -6
  52. package/dist/connection/billing/payment-required.d.ts +2 -2
  53. package/dist/connection/billing/plan-constants.d.ts +6 -4
  54. package/dist/connection/billing/plan-pricing.d.ts +5 -5
  55. package/dist/connection/billing/quota-items.d.ts +2 -2
  56. package/dist/connection/billing/useAddonPurchase.d.ts +1 -1
  57. package/dist/connection/billing/usePaidWorkspaceMembers.d.ts +397 -0
  58. package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +17 -1
  59. package/dist/embed/index.cjs +8 -8
  60. package/dist/embed/index.js +2 -2
  61. package/dist/settings/PlanCard.d.ts +2 -2
  62. package/dist/settings/SubscriptionParts.d.ts +3 -1
  63. package/dist/settings/index.cjs +150 -150
  64. package/dist/settings/index.js +1 -1
  65. package/dist/styles.css +1 -1
  66. package/dist/workflow-canvas/index.cjs +7 -7
  67. package/dist/workflow-canvas/index.js +2 -2
  68. package/node_modules/@arbidocs/coedit/package.json +1 -1
  69. package/package.json +6 -5
  70. package/src/blocks.css +2 -0
  71. package/src/connection/billing/project-purchase.css +453 -0
  72. package/dist/chunk-4UOXUWX3.js.map +0 -1
  73. package/dist/chunk-5R67KX2O.cjs.map +0 -1
  74. package/dist/chunk-DDIV3MYQ.cjs.map +0 -1
  75. package/dist/chunk-FNGFSHVE.js.map +0 -1
  76. package/dist/chunk-MMSHLHTA.cjs.map +0 -1
  77. package/dist/chunk-N77UYRV7.js.map +0 -1
  78. package/dist/connection/billing/CheckoutTotal.d.ts +0 -12
  79. package/dist/connection/billing/PlanSelector.d.ts +0 -50
  80. package/dist/connection/billing/billing-country.d.ts +0 -13
  81. 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
- "AI usage and storage are shared by everyone in the project. AI usage resets monthly.",
2220
- "Need more? Add \xA325 of AI usage or 25 GB at a time, at checkout or later. Add-ons renew with the plan until you reduce them.",
2221
- "Automatic top-ups add one more step when you run low, up to your monthly usage cap (\xA3100 by default; \xA30 = none; or no limit). Adding by hand is never capped.",
2222
- "Add-ons start now: AI usage is charged in full, storage only for the rest of the period. Downgrades, billing switches and reductions start at the end of the period. No refunds.",
2223
- "Annual plans are 25% off, add-ons included.",
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: "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.",
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.jsxs("p", { children: [
2417
- l.explainerAiUsage,
2418
- " ",
2419
- /* @__PURE__ */ jsxRuntime.jsx(
2420
- "button",
2421
- {
2422
- type: "button",
2423
- onClick: onOpenModelList,
2424
- className: "font-medium text-foreground underline underline-offset-2 hover:text-primary/80",
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 usage resets ${date}`,
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
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { className: "max-w-5xl", children: [
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 usage used up",
4217
+ title: "AI credits used up",
4193
4218
  get projectUsage() {
4194
4219
  return `${ui.getEntityLabel("PROJECT")} usage`;
4195
4220
  },
4196
- progress: "AI usage this month",
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-MMSHLHTA.cjs.map
5084
- //# sourceMappingURL=chunk-MMSHLHTA.cjs.map
5108
+ //# sourceMappingURL=chunk-LM5CPXJO.cjs.map
5109
+ //# sourceMappingURL=chunk-LM5CPXJO.cjs.map