@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.cjs
CHANGED
|
@@ -4383,7 +4383,10 @@ async function activePalette(ctx, book) {
|
|
|
4383
4383
|
book: {}
|
|
4384
4384
|
}
|
|
4385
4385
|
});
|
|
4386
|
-
const palette = (
|
|
4386
|
+
const palette = rowAsWritten(
|
|
4387
|
+
BRAND_NS.palette,
|
|
4388
|
+
(result[BRAND_NS.palette] ?? [])[0]
|
|
4389
|
+
);
|
|
4387
4390
|
if (!palette || palette.bookId !== book.id || palette.status !== "active" || !palette.proposalId || !palette.approvalReceiptId || !palette.approvalActionDigest || !hasExactOneLink(palette.book, book.id)) throw new BrandConflictError(
|
|
4388
4391
|
"active palette is missing valid approval provenance"
|
|
4389
4392
|
);
|
|
@@ -4431,7 +4434,10 @@ async function approvedTypography(ctx, book) {
|
|
|
4431
4434
|
book: {}
|
|
4432
4435
|
}
|
|
4433
4436
|
});
|
|
4434
|
-
const section = (
|
|
4437
|
+
const section = rowAsWritten(
|
|
4438
|
+
BRAND_NS.section,
|
|
4439
|
+
(result[BRAND_NS.section] ?? [])[0]
|
|
4440
|
+
);
|
|
4435
4441
|
if (!section || section.status !== "approved") return {};
|
|
4436
4442
|
if (section.bookId !== book.id || section.kind !== "typography" || !section.approvalReceiptId || !section.approvalActionDigest || !hasExactOneLink(section.book, book.id)) throw new BrandConflictError(
|
|
4437
4443
|
"approved typography is missing valid approval provenance"
|