@veltdev/sdk-staging 5.0.2 → 5.0.3-beta.2
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/app/models/data/comment-actions.data.model.d.ts +7 -3
- package/app/models/data/org-contact.data.model.d.ts +25 -0
- package/app/models/element/comment-element.model.d.ts +6 -2
- package/app/models/element/contact-element.model.d.ts +12 -0
- package/app/utils/constants.d.ts +1 -0
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.css +1 -1
- package/velt.js +77 -77
|
@@ -58,15 +58,19 @@ export interface CommentVisibilityConfig {
|
|
|
58
58
|
annotationId?: string;
|
|
59
59
|
/** Organization ID for 'organizationPrivate' type visibility */
|
|
60
60
|
organizationId?: string;
|
|
61
|
+
/** Organization IDs for 'organizationPrivate' type visibility — the comment is visible to ALL listed organizations. Merged with `organizationId` and de-duplicated. */
|
|
62
|
+
organizationIds?: string[];
|
|
61
63
|
/** User IDs for 'restricted' type visibility - array of user IDs who can see the comment */
|
|
62
64
|
userIds?: string[];
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
* Configuration for private mode (enablePrivateMode/disablePrivateMode).
|
|
66
|
-
* Same as CommentVisibilityConfig but without annotationId
|
|
67
|
-
*
|
|
68
|
+
* Same as CommentVisibilityConfig but without annotationId, since private mode
|
|
69
|
+
* applies to all new comments. For 'organizationPrivate', `organizationId` and
|
|
70
|
+
* `organizationIds` are merged and de-duplicated; when neither is provided the
|
|
71
|
+
* current user's organization is used.
|
|
68
72
|
*/
|
|
69
|
-
export type PrivateModeConfig = Omit<CommentVisibilityConfig, 'annotationId'
|
|
73
|
+
export type PrivateModeConfig = Omit<CommentVisibilityConfig, 'annotationId'>;
|
|
70
74
|
export interface AddCommentAnnotationRequest {
|
|
71
75
|
annotation: CommentAnnotation;
|
|
72
76
|
options?: RequestOptions;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single organization / team entry, used to populate the "Selected Teams" picker
|
|
3
|
+
* in the comment visibility banner.
|
|
4
|
+
*
|
|
5
|
+
* Provided by the customer via `contactElement.updateOrgList({ orgList: [...] })`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class OrgContact {
|
|
8
|
+
/**
|
|
9
|
+
* Unique organization identifier that you use to identify the team / organization.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* The team / organization's display name (shown in the "Selected Teams" picker).
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Config accepted by `updateOrgList`.
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateOrgListConfig {
|
|
21
|
+
/**
|
|
22
|
+
* The list of organizations / teams to offer in the "Selected Teams" picker.
|
|
23
|
+
*/
|
|
24
|
+
orgList: OrgContact[];
|
|
25
|
+
}
|
|
@@ -541,7 +541,9 @@ export declare class CommentElement {
|
|
|
541
541
|
/**
|
|
542
542
|
* To enable private mode with visibility configuration.
|
|
543
543
|
* All new comments will be created with the specified visibility.
|
|
544
|
-
* @param config PrivateModeConfig with type
|
|
544
|
+
* @param config PrivateModeConfig with type, optional userIds (restricted), and
|
|
545
|
+
* optional organizationId/organizationIds (organizationPrivate; merged + de-duplicated,
|
|
546
|
+
* defaults to the current user's organization when neither is provided)
|
|
545
547
|
*/
|
|
546
548
|
public enablePrivateMode: (config: PrivateModeConfig) => void;
|
|
547
549
|
|
|
@@ -1892,7 +1894,9 @@ export declare class CommentElement {
|
|
|
1892
1894
|
/**
|
|
1893
1895
|
* To enable private mode with visibility configuration.
|
|
1894
1896
|
* All new comments will be created with the specified visibility.
|
|
1895
|
-
* @param config PrivateModeConfig with type
|
|
1897
|
+
* @param config PrivateModeConfig with type, optional userIds (restricted), and
|
|
1898
|
+
* optional organizationId/organizationIds (organizationPrivate; merged + de-duplicated,
|
|
1899
|
+
* defaults to the current user's organization when neither is provided)
|
|
1896
1900
|
*/
|
|
1897
1901
|
private _enablePrivateMode;
|
|
1898
1902
|
|
|
@@ -48,6 +48,12 @@ export declare class ContactElement {
|
|
|
48
48
|
*/
|
|
49
49
|
public updateContactList: (userContacts: UserContact[], config?: { merge: boolean }) => void;
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Update the list of organizations / teams offered by the "Selected Teams" visibility picker.
|
|
53
|
+
* @param config { orgList: { id: string, name?: string }[] }
|
|
54
|
+
*/
|
|
55
|
+
public updateOrgList: (config: { orgList: { id: string; name?: string }[] }) => void;
|
|
56
|
+
|
|
51
57
|
/**
|
|
52
58
|
* Get contact list.
|
|
53
59
|
*/
|
|
@@ -96,6 +102,12 @@ export declare class ContactElement {
|
|
|
96
102
|
*/
|
|
97
103
|
private _updateContactList;
|
|
98
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Update the list of organizations / teams offered by the "Selected Teams" visibility picker.
|
|
107
|
+
* @param config { orgList: { id: string, name?: string }[] }
|
|
108
|
+
*/
|
|
109
|
+
private _updateOrgList;
|
|
110
|
+
|
|
99
111
|
/**
|
|
100
112
|
* Get contact list.
|
|
101
113
|
*/
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -464,6 +464,7 @@ export declare class Constants {
|
|
|
464
464
|
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ITEM_ICON: string;
|
|
465
465
|
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ITEM_LABEL: string;
|
|
466
466
|
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_USER_PICKER: string;
|
|
467
|
+
VELT_COMMENT_DIALOG_VISIBILITY_BANNER_DROPDOWN_CONTENT_ORG_PICKER: string;
|
|
467
468
|
VELT_COMMENT_COMPOSER: string;
|
|
468
469
|
VELT_SKELETON_LOADER: string;
|
|
469
470
|
VELT_SHADOW_DOM_INTERNAL: string;
|
package/models.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './app/models/data/target-element.data.model';
|
|
|
62
62
|
export * from './app/models/data/target-text-range.data.model';
|
|
63
63
|
export * from './app/models/data/toast.data.model';
|
|
64
64
|
export * from './app/models/data/transcription.data.model';
|
|
65
|
+
export * from './app/models/data/org-contact.data.model';
|
|
65
66
|
export * from './app/models/data/user-contact.data.model';
|
|
66
67
|
export * from './app/models/data/user-contact-us.data.model';
|
|
67
68
|
export * from './app/models/data/user-feedback.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "5.0.2",
|
|
3
|
+
"version": "5.0.3-beta.2",
|
|
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": [
|
package/velt.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html{--velt-base-rem-unit: 1
|
|
1
|
+
html{--velt-base-rem-unit: 1}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}velt-wireframe{display:none!important}body.velt-pin-dragging iframe{pointer-events:none!important}
|