@developer_tribe/react-builder 0.1.19 → 0.1.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "restricted": true,
6
6
  "main": "dist/index.cjs.js",
@@ -19,6 +19,7 @@ export interface OnboardButtonPropsGenerated {
19
19
  | 'blur'
20
20
  | 'blur-animation'
21
21
  | 'blur-line-animation';
22
+ animation_color?: string;
22
23
  button_background_color?: string;
23
24
  flex?: number;
24
25
  targetIndex?: number;
@@ -14,6 +14,7 @@
14
14
  "blur-animation",
15
15
  "blur-line-animation"
16
16
  ],
17
+ "animation_color": "string",
17
18
  "button_background_color": "string",
18
19
  "flex": "number",
19
20
  "targetIndex": "number",
@@ -136,6 +136,7 @@ function buildCarouselItem(
136
136
  | 'blur-animation'
137
137
  | 'blur-line-animation'
138
138
  | undefined;
139
+ const animationColor = attrs?.animation_color as string | undefined;
139
140
  const flex = attrs?.flex ? Number(attrs.flex) : undefined;
140
141
 
141
142
  // Find first Navigate event and map to target index
@@ -179,6 +180,9 @@ function buildCarouselItem(
179
180
  ? { button_text_color: buttonTextColor }
180
181
  : {}),
181
182
  ...(typeof animation === 'string' ? { animation } : {}),
183
+ ...(typeof animationColor === 'string'
184
+ ? { animation_color: animationColor }
185
+ : {}),
182
186
  ...(typeof buttonBackgroundColor === 'string'
183
187
  ? { button_background_color: buttonBackgroundColor }
184
188
  : {}),