@veltdev/sdk-staging 6.0.39 → 6.0.41
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/suggestion.data.model.d.ts +21 -0
- package/{chunk-3IZMBIX6.js → chunk-36PXOB25.js} +1 -1
- package/{chunk-RZKFH5MJ.js → chunk-37SHBMMS.js} +1 -1
- package/{chunk-LTRWXATT.js → chunk-3COV4GP2.js} +1 -1
- package/{chunk-DKXCB5IZ.js → chunk-3WMZHIUK.js} +1 -1
- package/{chunk-YMZNWT6M.js → chunk-47QXEGDS.js} +1 -1
- package/{chunk-VDVSL5FD.js → chunk-4YENHG6U.js} +1 -1
- package/{chunk-6SPAE7FV.js → chunk-4Z5OANZ2.js} +1 -1
- package/{chunk-7VKSDN5L.js → chunk-5EAG5HB7.js} +1 -1
- package/{chunk-LRAMOMEE.js → chunk-5HJEEWJD.js} +1 -1
- package/{chunk-6NFSPTVO.js → chunk-5YPWPEJV.js} +1 -1
- package/{chunk-TKM2V56R.js → chunk-6IBFYOW4.js} +1 -1
- package/{chunk-Z5JUKNFV.js → chunk-A62TJPHK.js} +1 -1
- package/{chunk-2AGPEJPD.js → chunk-BK3ANW44.js} +1 -1
- package/{chunk-XCDG25HH.js → chunk-CM4DXJHV.js} +1 -1
- package/{chunk-I5SULMXR.js → chunk-EJIVVAFM.js} +1 -1
- package/{chunk-SAORKYM2.js → chunk-EKQVWLGI.js} +1 -1
- package/{chunk-XTJT3LNK.js → chunk-FE4IXZWI.js} +1 -1
- package/chunk-G2UUMUTC.js +2 -0
- package/{chunk-XAASIREK.js → chunk-GP4ZSCRM.js} +1 -1
- package/{chunk-CVRM4WJJ.js → chunk-GXKW7UHJ.js} +1 -1
- package/{chunk-P33QVJUK.js → chunk-JRU2HKBD.js} +1 -1
- package/{chunk-P2DKFNED.js → chunk-K4WKCMNB.js} +1 -1
- package/{chunk-DVPHIVLJ.js → chunk-LRZZ4NK5.js} +1 -1
- package/{chunk-IOKSCDSB.js → chunk-LVHGTHGQ.js} +1 -1
- package/{chunk-2A4XOCUQ.js → chunk-O3G53MZM.js} +1 -1
- package/{chunk-PLWC7MIA.js → chunk-OZOKT55V.js} +1 -1
- package/{chunk-MHUIGKSM.js → chunk-QTFSIBJ4.js} +1 -1
- package/{chunk-7BDXUYQJ.js → chunk-SIENIDJ3.js} +1 -1
- package/{chunk-HPWQYMER.js → chunk-TGIEWAFN.js} +1 -1
- package/{chunk-GEZY7QU5.js → chunk-U2R42GHO.js} +1 -1
- package/{chunk-TAJKZB4Q.js → chunk-UGXNNWVG.js} +1 -1
- package/{chunk-BV5BSH6Y.js → chunk-UQB52CCU.js} +27 -27
- package/{chunk-W2REN6MA.js → chunk-VLZ4EKGU.js} +1 -1
- package/{chunk-JWFJKPAF.js → chunk-XKPPKXHG.js} +1 -1
- package/{chunk-BIL67AQK.js → chunk-YDELC3DR.js} +1 -1
- package/{chunk-S2BHB74W.js → chunk-YJ4WTX4K.js} +1 -1
- package/package.json +1 -1
- package/velt-activity-log.js +1 -1
- package/velt-area.js +1 -1
- package/velt-arrow.js +1 -1
- package/velt-comment.js +8 -8
- package/velt-crdt.js +1 -1
- package/velt-cursor.js +1 -1
- package/velt-huddle.js +1 -1
- package/velt-live-state-sync.js +1 -1
- package/velt-notification.js +1 -1
- package/velt-portable.js +1 -1
- package/velt-presence.js +1 -1
- package/velt-reaction.js +1 -1
- package/velt-recorder.js +1 -1
- package/velt-rewriter.js +1 -1
- package/velt-selection.js +1 -1
- package/velt-tag.js +1 -1
- package/velt-user-invite.js +1 -1
- package/velt-user-request.js +1 -1
- package/velt-video-player.js +1 -1
- package/velt-views.js +1 -1
- package/velt.js +2 -2
- package/chunk-OO6OJ4NK.js +0 -2
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* Suggestion objects internally and customers do not build them directly.
|
|
10
10
|
*/
|
|
11
11
|
import { User } from './user.data.model';
|
|
12
|
+
import { Location } from './location.model';
|
|
12
13
|
/**
|
|
13
14
|
* Lifecycle state machine for a Suggestion.
|
|
14
15
|
*
|
|
@@ -386,6 +387,26 @@ export interface CommitSuggestionConfig<T = unknown> {
|
|
|
386
387
|
* resolver (self-hosting) it is stored by the resolver only.
|
|
387
388
|
*/
|
|
388
389
|
textChange?: SuggestionTextChange;
|
|
390
|
+
/**
|
|
391
|
+
* Optional location to file the suggestion under (only `id` is required), like `addManualComment`'s
|
|
392
|
+
* `location`. When omitted, the suggestion takes the location of its target element's nearest
|
|
393
|
+
* `data-velt-location-id` (or `data-velt-location` with an `id`) container, else the root location. Pass
|
|
394
|
+
* it when the target has no element (a `registerTarget` getter) but sits in a location's container.
|
|
395
|
+
* A location already set with `setLocations` is used as set (your other fields are not used); any other
|
|
396
|
+
* location is added to the page's locations, as for manual comments.
|
|
397
|
+
*/
|
|
398
|
+
location?: Location;
|
|
399
|
+
/**
|
|
400
|
+
* Optional comment context for the suggestion's annotation, stored as `addComment` stores a comment's `context`
|
|
401
|
+
* (e.g. `{ textEditorConfig: { editorId } }`, the editor it was made in, as a rich-text text comment records it).
|
|
402
|
+
* A page-level comment context provider replaces it, as for every comment. It is comment context, not suggestion
|
|
403
|
+
* content: under self-hosting it is kept in Velt's copy (except `context.textEditorConfig.text`, which goes to the
|
|
404
|
+
* comment resolver, as for comments). A JSON copy is taken at commit. Not saved, with a dev warning: anything that
|
|
405
|
+
* is not stored as an object (string, number, array, Date) or cannot be stored as JSON. The SDK's own access keys
|
|
406
|
+
* (`accessFields`, `_setAccessFields`, `_replaceAccessFields`, `_setVisibilityConfig`) are dropped with a dev
|
|
407
|
+
* warning; `access` (context access) is kept, as for a comment.
|
|
408
|
+
*/
|
|
409
|
+
context?: Record<string, any>;
|
|
389
410
|
}
|
|
390
411
|
/**
|
|
391
412
|
* Pre-bound builder attached to `targetEditCommit` payloads. Calling it
|