@factorialco/f0-react 1.329.1 → 1.330.1

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.
@@ -0,0 +1 @@
1
+ @keyframes shine{0%{background-position:200% center}to{background-position:-200% center}}.shine-text{background:linear-gradient(110deg,currentColor 30%,rgba(255,255,255,.8) 50%,currentColor 70%);background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shine 3s linear infinite}
package/dist/ai.d.ts ADDED
@@ -0,0 +1,705 @@
1
+ import { AIMessage } from '@copilotkit/shared';
2
+ import { CopilotKitProps } from '@copilotkit/react-core';
3
+ import { ForwardRefExoticComponent } from 'react';
4
+ import { JSX as JSX_2 } from 'react';
5
+ import { Message } from '@copilotkit/shared';
6
+ import { ReactNode } from 'react';
7
+ import { RefAttributes } from 'react';
8
+ import { SVGProps } from 'react';
9
+
10
+ export declare const ActionItem: ({ title, status, inGroup }: ActionItemProps) => JSX_2.Element;
11
+
12
+ export declare interface ActionItemProps {
13
+ title: string;
14
+ status?: "inProgress" | "executing" | "completed";
15
+ inGroup?: boolean;
16
+ }
17
+
18
+ /**
19
+ * @experimental This is an experimental component use it at your own risk
20
+ */
21
+ export declare const AiChat: () => JSX_2.Element | null;
22
+
23
+ export declare const AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
24
+
25
+ export declare type AiChatProviderProps = {
26
+ enabled?: boolean;
27
+ greeting?: string;
28
+ initialMessage?: string | string[];
29
+ welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
30
+ onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
31
+ threadId: string;
32
+ feedback: string;
33
+ }) => void;
34
+ onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
35
+ threadId: string;
36
+ feedback: string;
37
+ }) => void;
38
+ } & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
39
+
40
+ declare type AiChatProviderReturnValue = {
41
+ enabled: boolean;
42
+ setEnabled: React.Dispatch<React.SetStateAction<boolean>>;
43
+ open: boolean;
44
+ setOpen: React.Dispatch<React.SetStateAction<boolean>>;
45
+ shouldPlayEntranceAnimation: boolean;
46
+ setShouldPlayEntranceAnimation: React.Dispatch<React.SetStateAction<boolean>>;
47
+ tmp_setAgent: (agent?: string) => void;
48
+ placeholders: string[];
49
+ setPlaceholders: React.Dispatch<React.SetStateAction<string[]>>;
50
+ /**
51
+ * Set the amount of minutes after which the chat will be cleared automatically
52
+ * Set `null` to disable auto-clearing
53
+ *
54
+ * @default 15
55
+ */
56
+ setAutoClearMinutes: React.Dispatch<React.SetStateAction<number | null>>;
57
+ autoClearMinutes: number | null;
58
+ /**
59
+ * The initial message to display in the chat
60
+ */
61
+ initialMessage?: string | string[];
62
+ setInitialMessage: React.Dispatch<React.SetStateAction<string | string[] | undefined>>;
63
+ welcomeScreenSuggestions: WelcomeScreenSuggestion[];
64
+ setWelcomeScreenSuggestions: React.Dispatch<React.SetStateAction<WelcomeScreenSuggestion[]>>;
65
+ onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
66
+ threadId: string;
67
+ feedback: string;
68
+ }) => void;
69
+ onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
70
+ threadId: string;
71
+ feedback: string;
72
+ }) => void;
73
+ /**
74
+ * Clear/reset the chat conversation
75
+ */
76
+ clear: () => void;
77
+ /* Excluded from this release type: setClearFunction */
78
+ /**
79
+ * Send a message to the chat
80
+ * @param message - The message content as a string, or a full Message object
81
+ */
82
+ sendMessage: (message: string | Message) => void;
83
+ /* Excluded from this release type: setSendMessageFunction */
84
+ } & Pick<AiChatState, "greeting" | "agent">;
85
+
86
+ declare interface AiChatState {
87
+ greeting?: string;
88
+ enabled: boolean;
89
+ agent?: string;
90
+ initialMessage?: string | string[];
91
+ welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
92
+ placeholders?: string[];
93
+ setPlaceholders?: React.Dispatch<React.SetStateAction<string[]>>;
94
+ onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
95
+ threadId: string;
96
+ feedback: string;
97
+ }) => void;
98
+ onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
99
+ threadId: string;
100
+ feedback: string;
101
+ }) => void;
102
+ }
103
+
104
+ export declare type AiChatTranslations = TranslationShape<typeof aiTranslations>;
105
+
106
+ export declare function AiChatTranslationsProvider({ children, translations, }: AiChatTranslationsProviderProps): JSX.Element;
107
+
108
+ export declare interface AiChatTranslationsProviderProps {
109
+ children: ReactNode;
110
+ translations: AiChatTranslations;
111
+ }
112
+
113
+ /**
114
+ * @experimental This is an experimental component use it at your own risk
115
+ */
116
+ export declare const AiFullscreenChat: () => JSX_2.Element | null;
117
+
118
+ export declare const aiTranslations: {
119
+ ai: {
120
+ openChat: string;
121
+ closeChat: string;
122
+ startNewChat: string;
123
+ scrollToBottom: string;
124
+ welcome: string;
125
+ defaultInitialMessage: string;
126
+ inputPlaceholder: string;
127
+ stopAnswerGeneration: string;
128
+ sendMessage: string;
129
+ thoughtsGroupTitle: string;
130
+ resourcesGroupTitle: string;
131
+ thinking: string;
132
+ exportTable: string;
133
+ generatedTableFilename: string;
134
+ feedbackModal: {
135
+ positive: {
136
+ title: string;
137
+ label: string;
138
+ placeholder: string;
139
+ };
140
+ negative: {
141
+ title: string;
142
+ label: string;
143
+ placeholder: string;
144
+ };
145
+ };
146
+ ask: string;
147
+ };
148
+ };
149
+
150
+ export declare const defaultTranslations: {
151
+ readonly countries: {
152
+ ad: string;
153
+ ae: string;
154
+ af: string;
155
+ ag: string;
156
+ ai: string;
157
+ al: string;
158
+ am: string;
159
+ ao: string;
160
+ ar: string;
161
+ as: string;
162
+ at: string;
163
+ au: string;
164
+ aw: string;
165
+ ax: string;
166
+ az: string;
167
+ ba: string;
168
+ bb: string;
169
+ bd: string;
170
+ be: string;
171
+ bf: string;
172
+ bg: string;
173
+ bh: string;
174
+ bi: string;
175
+ bj: string;
176
+ bm: string;
177
+ bo: string;
178
+ br: string;
179
+ bt: string;
180
+ bw: string;
181
+ by: string;
182
+ bz: string;
183
+ ca: string;
184
+ cd: string;
185
+ cf: string;
186
+ cg: string;
187
+ ch: string;
188
+ ci: string;
189
+ ck: string;
190
+ cl: string;
191
+ cm: string;
192
+ cn: string;
193
+ co: string;
194
+ cr: string;
195
+ cu: string;
196
+ cv: string;
197
+ cw: string;
198
+ cy: string;
199
+ cz: string;
200
+ de: string;
201
+ dj: string;
202
+ dk: string;
203
+ dm: string;
204
+ do: string;
205
+ dz: string;
206
+ ec: string;
207
+ ee: string;
208
+ eg: string;
209
+ er: string;
210
+ es: string;
211
+ et: string;
212
+ fi: string;
213
+ fj: string;
214
+ fk: string;
215
+ fm: string;
216
+ fo: string;
217
+ fr: string;
218
+ ga: string;
219
+ gb: string;
220
+ gd: string;
221
+ ge: string;
222
+ gg: string;
223
+ gh: string;
224
+ gi: string;
225
+ gl: string;
226
+ gm: string;
227
+ gn: string;
228
+ gq: string;
229
+ gr: string;
230
+ gt: string;
231
+ gu: string;
232
+ gw: string;
233
+ hk: string;
234
+ hn: string;
235
+ hr: string;
236
+ ht: string;
237
+ hu: string;
238
+ id: string;
239
+ ie: string;
240
+ il: string;
241
+ im: string;
242
+ in: string;
243
+ io: string;
244
+ iq: string;
245
+ ir: string;
246
+ is: string;
247
+ it: string;
248
+ je: string;
249
+ jm: string;
250
+ jo: string;
251
+ jp: string;
252
+ ke: string;
253
+ };
254
+ readonly approvals: {
255
+ readonly history: "Approval history";
256
+ readonly statuses: {
257
+ readonly waiting: "Waiting";
258
+ readonly pending: "Pending";
259
+ readonly approved: "Approved";
260
+ readonly rejected: "Rejected";
261
+ };
262
+ readonly requiredNumbers: {
263
+ readonly one: "One approval required";
264
+ readonly other: "{{count}} approvals required";
265
+ };
266
+ };
267
+ readonly navigation: {
268
+ readonly sidebar: {
269
+ readonly label: "Main navigation";
270
+ readonly companySelector: {
271
+ readonly label: "Select a company";
272
+ readonly placeholder: "Select a company";
273
+ };
274
+ };
275
+ readonly previous: "Previous";
276
+ readonly next: "Next";
277
+ };
278
+ readonly inputs: {
279
+ readonly password: {
280
+ readonly show: "Show password";
281
+ readonly hide: "Hide password";
282
+ };
283
+ };
284
+ readonly actions: {
285
+ readonly add: "Add";
286
+ readonly edit: "Edit";
287
+ readonly save: "Save";
288
+ readonly send: "Send";
289
+ readonly cancel: "Cancel";
290
+ readonly copy: "Copy";
291
+ readonly close: "Close";
292
+ readonly showAll: "Show all";
293
+ readonly showLess: "Show less";
294
+ readonly skipToContent: "Skip to content";
295
+ readonly view: "View";
296
+ readonly unselect: "Unselect";
297
+ readonly search: "Search";
298
+ readonly clear: "Clear";
299
+ readonly more: "More";
300
+ readonly moveUp: "Move up";
301
+ readonly moveDown: "Move down";
302
+ readonly thumbsUp: "Like";
303
+ readonly thumbsDown: "Dislike";
304
+ readonly other: "Other actions";
305
+ readonly toggle: "Toggle";
306
+ readonly toggleDropdownMenu: "Toggle dropdown menu";
307
+ readonly selectAll: "Select all";
308
+ };
309
+ readonly status: {
310
+ readonly selected: {
311
+ readonly singular: "Selected";
312
+ readonly plural: "Selected";
313
+ readonly all: "All selected";
314
+ };
315
+ };
316
+ readonly syncStatus: {
317
+ readonly synced: "Sync completed successfully.";
318
+ readonly syncing: "Sync in progress.";
319
+ readonly pending: "Not yet started.";
320
+ readonly partiallySynced: "All aggregated data was synced but at least 1 failed.";
321
+ readonly outdated: "Data might need to be synced again.";
322
+ readonly failed: "Sync failed.";
323
+ };
324
+ readonly filters: {
325
+ readonly searchPlaceholder: "Search filters...";
326
+ readonly inFilter: {
327
+ readonly searchPlaceholder: "Search options...";
328
+ };
329
+ readonly activeFilters: "Active filters: {{filters}}";
330
+ readonly filteringBy: "Filtering by {{label}}";
331
+ readonly availableFilters: "Available filters";
332
+ readonly label: "Filters";
333
+ readonly applyFilters: "Apply filters";
334
+ readonly applySelection: "Apply selection";
335
+ readonly cancel: "Cancel";
336
+ readonly failedToLoadOptions: "Failed to load options";
337
+ readonly retry: "Retry";
338
+ readonly number: {
339
+ readonly value: "Value";
340
+ readonly equal: "Equal to";
341
+ readonly equalTo: "Equal to {{value}}";
342
+ readonly lessOrEqual: "Less or equal to";
343
+ readonly lessThan: "Less than";
344
+ readonly greaterOrEqual: "Greater or equal to";
345
+ readonly greaterThan: "Greater than";
346
+ readonly equalShort: "= {{value}}";
347
+ readonly greaterThanOrEqualShort: ">= {{value}}";
348
+ readonly greaterThanShort: "> {{value}}";
349
+ readonly lessThanOrEqualShort: "<= {{value}}";
350
+ readonly lessThanShort: "< {{value}}";
351
+ readonly rangeTitle: "Use range";
352
+ readonly range: "{{minStrict}} {{min}} and {{maxStrict}} {{max}}";
353
+ };
354
+ readonly search: {
355
+ readonly relaxed: "Relaxed";
356
+ readonly strict: "Strict";
357
+ };
358
+ readonly selectAll: "Select all";
359
+ readonly clear: "Clear";
360
+ };
361
+ readonly toc: {
362
+ readonly search: "Search...";
363
+ };
364
+ readonly collections: {
365
+ readonly sorting: {
366
+ readonly noSorting: "No sorting";
367
+ readonly toggleDirection: "Toggle sorting direction";
368
+ readonly sortBy: "Sort by";
369
+ };
370
+ readonly grouping: {
371
+ readonly noGrouping: "No grouping";
372
+ readonly groupBy: "Group by";
373
+ readonly toggleDirection: "Toggle direction";
374
+ };
375
+ readonly actions: {
376
+ readonly actions: "Actions";
377
+ };
378
+ readonly visualizations: {
379
+ readonly table: "Table view";
380
+ readonly card: "Card view";
381
+ readonly list: "List view";
382
+ readonly kanban: "Kanban view";
383
+ readonly pagination: {
384
+ readonly of: "of";
385
+ };
386
+ readonly settings: "{{visualizationName}} settings";
387
+ readonly reset: "Reset to default";
388
+ };
389
+ readonly table: {
390
+ readonly settings: {
391
+ readonly showAllColumns: "Show all";
392
+ readonly hideAllColumns: "Hide all";
393
+ };
394
+ };
395
+ readonly itemsCount: "items";
396
+ readonly emptyStates: {
397
+ readonly noData: {
398
+ readonly title: "No data";
399
+ readonly description: "No data available";
400
+ };
401
+ readonly noResults: {
402
+ readonly title: "No results";
403
+ readonly description: "No results found try another search or clear the filters";
404
+ readonly clearFilters: "Clear filters";
405
+ };
406
+ readonly error: {
407
+ readonly title: "Error";
408
+ readonly description: "An error occurred while loading the data";
409
+ readonly retry: "Retry";
410
+ };
411
+ };
412
+ readonly summaries: {
413
+ readonly types: {
414
+ readonly sum: "sum";
415
+ };
416
+ };
417
+ };
418
+ readonly shortcut: "Shortcut";
419
+ readonly date: {
420
+ readonly from: "From";
421
+ readonly to: "To";
422
+ readonly none: "None";
423
+ readonly date: "Date";
424
+ readonly custom: "Custom period";
425
+ readonly selectDate: "Select Date";
426
+ readonly compareTo: "Compare to";
427
+ readonly presets: {
428
+ readonly last7Days: "Last 7 days";
429
+ readonly last30Days: "Last 30 days";
430
+ readonly last3Months: "Last 3 months";
431
+ readonly last6Months: "Last 6 months";
432
+ readonly lastYear: "Last year";
433
+ readonly last3Years: "Last 3 years";
434
+ readonly last100Years: "Last 100 years";
435
+ };
436
+ readonly range: "Range";
437
+ readonly selectedBy: "Selected by";
438
+ readonly groups: {
439
+ readonly today: "Today";
440
+ readonly yesterday: "Yesterday";
441
+ readonly lastWeek: "Last week";
442
+ readonly lastMonth: "Last month";
443
+ readonly other: "Other";
444
+ };
445
+ readonly granularities: {
446
+ readonly day: {
447
+ readonly currentDate: "Today";
448
+ readonly label: "Day";
449
+ };
450
+ readonly week: {
451
+ readonly currentDate: "This week";
452
+ readonly label: "Week";
453
+ readonly long: "Week of {{day}} {{month}} {{year}}";
454
+ readonly longSingular: "Week of {{date}}";
455
+ readonly longPlural: "Weeks of {{date}}";
456
+ };
457
+ readonly month: {
458
+ readonly currentDate: "This month";
459
+ readonly label: "Month";
460
+ };
461
+ readonly quarter: {
462
+ readonly currentDate: "This quarter";
463
+ readonly label: "Quarter";
464
+ };
465
+ readonly halfyear: {
466
+ readonly currentDate: "This half year";
467
+ readonly label: "Half year";
468
+ };
469
+ readonly year: {
470
+ readonly currentDate: "This year";
471
+ readonly label: "Year";
472
+ };
473
+ readonly range: {
474
+ readonly currentDate: "Today";
475
+ readonly label: "Range";
476
+ };
477
+ };
478
+ readonly month: {
479
+ readonly january: "January";
480
+ readonly february: "February";
481
+ readonly march: "March";
482
+ readonly april: "April";
483
+ readonly may: "May";
484
+ readonly june: "June";
485
+ readonly july: "July";
486
+ readonly august: "August";
487
+ readonly september: "September";
488
+ readonly october: "October";
489
+ readonly november: "November";
490
+ readonly december: "December";
491
+ };
492
+ };
493
+ readonly favorites: {
494
+ readonly favorites: "Favorites";
495
+ readonly remove: "Remove favorite";
496
+ };
497
+ readonly notifications: "Notifications";
498
+ readonly ai: {
499
+ readonly openChat: "Open Chat with One AI";
500
+ readonly closeChat: "Close Chat with One AI";
501
+ readonly startNewChat: "Start new chat";
502
+ readonly scrollToBottom: "Scroll to bottom";
503
+ readonly welcome: "Ask or create with One";
504
+ readonly defaultInitialMessage: "How can I help you today?";
505
+ readonly inputPlaceholder: "Ask about time, people, or company info and a lot of other things...";
506
+ readonly stopAnswerGeneration: "Stop generating";
507
+ readonly sendMessage: "Send message";
508
+ readonly thoughtsGroupTitle: "Reflection";
509
+ readonly resourcesGroupTitle: "Resources";
510
+ readonly thinking: "Thinking...";
511
+ readonly exportTable: "Download table";
512
+ readonly generatedTableFilename: "OneGeneratedTable";
513
+ readonly feedbackModal: {
514
+ readonly positive: {
515
+ readonly title: "What did you like about this response?";
516
+ readonly label: "Your feedback helps us make Factorial AI better";
517
+ readonly placeholder: "Share what worked well";
518
+ };
519
+ readonly negative: {
520
+ readonly title: "What could have been better?";
521
+ readonly label: "Your feedback helps us improve future answers";
522
+ readonly placeholder: "Share what didn’t work";
523
+ };
524
+ };
525
+ readonly ask: "Ask One";
526
+ };
527
+ readonly select: {
528
+ readonly noResults: "No results found";
529
+ readonly loadingMore: "Loading...";
530
+ };
531
+ readonly numberInput: {
532
+ readonly between: "It should be between {{min}} and {{max}}";
533
+ readonly greaterThan: "It should be greater than {{min}}";
534
+ readonly lessThan: "It should be less than {{max}}";
535
+ };
536
+ readonly coCreationForm: {
537
+ readonly actions: {
538
+ readonly actions: "Actions";
539
+ readonly duplicateQuestion: "Duplicate question";
540
+ readonly deleteQuestion: "Delete question";
541
+ readonly duplicateSection: "Duplicate section";
542
+ readonly deleteSection: "Delete section";
543
+ };
544
+ readonly questionTypes: {
545
+ readonly section: "Section";
546
+ readonly rating: "Rating";
547
+ readonly multipleChoice: "Multiple choice";
548
+ readonly singleChoice: "Single choice";
549
+ readonly text: "Text";
550
+ readonly longText: "Long text";
551
+ readonly numeric: "Numeric";
552
+ readonly link: "Link";
553
+ readonly date: "Date";
554
+ };
555
+ readonly selectQuestion: {
556
+ readonly addOption: "Add option";
557
+ readonly newOption: "New option {{number}}";
558
+ readonly markAsCorrect: "Mark as correct";
559
+ readonly remove: "Remove";
560
+ readonly correct: "Correct";
561
+ readonly optionPlaceholder: "Type anything you want here...";
562
+ };
563
+ readonly answer: {
564
+ readonly label: "Answer";
565
+ readonly placeholder: "Respondent's answer";
566
+ };
567
+ readonly labels: {
568
+ readonly applyingChanges: "Applying changes";
569
+ readonly endOfSection: "End of section";
570
+ readonly title: "Title";
571
+ readonly titlePlaceholder: "Question title";
572
+ readonly description: "Description";
573
+ readonly questionDescriptionPlaceholder: "Describe the question in a few words";
574
+ readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
575
+ readonly required: "Required";
576
+ readonly questionType: "Question type";
577
+ readonly questionOptions: "Question options";
578
+ readonly actions: "Actions";
579
+ readonly sectionTitlePlaceholder: "Section title";
580
+ };
581
+ };
582
+ };
583
+
584
+ export declare const HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: HILActionConfirmationProps) => JSX_2.Element;
585
+
586
+ export declare type HILActionConfirmationProps = {
587
+ text?: string;
588
+ confirmationText: string;
589
+ onConfirm: () => void;
590
+ cancelText: string;
591
+ onCancel: () => void;
592
+ };
593
+
594
+ export declare function I18nProvider({ children, translations, }: I18nProviderProps): JSX.Element;
595
+
596
+ export declare interface I18nProviderProps {
597
+ children: ReactNode;
598
+ translations: TranslationsType;
599
+ }
600
+
601
+ declare type IconType = ForwardRefExoticComponent<SVGProps<SVGSVGElement> & RefAttributes<SVGSVGElement> & {
602
+ animate?: "normal" | "animate";
603
+ }>;
604
+
605
+ declare type Join<T extends string[], D extends string> = T extends [] ? never : T extends [infer F] ? F : T extends [infer F, ...infer R] ? F extends string ? `${F}${D}${Join<Extract<R, string[]>, D>}` : never : string;
606
+
607
+ declare type PathsToStringProps<T> = T extends string ? [] : {
608
+ [K in Extract<keyof T, string>]: [K, ...PathsToStringProps<T[K]>];
609
+ }[Extract<keyof T, string>];
610
+
611
+ declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
612
+
613
+ declare type TranslationShape<T> = {
614
+ [K in keyof T]: T[K] extends string ? string : T[K] extends Record<string, string | Record<string, unknown>> ? TranslationShape<T[K]> : never;
615
+ };
616
+
617
+ declare type TranslationShape_2<T> = {
618
+ [K in keyof T]: T[K] extends string ? string : T[K] extends Record<string, string | Record<string, unknown>> ? TranslationShape_2<T[K]> : never;
619
+ };
620
+
621
+ export declare type TranslationsType = TranslationShape_2<typeof defaultTranslations>;
622
+
623
+ export declare function useAiChat(): AiChatProviderReturnValue;
624
+
625
+ export declare function useAiChatTranslations(): AiChatTranslations;
626
+
627
+ export declare function useI18n(): TranslationsType & {
628
+ t: (key: TranslationKey, args?: Record<string, string | number>) => string;
629
+ };
630
+
631
+ export declare type WelcomeScreenSuggestion = {
632
+ icon: IconType;
633
+ message: string;
634
+ prompt?: string;
635
+ };
636
+
637
+ export { }
638
+
639
+
640
+ declare global {
641
+ interface Window {
642
+ XRay: {
643
+ enable: (filter?: ComponentTypes[]) => void;
644
+ disable: () => void;
645
+ };
646
+ }
647
+ }
648
+
649
+
650
+ declare module "@tiptap/core" {
651
+ interface Commands<ReturnType> {
652
+ aiBlock: {
653
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
654
+ };
655
+ }
656
+ }
657
+
658
+
659
+ declare module "@tiptap/core" {
660
+ interface Commands<ReturnType> {
661
+ liveCompanion: {
662
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
663
+ };
664
+ }
665
+ }
666
+
667
+
668
+ declare module "@tiptap/core" {
669
+ interface Commands<ReturnType> {
670
+ transcript: {
671
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
672
+ };
673
+ }
674
+ }
675
+
676
+ declare module "gridstack" {
677
+ interface GridStackWidget {
678
+ id?: string;
679
+ allowedSizes?: Array<{
680
+ w: number;
681
+ h: number;
682
+ }>;
683
+ meta?: Record<string, unknown>;
684
+ }
685
+ interface GridStackNode {
686
+ allowedSizes?: Array<{
687
+ w: number;
688
+ h: number;
689
+ }>;
690
+ }
691
+ }
692
+
693
+
694
+ declare module "@tiptap/core" {
695
+ interface Commands<ReturnType> {
696
+ moodTracker: {
697
+ insertMoodTracker: (data: MoodTrackerData, config?: MoodTrackerConfig) => ReturnType;
698
+ };
699
+ }
700
+ }
701
+
702
+
703
+ declare namespace Calendar {
704
+ var displayName: string;
705
+ }