@stoker-platform/web-app 0.5.154 → 0.5.156

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.156
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: clamp board relations based on maxSectionLines
8
+
9
+ ## 0.5.155
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: correctly detect server writes
14
+
3
15
  ## 0.5.154
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.154",
3
+ "version": "0.5.156",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
@@ -182,7 +182,12 @@ export const getFormattedFieldValue = (
182
182
  }
183
183
  }}
184
184
  >
185
- <span className={cn(card === "header" && "line-clamp-2")}>
185
+ <span
186
+ className={cn(
187
+ card === "header" && "line-clamp-2",
188
+ card && card !== "header" && maxLines && `line-clamp-${maxLines - 1}`,
189
+ )}
190
+ >
186
191
  {/* eslint-disable-next-line security/detect-object-injection */}
187
192
  {titleField ? (Object.values(value)[0] as StokerRecord)[titleField] : Object.keys(value)[0]}
188
193
  </span>
@@ -12,13 +12,14 @@ export const isServerUpdate = (collection: CollectionSchema, record: Partial<Sto
12
12
  const tokenFields = fields.filter((field) => field.saveToAuthToken)
13
13
  return !!(
14
14
  serverWriteOnly ||
15
- (auth && user?.operation) ||
16
- record.Role ||
17
- record.Enabled !== undefined ||
18
- record.Name ||
19
- record.Email ||
20
- record.Photo_URL ||
21
- tokenFields.some((field) => record[field.name] !== undefined)
15
+ (auth &&
16
+ (user?.operation ||
17
+ record.Role ||
18
+ record.Enabled !== undefined ||
19
+ record.Name ||
20
+ record.Email ||
21
+ record.Photo_URL ||
22
+ tokenFields.some((field) => record[field.name] !== undefined)))
22
23
  )
23
24
  }
24
25