@veltdev/sdk-dev 5.0.2-beta.68 → 5.0.2-beta.7

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 (43) hide show
  1. package/app/client/snippyly.model.d.ts +2 -21
  2. package/app/models/data/attachment-resolver.data.model.d.ts +2 -2
  3. package/app/models/data/attachment.model.d.ts +0 -1
  4. package/app/models/data/autocomplete.data.model.d.ts +3 -4
  5. package/app/models/data/base-metadata.data.model.d.ts +0 -3
  6. package/app/models/data/comment-actions.data.model.d.ts +0 -4
  7. package/app/models/data/comment-annotation.data.model.d.ts +2 -18
  8. package/app/models/data/comment-events.data.model.d.ts +10 -12
  9. package/app/models/data/comment-resolver.data.model.d.ts +3 -3
  10. package/app/models/data/config.data.model.d.ts +0 -26
  11. package/app/models/data/core-events.data.model.d.ts +1 -74
  12. package/app/models/data/crdt.data.model.d.ts +0 -51
  13. package/app/models/data/document.data.model.d.ts +0 -2
  14. package/app/models/data/live-state-events.data.model.d.ts +0 -6
  15. package/app/models/data/notification.model.d.ts +0 -4
  16. package/app/models/data/presence-user.data.model.d.ts +0 -5
  17. package/app/models/data/provider.data.model.d.ts +1 -8
  18. package/app/models/data/reaction-resolver.data.model.d.ts +3 -3
  19. package/app/models/data/recorder-annotation.data.model.d.ts +0 -11
  20. package/app/models/data/recorder-events.data.model.d.ts +0 -3
  21. package/app/models/data/resolver.data.model.d.ts +0 -1
  22. package/app/models/data/user-resolver.data.model.d.ts +1 -17
  23. package/app/models/data/user.data.model.d.ts +0 -2
  24. package/app/models/element/comment-element.model.d.ts +8 -48
  25. package/app/models/element/crdt-element.model.d.ts +1 -88
  26. package/app/models/element/presence-element.model.d.ts +0 -25
  27. package/app/models/element/rewriter-element.model.d.ts +0 -20
  28. package/app/utils/constants.d.ts +0 -224
  29. package/app/utils/enums.d.ts +3 -36
  30. package/models.d.ts +0 -7
  31. package/package.json +1 -1
  32. package/types.d.ts +0 -2
  33. package/velt.css +1 -1
  34. package/velt.js +140 -128
  35. package/app/models/data/activity-resolver.data.model.d.ts +0 -27
  36. package/app/models/data/activity.data.model.d.ts +0 -179
  37. package/app/models/data/notification-resolver.data.model.d.ts +0 -39
  38. package/app/models/data/recorder-resolver.data.model.d.ts +0 -58
  39. package/app/models/data/rewriter-events.data.model.d.ts +0 -44
  40. package/app/models/data/suggestion-events.data.model.d.ts +0 -57
  41. package/app/models/data/suggestion.data.model.d.ts +0 -262
  42. package/app/models/element/activity-element.model.d.ts +0 -33
  43. package/app/models/element/suggestion-element.model.d.ts +0 -180
@@ -1,33 +0,0 @@
1
- // @ts-nocheck
2
- import { Observable } from "rxjs";
3
- import { ActivityRecord, ActivitySubscribeConfig, CreateActivityData } from "../data/activity.data.model";
4
-
5
- export declare class ActivityElement {
6
-
7
- /**
8
- * Subscribe to activities with optional filtering configuration.
9
- * Returns an Observable that, when unsubscribed, automatically cleans up the internal subscription.
10
- * @param config Optional configuration to filter activities by scope, feature types, action types, etc.
11
- * @returns Observable<ActivityRecord[] | null>
12
- */
13
- getAllActivities: (config?: ActivitySubscribeConfig) => Observable<ActivityRecord[] | null>;
14
-
15
- /**
16
- * Create a new activity record.
17
- * @param data The activity data including feature type, action type, target entity, etc.
18
- * @returns Promise<void>
19
- */
20
- createActivity: (data: CreateActivityData) => Promise<void>;
21
-
22
- constructor();
23
-
24
- /**
25
- * Subscribe to activities with optional filtering configuration.
26
- */
27
- private _getAllActivities;
28
-
29
- /**
30
- * Create a new activity record.
31
- */
32
- private _createActivity;
33
- }
@@ -1,180 +0,0 @@
1
- // @ts-nocheck
2
- import { Observable } from "rxjs";
3
- import { SuggestionEventType } from "../../utils/enums";
4
- import { SuggestionEventTypesMap } from "../data/suggestion-events.data.model";
5
- import { CommitSuggestionConfig, EnableSuggestionModeConfig, RegisterTargetConfig, Suggestion, SuggestionGetSuggestionsFilter } from "../data/suggestion.data.model";
6
-
7
- export declare class SuggestionElement {
8
-
9
- /**
10
- * Turn on suggestion mode for this user/session and (optionally) register
11
- * the onTargetEditStart / onTargetEditCommit callbacks the SDK invokes
12
- * during the auto-detect edit lifecycle.
13
- *
14
- * Re-calling with a new config replaces the previous callbacks.
15
- */
16
- enableSuggestionMode: (config?: EnableSuggestionModeConfig) => void;
17
-
18
- /**
19
- * Turn off suggestion mode and clear any registered callbacks.
20
- */
21
- disableSuggestionMode: () => void;
22
-
23
- /**
24
- * Synchronous read of the current enable flag.
25
- */
26
- isSuggestionModeEnabled: () => boolean;
27
-
28
- /**
29
- * Reactive enable-flag stream; deduplicated.
30
- */
31
- isSuggestionModeEnabled$: () => Observable<boolean>;
32
-
33
- /**
34
- * Register a getter that returns the current value of a tagged target.
35
- * Required for non-primitive (wrapper) targets — the SDK calls this on
36
- * focus to snapshot the pre-edit value, and again on commit for the diff.
37
- *
38
- * The getter must reflect edit-time state (typically read from the DOM),
39
- * not the persisted customer state. See `RegisterTargetConfig`.
40
- */
41
- registerTarget: <T = unknown>(config: RegisterTargetConfig<T>) => void;
42
-
43
- /**
44
- * Drop the registered getter for a target.
45
- */
46
- unregisterTarget: (targetId: string) => void;
47
-
48
- /**
49
- * Manually capture the current value as the snapshot for a target.
50
- * Use for non-focusable elements (custom widgets, virtualized rows)
51
- * where the auto-focus snapshot does not fire.
52
- */
53
- startSuggestion: (targetId: string) => void;
54
-
55
- /**
56
- * Programmatically commit a suggestion. Resolves with the new annotation id.
57
- * Rejects with one of: INVALID_CONFIG, MODE_NOT_SUGGESTING,
58
- * TARGET_NOT_REGISTERED, NO_GETTER_FOR_COMPLEX, NO_CHANGE_TO_SUGGEST,
59
- * SNAPSHOT_FAILED.
60
- */
61
- commitSuggestion: <T = unknown>(config: CommitSuggestionConfig<T>) => Promise<{ id: string }>;
62
-
63
- /**
64
- * Synchronous read of all suggestions on the current document, optionally filtered.
65
- */
66
- getSuggestions: (filter?: SuggestionGetSuggestionsFilter) => Suggestion[];
67
-
68
- /**
69
- * Reactive variant of getSuggestions. Re-emits on every annotation change,
70
- * deduplicated via the SDK's standard distinct-until-changed comparator.
71
- */
72
- getSuggestions$: (filter?: SuggestionGetSuggestionsFilter) => Observable<Suggestion[]>;
73
-
74
- /**
75
- * Newest pending suggestion for a target, or null. Convenience for
76
- * pending-overlay UX patterns where each input shows the proposed
77
- * value while a suggestion is awaiting resolution.
78
- */
79
- getPendingSuggestion: <T = unknown>(targetId: string) => Suggestion<T> | null;
80
-
81
- /**
82
- * Reactive variant of getPendingSuggestion.
83
- */
84
- getPendingSuggestion$: <T = unknown>(targetId: string) => Observable<Suggestion<T> | null>;
85
-
86
- /**
87
- * Subscribe to a suggestion event. Customers call `.subscribe(handler)`
88
- * on the returned Observable. Event names: 'suggestionCreated',
89
- * 'suggestionApproved', 'suggestionRejected', 'suggestionStale',
90
- * 'targetEditStart', 'targetEditCommit'.
91
- */
92
- on: <T extends SuggestionEventType>(action: T) => Observable<SuggestionEventTypesMap[T]>;
93
-
94
- constructor();
95
-
96
- /**
97
- * Turn on suggestion mode for this user/session and (optionally) register
98
- * the onTargetEditStart / onTargetEditCommit callbacks the SDK invokes
99
- * during the auto-detect edit lifecycle.
100
- *
101
- * Re-calling with a new config replaces the previous callbacks.
102
- */
103
- private _enableSuggestionMode;
104
-
105
- /**
106
- * Turn off suggestion mode and clear any registered callbacks.
107
- */
108
- private _disableSuggestionMode;
109
-
110
- /**
111
- * Synchronous read of the current enable flag.
112
- */
113
- private _isSuggestionModeEnabled;
114
-
115
- /**
116
- * Reactive enable-flag stream; deduplicated.
117
- */
118
- private _isSuggestionModeEnabled$;
119
-
120
- /**
121
- * Register a getter that returns the current value of a tagged target.
122
- * Required for non-primitive (wrapper) targets — the SDK calls this on
123
- * focus to snapshot the pre-edit value, and again on commit for the diff.
124
- *
125
- * The getter must reflect edit-time state (typically read from the DOM),
126
- * not the persisted customer state. See `RegisterTargetConfig`.
127
- */
128
- private _registerTarget;
129
-
130
- /**
131
- * Drop the registered getter for a target.
132
- */
133
- private _unregisterTarget;
134
-
135
- /**
136
- * Manually capture the current value as the snapshot for a target.
137
- * Use for non-focusable elements (custom widgets, virtualized rows)
138
- * where the auto-focus snapshot does not fire.
139
- */
140
- private _startSuggestion;
141
-
142
- /**
143
- * Programmatically commit a suggestion. Resolves with the new annotation id.
144
- * Rejects with one of: INVALID_CONFIG, MODE_NOT_SUGGESTING,
145
- * TARGET_NOT_REGISTERED, NO_GETTER_FOR_COMPLEX, NO_CHANGE_TO_SUGGEST,
146
- * SNAPSHOT_FAILED.
147
- */
148
- private _commitSuggestion;
149
-
150
- /**
151
- * Synchronous read of all suggestions on the current document, optionally filtered.
152
- */
153
- private _getSuggestions;
154
-
155
- /**
156
- * Reactive variant of getSuggestions. Re-emits on every annotation change,
157
- * deduplicated via the SDK's standard distinct-until-changed comparator.
158
- */
159
- private _getSuggestions$;
160
-
161
- /**
162
- * Newest pending suggestion for a target, or null. Convenience for
163
- * pending-overlay UX patterns where each input shows the proposed
164
- * value while a suggestion is awaiting resolution.
165
- */
166
- private _getPendingSuggestion;
167
-
168
- /**
169
- * Reactive variant of getPendingSuggestion.
170
- */
171
- private _getPendingSuggestion$;
172
-
173
- /**
174
- * Subscribe to a suggestion event. Customers call `.subscribe(handler)`
175
- * on the returned Observable. Event names: 'suggestionCreated',
176
- * 'suggestionApproved', 'suggestionRejected', 'suggestionStale',
177
- * 'targetEditStart', 'targetEditCommit'.
178
- */
179
- private _on;
180
- }