@redacto.io/consent-sdk-react 8.0.0 → 8.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @redacto.io/consent-sdk-react
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bugs fixes
8
+
3
9
  ## 8.0.0
4
10
 
5
11
  ### Major Changes
@@ -12353,9 +12353,11 @@ function UserMenu({ onBack }) {
12353
12353
  letterSpacing: "-0.01em",
12354
12354
  color: getVar("--pc-text-primary"),
12355
12355
  lineHeight: 1.25,
12356
+ display: "-webkit-box",
12357
+ WebkitBoxOrient: "vertical",
12358
+ WebkitLineClamp: 3,
12356
12359
  overflow: "hidden",
12357
- textOverflow: "ellipsis",
12358
- whiteSpace: "nowrap"
12360
+ wordBreak: "break-word"
12359
12361
  },
12360
12362
  children: displayName || "\u2014"
12361
12363
  }
@@ -19180,7 +19182,7 @@ function Form({
19180
19182
  },
19181
19183
  className: "pc-flex-responsive pc-spacing-responsive",
19182
19184
  children: [
19183
- isPopup ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PCButton, { variant: "secondary", onClick: onClose, style: { flexShrink: 0 }, children: (_b = t("cancel")) != null ? _b : "Cancel" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PCButton, { variant: "secondary", style: { flexShrink: 0 }, children: t("saveDraft") }),
19185
+ isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PCButton, { variant: "secondary", onClick: onClose, style: { flexShrink: 0 }, children: (_b = t("cancel")) != null ? _b : "Cancel" }),
19184
19186
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
19185
19187
  PCButton,
19186
19188
  {
@@ -12274,9 +12274,11 @@ function UserMenu({ onBack }) {
12274
12274
  letterSpacing: "-0.01em",
12275
12275
  color: getVar("--pc-text-primary"),
12276
12276
  lineHeight: 1.25,
12277
+ display: "-webkit-box",
12278
+ WebkitBoxOrient: "vertical",
12279
+ WebkitLineClamp: 3,
12277
12280
  overflow: "hidden",
12278
- textOverflow: "ellipsis",
12279
- whiteSpace: "nowrap"
12281
+ wordBreak: "break-word"
12280
12282
  },
12281
12283
  children: displayName || "\u2014"
12282
12284
  }
@@ -19121,7 +19123,7 @@ function Form({
19121
19123
  },
19122
19124
  className: "pc-flex-responsive pc-spacing-responsive",
19123
19125
  children: [
19124
- isPopup ? /* @__PURE__ */ jsx59(PCButton, { variant: "secondary", onClick: onClose, style: { flexShrink: 0 }, children: (_b = t("cancel")) != null ? _b : "Cancel" }) : /* @__PURE__ */ jsx59(PCButton, { variant: "secondary", style: { flexShrink: 0 }, children: t("saveDraft") }),
19126
+ isPopup && /* @__PURE__ */ jsx59(PCButton, { variant: "secondary", onClick: onClose, style: { flexShrink: 0 }, children: (_b = t("cancel")) != null ? _b : "Cancel" }),
19125
19127
  /* @__PURE__ */ jsx59(
19126
19128
  PCButton,
19127
19129
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redacto.io/consent-sdk-react",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -130,9 +130,11 @@ export function UserMenu({ onBack }: UserMenuProps) {
130
130
  letterSpacing: '-0.01em',
131
131
  color: getVar('--pc-text-primary'),
132
132
  lineHeight: 1.25,
133
+ display: '-webkit-box',
134
+ WebkitBoxOrient: 'vertical',
135
+ WebkitLineClamp: 3,
133
136
  overflow: 'hidden',
134
- textOverflow: 'ellipsis',
135
- whiteSpace: 'nowrap',
137
+ wordBreak: 'break-word',
136
138
  }}
137
139
  >
138
140
  {displayName || '—'}
@@ -1482,14 +1482,10 @@ export default function Form({
1482
1482
  }}
1483
1483
  className="pc-flex-responsive pc-spacing-responsive"
1484
1484
  >
1485
- {isPopup ? (
1485
+ {isPopup && (
1486
1486
  <PCButton variant="secondary" onClick={onClose} style={{ flexShrink: 0 }}>
1487
1487
  {t('cancel') ?? 'Cancel'}
1488
1488
  </PCButton>
1489
- ) : (
1490
- <PCButton variant="secondary" style={{ flexShrink: 0 }}>
1491
- {t('saveDraft')}
1492
- </PCButton>
1493
1489
  )}
1494
1490
  <PCButton
1495
1491
  variant="primary"