@jay-framework/aiditor 0.16.3 → 0.16.4
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,331 @@
|
|
|
1
|
+
import {JayElement, RenderElement, HTMLElementCollectionProxy, HTMLElementProxy, RenderElementOptions, JayContract} from "@jay-framework/runtime";
|
|
2
|
+
|
|
3
|
+
import './page.css';
|
|
4
|
+
|
|
5
|
+
export interface ChunkOfPageViewState {
|
|
6
|
+
text: string,
|
|
7
|
+
cssClass: string,
|
|
8
|
+
filePath: string,
|
|
9
|
+
toolName: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PageSelectOptionOfPageViewState {
|
|
13
|
+
url: string,
|
|
14
|
+
label: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PreviewPathOptionOfPageViewState {
|
|
18
|
+
path: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface VisualPointDisplayItemOfPageViewState {
|
|
22
|
+
id: string,
|
|
23
|
+
leftPct: number,
|
|
24
|
+
topPct: number,
|
|
25
|
+
indexLabel: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface VisualAreaDisplayItemOfPageViewState {
|
|
29
|
+
id: string,
|
|
30
|
+
leftPct: number,
|
|
31
|
+
topPct: number,
|
|
32
|
+
widthPct: number,
|
|
33
|
+
heightPct: number,
|
|
34
|
+
indexLabel: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface VisualArrowDisplayItemOfPageViewState {
|
|
38
|
+
id: string,
|
|
39
|
+
x1Pct: number,
|
|
40
|
+
y1Pct: number,
|
|
41
|
+
x2Pct: number,
|
|
42
|
+
y2Pct: number
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface VisualArrowPinItemOfPageViewState {
|
|
46
|
+
id: string,
|
|
47
|
+
leftPct: number,
|
|
48
|
+
topPct: number,
|
|
49
|
+
indexLabel: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface AttachmentChipOfVisualAnnotationRowOfPageViewState {
|
|
53
|
+
key: string,
|
|
54
|
+
name: string,
|
|
55
|
+
thumbUrl: string,
|
|
56
|
+
annotationId: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface VisualAnnotationRowOfPageViewState {
|
|
60
|
+
id: string,
|
|
61
|
+
kindLabel: string,
|
|
62
|
+
instruction: string,
|
|
63
|
+
runDisabled: boolean,
|
|
64
|
+
leftPct: number,
|
|
65
|
+
topPct: number,
|
|
66
|
+
popoverFlipX: boolean,
|
|
67
|
+
popoverFlipY: boolean,
|
|
68
|
+
attachmentChips: Array<AttachmentChipOfVisualAnnotationRowOfPageViewState>
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface AttachmentChipOfRecordingDraftUiOfPageViewState {
|
|
72
|
+
key: string,
|
|
73
|
+
name: string,
|
|
74
|
+
thumbUrl: string,
|
|
75
|
+
annotationId: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface RecordingDraftUiOfPageViewState {
|
|
79
|
+
id: string,
|
|
80
|
+
kindLabel: string,
|
|
81
|
+
instruction: string,
|
|
82
|
+
leftPct: number,
|
|
83
|
+
topPct: number,
|
|
84
|
+
popoverFlipX: boolean,
|
|
85
|
+
popoverFlipY: boolean,
|
|
86
|
+
attachmentChips: Array<AttachmentChipOfRecordingDraftUiOfPageViewState>
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface RecordingDraftAttachmentChipOfPageViewState {
|
|
90
|
+
key: string,
|
|
91
|
+
name: string,
|
|
92
|
+
thumbUrl: string,
|
|
93
|
+
annotationId: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface VideoPointDisplayItemOfPageViewState {
|
|
97
|
+
id: string,
|
|
98
|
+
leftPct: number,
|
|
99
|
+
topPct: number,
|
|
100
|
+
indexLabel: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface VideoAreaDisplayItemOfPageViewState {
|
|
104
|
+
id: string,
|
|
105
|
+
leftPct: number,
|
|
106
|
+
topPct: number,
|
|
107
|
+
widthPct: number,
|
|
108
|
+
heightPct: number,
|
|
109
|
+
indexLabel: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface VideoArrowDisplayItemOfPageViewState {
|
|
113
|
+
id: string,
|
|
114
|
+
x1Pct: number,
|
|
115
|
+
y1Pct: number,
|
|
116
|
+
x2Pct: number,
|
|
117
|
+
y2Pct: number
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface VideoArrowPinItemOfPageViewState {
|
|
121
|
+
id: string,
|
|
122
|
+
leftPct: number,
|
|
123
|
+
topPct: number,
|
|
124
|
+
indexLabel: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface AttachmentChipOfVideoAnnotationRowOfPageViewState {
|
|
128
|
+
key: string,
|
|
129
|
+
name: string,
|
|
130
|
+
thumbUrl: string,
|
|
131
|
+
annotationId: string
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface VideoAnnotationRowOfPageViewState {
|
|
135
|
+
id: string,
|
|
136
|
+
kindLabel: string,
|
|
137
|
+
instruction: string,
|
|
138
|
+
runDisabled: boolean,
|
|
139
|
+
leftPct: number,
|
|
140
|
+
topPct: number,
|
|
141
|
+
popoverFlipX: boolean,
|
|
142
|
+
popoverFlipY: boolean,
|
|
143
|
+
attachmentChips: Array<AttachmentChipOfVideoAnnotationRowOfPageViewState>
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface VideoTimelineMarkerOfPageViewState {
|
|
147
|
+
key: string,
|
|
148
|
+
timeSec: number,
|
|
149
|
+
leftPct: number,
|
|
150
|
+
label: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface PageViewState {
|
|
154
|
+
isBootstrapping: boolean,
|
|
155
|
+
showBootstrapError: boolean,
|
|
156
|
+
bootstrapErrorText: string,
|
|
157
|
+
canRetryBootstrap: boolean,
|
|
158
|
+
isMainVisible: boolean,
|
|
159
|
+
projectName: string,
|
|
160
|
+
notes: string,
|
|
161
|
+
hasImage: boolean,
|
|
162
|
+
isRunning: boolean,
|
|
163
|
+
chunks: Array<ChunkOfPageViewState>,
|
|
164
|
+
hasChunks: boolean,
|
|
165
|
+
outputEmpty: boolean,
|
|
166
|
+
pageSelectOptions: Array<PageSelectOptionOfPageViewState>,
|
|
167
|
+
selectedRouteSelectValue: string,
|
|
168
|
+
hasPages: boolean,
|
|
169
|
+
isPreviewMode: boolean,
|
|
170
|
+
previewUrlBar: string,
|
|
171
|
+
previewLoading: boolean,
|
|
172
|
+
paramsLoadingHint: string,
|
|
173
|
+
previewError: string,
|
|
174
|
+
showPathSelect: boolean,
|
|
175
|
+
previewPathOptions: Array<PreviewPathOptionOfPageViewState>,
|
|
176
|
+
selectedPreviewPath: string,
|
|
177
|
+
showPreviewIframe: boolean,
|
|
178
|
+
previewSrc: string,
|
|
179
|
+
showOutputChunks: boolean,
|
|
180
|
+
showOutputEmpty: boolean,
|
|
181
|
+
outputEmptyHint: string,
|
|
182
|
+
bottomPanelClass: string,
|
|
183
|
+
bottomPanelToggleGlyph: string,
|
|
184
|
+
showBottomPanelRunning: boolean,
|
|
185
|
+
showFilePreview: boolean,
|
|
186
|
+
filePreviewPath: string,
|
|
187
|
+
filePreviewContent: string,
|
|
188
|
+
filePreviewIsImage: boolean,
|
|
189
|
+
filePreviewImageSrc: string,
|
|
190
|
+
filePreviewLoading: boolean,
|
|
191
|
+
showVisualToolbar: boolean,
|
|
192
|
+
visualToolNoneOn: boolean,
|
|
193
|
+
visualToolPointOn: boolean,
|
|
194
|
+
visualToolAreaOn: boolean,
|
|
195
|
+
visualToolArrowOn: boolean,
|
|
196
|
+
visualPointDisplayItems: Array<VisualPointDisplayItemOfPageViewState>,
|
|
197
|
+
showVisualPointMarkers: boolean,
|
|
198
|
+
visualAreaDisplayItems: Array<VisualAreaDisplayItemOfPageViewState>,
|
|
199
|
+
showVisualAreaItems: boolean,
|
|
200
|
+
areaDraftLeftPct: number,
|
|
201
|
+
areaDraftTopPct: number,
|
|
202
|
+
areaDraftWidthPct: number,
|
|
203
|
+
areaDraftHeightPct: number,
|
|
204
|
+
showAreaDraftRect: boolean,
|
|
205
|
+
visualArrowDisplayItems: Array<VisualArrowDisplayItemOfPageViewState>,
|
|
206
|
+
visualArrowPinItems: Array<VisualArrowPinItemOfPageViewState>,
|
|
207
|
+
hasVisualArrowLines: boolean,
|
|
208
|
+
showArrowPending: boolean,
|
|
209
|
+
arrowPendingLeftPct: number,
|
|
210
|
+
arrowPendingTopPct: number,
|
|
211
|
+
visualAnnotationRows: Array<VisualAnnotationRowOfPageViewState>,
|
|
212
|
+
recordingDraftUi: RecordingDraftUiOfPageViewState,
|
|
213
|
+
recordingDraftAttachmentChips: Array<RecordingDraftAttachmentChipOfPageViewState>,
|
|
214
|
+
showRecordingDraftPopover: boolean,
|
|
215
|
+
showVisualAnnotationsPanel: boolean,
|
|
216
|
+
showVisualSubmitError: boolean,
|
|
217
|
+
visualSubmitError: string,
|
|
218
|
+
visualOverlayPointerNone: boolean,
|
|
219
|
+
showVideoRecordUi: boolean,
|
|
220
|
+
isVideoRecording: boolean,
|
|
221
|
+
videoRecordLabel: string,
|
|
222
|
+
videoRecordDisabled: boolean,
|
|
223
|
+
freezeDisabled: boolean,
|
|
224
|
+
showVideoReviewModal: boolean,
|
|
225
|
+
videoReviewPreparing: boolean,
|
|
226
|
+
videoReviewReady: boolean,
|
|
227
|
+
videoReviewError: boolean,
|
|
228
|
+
videoReviewErrorText: string,
|
|
229
|
+
videoReviewObjectUrl: string,
|
|
230
|
+
videoModalToolNoneOn: boolean,
|
|
231
|
+
videoModalToolPointOn: boolean,
|
|
232
|
+
videoModalToolAreaOn: boolean,
|
|
233
|
+
videoModalToolArrowOn: boolean,
|
|
234
|
+
videoPointDisplayItems: Array<VideoPointDisplayItemOfPageViewState>,
|
|
235
|
+
showVideoPointMarkers: boolean,
|
|
236
|
+
videoAreaDisplayItems: Array<VideoAreaDisplayItemOfPageViewState>,
|
|
237
|
+
showVideoAreaItems: boolean,
|
|
238
|
+
videoAreaDraftLeftPct: number,
|
|
239
|
+
videoAreaDraftTopPct: number,
|
|
240
|
+
videoAreaDraftWidthPct: number,
|
|
241
|
+
videoAreaDraftHeightPct: number,
|
|
242
|
+
showVideoAreaDraftRect: boolean,
|
|
243
|
+
videoArrowDisplayItems: Array<VideoArrowDisplayItemOfPageViewState>,
|
|
244
|
+
videoArrowPinItems: Array<VideoArrowPinItemOfPageViewState>,
|
|
245
|
+
hasVideoArrowLines: boolean,
|
|
246
|
+
showVideoArrowPending: boolean,
|
|
247
|
+
videoArrowPendingLeftPct: number,
|
|
248
|
+
videoArrowPendingTopPct: number,
|
|
249
|
+
videoAnnotationRows: Array<VideoAnnotationRowOfPageViewState>,
|
|
250
|
+
showVideoAnnotationsPanel: boolean,
|
|
251
|
+
videoModalOverlayPointerNone: boolean,
|
|
252
|
+
videoSubmitError: string,
|
|
253
|
+
showVideoSubmitError: boolean,
|
|
254
|
+
videoSubmitProgress: string,
|
|
255
|
+
showVideoSubmitProgress: boolean,
|
|
256
|
+
videoTimelineMarkers: Array<VideoTimelineMarkerOfPageViewState>,
|
|
257
|
+
showVideoAnnotationPopoversAtPlayhead: boolean,
|
|
258
|
+
videoTimeLabel: string,
|
|
259
|
+
videoSendDisabled: boolean,
|
|
260
|
+
videoPlayPauseGlyph: string,
|
|
261
|
+
breakpointDesktopOn: boolean,
|
|
262
|
+
breakpointTabletOn: boolean,
|
|
263
|
+
breakpointMobileOn: boolean
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
export interface PageElementRefs {
|
|
268
|
+
retryBootstrapBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
269
|
+
pageRouteSelect: HTMLElementProxy<PageViewState, HTMLSelectElement>,
|
|
270
|
+
previewPathSelect: HTMLElementProxy<PageViewState, HTMLSelectElement>,
|
|
271
|
+
breakpointDesktopBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
272
|
+
breakpointTabletBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
273
|
+
breakpointMobileBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
274
|
+
visualToolNoneBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
275
|
+
visualToolPointBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
276
|
+
visualToolAreaBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
277
|
+
visualToolArrowBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
278
|
+
videoRecordBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
279
|
+
freezeBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
280
|
+
visualAttachFileInput: HTMLElementProxy<PageViewState, HTMLInputElement>,
|
|
281
|
+
previewIframe: HTMLElementProxy<PageViewState, HTMLIFrameElement>,
|
|
282
|
+
visualOverlay: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
283
|
+
recordingDraftPopover: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
284
|
+
previewCaptureRoot: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
285
|
+
bottomPanelResize: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
286
|
+
bottomPanelClearBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
287
|
+
bottomPanelToggleBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
288
|
+
bottomPanelHeader: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
289
|
+
outputScroll: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
290
|
+
filePreviewCloseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
291
|
+
filePreviewBackdrop: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
292
|
+
videoReviewCloseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
293
|
+
videoModalToolNoneBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
294
|
+
videoModalToolPointBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
295
|
+
videoModalToolAreaBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
296
|
+
videoModalToolArrowBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
297
|
+
videoReviewAttachFileInput: HTMLElementProxy<PageViewState, HTMLInputElement>,
|
|
298
|
+
videoReviewPlayer: HTMLElementProxy<PageViewState, HTMLVideoElement>,
|
|
299
|
+
videoReviewOverlay: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
300
|
+
videoReviewCaptureRoot: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
301
|
+
videoPlayPauseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
302
|
+
videoTimeline: HTMLElementProxy<PageViewState, HTMLInputElement>,
|
|
303
|
+
videoReviewTimelineWrap: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
304
|
+
videoReviewDiscardBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
305
|
+
videoReviewSendBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
|
|
306
|
+
videoReviewBackdrop: HTMLElementProxy<PageViewState, HTMLDivElement>,
|
|
307
|
+
visualAnnotationRows: {
|
|
308
|
+
annotationRow: HTMLElementCollectionProxy<VisualAnnotationRowOfPageViewState, HTMLDivElement>
|
|
309
|
+
},
|
|
310
|
+
videoAnnotationRows: {
|
|
311
|
+
videoAnnotationRow: HTMLElementCollectionProxy<VideoAnnotationRowOfPageViewState, HTMLDivElement>
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export type PageSlowViewState = {};
|
|
316
|
+
export type PageFastViewState = PageViewState;
|
|
317
|
+
export type PageInteractiveViewState = PageViewState;
|
|
318
|
+
|
|
319
|
+
export type PageElement = JayElement<PageViewState, PageElementRefs>
|
|
320
|
+
export type PageElementRender = RenderElement<PageViewState, PageElementRefs, PageElement>
|
|
321
|
+
export type PageElementPreRender = [PageElementRefs, PageElementRender]
|
|
322
|
+
export type PageContract = JayContract<
|
|
323
|
+
PageViewState,
|
|
324
|
+
PageElementRefs,
|
|
325
|
+
PageSlowViewState,
|
|
326
|
+
PageFastViewState,
|
|
327
|
+
PageInteractiveViewState
|
|
328
|
+
>;
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
export declare function render(options?: RenderElementOptions): PageElementPreRender
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/aiditor",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AIditor — visual AI-driven code editor plugin for Jay Framework",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
45
|
-
"@jay-framework/fullstack-component": "^0.16.
|
|
46
|
-
"@jay-framework/stack-client-runtime": "^0.16.
|
|
47
|
-
"@jay-framework/stack-server-runtime": "^0.16.
|
|
45
|
+
"@jay-framework/fullstack-component": "^0.16.4",
|
|
46
|
+
"@jay-framework/stack-client-runtime": "^0.16.4",
|
|
47
|
+
"@jay-framework/stack-server-runtime": "^0.16.4",
|
|
48
48
|
"busboy": "^1.6.0",
|
|
49
49
|
"html2canvas": "^1.4.1",
|
|
50
50
|
"zod": "^4.3.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@jay-framework/compiler-jay-stack": "^0.16.
|
|
54
|
-
"@jay-framework/jay-cli": "^0.16.
|
|
53
|
+
"@jay-framework/compiler-jay-stack": "^0.16.4",
|
|
54
|
+
"@jay-framework/jay-cli": "^0.16.4",
|
|
55
55
|
"@types/busboy": "^1",
|
|
56
56
|
"rimraf": "^5.0.5",
|
|
57
57
|
"tsup": "^8.5.1",
|