• Given a uuid of an existing variant alongside a direction, shifts the priority of the variant in the direction.

    Parameters

    • values: ZValues

      The values to mutate

    • uuid: string

      The uuid of the variant to shift

    • direction: "left" | "right"

      The direction to shift the variant in

    Returns ZValues

    The mutated values

    The variant must exist in the values.

    The variant's priority will never be less than 1 as this is reserved for the default variant.

    the priority of the default variant will never change from 0.