// flynt-disable enum-value-upper-case
syntax = "proto3";

// flynt-disable package-matches-structure
package com.wixpress.appservice.api;

import "wix/api/validations.proto";

message Interactions {
  enum Trigger {
    UNKNOWN_TRIGGER = 0;
    // When a compoent is hovered
    hover = 1;
    // When a component is clicked
    click = 2;
    // When the component enters the viewport
    viewEnter = 3;
    // Used for infinite-loop animations - mapped to `state` type of https://drafts.csswg.org/css-animations-2/#animation-trigger-type
    pageVisible = 4; 
    // Mapped to native ViewTimeline
    viewProgress = 5;
    // Mapped to pointermove events on the element
    pointerMove = 6;
    // Mapped to animationend events
    animationEnd = 7;
  }

  enum EffectGroup {
    UNKNOWN_EFFECT_GROUP = 0;
    // Effects that are applied to the background layer of the component
    background = 1;
  }

  repeated Trigger triggers = 1 [(wix.api.maxSize) = 7];
  repeated EffectGroup effect_groups = 2 [(wix.api.maxSize) = 1];
}
