@vectoriox/iox-ui 5.56.0 → 5.56.1
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.
|
@@ -4800,13 +4800,13 @@ function presetDesign(presetId, input, kept = {}, read = null) {
|
|
|
4800
4800
|
const base = presetChoices(presetId);
|
|
4801
4801
|
if (!base)
|
|
4802
4802
|
return null;
|
|
4803
|
-
const motionInput = typeof input === '
|
|
4803
|
+
const motionInput = typeof input === 'object' && input !== null ? input : { businessType: input };
|
|
4804
4804
|
const start = motionFor(motionInput, presetId, read);
|
|
4805
4805
|
return { ...base, scroll: start.scroll, animate: start.animate, between: start.between, ...kept };
|
|
4806
4806
|
}
|
|
4807
4807
|
/** The look a business starts from: its best-ranked style (with the references' boost), at its defaults. */
|
|
4808
4808
|
function startingDesign(input, read = null) {
|
|
4809
|
-
const rankInput = typeof input === '
|
|
4809
|
+
const rankInput = typeof input === 'object' && input !== null ? input : { businessType: input };
|
|
4810
4810
|
const top = rankWithReferences(rankInput, read)[0];
|
|
4811
4811
|
const design = top ? presetDesign(top.id, rankInput, {}, read) : null;
|
|
4812
4812
|
if (!top || !design)
|