rivet-design 0.18.1 → 0.18.2
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/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +2 -2
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +669 -234
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +2 -0
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/profiles.d.ts.map +1 -1
- package/dist/routes/library/profiles.js +3 -4
- package/dist/routes/library/profiles.js.map +1 -1
- package/dist/services/VariantHistoryService.js +1 -1
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +38 -29
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +13 -1
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +117 -6
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfilePreparation.d.ts +6 -1
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -1
- package/dist/services/profiles/ProfilePreparation.js +8 -4
- package/dist/services/profiles/ProfilePreparation.js.map +1 -1
- package/dist/services/profiles/profileAccount.d.ts.map +1 -1
- package/dist/services/profiles/profileAccount.js +3 -1
- package/dist/services/profiles/profileAccount.js.map +1 -1
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/services/profiles/profileContext.d.ts.map +1 -1
- package/dist/services/profiles/profileContext.js +28 -5
- package/dist/services/profiles/profileContext.js.map +1 -1
- package/dist/types/design-profile.d.ts +108 -0
- package/dist/types/design-profile.d.ts.map +1 -1
- package/dist/types/design-profile.js +44 -1
- package/dist/types/design-profile.js.map +1 -1
- package/dist/types/variant-reference.d.ts +19 -4
- package/dist/types/variant-reference.d.ts.map +1 -1
- package/dist/types/variant-reference.js +20 -8
- package/dist/types/variant-reference.js.map +1 -1
- package/package.json +1 -1
- package/src/ui/dist/assets/{LibraryApp-BzcRWsfQ.js → LibraryApp-NAzSe5xc.js} +5 -5
- package/src/ui/dist/assets/main-D7LJLJwW.js +438 -0
- package/src/ui/dist/assets/main-f2uWt6ZY.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/main-CHCea2Fu.css +0 -1
- package/src/ui/dist/assets/main-DXqdB6Oi.js +0 -438
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PROFILE_CANDIDATE_IMAGE_LIMIT = 6;
|
|
3
|
+
export declare const PROFILE_UPLOAD_COUNT = 100;
|
|
4
|
+
export declare const PROFILE_UPLOAD_BYTES: number;
|
|
5
|
+
export declare const PROFILE_UPLOAD_ENCODED_BYTES: number;
|
|
6
|
+
export declare const PROFILE_PREPARATION_BODY_BYTES: number;
|
|
3
7
|
export declare const RemoteProfileProviderSchema: z.ZodEnum<["pinterest", "arena", "x"]>;
|
|
4
8
|
export declare const isRemoteProfileProvider: (value: string) => value is z.infer<typeof RemoteProfileProviderSchema>;
|
|
5
9
|
export declare const ProfileProviderSchema: z.ZodEnum<["image", "pinterest", "arena", "x", "text", "pdf", "variant"]>;
|
|
@@ -266,6 +270,7 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
266
270
|
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
267
271
|
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
268
272
|
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
273
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
269
274
|
}, "strip", z.ZodTypeAny, {
|
|
270
275
|
mode: "auto" | "off";
|
|
271
276
|
instruction: string;
|
|
@@ -274,6 +279,7 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
274
279
|
excludedSourceIds: string[];
|
|
275
280
|
excludedReferenceIds: string[];
|
|
276
281
|
excludedMediaHashes: string[];
|
|
282
|
+
suppliedInputHashes?: string[] | undefined;
|
|
277
283
|
}, {
|
|
278
284
|
instruction: string;
|
|
279
285
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -282,9 +288,74 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
282
288
|
excludedSourceIds?: string[] | undefined;
|
|
283
289
|
excludedReferenceIds?: string[] | undefined;
|
|
284
290
|
excludedMediaHashes?: string[] | undefined;
|
|
291
|
+
suppliedInputHashes?: string[] | undefined;
|
|
285
292
|
}>;
|
|
286
293
|
export type ProfilePreparation = z.infer<typeof ProfilePreparationSchema>;
|
|
294
|
+
export declare const ProfilePreparationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
295
|
+
requestId: z.ZodString;
|
|
296
|
+
instruction: z.ZodString;
|
|
297
|
+
runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
|
|
298
|
+
mode: z.ZodDefault<z.ZodEnum<["auto", "off"]>>;
|
|
299
|
+
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
300
|
+
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
301
|
+
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
302
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
303
|
+
} & {
|
|
304
|
+
uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
mode: "auto" | "off";
|
|
307
|
+
instruction: string;
|
|
308
|
+
runtime: "claude" | "codex" | "cursor";
|
|
309
|
+
requestId: string;
|
|
310
|
+
excludedSourceIds: string[];
|
|
311
|
+
excludedReferenceIds: string[];
|
|
312
|
+
excludedMediaHashes: string[];
|
|
313
|
+
suppliedInputHashes?: string[] | undefined;
|
|
314
|
+
uploads?: string[] | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
instruction: string;
|
|
317
|
+
runtime: "claude" | "codex" | "cursor";
|
|
318
|
+
requestId: string;
|
|
319
|
+
mode?: "auto" | "off" | undefined;
|
|
320
|
+
excludedSourceIds?: string[] | undefined;
|
|
321
|
+
excludedReferenceIds?: string[] | undefined;
|
|
322
|
+
excludedMediaHashes?: string[] | undefined;
|
|
323
|
+
suppliedInputHashes?: string[] | undefined;
|
|
324
|
+
uploads?: string[] | undefined;
|
|
325
|
+
}>, {
|
|
326
|
+
mode: "auto" | "off";
|
|
327
|
+
instruction: string;
|
|
328
|
+
runtime: "claude" | "codex" | "cursor";
|
|
329
|
+
requestId: string;
|
|
330
|
+
excludedSourceIds: string[];
|
|
331
|
+
excludedReferenceIds: string[];
|
|
332
|
+
excludedMediaHashes: string[];
|
|
333
|
+
suppliedInputHashes?: string[] | undefined;
|
|
334
|
+
uploads?: string[] | undefined;
|
|
335
|
+
}, {
|
|
336
|
+
instruction: string;
|
|
337
|
+
runtime: "claude" | "codex" | "cursor";
|
|
338
|
+
requestId: string;
|
|
339
|
+
mode?: "auto" | "off" | undefined;
|
|
340
|
+
excludedSourceIds?: string[] | undefined;
|
|
341
|
+
excludedReferenceIds?: string[] | undefined;
|
|
342
|
+
excludedMediaHashes?: string[] | undefined;
|
|
343
|
+
suppliedInputHashes?: string[] | undefined;
|
|
344
|
+
uploads?: string[] | undefined;
|
|
345
|
+
}>;
|
|
346
|
+
export type ProfilePreparationRequest = z.infer<typeof ProfilePreparationRequestSchema>;
|
|
287
347
|
export declare const ProfilePacketSchema: z.ZodObject<{
|
|
348
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
|
|
349
|
+
id: string;
|
|
350
|
+
title: string;
|
|
351
|
+
image?: {
|
|
352
|
+
hash: string;
|
|
353
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
354
|
+
} | undefined;
|
|
355
|
+
url?: string | undefined;
|
|
356
|
+
reason?: string | undefined;
|
|
357
|
+
}, unknown>, "many">>;
|
|
358
|
+
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
288
359
|
usage: z.ZodOptional<z.ZodObject<{
|
|
289
360
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
290
361
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -407,6 +478,17 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
407
478
|
cachedInputTokens?: number | undefined;
|
|
408
479
|
allocation?: "equal-share" | undefined;
|
|
409
480
|
} | undefined;
|
|
481
|
+
suppliedReferences?: {
|
|
482
|
+
id: string;
|
|
483
|
+
title: string;
|
|
484
|
+
image?: {
|
|
485
|
+
hash: string;
|
|
486
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
487
|
+
} | undefined;
|
|
488
|
+
url?: string | undefined;
|
|
489
|
+
reason?: string | undefined;
|
|
490
|
+
}[] | undefined;
|
|
491
|
+
failedUploadCount?: number | undefined;
|
|
410
492
|
}, {
|
|
411
493
|
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
412
494
|
requestId: string;
|
|
@@ -440,10 +522,23 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
440
522
|
cachedInputTokens?: number | undefined;
|
|
441
523
|
allocation?: "equal-share" | undefined;
|
|
442
524
|
} | undefined;
|
|
525
|
+
suppliedReferences?: unknown[] | undefined;
|
|
526
|
+
failedUploadCount?: number | undefined;
|
|
443
527
|
}>;
|
|
444
528
|
export type ProfilePacket = z.infer<typeof ProfilePacketSchema>;
|
|
445
529
|
export declare const ProfileContextSchema: z.ZodObject<{
|
|
446
530
|
status: z.ZodEnum<["selected", "empty", "off", "unavailable", "timeout"]>;
|
|
531
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
|
|
532
|
+
id: string;
|
|
533
|
+
title: string;
|
|
534
|
+
image?: {
|
|
535
|
+
hash: string;
|
|
536
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
537
|
+
} | undefined;
|
|
538
|
+
url?: string | undefined;
|
|
539
|
+
reason?: string | undefined;
|
|
540
|
+
}, unknown>, "many">>;
|
|
541
|
+
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
447
542
|
images: z.ZodArray<z.ZodObject<{
|
|
448
543
|
path: z.ZodString;
|
|
449
544
|
hash: z.ZodString;
|
|
@@ -538,6 +633,17 @@ export declare const ProfileContextSchema: z.ZodObject<{
|
|
|
538
633
|
path: string;
|
|
539
634
|
}[];
|
|
540
635
|
durationMs: number;
|
|
636
|
+
suppliedReferences?: {
|
|
637
|
+
id: string;
|
|
638
|
+
title: string;
|
|
639
|
+
image?: {
|
|
640
|
+
hash: string;
|
|
641
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
642
|
+
} | undefined;
|
|
643
|
+
url?: string | undefined;
|
|
644
|
+
reason?: string | undefined;
|
|
645
|
+
}[] | undefined;
|
|
646
|
+
failedUploadCount?: number | undefined;
|
|
541
647
|
}, {
|
|
542
648
|
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
543
649
|
requestId: string;
|
|
@@ -562,6 +668,8 @@ export declare const ProfileContextSchema: z.ZodObject<{
|
|
|
562
668
|
path: string;
|
|
563
669
|
}[];
|
|
564
670
|
durationMs: number;
|
|
671
|
+
suppliedReferences?: unknown[] | undefined;
|
|
672
|
+
failedUploadCount?: number | undefined;
|
|
565
673
|
}>;
|
|
566
674
|
export type ProfileContext = z.infer<typeof ProfileContextSchema>;
|
|
567
675
|
export interface ProfileContextResult extends ProfileContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-profile.d.ts","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"design-profile.d.ts","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,eAAO,MAAM,oBAAoB,QAAmB,CAAC;AACrD,eAAO,MAAM,4BAA4B,QACA,CAAC;AAC1C,eAAO,MAAM,8BAA8B,QACgB,CAAC;AAE5D,eAAO,MAAM,2BAA2B,wCAAsC,CAAC;AAC/E,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,KACZ,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CACA,CAAC;AAEvD,eAAO,MAAM,qBAAqB,2EAMhC,CAAC;AACH,eAAO,MAAM,oBAAoB,0CAAwC,CAAC;AAC1E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAM9B,CAAC;AACZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAI5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,wBAA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,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAYF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileContextSchema = exports.ProfilePacketSchema = exports.ProfilePreparationSchema = exports.ProfileObservationSchema = exports.ProfileUsageSchema = exports.ProfileReferenceInputSchema = exports.ProfileSourceInputSchema = exports.ProfileMediaSchema = exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema = exports.ProfileRuntimeSchema = exports.ProfileProviderSchema = exports.isRemoteProfileProvider = exports.RemoteProfileProviderSchema = exports.PROFILE_CANDIDATE_IMAGE_LIMIT = void 0;
|
|
3
|
+
exports.ProfileContextSchema = exports.ProfilePacketSchema = exports.ProfilePreparationRequestSchema = exports.ProfilePreparationSchema = exports.ProfileObservationSchema = exports.ProfileUsageSchema = exports.ProfileReferenceInputSchema = exports.ProfileSourceInputSchema = exports.ProfileMediaSchema = exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema = exports.ProfileRuntimeSchema = exports.ProfileProviderSchema = exports.isRemoteProfileProvider = exports.RemoteProfileProviderSchema = exports.PROFILE_PREPARATION_BODY_BYTES = exports.PROFILE_UPLOAD_ENCODED_BYTES = exports.PROFILE_UPLOAD_BYTES = exports.PROFILE_UPLOAD_COUNT = exports.PROFILE_CANDIDATE_IMAGE_LIMIT = void 0;
|
|
4
|
+
const variant_reference_1 = require("./variant-reference");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
exports.PROFILE_CANDIDATE_IMAGE_LIMIT = 6;
|
|
7
|
+
exports.PROFILE_UPLOAD_COUNT = 100;
|
|
8
|
+
const DATA_URL_HEADER_LENGTH = 100;
|
|
9
|
+
const PREPARATION_METADATA_BYTES = 256 * 1024;
|
|
10
|
+
exports.PROFILE_UPLOAD_BYTES = 35 * 1024 * 1024;
|
|
11
|
+
exports.PROFILE_UPLOAD_ENCODED_BYTES = Math.ceil(exports.PROFILE_UPLOAD_BYTES / 3) * 4;
|
|
12
|
+
exports.PROFILE_PREPARATION_BODY_BYTES = exports.PROFILE_UPLOAD_ENCODED_BYTES + PREPARATION_METADATA_BYTES;
|
|
6
13
|
exports.RemoteProfileProviderSchema = zod_1.z.enum(['pinterest', 'arena', 'x']);
|
|
7
14
|
const isRemoteProfileProvider = (value) => exports.RemoteProfileProviderSchema.safeParse(value).success;
|
|
8
15
|
exports.isRemoteProfileProvider = isRemoteProfileProvider;
|
|
@@ -82,8 +89,42 @@ exports.ProfilePreparationSchema = zod_1.z.object({
|
|
|
82
89
|
excludedSourceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
83
90
|
excludedReferenceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
84
91
|
excludedMediaHashes: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
92
|
+
suppliedInputHashes: zod_1.z
|
|
93
|
+
.array(zod_1.z.string().regex(/^[a-f0-9]{64}$/))
|
|
94
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
95
|
+
.optional(),
|
|
96
|
+
});
|
|
97
|
+
exports.ProfilePreparationRequestSchema = exports.ProfilePreparationSchema.extend({
|
|
98
|
+
uploads: zod_1.z
|
|
99
|
+
.array(zod_1.z.string().max(exports.PROFILE_UPLOAD_ENCODED_BYTES + DATA_URL_HEADER_LENGTH))
|
|
100
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
101
|
+
.optional(),
|
|
102
|
+
}).refine((input) => (input.uploads ?? []).reduce((size, image) => size + image.length, 0) <=
|
|
103
|
+
exports.PROFILE_UPLOAD_ENCODED_BYTES +
|
|
104
|
+
exports.PROFILE_UPLOAD_COUNT * DATA_URL_HEADER_LENGTH, 'Supplied images exceed the profile upload budget');
|
|
105
|
+
const suppliedReferenceSchema = zod_1.z
|
|
106
|
+
.unknown()
|
|
107
|
+
.transform((value, context) => {
|
|
108
|
+
const parsed = variant_reference_1.variantReferenceSchema.safeParse(value);
|
|
109
|
+
if (parsed.success)
|
|
110
|
+
return parsed.data;
|
|
111
|
+
context.addIssue({
|
|
112
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
113
|
+
message: 'Invalid supplied image reference',
|
|
114
|
+
});
|
|
115
|
+
return zod_1.z.NEVER;
|
|
85
116
|
});
|
|
86
117
|
exports.ProfilePacketSchema = zod_1.z.object({
|
|
118
|
+
suppliedReferences: zod_1.z
|
|
119
|
+
.array(suppliedReferenceSchema)
|
|
120
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
121
|
+
.optional(),
|
|
122
|
+
failedUploadCount: zod_1.z
|
|
123
|
+
.number()
|
|
124
|
+
.int()
|
|
125
|
+
.min(0)
|
|
126
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
127
|
+
.optional(),
|
|
87
128
|
usage: exports.ProfileUsageSchema.optional(),
|
|
88
129
|
requestId: zod_1.z.string(),
|
|
89
130
|
status: zod_1.z.enum(['selected', 'empty', 'off', 'unavailable', 'timeout']),
|
|
@@ -116,6 +157,8 @@ exports.ProfilePacketSchema = zod_1.z.object({
|
|
|
116
157
|
});
|
|
117
158
|
exports.ProfileContextSchema = exports.ProfilePacketSchema.pick({
|
|
118
159
|
requestId: true,
|
|
160
|
+
suppliedReferences: true,
|
|
161
|
+
failedUploadCount: true,
|
|
119
162
|
status: true,
|
|
120
163
|
selected: true,
|
|
121
164
|
images: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-profile.js","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"design-profile.js","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":";;;AAAA,2DAG6B;AAC7B,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,CAAC,CAAC;AAClC,QAAA,oBAAoB,GAAG,GAAG,CAAC;AACxC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,0BAA0B,GAAG,GAAG,GAAG,IAAI,CAAC;AACjC,QAAA,oBAAoB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACxC,QAAA,4BAA4B,GACvC,IAAI,CAAC,IAAI,CAAC,4BAAoB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAC7B,QAAA,8BAA8B,GACzC,oCAA4B,GAAG,0BAA0B,CAAC;AAE/C,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAA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KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QACjC,OAAO,EAAE,8BAA8B,CAAC,QAAQ,EAAE;KACnD,CAAC,CACH;IACD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACjC,MAAM,EAAE,OAAC;SACN,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;QACxC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC;YACf,WAAW;YACX,YAAY;YACZ,YAAY;YACZ,WAAW;SACZ,CAAC;KACH,CAAC,CACH;SACA,GAAG,CAAC,qCAA6B,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,2BAAmB,CAAC,IAAI,CAAC;IAC3D,SAAS,EAAE,IAAI;IACf,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC,MAAM,CAAC;IACR,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACrC,QAAQ,EAAE,2BAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -10,10 +10,10 @@ export declare const referenceImageSchema: z.ZodObject<{
|
|
|
10
10
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11
11
|
}>;
|
|
12
12
|
export type ReferenceImageDescriptor = z.infer<typeof referenceImageSchema>;
|
|
13
|
-
export declare const variantReferenceSchema: z.ZodObject<{
|
|
13
|
+
export declare const variantReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
title: z.ZodString;
|
|
16
|
-
url: z.ZodEffects<z.ZodString, string, string
|
|
16
|
+
url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
17
17
|
reason: z.ZodOptional<z.ZodString>;
|
|
18
18
|
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
19
19
|
hash: z.ZodString;
|
|
@@ -27,18 +27,33 @@ export declare const variantReferenceSchema: z.ZodObject<{
|
|
|
27
27
|
}>>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
id: string;
|
|
30
|
-
url: string;
|
|
31
30
|
title: string;
|
|
32
31
|
image?: {
|
|
33
32
|
hash: string;
|
|
34
33
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
35
34
|
} | undefined;
|
|
35
|
+
url?: string | undefined;
|
|
36
36
|
reason?: string | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
id: string;
|
|
39
|
-
url: string;
|
|
40
39
|
title: string;
|
|
41
40
|
image?: unknown;
|
|
41
|
+
url?: string | undefined;
|
|
42
|
+
reason?: string | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
id: string;
|
|
45
|
+
title: string;
|
|
46
|
+
image?: {
|
|
47
|
+
hash: string;
|
|
48
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
49
|
+
} | undefined;
|
|
50
|
+
url?: string | undefined;
|
|
51
|
+
reason?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
id: string;
|
|
54
|
+
title: string;
|
|
55
|
+
image?: unknown;
|
|
56
|
+
url?: string | undefined;
|
|
42
57
|
reason?: string | undefined;
|
|
43
58
|
}>;
|
|
44
59
|
export type VariantReference = z.infer<typeof variantReferenceSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant-reference.d.ts","sourceRoot":"","sources":["../../src/types/variant-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"variant-reference.d.ts","sourceRoot":"","sources":["../../src/types/variant-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyB/B,CAAC;AAEL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,sBAAsB,GACjC,GAAG,QAAQ,KAAK,CAAC,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC,KAC/C,gBAAgB,EAAE,GAAG,SA+BvB,CAAC"}
|
|
@@ -12,7 +12,8 @@ exports.referenceImageSchema = v3_1.z.object({
|
|
|
12
12
|
'image/avif',
|
|
13
13
|
]),
|
|
14
14
|
});
|
|
15
|
-
exports.variantReferenceSchema = v3_1.z
|
|
15
|
+
exports.variantReferenceSchema = v3_1.z
|
|
16
|
+
.object({
|
|
16
17
|
id: v3_1.z.string().min(1),
|
|
17
18
|
title: v3_1.z.string().trim().min(1),
|
|
18
19
|
url: v3_1.z
|
|
@@ -28,9 +29,13 @@ exports.variantReferenceSchema = v3_1.z.object({
|
|
|
28
29
|
catch {
|
|
29
30
|
return false;
|
|
30
31
|
}
|
|
31
|
-
})
|
|
32
|
+
})
|
|
33
|
+
.optional(),
|
|
32
34
|
reason: v3_1.z.string().optional(),
|
|
33
35
|
image: exports.referenceImageSchema.optional().catch(undefined),
|
|
36
|
+
})
|
|
37
|
+
.refine((reference) => Boolean(reference.url || reference.image), {
|
|
38
|
+
message: 'A reference requires a public URL or an image',
|
|
34
39
|
});
|
|
35
40
|
const mergeVariantReferences = (...groups) => {
|
|
36
41
|
const references = [];
|
|
@@ -41,16 +46,23 @@ const mergeVariantReferences = (...groups) => {
|
|
|
41
46
|
if (!parsed.success)
|
|
42
47
|
continue;
|
|
43
48
|
const reference = parsed.data;
|
|
44
|
-
const url = new URL(reference.url).href;
|
|
45
|
-
if (ids.has(reference.id) || urls.has(url)) {
|
|
46
|
-
const existing = references.find((item) => item.
|
|
47
|
-
if (existing &&
|
|
49
|
+
const url = reference.url ? new URL(reference.url).href : undefined;
|
|
50
|
+
if (ids.has(reference.id) || (url && urls.has(url))) {
|
|
51
|
+
const existing = references.find((item) => item.url === url && (url !== undefined || item.id === reference.id));
|
|
52
|
+
if (existing &&
|
|
53
|
+
!existing.image &&
|
|
54
|
+
reference.image &&
|
|
55
|
+
(existing.id === reference.id || !ids.has(reference.id))) {
|
|
56
|
+
existing.id = reference.id;
|
|
48
57
|
existing.image = reference.image;
|
|
58
|
+
ids.add(reference.id);
|
|
59
|
+
}
|
|
49
60
|
continue;
|
|
50
61
|
}
|
|
51
|
-
references.push({ ...reference, url });
|
|
62
|
+
references.push({ ...reference, ...(url ? { url } : {}) });
|
|
52
63
|
ids.add(reference.id);
|
|
53
|
-
|
|
64
|
+
if (url)
|
|
65
|
+
urls.add(url);
|
|
54
66
|
}
|
|
55
67
|
return references.length ? references : undefined;
|
|
56
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant-reference.js","sourceRoot":"","sources":["../../src/types/variant-reference.ts"],"names":[],"mappings":";;;AAAA,+BAA2B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AAG,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,CAAC,CACtE,CAAC;YACF,IACE,QAAQ;gBACR,CAAC,QAAQ,CAAC,KAAK;gBACf,SAAS,CAAC,KAAK;gBACf,CAAC,QAAQ,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EACxD,CAAC;gBACD,QAAQ,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;gBAC3B,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;gBACjC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACxB,CAAC;YACD,SAAS;QACX,CAAC;QACD,UAAU,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC3D,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACtB,IAAI,GAAG;YAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC,CAAC;AAjCW,QAAA,sBAAsB,0BAiCjC"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var Ie=i=>{throw TypeError(i)};var ve=(i,t,r)=>t.has(i)||Ie("Cannot "+r);var l=(i,t,r)=>(ve(i,t,"read from private field"),r?r.call(i):t.get(i)),I=(i,t,r)=>t.has(i)?Ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,r),C=(i,t,r,n)=>(ve(i,t,"write to private field"),n?n.call(i,r):t.set(i,r),r),O=(i,t,r)=>(ve(i,t,"access private method"),r);import{S as $e,s as ze,h as Ae,g as Ze,n as ne,r as et,Q as Ue,u as me,a as tt,b as st,c as b,e as rt,d as it,f as nt,i as He,j as Me,k as at,l as ot,m as ct,o as pe,p as Ke,q as lt,t as e,B as Z,v as we,R as dt,T as ut,P as ht,C as mt,w as pt,X as ft,D as bt,x as xt,y as vt,z as wt,A as yt,E as jt,F as gt,G as kt,H as St,I as q,J as Te,K as ue,L as Pt,M as Nt,N as Ct,O as Rt,U as Et}from"./main-
|
|
2
|
-
* @license lucide-react v1.
|
|
1
|
+
var Ie=i=>{throw TypeError(i)};var ve=(i,t,r)=>t.has(i)||Ie("Cannot "+r);var l=(i,t,r)=>(ve(i,t,"read from private field"),r?r.call(i):t.get(i)),I=(i,t,r)=>t.has(i)?Ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,r),C=(i,t,r,n)=>(ve(i,t,"write to private field"),n?n.call(i,r):t.set(i,r),r),O=(i,t,r)=>(ve(i,t,"access private method"),r);import{S as $e,s as ze,h as Ae,g as Ze,n as ne,r as et,Q as Ue,u as me,a as tt,b as st,c as b,e as rt,d as it,f as nt,i as He,j as Me,k as at,l as ot,m as ct,o as pe,p as Ke,q as lt,t as e,B as Z,v as we,R as dt,T as ut,P as ht,C as mt,w as pt,X as ft,D as bt,x as xt,y as vt,z as wt,A as yt,E as jt,F as gt,G as kt,H as St,I as q,J as Te,K as ue,L as Pt,M as Nt,N as Ct,O as Rt,U as Et}from"./main-D7LJLJwW.js";var W,J,M,V,K,re,ye,Fe,_t=(Fe=class extends $e{constructor(t,r){super();I(this,K);I(this,W);I(this,J);I(this,M);I(this,V);C(this,W,t),this.setOptions(r),this.bindMethods(),O(this,K,re).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=l(this,W).defaultMutationOptions(t),ze(this.options,r)||l(this,W).getMutationCache().notify({type:"observerOptionsUpdated",mutation:l(this,M),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ae(r.mutationKey)!==Ae(this.options.mutationKey)?this.reset():((n=l(this,M))==null?void 0:n.state.status)==="pending"&&l(this,M).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&l(this,M)&&(l(this,M).addObserver(this),O(this,K,re).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=l(this,M))==null||t.removeObserver(this)}onMutationUpdate(t){O(this,K,re).call(this),O(this,K,ye).call(this,t)}getCurrentResult(){return l(this,J)}reset(){var t;(t=l(this,M))==null||t.removeObserver(this),C(this,M,void 0),O(this,K,re).call(this),O(this,K,ye).call(this)}mutate(t,r){var n;return C(this,V,r),(n=l(this,M))==null||n.removeObserver(this),C(this,M,l(this,W).getMutationCache().build(l(this,W),this.options)),l(this,M).addObserver(this),l(this,M).execute(t)}},W=new WeakMap,J=new WeakMap,M=new WeakMap,V=new WeakMap,K=new WeakSet,re=function(){var r;const t=((r=l(this,M))==null?void 0:r.state)??Ze();C(this,J,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ye=function(t){ne.batch(()=>{var r,n,c,o,s,d,w,k;if(l(this,V)&&this.hasListeners()){const S=l(this,J).variables,u=l(this,J).context,p={client:l(this,W),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(n=(r=l(this,V)).onSuccess)==null||n.call(r,t.data,S,u,p)}catch(v){Promise.reject(v)}try{(o=(c=l(this,V)).onSettled)==null||o.call(c,t.data,null,S,u,p)}catch(v){Promise.reject(v)}}else if((t==null?void 0:t.type)==="error"){try{(d=(s=l(this,V)).onError)==null||d.call(s,t.error,S,u,p)}catch(v){Promise.reject(v)}try{(k=(w=l(this,V)).onSettled)==null||k.call(w,void 0,t.error,S,u,p)}catch(v){Promise.reject(v)}}}this.listeners.forEach(S=>{S(l(this,J))})})},Fe);function Le(i,t){const r=new Set(t);return i.filter(n=>!r.has(n))}var ee,L,te,G,F,X,ae,oe,ce,le,E,je,ge,Be,ke,Se,Pe,Qe,Ot=(Qe=class extends $e{constructor(t,r,n){super();I(this,E);I(this,ee);I(this,L);I(this,te);I(this,G);I(this,F);I(this,X);I(this,ae);I(this,oe);I(this,ce);I(this,le,[]);C(this,ee,t),C(this,G,n),C(this,te,[]),C(this,F,[]),C(this,L,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&l(this,F).forEach(t=>{t.subscribe(r=>{O(this,E,Se).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,l(this,F).forEach(t=>{t.destroy()})}setQueries(t,r){C(this,te,t),C(this,G,r),ne.batch(()=>{const n=l(this,F),c=O(this,E,ke).call(this,l(this,te));c.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=c.map(u=>u.observer),s=o.map(u=>u.getCurrentResult()),d=n.length!==o.length,w=o.some((u,p)=>u!==n[p]),k=d||w,S=k?!0:s.some((u,p)=>{const v=l(this,L)[p];return!v||!ze(u,v)});!k&&!S||(k&&(C(this,le,c),C(this,F,o)),C(this,L,s),this.hasListeners()&&(k&&(Le(n,o).forEach(u=>{u.destroy()}),Le(o,n).forEach(u=>{u.subscribe(p=>{O(this,E,Se).call(this,u,p)})})),O(this,E,Pe).call(this)))})}getCurrentResult(){return l(this,L)}getQueries(){return l(this,F).map(t=>t.getCurrentQuery())}getObservers(){return l(this,F)}getOptimisticResult(t,r){const n=O(this,E,ke).call(this,t),c=n.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions)),o=n.map(s=>s.defaultedQueryOptions.queryHash);return[c,s=>O(this,E,ge).call(this,s??c,r,o),()=>O(this,E,je).call(this,c,n)]}},ee=new WeakMap,L=new WeakMap,te=new WeakMap,G=new WeakMap,F=new WeakMap,X=new WeakMap,ae=new WeakMap,oe=new WeakMap,ce=new WeakMap,le=new WeakMap,E=new WeakSet,je=function(t,r){const n=new Set;return r.map((c,o)=>{const s=t[o];return c.defaultedQueryOptions.notifyOnChangeProps?s:c.observer.trackResult(s,d=>{n.has(d)||(n.add(d),r.forEach(w=>{w.observer.trackProp(d)}))})})},ge=function(t,r,n){if(r){const c=l(this,ce),o=n!==void 0&&c!==void 0&&(c.length!==n.length||n.some((s,d)=>s!==c[d]));return(l(this,L)!==l(this,oe)||o||r!==l(this,ae))&&(C(this,ae,r),C(this,oe,l(this,L)),n!==void 0&&C(this,ce,n),C(this,X,et(l(this,X),r(t)))),l(this,X)}return t},Be=function(){var t;return!((t=l(this,G))!=null&&t.combine)||l(this,F).some((r,n)=>{var c;return r.options.suspense&&((c=l(this,L)[n])==null?void 0:c.data)===void 0})},ke=function(t){const r=new Map;l(this,F).forEach(c=>{const o=c.options.queryHash;if(!o)return;const s=r.get(o);s?s.push(c):r.set(o,[c])});const n=[];return t.forEach(c=>{var d;const o=l(this,ee).defaultQueryOptions(c),s=((d=r.get(o.queryHash))==null?void 0:d.shift())??new Ue(l(this,ee),o);n.push({defaultedQueryOptions:o,observer:s})}),n},Se=function(t,r){const n=l(this,F).indexOf(t);n!==-1&&(C(this,L,l(this,L).slice()),l(this,L)[n]=r,O(this,E,Pe).call(this))},Pe=function(){var t;if(this.hasListeners()){const r=O(this,E,Be).call(this),n=l(this,X),c=r?n:O(this,E,ge).call(this,O(this,E,je).call(this,l(this,L),l(this,le)),(t=l(this,G))==null?void 0:t.combine);(r||n!==c)&&ne.batch(()=>{this.listeners.forEach(o=>{o(l(this,L))})})}},Qe);function It({queries:i,...t},r){const n=me(),c=tt(),o=st(),s=t.subscribed!==!1,d=b.useMemo(()=>i.map(j=>{const g=n.defaultQueryOptions(j);return g._optimisticResults=c?"isRestoring":s?"optimistic":void 0,g}),[i,n,c,s]);d.forEach(j=>{rt(j);const g=n.getQueryCache().get(j.queryHash);it(j,o,g)}),nt(o);const[w]=b.useState(()=>new Ot(n,d,t)),[k,S,u]=w.getOptimisticResult(d,t.combine),p=!c&&s;b.useSyncExternalStore(b.useCallback(j=>p?w.subscribe(ne.batchCalls(j)):He,[w,p]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),b.useEffect(()=>{w.setQueries(d,t)},[d,t,w]);const v=k.some((j,g)=>Me(d[g],j))?k.flatMap((j,g)=>{const y=d[g];if(y&&Me(y,j)){const B=new Ue(n,y);return at(y,B,o)}return[]}):[];if(v.length>0)throw Promise.all(v);const R=k.find((j,g)=>{const y=d[g];return y&&ot({result:j,errorResetBoundary:o,throwOnError:y.throwOnError,query:n.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R)throw R.error;return S(u())}function ie(i,t){const r=me(),[n]=b.useState(()=>new _t(r,i));b.useEffect(()=>{n.setOptions(i)},[n,i]);const c=b.useSyncExternalStore(b.useCallback(s=>n.subscribe(ne.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=b.useCallback((...s)=>{n.mutate(s[0],s[1]).catch(He)},[n]);if(c.error&&ct(n.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:o,mutateAsync:c.mutate}}/**
|
|
2
|
+
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const We={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};We.node;const At=pe(We);/**
|
|
7
|
-
* @license lucide-react v1.
|
|
7
|
+
* @license lucide-react v1.48.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/const Ve={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};Ve.node;const Mt=pe(Ve);/**
|
|
12
|
-
* @license lucide-react v1.
|
|
12
|
+
* @license lucide-react v1.48.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/const Ye={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};Ye.node;const De=pe(Ye);/**
|
|
17
|
-
* @license lucide-react v1.
|
|
17
|
+
* @license lucide-react v1.48.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|