@odla-ai/brand 0.8.1 → 0.8.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/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3291,7 +3291,10 @@ async function activePalette(ctx, book) {
|
|
|
3291
3291
|
book: {}
|
|
3292
3292
|
}
|
|
3293
3293
|
});
|
|
3294
|
-
const palette = (
|
|
3294
|
+
const palette = rowAsWritten(
|
|
3295
|
+
BRAND_NS.palette,
|
|
3296
|
+
(result[BRAND_NS.palette] ?? [])[0]
|
|
3297
|
+
);
|
|
3295
3298
|
if (!palette || palette.bookId !== book.id || palette.status !== "active" || !palette.proposalId || !palette.approvalReceiptId || !palette.approvalActionDigest || !hasExactOneLink(palette.book, book.id)) throw new BrandConflictError(
|
|
3296
3299
|
"active palette is missing valid approval provenance"
|
|
3297
3300
|
);
|
|
@@ -3339,7 +3342,10 @@ async function approvedTypography(ctx, book) {
|
|
|
3339
3342
|
book: {}
|
|
3340
3343
|
}
|
|
3341
3344
|
});
|
|
3342
|
-
const section = (
|
|
3345
|
+
const section = rowAsWritten(
|
|
3346
|
+
BRAND_NS.section,
|
|
3347
|
+
(result[BRAND_NS.section] ?? [])[0]
|
|
3348
|
+
);
|
|
3343
3349
|
if (!section || section.status !== "approved") return {};
|
|
3344
3350
|
if (section.bookId !== book.id || section.kind !== "typography" || !section.approvalReceiptId || !section.approvalActionDigest || !hasExactOneLink(section.book, book.id)) throw new BrandConflictError(
|
|
3345
3351
|
"approved typography is missing valid approval provenance"
|