@developer_tribe/react-builder 0.1.18 → 0.1.19

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.18",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "restricted": true,
6
6
  "main": "dist/index.cjs.js",
@@ -13,6 +13,12 @@ export interface OnboardButtonPropsGenerated {
13
13
  attributes: {
14
14
  labelKey?: string;
15
15
  button_text_color?: string;
16
+ animation?:
17
+ | 'simple-animation'
18
+ | 'line-animation'
19
+ | 'blur'
20
+ | 'blur-animation'
21
+ | 'blur-line-animation';
16
22
  button_background_color?: string;
17
23
  flex?: number;
18
24
  targetIndex?: number;
@@ -7,6 +7,13 @@
7
7
  "attributes": {
8
8
  "labelKey": "string",
9
9
  "button_text_color": "string",
10
+ "animation": [
11
+ "simple-animation",
12
+ "line-animation",
13
+ "blur",
14
+ "blur-animation",
15
+ "blur-line-animation"
16
+ ],
10
17
  "button_background_color": "string",
11
18
  "flex": "number",
12
19
  "targetIndex": "number",
@@ -129,6 +129,13 @@ function buildCarouselItem(
129
129
  const labelKey = attrs?.button_text_localization_key || '';
130
130
  const buttonTextColor = attrs?.button_text_color;
131
131
  const buttonBackgroundColor = attrs?.button_background_color;
132
+ const animation = attrs?.animation as
133
+ | 'simple-animation'
134
+ | 'line-animation'
135
+ | 'blur'
136
+ | 'blur-animation'
137
+ | 'blur-line-animation'
138
+ | undefined;
132
139
  const flex = attrs?.flex ? Number(attrs.flex) : undefined;
133
140
 
134
141
  // Find first Navigate event and map to target index
@@ -171,6 +178,7 @@ function buildCarouselItem(
171
178
  ...(typeof buttonTextColor === 'string'
172
179
  ? { button_text_color: buttonTextColor }
173
180
  : {}),
181
+ ...(typeof animation === 'string' ? { animation } : {}),
174
182
  ...(typeof buttonBackgroundColor === 'string'
175
183
  ? { button_background_color: buttonBackgroundColor }
176
184
  : {}),