@veltdev/types-dev 6.0.24 → 6.0.31

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.
@@ -47,6 +47,27 @@ export declare class Attachment {
47
47
  * Preview images of an attachment
48
48
  */
49
49
  previewImages?: string[];
50
+ /**
51
+ * Self-hosted (portable backend) only: the organization, in CLIENT form, of the document the file is stored under.
52
+ * Set by the SDK when it uploads the file; reading and deleting the file use it. Not set on Velt-hosted storage.
53
+ */
54
+ clientOrganizationId?: string;
55
+ /**
56
+ * Self-hosted (portable backend) only: the document, in CLIENT form, the file is stored under. On a page with
57
+ * several documents this can differ from the document the comment is saved in. Set by the SDK when it uploads the
58
+ * file; reading and deleting the file use it. Not set on Velt-hosted storage.
59
+ */
60
+ clientDocumentId?: string;
61
+ }
62
+ /**
63
+ * The document a comment attachment belongs to, in CLIENT ids (the comment's own `metadata.clientOrganizationId` /
64
+ * `clientDocumentId`, else the current document's). Passed only by the comment attachment callers, and read only on a
65
+ * portable (Tier B) session, where the gateway's attachment ops are document-scoped (specs/self-hosting-tier2
66
+ * iteration-32). Hosted ignores it.
67
+ */
68
+ export interface PortableAttachmentScope {
69
+ organizationId?: string | null;
70
+ documentId?: string | null;
50
71
  }
51
72
  export interface UploadFileOptions {
52
73
  path: string;
@@ -54,6 +75,8 @@ export interface UploadFileOptions {
54
75
  useAttachmentResolver?: boolean;
55
76
  metadata?: any;
56
77
  attachmentScope?: string;
78
+ /** See {@link PortableAttachmentScope}. Absent ⇒ hosted's path on every tier (the recorder and tag callers). */
79
+ portableScope?: PortableAttachmentScope;
57
80
  }
58
81
  export interface UploadFileData {
59
82
  files: File[];
@@ -1522,12 +1522,15 @@ export declare class CommentElement {
1522
1522
  public disableScreenshot: () => void;
1523
1523
 
1524
1524
  /**
1525
- * To enable paginated contact list
1525
+ * To enable paginated contact list.
1526
+ * On by default: each contact list loads 10 users (plus the signed-in user), and an @mention search that matches
1527
+ * fewer than 3 loaded contacts fetches more from the database.
1526
1528
  */
1527
1529
  public enablePaginatedContactList: () => void;
1528
1530
 
1529
1531
  /**
1530
- * To disable paginated contact list
1532
+ * To disable paginated contact list (it is on by default), so the full contact list loads up front.
1533
+ * Also available as `<velt-comments paginated-contact-list="false">`.
1531
1534
  */
1532
1535
  public disablePaginatedContactList: () => void;
1533
1536
 
@@ -9,6 +9,14 @@ export declare class Constants {
9
9
  static NO_ORGANIZATION_ID: string;
10
10
  static DEFAULT_QUERY_HASH: string;
11
11
  static LISTENER_BATCH_SIZE: number;
12
+ /**
13
+ * The paginated contact list is ON unless the customer turns it off (`disablePaginatedContactList()`,
14
+ * `<velt-comments paginated-contact-list="false">`). With it on, each contact listener loads 10 users (plus the
15
+ * signed-in user), and an @mention search that matches fewer than 3 loaded contacts asks the database for more.
16
+ * The ONE default every reader starts from: `CommentService` owns the live flag; the contact listeners and the
17
+ * autocomplete use this until that lazily loaded service has answered.
18
+ */
19
+ static readonly PAGINATED_CONTACT_LIST_DEFAULT = true;
12
20
  static LISTENER_CONTEXT_BATCH_SIZE: number;
13
21
  /**
14
22
  * Firestore rejects queries whose disjunctive normal form exceeds 30 disjunctions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "6.0.24",
3
+ "version": "6.0.31",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [