@veltdev/types-dev 6.0.36 → 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.
@@ -219,6 +219,12 @@ export type ActivityResolverEventType = {
219
219
  ACTIVITY_SAVE_ERROR: 'activitySaveError';
220
220
  };
221
221
  export type ActivityResolverEvent = BaseResolverEvent<ActivityResolverEventType, ActivityResolverSource, ActivityResolverModuleName>;
222
+ /**
223
+ * The license state of a self-hosted (Tier B) deployment, as its gateway reports it (backend Part 119).
224
+ * `expiring-soon` is the 30 days before `expiresAt`; `in-grace` the 30 days after it, still fully working;
225
+ * `terminated` (after `terminatesAt`) and `unlicensed` refuse new sessions.
226
+ */
227
+ export type SelfHostedLicenseState = 'unlicensed' | 'valid' | 'expiring-soon' | 'in-grace' | 'terminated';
222
228
  export type ErrorEvent = {
223
229
  event?: string;
224
230
  sourceMethod?: string;
@@ -229,6 +235,14 @@ export type ErrorEvent = {
229
235
  code?: string;
230
236
  message?: string;
231
237
  source?: string;
238
+ /**
239
+ * Self-hosted license events only (`code` is `license_terminated`, `license_in_grace`,
240
+ * `license_expiring_soon` or `license_restored`): the deployment's license state, and its dates as ISO
241
+ * strings when known.
242
+ */
243
+ state?: SelfHostedLicenseState;
244
+ expiresAt?: string;
245
+ terminatesAt?: string;
232
246
  };
233
247
  export declare enum InitUpdateMethodNames {
234
248
  SET_DOCUMENTS = "setDocuments",
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "6.0.36",
3
+ "version": "6.0.41",
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": [