@odla-ai/brand 0.8.2 → 0.8.4
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.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -503,7 +503,13 @@ function rowAsWritten(ns, row) {
|
|
|
503
503
|
return changed ? out : row;
|
|
504
504
|
}
|
|
505
505
|
function receiptAsWritten(row) {
|
|
506
|
-
|
|
506
|
+
const normalized = rowAsWritten(BRAND_NS.approvalReceipt, row);
|
|
507
|
+
if (!record(normalized)) return normalized;
|
|
508
|
+
const systemAttrs = Object.keys(normalized).filter((key) => key.startsWith("$"));
|
|
509
|
+
if (systemAttrs.length === 0) return normalized;
|
|
510
|
+
const out = { ...normalized };
|
|
511
|
+
for (const key of systemAttrs) delete out[key];
|
|
512
|
+
return out;
|
|
507
513
|
}
|
|
508
514
|
function proposalAsWritten(row) {
|
|
509
515
|
return rowAsWritten(BRAND_NS.proposal, row);
|
|
@@ -4520,7 +4526,7 @@ async function proposalDecisionState(ctx, req, book, proposal, resolution, recei
|
|
|
4520
4526
|
status: "active",
|
|
4521
4527
|
name: paletteDep.palette.name,
|
|
4522
4528
|
swatches: paletteDep.palette.swatches,
|
|
4523
|
-
seedHex: paletteDep.palette.seedHex
|
|
4529
|
+
...paletteDep.palette.seedHex ? { seedHex: paletteDep.palette.seedHex } : {},
|
|
4524
4530
|
source: paletteDep.palette.source,
|
|
4525
4531
|
rationale: paletteDep.palette.rationale,
|
|
4526
4532
|
proposalId: paletteDep.palette.proposalId,
|