@arbidocs/blocks 0.4.70 → 0.4.72

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 (179) hide show
  1. package/README.md +90 -14
  2. package/bin/arbidocs-copy-pdf-assets.mjs +112 -0
  3. package/dist/{StreamedArtifactEditor-OPL4KXOT.js → StreamedArtifactEditor-HTNPG4NB.js} +3 -2
  4. package/dist/StreamedArtifactEditor-HTNPG4NB.js.map +1 -0
  5. package/dist/{StreamedArtifactEditor-RIKG6CJQ.cjs → StreamedArtifactEditor-IZWYNFMM.cjs} +3 -2
  6. package/dist/StreamedArtifactEditor-IZWYNFMM.cjs.map +1 -0
  7. package/dist/agents/index.cjs +224 -224
  8. package/dist/agents/index.js +8 -8
  9. package/dist/artifacts/editor/index.cjs +1 -0
  10. package/dist/artifacts/editor/index.js +1 -0
  11. package/dist/artifacts/index.cjs +1 -0
  12. package/dist/artifacts/index.js +1 -0
  13. package/dist/auth/index.cjs +1 -0
  14. package/dist/auth/index.js +1 -0
  15. package/dist/calendar/CalendarGrid.d.ts +2 -0
  16. package/dist/calendar/CalendarList.d.ts +2 -0
  17. package/dist/calendar/CalendarSettingsForm.d.ts +2 -0
  18. package/dist/calendar/EventDetails.d.ts +2 -0
  19. package/dist/calendar/EventEditor.d.ts +2 -0
  20. package/dist/calendar/MiniMonth.d.ts +2 -0
  21. package/dist/calendar/RecurrenceEditor.d.ts +13 -0
  22. package/dist/calendar/RoomFinder.d.ts +2 -0
  23. package/dist/calendar/SchedulingAssistant.d.ts +2 -0
  24. package/dist/calendar/ScopeDialog.d.ts +2 -0
  25. package/dist/calendar/TimeZonePicker.d.ts +2 -0
  26. package/dist/calendar/colors.d.ts +4 -0
  27. package/dist/calendar/draft.d.ts +43 -0
  28. package/dist/calendar/format.d.ts +14 -0
  29. package/dist/calendar/grid-model.d.ts +24 -0
  30. package/dist/calendar/index.cjs +4122 -0
  31. package/dist/calendar/index.cjs.map +1 -0
  32. package/dist/calendar/index.d.ts +30 -0
  33. package/dist/calendar/index.js +4043 -0
  34. package/dist/calendar/index.js.map +1 -0
  35. package/dist/calendar/labels.d.ts +4 -0
  36. package/dist/calendar/recurrence-labels.d.ts +22 -0
  37. package/dist/calendar/recurrence.d.ts +66 -0
  38. package/dist/calendar/reminders.d.ts +26 -0
  39. package/dist/calendar/scheduling.d.ts +27 -0
  40. package/dist/calendar/types.d.ts +605 -0
  41. package/dist/calendar/ui.d.ts +16 -0
  42. package/dist/calendar/zone.d.ts +56 -0
  43. package/dist/chat/index.cjs +124 -123
  44. package/dist/chat/index.js +4 -3
  45. package/dist/{chunk-XNRGCQPZ.cjs → chunk-3SFFTSOI.cjs} +5 -5
  46. package/dist/{chunk-XNRGCQPZ.cjs.map → chunk-3SFFTSOI.cjs.map} +1 -1
  47. package/dist/{chunk-EHXSBH6U.js → chunk-5HOAOKZL.js} +4 -2
  48. package/dist/chunk-5HOAOKZL.js.map +1 -0
  49. package/dist/{chunk-7WM62NMM.cjs → chunk-6OL5S7MJ.cjs} +5 -2
  50. package/dist/chunk-6OL5S7MJ.cjs.map +1 -0
  51. package/dist/{chunk-VUEZARW5.cjs → chunk-B3WCKBJ7.cjs} +278 -5
  52. package/dist/chunk-B3WCKBJ7.cjs.map +1 -0
  53. package/dist/{chunk-L5UPP2HC.js → chunk-D46ZAPEE.js} +5 -2
  54. package/dist/chunk-D46ZAPEE.js.map +1 -0
  55. package/dist/chunk-DES3K4SD.cjs +18 -0
  56. package/dist/chunk-DES3K4SD.cjs.map +1 -0
  57. package/dist/{chunk-7M22KND4.cjs → chunk-DH7C2UJO.cjs} +10 -10
  58. package/dist/{chunk-7M22KND4.cjs.map → chunk-DH7C2UJO.cjs.map} +1 -1
  59. package/dist/{chunk-CXWESDIZ.cjs → chunk-F4RUCUXF.cjs} +6 -6
  60. package/dist/{chunk-CXWESDIZ.cjs.map → chunk-F4RUCUXF.cjs.map} +1 -1
  61. package/dist/{chunk-DABEWNL2.js → chunk-G5DP27DU.js} +3 -3
  62. package/dist/{chunk-DABEWNL2.js.map → chunk-G5DP27DU.js.map} +1 -1
  63. package/dist/{chunk-BR2CPKFU.cjs → chunk-G5QTGKDJ.cjs} +8 -8
  64. package/dist/{chunk-BR2CPKFU.cjs.map → chunk-G5QTGKDJ.cjs.map} +1 -1
  65. package/dist/{chunk-VZGBCBYB.js → chunk-GJV2G4FC.js} +276 -7
  66. package/dist/chunk-GJV2G4FC.js.map +1 -0
  67. package/dist/{chunk-HLMFU7L2.js → chunk-IMC2Z32C.js} +8 -8
  68. package/dist/{chunk-HLMFU7L2.js.map → chunk-IMC2Z32C.js.map} +1 -1
  69. package/dist/{chunk-5DM6VU4L.cjs → chunk-KJ3QEKOJ.cjs} +3 -3
  70. package/dist/{chunk-5DM6VU4L.cjs.map → chunk-KJ3QEKOJ.cjs.map} +1 -1
  71. package/dist/{chunk-CW4WXGEN.js → chunk-KOXUBCLL.js} +4 -4
  72. package/dist/{chunk-CW4WXGEN.js.map → chunk-KOXUBCLL.js.map} +1 -1
  73. package/dist/{chunk-ILGHS6ZV.js → chunk-SB5ZKOYN.js} +3 -3
  74. package/dist/{chunk-ILGHS6ZV.js.map → chunk-SB5ZKOYN.js.map} +1 -1
  75. package/dist/{chunk-TLQQV7WW.cjs → chunk-THO7DZNN.cjs} +4 -2
  76. package/dist/chunk-THO7DZNN.cjs.map +1 -0
  77. package/dist/{chunk-CPMNAJLF.js → chunk-TX2ZICS7.js} +24 -4
  78. package/dist/chunk-TX2ZICS7.js.map +1 -0
  79. package/dist/{chunk-2ZTONLT5.cjs → chunk-ULWRNGGE.cjs} +25 -4
  80. package/dist/chunk-ULWRNGGE.cjs.map +1 -0
  81. package/dist/{chunk-BMWZTNZB.js → chunk-VRPRAU3J.js} +3 -3
  82. package/dist/{chunk-BMWZTNZB.js.map → chunk-VRPRAU3J.js.map} +1 -1
  83. package/dist/chunk-VUNV25KB.js +15 -0
  84. package/dist/chunk-VUNV25KB.js.map +1 -0
  85. package/dist/citations/index.cjs +1 -0
  86. package/dist/citations/index.js +1 -0
  87. package/dist/collaboration/index.cjs +45 -45
  88. package/dist/collaboration/index.js +3 -3
  89. package/dist/connect/docx.cjs +3 -2
  90. package/dist/connect/docx.cjs.map +1 -1
  91. package/dist/connect/docx.js +2 -1
  92. package/dist/connect/docx.js.map +1 -1
  93. package/dist/connect/index.cjs +79 -49
  94. package/dist/connect/index.cjs.map +1 -1
  95. package/dist/connect/index.d.ts +1 -1
  96. package/dist/connect/index.js +39 -11
  97. package/dist/connect/index.js.map +1 -1
  98. package/dist/connection/ConnectedSettings.d.ts +13 -0
  99. package/dist/connection/ConnectionProvider.d.ts +5 -0
  100. package/dist/connection/types.d.ts +6 -0
  101. package/dist/document-tools/SignatureStatus.d.ts +4 -2
  102. package/dist/document-tools/index.cjs +14 -11
  103. package/dist/document-tools/index.cjs.map +1 -1
  104. package/dist/document-tools/index.js +12 -9
  105. package/dist/document-tools/index.js.map +1 -1
  106. package/dist/document-tools/production/ProductionSetDialog.d.ts +23 -0
  107. package/dist/document-tools/production/index.cjs +102 -0
  108. package/dist/document-tools/production/index.cjs.map +1 -0
  109. package/dist/document-tools/production/index.d.ts +1 -0
  110. package/dist/document-tools/production/index.js +100 -0
  111. package/dist/document-tools/production/index.js.map +1 -0
  112. package/dist/document-tools/viewer/index.cjs +1 -1
  113. package/dist/document-tools/viewer/index.js +1 -1
  114. package/dist/docx/index.cjs +1 -0
  115. package/dist/docx/index.cjs.map +1 -1
  116. package/dist/docx/index.js +1 -0
  117. package/dist/docx/index.js.map +1 -1
  118. package/dist/facts/index.cjs +3 -2
  119. package/dist/facts/index.cjs.map +1 -1
  120. package/dist/facts/index.js +3 -2
  121. package/dist/facts/index.js.map +1 -1
  122. package/dist/files/import/index.d.ts +0 -1
  123. package/dist/files/index.cjs +25 -88
  124. package/dist/files/index.cjs.map +1 -1
  125. package/dist/files/index.js +7 -68
  126. package/dist/files/index.js.map +1 -1
  127. package/dist/home/index.cjs +2 -1
  128. package/dist/home/index.cjs.map +1 -1
  129. package/dist/home/index.js +2 -1
  130. package/dist/home/index.js.map +1 -1
  131. package/dist/index.cjs +537 -537
  132. package/dist/index.js +14 -14
  133. package/dist/lib-6QPUXAQS.cjs +9674 -0
  134. package/dist/lib-6QPUXAQS.cjs.map +1 -0
  135. package/dist/lib-NRGL2JGF.js +9672 -0
  136. package/dist/lib-NRGL2JGF.js.map +1 -0
  137. package/dist/retrieval/index.cjs +1 -0
  138. package/dist/retrieval/index.js +1 -0
  139. package/dist/settings/Billing.d.ts +4 -0
  140. package/dist/settings/IdentityVerification.d.ts +83 -0
  141. package/dist/settings/PlanBadge.d.ts +2 -2
  142. package/dist/settings/PlanCard.d.ts +6 -1
  143. package/dist/settings/ProfileCard.d.ts +5 -1
  144. package/dist/settings/SubscriptionParts.d.ts +6 -2
  145. package/dist/settings/index.cjs +129 -95
  146. package/dist/settings/index.cjs.map +1 -1
  147. package/dist/settings/index.d.ts +1 -0
  148. package/dist/settings/index.js +65 -47
  149. package/dist/settings/index.js.map +1 -1
  150. package/dist/shell/ActionCluster.d.ts +3 -1
  151. package/dist/shell/index.cjs +56 -55
  152. package/dist/shell/index.js +4 -3
  153. package/dist/site/index.cjs +1 -0
  154. package/dist/site/index.js +1 -0
  155. package/dist/studio/index.cjs +8 -7
  156. package/dist/studio/index.cjs.map +1 -1
  157. package/dist/studio/index.js +6 -5
  158. package/dist/studio/index.js.map +1 -1
  159. package/dist/timeline/index.cjs +1 -0
  160. package/dist/timeline/index.js +1 -0
  161. package/dist/workspaces/index.cjs +3 -3
  162. package/dist/workspaces/index.js +2 -2
  163. package/package.json +35 -5
  164. package/src/calendar/calendar.css +316 -0
  165. package/dist/StreamedArtifactEditor-OPL4KXOT.js.map +0 -1
  166. package/dist/StreamedArtifactEditor-RIKG6CJQ.cjs.map +0 -1
  167. package/dist/chunk-2ZTONLT5.cjs.map +0 -1
  168. package/dist/chunk-7WM62NMM.cjs.map +0 -1
  169. package/dist/chunk-CPMNAJLF.js.map +0 -1
  170. package/dist/chunk-DCDVWPMB.cjs +0 -29
  171. package/dist/chunk-DCDVWPMB.cjs.map +0 -1
  172. package/dist/chunk-EHXSBH6U.js.map +0 -1
  173. package/dist/chunk-L5UPP2HC.js.map +0 -1
  174. package/dist/chunk-TJMKFY5P.js +0 -27
  175. package/dist/chunk-TJMKFY5P.js.map +0 -1
  176. package/dist/chunk-TLQQV7WW.cjs.map +0 -1
  177. package/dist/chunk-VUEZARW5.cjs.map +0 -1
  178. package/dist/chunk-VZGBCBYB.js.map +0 -1
  179. package/dist/files/import/CalendarImportRow.d.ts +0 -26
@@ -5,6 +5,7 @@ var chunkQI6AIHWP_cjs = require('../chunk-QI6AIHWP.cjs');
5
5
  var chunkOUW6G4O2_cjs = require('../chunk-OUW6G4O2.cjs');
6
6
  require('../chunk-C54XEN5T.cjs');
7
7
  require('../chunk-MHVNT4J3.cjs');
8
+ require('../chunk-DES3K4SD.cjs');
8
9
 
9
10
 
10
11
 
@@ -3,5 +3,6 @@ export { ApplyLabelButton, ApplyLabelDialog, DEFAULT_APPLY_LABEL_DIALOG_LABELS,
3
3
  export { DEFAULT_SEARCH_HIT_LABELS, SearchHit } from '../chunk-A2YAC22G.js';
4
4
  import '../chunk-76JDDMSP.js';
5
5
  import '../chunk-7F6CBP3Z.js';
6
+ import '../chunk-VUNV25KB.js';
6
7
  //# sourceMappingURL=index.js.map
7
8
  //# sourceMappingURL=index.js.map
@@ -37,6 +37,10 @@ export interface InvoiceRowView {
37
37
  date: string;
38
38
  /** Formatted amount, e.g. "$50.00". */
39
39
  amount: string;
40
+ /** What the charge was for, e.g. "Plan", "Plan change", "Add-on". */
41
+ kind?: string;
42
+ /** Secondary amount line, e.g. "£35 ex VAT". */
43
+ amountNote?: string;
40
44
  status: string;
41
45
  isPaid: boolean;
42
46
  /** Receipt (paid) or invoice (unpaid) link; omitted when none exists. */
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Identity verification blocks: the settings card, the dialog (pay → verify in Didit's frame →
3
+ * result) and a gate for deployments that require it. All take the `IdentityVerificationFlow` from
4
+ * `@arbidocs/react` (`useIdentityVerification` with a provider, or `useIdentityVerificationFlow`
5
+ * bound to a host's own API), so they work the same inside ARBI and on a customer's site.
6
+ */
7
+ import { type ReactNode } from 'react';
8
+ import { type IdentityVerificationFlow } from '@arbidocs/react/ui';
9
+ /** Every fixed string of the identity verification blocks. */
10
+ export interface IdentityVerificationLabels {
11
+ title: string;
12
+ intro: string;
13
+ /** "£5.00 incl. VAT · 3 attempts" (`price` comes formatted, VAT note included). */
14
+ priceLine: (price: string, attempts: number) => string;
15
+ proOnly: string;
16
+ seePlans: string;
17
+ manageBilling: string;
18
+ verify: string;
19
+ continue: string;
20
+ attemptsLeft: (n: number) => string;
21
+ verified: string;
22
+ verifiedDetail: (country: string) => string;
23
+ inReview: string;
24
+ finishName: string;
25
+ finish: string;
26
+ remove: string;
27
+ payTitle: string;
28
+ payBody: (price: string, attempts: number) => string;
29
+ pay: string;
30
+ confirmPayment: string;
31
+ paymentConfirmed: string;
32
+ verifyTitle: string;
33
+ embedFailed: string;
34
+ openInNewTab: string;
35
+ checkResult: string;
36
+ resultVerified: string;
37
+ resultDeclined: (attemptsLeft: number) => string;
38
+ tryAgain: string;
39
+ resultInReview: string;
40
+ nameMismatchTitle: string;
41
+ nameMismatchBody: string;
42
+ documentName: string;
43
+ accountName: string;
44
+ useDocumentName: (name: string) => string;
45
+ keepName: string;
46
+ close: string;
47
+ requiredTitle: string;
48
+ requiredBody: string;
49
+ requiredProOnly: string;
50
+ }
51
+ export declare const DEFAULT_IDENTITY_VERIFICATION_LABELS: IdentityVerificationLabels;
52
+ export interface IdentityVerificationCardProps {
53
+ flow: IdentityVerificationFlow;
54
+ /** Open the host's plans / billing (upgrade to Pro, fix the card or address). */
55
+ onManageBilling?: () => void;
56
+ labels?: Partial<IdentityVerificationLabels>;
57
+ }
58
+ /** Settings row for the ID check: offer, progress, or the tick. Renders nothing when not offered. */
59
+ export declare function IdentityVerificationCard({ flow, onManageBilling, labels, }: IdentityVerificationCardProps): import("react").JSX.Element | null;
60
+ export interface IdentityVerificationDialogProps {
61
+ flow: IdentityVerificationFlow;
62
+ /** The account name as shown, compared with the name on the document. */
63
+ accountName: string;
64
+ /** Block closing (the `RequireVerified` gate). Default true. */
65
+ dismissible?: boolean;
66
+ /** Open the host's billing to fix a refused payment (plan, card, address). */
67
+ onManageBilling?: () => void;
68
+ labels?: Partial<IdentityVerificationLabels>;
69
+ }
70
+ /** The verification dialog: pay the fee, verify in Didit's embedded frame, then the result. */
71
+ export declare function IdentityVerificationDialog({ flow, accountName, dismissible, onManageBilling, labels, }: IdentityVerificationDialogProps): import("react").JSX.Element;
72
+ export interface RequireVerifiedProps {
73
+ flow: IdentityVerificationFlow;
74
+ accountName: string;
75
+ onManageBilling?: () => void;
76
+ children?: ReactNode;
77
+ labels?: Partial<IdentityVerificationLabels>;
78
+ }
79
+ /**
80
+ * Children behind a verified identity when the deployment requires it (`status.required`): until
81
+ * the user is verified a dialog that cannot be dismissed covers them. Passes through otherwise.
82
+ */
83
+ export declare function RequireVerified({ flow, accountName, onManageBilling, children, labels, }: RequireVerifiedProps): import("react").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  declare const planBadgeVariants: (props?: ({
3
- tone?: "pending" | "paid" | "free" | "dev" | null | undefined;
3
+ tone?: "pending" | "free" | "paid" | "dev" | null | undefined;
4
4
  size?: "sm" | "md" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface PlanBadgeProps extends VariantProps<typeof planBadgeVariants> {
7
- /** Tier name, e.g. "Free", "Pro x2". */
7
+ /** Plan name, e.g. "Free", "Pro". */
8
8
  label: string;
9
9
  className?: string;
10
10
  testId?: string;
@@ -15,7 +15,8 @@ export interface PlanCardLabels {
15
15
  promoCode: string;
16
16
  enterCode: string;
17
17
  pricingExplainer: string;
18
- explainerTiers: string;
18
+ /** One short line per idea, shown as a list. */
19
+ explainerTiers: string[];
19
20
  explainerCredits: string;
20
21
  seeModelList: string;
21
22
  }
@@ -33,6 +34,10 @@ export interface PlanCardPrice {
33
34
  monthlyStrike?: string;
34
35
  /** Effective monthly price. */
35
36
  monthly: string;
37
+ /** After the per-month price, e.g. "+ VAT" when the headline is ex VAT. */
38
+ taxLabel?: string;
39
+ /** Small print under the price, e.g. "£42/mo incl. UK VAT". */
40
+ note?: string;
36
41
  }
37
42
  export interface PlanCardView {
38
43
  /** Pack count: the stable id of the tier. */
@@ -21,6 +21,8 @@ export interface ProfileCardLabels {
21
21
  /** Resend button while cooling down: "Resend in 30s". */
22
22
  resendIn: (seconds: number) => string;
23
23
  resendCode: string;
24
+ /** Shown while editing the name of a verified account. */
25
+ verifiedNameLocked: string;
24
26
  }
25
27
  export declare const DEFAULT_PROFILE_CARD_LABELS: ProfileCardLabels;
26
28
  export interface ProfileNameView {
@@ -57,6 +59,8 @@ export interface ProfileCardProps {
57
59
  email: string;
58
60
  /** Email is managed by the sign-in provider: shows an "SSO" marker instead of "Change". */
59
61
  isSso: boolean;
62
+ /** Verified tick after the name. A verified name is locked (the server refuses a rename), so it is not editable. */
63
+ isVerified?: boolean;
60
64
  onStartEmailChange: () => void;
61
65
  /** Open email-change flow; hides the plain email row. */
62
66
  emailChange?: ProfileEmailChangeView;
@@ -64,4 +68,4 @@ export interface ProfileCardProps {
64
68
  labels?: Partial<ProfileCardLabels>;
65
69
  }
66
70
  /** Profile identity: avatar, editable name, email and the inline email-change flow. */
67
- export declare function ProfileCard({ avatar, name, email, isSso, onStartEmailChange, emailChange, ssoTooltip, labels, }: ProfileCardProps): import("react").JSX.Element;
71
+ export declare function ProfileCard({ avatar, name, email, isSso, isVerified, onStartEmailChange, emailChange, ssoTooltip, labels, }: ProfileCardProps): import("react").JSX.Element;
@@ -15,7 +15,7 @@ export declare function PlanStack({ gap, testId, className, children, }: {
15
15
  className?: string;
16
16
  children: ReactNode;
17
17
  }): import("react").JSX.Element;
18
- /** "Free -> Pro x2": the transition the plan picker is about to make. */
18
+ /** "Free -> Pro monthly": the transition the plan picker is about to make. */
19
19
  export declare function PlanTransition({ from, to }: {
20
20
  from: string;
21
21
  to: string;
@@ -122,6 +122,10 @@ export interface QuotaExceededDialogViewProps {
122
122
  readout: string;
123
123
  projectId?: string | null;
124
124
  };
125
+ /** Replaces the Upgrade button (e.g. add-on actions for a project already on a paid plan). */
126
+ actions?: ReactNode;
127
+ /** Extra content above the footer (e.g. a plan suggestion). */
128
+ extra?: ReactNode;
125
129
  labels?: Partial<QuotaExceededDialogLabels>;
126
130
  }
127
131
  export interface QuotaExceededDialogLabels {
@@ -134,7 +138,7 @@ export interface QuotaExceededDialogLabels {
134
138
  }
135
139
  export declare const DEFAULT_QUOTA_EXCEEDED_DIALOG_LABELS: QuotaExceededDialogLabels;
136
140
  /** Shown when a project's AI budget is exhausted: how much was used, then close or upgrade. */
137
- export declare function QuotaExceededDialogView({ open, onClose, onUpgrade, message, usage, labels, }: QuotaExceededDialogViewProps): import("react").JSX.Element;
141
+ export declare function QuotaExceededDialogView({ open, onClose, onUpgrade, message, usage, actions, extra, labels, }: QuotaExceededDialogViewProps): import("react").JSX.Element;
138
142
  export interface WelcomeProjectPickerProps {
139
143
  value: string;
140
144
  options: {