@magiclabs.ai/magicbook-client 0.7.24-canary → 0.7.26
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/index.cjs +9 -8
- package/index.cjs.map +1 -1
- package/index.d.cts +35 -32
- package/index.d.ts +35 -32
- package/index.iife.js +9 -8
- package/index.iife.min.js +1 -1
- package/index.js +9 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1469,7 +1469,8 @@ var styles = {
|
|
|
1469
1469
|
"5771ff862c394c9a8fcf4237a267651c": { slug: "studio-dark-snap" },
|
|
1470
1470
|
"990e71b3b45d4baaa7236328c64c8364": { slug: "our-family-snap" },
|
|
1471
1471
|
"2c5700f2b32c49d186b85e57449cdda6": { slug: "favourite-things-snap" },
|
|
1472
|
-
e276151076d94d279d0d0b3608e3fba7: { slug: "my-family-snap" }
|
|
1472
|
+
e276151076d94d279d0d0b3608e3fba7: { slug: "my-family-snap" },
|
|
1473
|
+
"cbec6602c5474f8fafc1980fb068db2a": { slug: "graphic-love-snap" }
|
|
1473
1474
|
};
|
|
1474
1475
|
var bookSizes = [
|
|
1475
1476
|
"4.5x4",
|
|
@@ -6189,7 +6190,7 @@ var Fetcher = class {
|
|
|
6189
6190
|
const res = await fetch(this.cleanUrl(new URL(props.path, this.baseUrl).href), options);
|
|
6190
6191
|
if (res.status >= 200 && res.status < 300) {
|
|
6191
6192
|
try {
|
|
6192
|
-
return await res.json();
|
|
6193
|
+
return await res.clone().json();
|
|
6193
6194
|
} catch (error) {
|
|
6194
6195
|
try {
|
|
6195
6196
|
return await res.text();
|
|
@@ -6275,12 +6276,12 @@ var ImagesEndpoints = class {
|
|
|
6275
6276
|
|
|
6276
6277
|
// ../../core/models/spread.ts
|
|
6277
6278
|
var spreadServerSchema = z.object({
|
|
6278
|
-
id: z.string()
|
|
6279
|
+
id: z.string(),
|
|
6279
6280
|
book_id: z.string(),
|
|
6280
6281
|
state: z.string(),
|
|
6281
6282
|
spread_type: z.string(),
|
|
6282
|
-
width: z.number()
|
|
6283
|
-
height: z.number()
|
|
6283
|
+
width: z.number(),
|
|
6284
|
+
height: z.number(),
|
|
6284
6285
|
sequence: z.number(),
|
|
6285
6286
|
wells: z.array(z.unknown()),
|
|
6286
6287
|
background: z.unknown(),
|
|
@@ -6291,12 +6292,12 @@ var spreadServerSchema = z.object({
|
|
|
6291
6292
|
url: z.string().nullable().optional()
|
|
6292
6293
|
});
|
|
6293
6294
|
var spreadSchema = z.object({
|
|
6294
|
-
id: z.string()
|
|
6295
|
+
id: z.string(),
|
|
6295
6296
|
bookId: z.string(),
|
|
6296
6297
|
state: z.string(),
|
|
6297
6298
|
spreadType: z.string(),
|
|
6298
|
-
width: z.number()
|
|
6299
|
-
height: z.number()
|
|
6299
|
+
width: z.number(),
|
|
6300
|
+
height: z.number(),
|
|
6300
6301
|
sequence: z.number(),
|
|
6301
6302
|
wells: z.array(z.unknown()),
|
|
6302
6303
|
background: z.unknown(),
|