@tellescope/react-components 1.196.0 → 1.197.0

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": "@tellescope/react-components",
3
- "version": "1.196.0",
3
+ "version": "1.197.0",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -47,13 +47,13 @@
47
47
  "@reduxjs/toolkit": "^1.6.2",
48
48
  "@stripe/react-stripe-js": "^2.9.0",
49
49
  "@stripe/stripe-js": "^1.52.1",
50
- "@tellescope/constants": "^1.196.0",
51
- "@tellescope/sdk": "^1.196.0",
52
- "@tellescope/types-client": "^1.196.0",
53
- "@tellescope/types-models": "^1.196.0",
54
- "@tellescope/types-utilities": "^1.196.0",
55
- "@tellescope/utilities": "^1.196.0",
56
- "@tellescope/validation": "^1.196.0",
50
+ "@tellescope/constants": "^1.197.0",
51
+ "@tellescope/sdk": "^1.197.0",
52
+ "@tellescope/types-client": "^1.197.0",
53
+ "@tellescope/types-models": "^1.197.0",
54
+ "@tellescope/types-utilities": "^1.197.0",
55
+ "@tellescope/utilities": "^1.197.0",
56
+ "@tellescope/validation": "^1.197.0",
57
57
  "@typescript-eslint/eslint-plugin": "^4.33.0",
58
58
  "@typescript-eslint/parser": "^4.33.0",
59
59
  "css-to-react-native": "^3.0.0",
@@ -84,7 +84,7 @@
84
84
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
85
85
  "react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
86
86
  },
87
- "gitHead": "5775521d0ee6a92be5139fb0466772d40ab4d0af",
87
+ "gitHead": "224c3b69af3b4d9b8f5873f2553e6aec076ce6b5",
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  }
@@ -225,9 +225,10 @@ interface FormResponse_T {
225
225
  response: FormResponse,
226
226
  id?: string,
227
227
  logoURL?: string,
228
+ showAnswerInline?: boolean,
228
229
  }
229
230
  // this should use all vanilla React / inline styles to ensure printing is consistent
230
- export const FormResponseView = ({ logoURL, enduser, onClose, hideHeader, response, id, printing, onImageClick } : FormResponse_T & {
231
+ export const FormResponseView = ({ showAnswerInline=true, logoURL, enduser, onClose, hideHeader, response, id, printing, onImageClick } : FormResponse_T & {
231
232
  printing?: boolean,
232
233
  onImageClick?: (args: { src: string }) => void,
233
234
  }) => {
@@ -305,14 +306,7 @@ export const FormResponseView = ({ logoURL, enduser, onClose, hideHeader, respon
305
306
  <Divider flexItem style={{ marginTop: 2, marginBottom: 12 }} />
306
307
 
307
308
  <div style={{ flexDirection: "column", display: 'flex', flex: 1 }}>
308
- {response.responses.map((r, i) => {
309
- const showAnswerInline = true
310
- // old logic for showAnswerInline
311
- // (
312
- // (!r.fieldDescription?.trim() && r.fieldHtmlDescription?.trim() === '<p></p>')
313
- // || !(r.fieldDescription?.trim() || r.fieldHtmlDescription?.trim())
314
- // )
315
- return (
309
+ {response.responses.map((r, i) => (
316
310
  <div key={i} style={{ marginBottom: 12 }}>
317
311
  <div style={{ display: 'flex', flex: 1, flexDirection: "row", justifyContent: 'space-between', flexWrap: 'nowrap' }}>
318
312
  {r.fieldTitle &&
@@ -361,7 +355,7 @@ export const FormResponseView = ({ logoURL, enduser, onClose, hideHeader, respon
361
355
  }
362
356
  </div>
363
357
  )
364
- })}
358
+ )}
365
359
  </div>
366
360
 
367
361
  {(response.addenda || []).length > 0 &&