@vibes.diy/vibe-types 2.2.9 → 2.2.11
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/img-gen.d.ts +91 -0
- package/img-gen.js +2 -0
- package/img-gen.js.map +1 -0
- package/index.d.ts +87 -20
- package/index.js +62 -17
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/img-vibes.d.ts +0 -102
- package/img-vibes.js +0 -2
- package/img-vibes.js.map +0 -1
package/img-gen.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Database, DocWithId } from "@vibes.diy/vibe-runtime";
|
|
3
|
+
export interface FileMeta {
|
|
4
|
+
readonly uploadId: string;
|
|
5
|
+
readonly type: string;
|
|
6
|
+
readonly size: number;
|
|
7
|
+
readonly lastModified?: number;
|
|
8
|
+
readonly url?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ImgGenInputImage = Blob | {
|
|
11
|
+
readonly type?: string;
|
|
12
|
+
readonly size?: number;
|
|
13
|
+
readonly lastModified?: number;
|
|
14
|
+
readonly file: () => Promise<Blob>;
|
|
15
|
+
};
|
|
16
|
+
export interface VersionInfo {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly created: number;
|
|
19
|
+
readonly promptKey?: string;
|
|
20
|
+
readonly model?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PromptEntry {
|
|
23
|
+
readonly text: string;
|
|
24
|
+
readonly created: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ImageDocumentPlain {
|
|
27
|
+
readonly _rev?: string;
|
|
28
|
+
readonly type: "image";
|
|
29
|
+
readonly prompt?: string;
|
|
30
|
+
readonly prompts?: Record<string, PromptEntry>;
|
|
31
|
+
readonly created: number;
|
|
32
|
+
readonly currentVersion: number;
|
|
33
|
+
readonly versions: VersionInfo[];
|
|
34
|
+
readonly currentPromptKey: string;
|
|
35
|
+
readonly _files?: Record<string, FileMeta>;
|
|
36
|
+
}
|
|
37
|
+
export type ImageDocument = ImageDocumentPlain;
|
|
38
|
+
export type PartialImageDocument = DocWithId<Partial<ImageDocumentPlain>>;
|
|
39
|
+
export interface ImgGenOptions {
|
|
40
|
+
readonly size?: string;
|
|
41
|
+
readonly quality?: string;
|
|
42
|
+
readonly model?: string;
|
|
43
|
+
readonly style?: string;
|
|
44
|
+
readonly debug?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface UseImgGenOptions {
|
|
47
|
+
readonly prompt?: string;
|
|
48
|
+
readonly _id?: string;
|
|
49
|
+
readonly _rev?: string;
|
|
50
|
+
readonly database?: string | Database;
|
|
51
|
+
readonly options?: Partial<ImgGenOptions>;
|
|
52
|
+
readonly generationId?: string;
|
|
53
|
+
readonly skip?: boolean;
|
|
54
|
+
readonly inputImage?: ImgGenInputImage;
|
|
55
|
+
readonly model?: string;
|
|
56
|
+
readonly editedPrompt?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface UseImgGenResult {
|
|
59
|
+
readonly loading: boolean;
|
|
60
|
+
readonly progress: number;
|
|
61
|
+
readonly error?: Error | null;
|
|
62
|
+
readonly document?: PartialImageDocument | null;
|
|
63
|
+
}
|
|
64
|
+
export interface ImgGenClasses {
|
|
65
|
+
readonly root: string;
|
|
66
|
+
readonly container: string;
|
|
67
|
+
readonly image: string;
|
|
68
|
+
readonly placeholder: string;
|
|
69
|
+
readonly error: string;
|
|
70
|
+
readonly controls: string;
|
|
71
|
+
readonly button: string;
|
|
72
|
+
readonly prompt: string;
|
|
73
|
+
}
|
|
74
|
+
export interface ImgGenProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onError" | "className"> {
|
|
75
|
+
readonly prompt?: string;
|
|
76
|
+
readonly _id?: string;
|
|
77
|
+
readonly className?: string;
|
|
78
|
+
readonly alt?: string;
|
|
79
|
+
readonly images?: File[];
|
|
80
|
+
readonly options?: ImgGenOptions;
|
|
81
|
+
readonly database?: string | Database;
|
|
82
|
+
readonly model?: string;
|
|
83
|
+
readonly showControls?: boolean;
|
|
84
|
+
readonly style?: React.CSSProperties;
|
|
85
|
+
readonly onComplete?: () => void;
|
|
86
|
+
readonly onError?: (error: Error) => void;
|
|
87
|
+
readonly onDelete?: (id: string) => void;
|
|
88
|
+
readonly onPromptEdit?: (id: string, newPrompt: string) => void;
|
|
89
|
+
readonly classes?: Partial<ImgGenClasses>;
|
|
90
|
+
readonly debug?: boolean;
|
|
91
|
+
}
|
package/img-gen.js
ADDED
package/img-gen.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"img-gen.js","sourceRoot":"","sources":["../jsr/img-gen.ts"],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./img-
|
|
1
|
+
export * from "./img-gen.js";
|
|
2
2
|
export declare const ReqVibeRegisterFPDb: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3
3
|
tid: string;
|
|
4
4
|
type: "vibe.req.register.fpdb";
|
|
@@ -266,46 +266,63 @@ export type ResCallAI = typeof ResCallAI.infer;
|
|
|
266
266
|
export declare function isResCallAI(x: unknown): x is ResCallAI;
|
|
267
267
|
export declare function isResOkCallAI(x: unknown): x is ResOkCallAI;
|
|
268
268
|
export declare function isResErrorCallAI(x: unknown): x is ResErrorCallAI;
|
|
269
|
-
export declare const
|
|
269
|
+
export declare const ReqImgGen: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
270
270
|
tid: string;
|
|
271
|
-
type: "vibe.req.
|
|
271
|
+
type: "vibe.req.imgGen";
|
|
272
272
|
userSlug: string;
|
|
273
273
|
appSlug: string;
|
|
274
274
|
prompt: string;
|
|
275
275
|
inputImageBase64?: string | undefined;
|
|
276
276
|
model?: string | undefined;
|
|
277
277
|
}, {}>;
|
|
278
|
-
export type
|
|
279
|
-
export declare function
|
|
280
|
-
export declare const
|
|
278
|
+
export type ReqImgGen = typeof ReqImgGen.infer;
|
|
279
|
+
export declare function isReqImgGen(x: unknown): x is ReqImgGen;
|
|
280
|
+
export declare const ImgGenFile: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
281
|
+
uploadId: string;
|
|
282
|
+
cid: string;
|
|
283
|
+
mimeType: string;
|
|
284
|
+
size: number;
|
|
285
|
+
}, {}>;
|
|
286
|
+
export type ImgGenFile = typeof ImgGenFile.infer;
|
|
287
|
+
export declare const ResOkImgGen: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
281
288
|
tid: string;
|
|
282
|
-
type: "vibe.res.
|
|
289
|
+
type: "vibe.res.imgGen";
|
|
283
290
|
status: "ok";
|
|
284
|
-
|
|
291
|
+
files: {
|
|
292
|
+
uploadId: string;
|
|
293
|
+
cid: string;
|
|
294
|
+
mimeType: string;
|
|
295
|
+
size: number;
|
|
296
|
+
}[];
|
|
285
297
|
}, {}>;
|
|
286
|
-
export type
|
|
287
|
-
export declare const
|
|
298
|
+
export type ResOkImgGen = typeof ResOkImgGen.infer;
|
|
299
|
+
export declare const ResErrorImgGen: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
288
300
|
tid: string;
|
|
289
|
-
type: "vibe.res.
|
|
301
|
+
type: "vibe.res.imgGen";
|
|
290
302
|
status: "error";
|
|
291
303
|
message: string;
|
|
292
304
|
}, {}>;
|
|
293
|
-
export type
|
|
294
|
-
declare const
|
|
305
|
+
export type ResErrorImgGen = typeof ResErrorImgGen.infer;
|
|
306
|
+
declare const ResImgGen: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
295
307
|
tid: string;
|
|
296
|
-
type: "vibe.res.
|
|
308
|
+
type: "vibe.res.imgGen";
|
|
297
309
|
status: "ok";
|
|
298
|
-
|
|
310
|
+
files: {
|
|
311
|
+
uploadId: string;
|
|
312
|
+
cid: string;
|
|
313
|
+
mimeType: string;
|
|
314
|
+
size: number;
|
|
315
|
+
}[];
|
|
299
316
|
} | {
|
|
300
317
|
tid: string;
|
|
301
|
-
type: "vibe.res.
|
|
318
|
+
type: "vibe.res.imgGen";
|
|
302
319
|
status: "error";
|
|
303
320
|
message: string;
|
|
304
321
|
}, {}>;
|
|
305
|
-
export type
|
|
306
|
-
export declare function
|
|
307
|
-
export declare function
|
|
308
|
-
export declare function
|
|
322
|
+
export type ResImgGen = typeof ResImgGen.infer;
|
|
323
|
+
export declare function isResImgGen(x: unknown): x is ResImgGen;
|
|
324
|
+
export declare function isResOkImgGen(x: unknown): x is ResOkImgGen;
|
|
325
|
+
export declare function isResErrorImgGen(x: unknown): x is ResErrorImgGen;
|
|
309
326
|
export { type ResPutDoc, type ResGetDoc, type ResGetDocNotFound, type ResQueryDocs, type ResDeleteDoc, type ResSubscribeDocs, type ResListDbNames, type EvtDocChanged, isResPutDoc, isResGetDoc, isResGetDocNotFound, isResQueryDocs, isResDeleteDoc, isResSubscribeDocs, isResListDbNames, isEvtDocChanged, } from "@vibes.diy/api-types";
|
|
310
327
|
export declare const ReqPutDoc: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
311
328
|
tid: string;
|
|
@@ -364,3 +381,53 @@ export declare const ReqListDbNames: import("arktype/internal/variants/object.ts
|
|
|
364
381
|
}, {}>;
|
|
365
382
|
export type ReqListDbNames = typeof ReqListDbNames.infer;
|
|
366
383
|
export declare function isReqListDbNames(x: unknown): x is ReqListDbNames;
|
|
384
|
+
export interface ReqVibePutAsset {
|
|
385
|
+
readonly tid: string;
|
|
386
|
+
readonly type: "vibe.req.putAsset";
|
|
387
|
+
readonly userSlug: string;
|
|
388
|
+
readonly appSlug: string;
|
|
389
|
+
readonly blob: Blob;
|
|
390
|
+
readonly mimeType?: string;
|
|
391
|
+
}
|
|
392
|
+
export declare function isReqVibePutAsset(x: unknown): x is ReqVibePutAsset;
|
|
393
|
+
export declare const ResOkVibePutAsset: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
394
|
+
tid: string;
|
|
395
|
+
type: "vibe.res.putAsset";
|
|
396
|
+
status: "ok";
|
|
397
|
+
cid: string;
|
|
398
|
+
getURL: string;
|
|
399
|
+
size: number;
|
|
400
|
+
uploadId: string;
|
|
401
|
+
}, {}>;
|
|
402
|
+
export type ResOkVibePutAsset = typeof ResOkVibePutAsset.infer;
|
|
403
|
+
export declare const ResErrorVibePutAsset: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
404
|
+
tid: string;
|
|
405
|
+
type: "vibe.res.putAsset";
|
|
406
|
+
status: "error";
|
|
407
|
+
message: string;
|
|
408
|
+
}, {}>;
|
|
409
|
+
export type ResErrorVibePutAsset = typeof ResErrorVibePutAsset.infer;
|
|
410
|
+
declare const ResVibePutAsset: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
411
|
+
tid: string;
|
|
412
|
+
type: "vibe.res.putAsset";
|
|
413
|
+
status: "ok";
|
|
414
|
+
cid: string;
|
|
415
|
+
getURL: string;
|
|
416
|
+
size: number;
|
|
417
|
+
uploadId: string;
|
|
418
|
+
} | {
|
|
419
|
+
tid: string;
|
|
420
|
+
type: "vibe.res.putAsset";
|
|
421
|
+
status: "error";
|
|
422
|
+
message: string;
|
|
423
|
+
}, {}>;
|
|
424
|
+
export type ResVibePutAsset = typeof ResVibePutAsset.infer;
|
|
425
|
+
export declare function isResVibePutAsset(x: unknown): x is ResVibePutAsset;
|
|
426
|
+
export declare function isResOkVibePutAsset(x: unknown): x is ResOkVibePutAsset;
|
|
427
|
+
export declare const EvtVibePutAssetProgress: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
428
|
+
tid: string;
|
|
429
|
+
type: "vibe.evt.putAsset.progress";
|
|
430
|
+
bytes: number;
|
|
431
|
+
}, {}>;
|
|
432
|
+
export type EvtVibePutAssetProgress = typeof EvtVibePutAssetProgress.infer;
|
|
433
|
+
export declare function isEvtVibePutAssetProgress(x: unknown): x is EvtVibePutAssetProgress;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FPCloudClaim } from "@vibes.diy/api-types";
|
|
2
2
|
import { type } from "arktype";
|
|
3
|
-
export * from "./img-
|
|
3
|
+
export * from "./img-gen.js";
|
|
4
4
|
const Base = type({
|
|
5
5
|
tid: "string",
|
|
6
6
|
});
|
|
@@ -165,36 +165,42 @@ export function isResOkCallAI(x) {
|
|
|
165
165
|
export function isResErrorCallAI(x) {
|
|
166
166
|
return !(ResErrorCallAI(x) instanceof type.errors);
|
|
167
167
|
}
|
|
168
|
-
export const
|
|
169
|
-
type: "'vibe.req.
|
|
168
|
+
export const ReqImgGen = type({
|
|
169
|
+
type: "'vibe.req.imgGen'",
|
|
170
170
|
userSlug: "string",
|
|
171
171
|
appSlug: "string",
|
|
172
172
|
prompt: "string",
|
|
173
173
|
"inputImageBase64?": "string",
|
|
174
174
|
"model?": "string",
|
|
175
175
|
}).and(Base);
|
|
176
|
-
export function
|
|
177
|
-
return !(
|
|
176
|
+
export function isReqImgGen(x) {
|
|
177
|
+
return !(ReqImgGen(x) instanceof type.errors);
|
|
178
178
|
}
|
|
179
|
-
export const
|
|
180
|
-
|
|
179
|
+
export const ImgGenFile = type({
|
|
180
|
+
uploadId: "string",
|
|
181
|
+
cid: "string",
|
|
182
|
+
mimeType: "string",
|
|
183
|
+
size: "number",
|
|
184
|
+
});
|
|
185
|
+
export const ResOkImgGen = type({
|
|
186
|
+
type: "'vibe.res.imgGen'",
|
|
181
187
|
status: "'ok'",
|
|
182
|
-
|
|
188
|
+
files: ImgGenFile.array(),
|
|
183
189
|
}).and(Base);
|
|
184
|
-
export const
|
|
185
|
-
type: "'vibe.res.
|
|
190
|
+
export const ResErrorImgGen = type({
|
|
191
|
+
type: "'vibe.res.imgGen'",
|
|
186
192
|
status: "'error'",
|
|
187
193
|
message: "string",
|
|
188
194
|
}).and(Base);
|
|
189
|
-
const
|
|
190
|
-
export function
|
|
191
|
-
return !(
|
|
195
|
+
const ResImgGen = ResOkImgGen.or(ResErrorImgGen);
|
|
196
|
+
export function isResImgGen(x) {
|
|
197
|
+
return !(ResImgGen(x) instanceof type.errors);
|
|
192
198
|
}
|
|
193
|
-
export function
|
|
194
|
-
return !(
|
|
199
|
+
export function isResOkImgGen(x) {
|
|
200
|
+
return !(ResOkImgGen(x) instanceof type.errors);
|
|
195
201
|
}
|
|
196
|
-
export function
|
|
197
|
-
return !(
|
|
202
|
+
export function isResErrorImgGen(x) {
|
|
203
|
+
return !(ResErrorImgGen(x) instanceof type.errors);
|
|
198
204
|
}
|
|
199
205
|
export { isResPutDoc, isResGetDoc, isResGetDocNotFound, isResQueryDocs, isResDeleteDoc, isResSubscribeDocs, isResListDbNames, isEvtDocChanged, } from "@vibes.diy/api-types";
|
|
200
206
|
export const ReqPutDoc = type({
|
|
@@ -254,4 +260,43 @@ export const ReqListDbNames = type({
|
|
|
254
260
|
export function isReqListDbNames(x) {
|
|
255
261
|
return !(ReqListDbNames(x) instanceof type.errors);
|
|
256
262
|
}
|
|
263
|
+
export function isReqVibePutAsset(x) {
|
|
264
|
+
if (!x || typeof x !== "object")
|
|
265
|
+
return false;
|
|
266
|
+
const r = x;
|
|
267
|
+
return (r.type === "vibe.req.putAsset" &&
|
|
268
|
+
typeof r.tid === "string" &&
|
|
269
|
+
typeof r.userSlug === "string" &&
|
|
270
|
+
typeof r.appSlug === "string" &&
|
|
271
|
+
typeof Blob !== "undefined" &&
|
|
272
|
+
r.blob instanceof Blob &&
|
|
273
|
+
(r.mimeType === undefined || typeof r.mimeType === "string"));
|
|
274
|
+
}
|
|
275
|
+
export const ResOkVibePutAsset = type({
|
|
276
|
+
type: "'vibe.res.putAsset'",
|
|
277
|
+
status: "'ok'",
|
|
278
|
+
cid: "string",
|
|
279
|
+
getURL: "string",
|
|
280
|
+
size: "number",
|
|
281
|
+
uploadId: "string",
|
|
282
|
+
}).and(Base);
|
|
283
|
+
export const ResErrorVibePutAsset = type({
|
|
284
|
+
type: "'vibe.res.putAsset'",
|
|
285
|
+
status: "'error'",
|
|
286
|
+
message: "string",
|
|
287
|
+
}).and(Base);
|
|
288
|
+
const ResVibePutAsset = ResOkVibePutAsset.or(ResErrorVibePutAsset);
|
|
289
|
+
export function isResVibePutAsset(x) {
|
|
290
|
+
return !(ResVibePutAsset(x) instanceof type.errors);
|
|
291
|
+
}
|
|
292
|
+
export function isResOkVibePutAsset(x) {
|
|
293
|
+
return !(ResOkVibePutAsset(x) instanceof type.errors);
|
|
294
|
+
}
|
|
295
|
+
export const EvtVibePutAssetProgress = type({
|
|
296
|
+
type: "'vibe.evt.putAsset.progress'",
|
|
297
|
+
bytes: "number",
|
|
298
|
+
}).and(Base);
|
|
299
|
+
export function isEvtVibePutAssetProgress(x) {
|
|
300
|
+
return !(EvtVibePutAssetProgress(x) instanceof type.errors);
|
|
301
|
+
}
|
|
257
302
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,cAAc,cAAc,CAAC;AAE7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAChB,GAAG,EAAE,QAAQ;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;IACtC,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,QAAQ;CACf,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAIb,MAAM,UAAU,qBAAqB,CAAC,CAAU;IAC9C,OAAO,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,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AE,qBAAqB;IAC3B,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAIb,MAAM,eAAe,GAAG,iBAAiB,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC;AAGnE,MAAM,UAAU,iBAAiB,CAAC,CAAU;IAC1C,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,CAAU;IAC5C,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAMD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;IAC1C,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,QAAQ;CAChB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAIb,MAAM,UAAU,yBAAyB,CAAC,CAAU;IAClD,OAAO,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/vibe-types",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@adviser/cement": "~0.5.34",
|
|
11
|
-
"@vibes.diy/api-types": "2.2.
|
|
12
|
-
"@vibes.diy/base": "2.2.
|
|
13
|
-
"@vibes.diy/vibe-runtime": "2.2.
|
|
11
|
+
"@vibes.diy/api-types": "2.2.11",
|
|
12
|
+
"@vibes.diy/base": "2.2.11",
|
|
13
|
+
"@vibes.diy/vibe-runtime": "2.2.11",
|
|
14
14
|
"arktype": "~2.2.0",
|
|
15
15
|
"react": "~19.2.5",
|
|
16
16
|
"react-dom": "~19.2.5"
|
package/img-vibes.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { Database, DocWithId } from "@vibes.diy/vibe-runtime";
|
|
3
|
-
export interface VersionInfo {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly created: number;
|
|
6
|
-
readonly promptKey?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface PromptEntry {
|
|
9
|
-
readonly text: string;
|
|
10
|
-
readonly created: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ImageDocumentPlain {
|
|
13
|
-
readonly _rev?: string;
|
|
14
|
-
readonly type: "image";
|
|
15
|
-
readonly prompt?: string;
|
|
16
|
-
readonly prompts?: Record<string, PromptEntry>;
|
|
17
|
-
readonly created: number;
|
|
18
|
-
readonly currentVersion: number;
|
|
19
|
-
readonly versions: VersionInfo[];
|
|
20
|
-
readonly currentPromptKey: string;
|
|
21
|
-
}
|
|
22
|
-
export type PartialImageDocument = DocWithId<Partial<ImageDocumentPlain>>;
|
|
23
|
-
export interface ImgVibesOptions {
|
|
24
|
-
readonly style?: string;
|
|
25
|
-
readonly images?: File[];
|
|
26
|
-
readonly imgUrl?: string;
|
|
27
|
-
readonly endpoint?: string;
|
|
28
|
-
readonly debug?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface UseImgVibesResult {
|
|
31
|
-
readonly imageData?: string | null;
|
|
32
|
-
readonly loading: boolean;
|
|
33
|
-
readonly progress: number;
|
|
34
|
-
readonly error?: Error | null;
|
|
35
|
-
readonly size?: {
|
|
36
|
-
readonly width: number;
|
|
37
|
-
readonly height: number;
|
|
38
|
-
};
|
|
39
|
-
readonly document?: PartialImageDocument | null;
|
|
40
|
-
}
|
|
41
|
-
export interface ImgVibesClasses {
|
|
42
|
-
readonly root: string;
|
|
43
|
-
readonly container: string;
|
|
44
|
-
readonly image: string;
|
|
45
|
-
readonly overlay: string;
|
|
46
|
-
readonly progress: string;
|
|
47
|
-
readonly placeholder: string;
|
|
48
|
-
readonly error: string;
|
|
49
|
-
readonly controls: string;
|
|
50
|
-
readonly button: string;
|
|
51
|
-
readonly prompt: string;
|
|
52
|
-
readonly deleteOverlay: string;
|
|
53
|
-
readonly dropZone: string;
|
|
54
|
-
readonly uploadWaiting: string;
|
|
55
|
-
}
|
|
56
|
-
export interface UseImgVibesOptions {
|
|
57
|
-
readonly prompt: string;
|
|
58
|
-
readonly _id: string;
|
|
59
|
-
readonly _rev?: string;
|
|
60
|
-
readonly database: string | Database;
|
|
61
|
-
readonly options: Partial<ImgVibesOptions>;
|
|
62
|
-
readonly generationId: string;
|
|
63
|
-
readonly skip: boolean;
|
|
64
|
-
readonly type?: string;
|
|
65
|
-
readonly currentVersion?: number;
|
|
66
|
-
readonly versions?: {
|
|
67
|
-
readonly id: string;
|
|
68
|
-
readonly created: number;
|
|
69
|
-
readonly promptKey: string;
|
|
70
|
-
}[];
|
|
71
|
-
readonly _files?: Record<string, File>;
|
|
72
|
-
readonly prompts?: Record<string, PromptEntry>;
|
|
73
|
-
readonly editedPrompt: string;
|
|
74
|
-
}
|
|
75
|
-
export interface UseImgVibesResult {
|
|
76
|
-
readonly imageData?: string | null;
|
|
77
|
-
readonly loading: boolean;
|
|
78
|
-
readonly progress: number;
|
|
79
|
-
readonly error?: Error | null;
|
|
80
|
-
readonly size?: {
|
|
81
|
-
readonly width: number;
|
|
82
|
-
readonly height: number;
|
|
83
|
-
};
|
|
84
|
-
readonly document?: PartialImageDocument | null;
|
|
85
|
-
}
|
|
86
|
-
export interface ImgVibesProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onError" | "className"> {
|
|
87
|
-
readonly prompt: string;
|
|
88
|
-
readonly _id: string;
|
|
89
|
-
readonly className: string;
|
|
90
|
-
readonly alt: string;
|
|
91
|
-
readonly images: File[];
|
|
92
|
-
readonly options: ImgVibesOptions;
|
|
93
|
-
readonly database: string | Database;
|
|
94
|
-
readonly useImgVibes: (options: Partial<UseImgVibesOptions>) => UseImgVibesResult;
|
|
95
|
-
readonly onComplete: () => void;
|
|
96
|
-
readonly onError: (error: Error) => void;
|
|
97
|
-
readonly onDelete: (id: string) => void;
|
|
98
|
-
readonly onPromptEdit: (id: string, newPrompt: string) => void;
|
|
99
|
-
readonly classes: ImgVibesClasses;
|
|
100
|
-
readonly onDocumentCreated: (docId: string) => void;
|
|
101
|
-
readonly debug: boolean;
|
|
102
|
-
}
|
package/img-vibes.js
DELETED
package/img-vibes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"img-vibes.js","sourceRoot":"","sources":["../jsr/img-vibes.ts"],"names":[],"mappings":""}
|