@applicaster/zapp-react-native-utils 16.0.0-rc.73 → 16.0.0-rc.75

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.
@@ -135,7 +135,8 @@ function generateFieldsFromDefaults(label, defaults, fields) {
135
135
  function generateFieldsFromDefaultsWithoutPrefixedLabel(
136
136
  label,
137
137
  defaults,
138
- fields
138
+ fields,
139
+ { withStyle = false } = {}
139
140
  ) {
140
141
  const keyPrefix = toSnakeCase(label);
141
142
 
@@ -151,7 +152,9 @@ function generateFieldsFromDefaultsWithoutPrefixedLabel(
151
152
  const generatedField = {
152
153
  ...fieldProps,
153
154
  label: capitalizeFirstLetter(field.suffix),
154
- key: `${keyPrefix}_${toSnakeCase(field.suffix)}`,
155
+ key: withStyle
156
+ ? `${keyPrefix}_style_${toSnakeCase(field.suffix)}`
157
+ : `${keyPrefix}_${toSnakeCase(field.suffix)}`,
155
158
  initial_value: R.when(R.is(Array), R.head)(initialValue),
156
159
  };
157
160
 
@@ -164,7 +167,9 @@ function generateFieldsFromDefaultsWithoutPrefixedLabel(
164
167
  const section = condition.section ? `${condition.section}/` : "";
165
168
 
166
169
  return {
167
- key: `${section}${keyPrefix}_${toSnakeCase(condition.key)}`,
170
+ key: withStyle
171
+ ? `${section}${keyPrefix}_style_${toSnakeCase(condition.key)}`
172
+ : `${section}${keyPrefix}_${toSnakeCase(condition.key)}`,
168
173
  condition_value: condition.value,
169
174
  };
170
175
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "16.0.0-rc.73",
3
+ "version": "16.0.0-rc.75",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "16.0.0-rc.73",
30
+ "@applicaster/applicaster-types": "16.0.0-rc.75",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",