@pushwoosh/dumb-components 1.1.174 → 1.1.175

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.
@@ -93,9 +93,7 @@ export const CalendarMonthSlider = ({
93
93
  onTransitionEnd: () => {
94
94
  toBaseline(anchor);
95
95
  },
96
- children: panels.map((p, i) =>
97
- // eslint-disable-next-line react/no-array-index-key
98
- _jsx(Panel, {
96
+ children: panels.map((p, i) => _jsx(Panel, {
99
97
  children: _jsxs(Vertical, {
100
98
  "$gap": 4,
101
99
  children: [_jsxs(Horizontal, {
@@ -34,18 +34,15 @@ export function NativeRichMediaSpinwheelView(props) {
34
34
  children: segs.map((s, i) => {
35
35
  const theta = -90 + (i + 0.5) * per;
36
36
  const label = asTextValue(s.message);
37
- return (
38
- // eslint-disable-next-line react/no-array-index-key
39
- _jsxs(Fragment, {
40
- children: [_jsx(Tick, {
41
- "$rotate": i * per - 180
42
- }), _jsx(SegmentLabel, {
43
- "$color": label.color,
44
- "$rotate": theta,
45
- children: label.text
46
- })]
47
- }, `spin-segment-${i}`)
48
- );
37
+ return _jsxs(Fragment, {
38
+ children: [_jsx(Tick, {
39
+ "$rotate": i * per - 180
40
+ }), _jsx(SegmentLabel, {
41
+ "$color": label.color,
42
+ "$rotate": theta,
43
+ children: label.text
44
+ })]
45
+ }, `spin-segment-${i}`);
49
46
  })
50
47
  }), _jsx(Pointer, {}), _jsx(Hub, {
51
48
  "$background": spinButton === null || spinButton === void 0 ? void 0 : spinButton.background,
@@ -19,36 +19,27 @@ export const RichMessageViewer = ({
19
19
  return content.map((node, index) => {
20
20
  const children = node.children.map((child, idx) => {
21
21
  if (isElement(child) && child.type === 'dc') {
22
- return (
23
- // eslint-disable-next-line react/no-array-index-key
24
- _jsxs(DynamicContentRoot, {
25
- children: [_jsx(DynamicContentBracket, {
26
- children: '{'
27
- }), "\u00A0", child.dc.tagName, "\u00A0", _jsx(DynamicContentBracket, {
28
- children: '}'
29
- })]
30
- }, idx)
31
- );
22
+ return _jsxs(DynamicContentRoot, {
23
+ children: [_jsx(DynamicContentBracket, {
24
+ children: '{'
25
+ }), "\u00A0", child.dc.tagName, "\u00A0", _jsx(DynamicContentBracket, {
26
+ children: '}'
27
+ })]
28
+ }, idx);
32
29
  }
33
30
  return child.text;
34
31
  });
35
32
  if (flat) {
36
- return (
37
- // eslint-disable-next-line react/no-array-index-key
38
- _jsxs(Fragment, {
39
- children: [index > 0 && ' ', _jsx("span", {
40
- dir: "auto",
41
- children: children
42
- })]
43
- }, index)
44
- );
33
+ return _jsxs(Fragment, {
34
+ children: [index > 0 && ' ', _jsx("span", {
35
+ dir: "auto",
36
+ children: children
37
+ })]
38
+ }, index);
45
39
  }
46
- return (
47
- // eslint-disable-next-line react/no-array-index-key
48
- _jsx(Paragraph, {
49
- dir: "auto",
50
- children: children
51
- }, index)
52
- );
40
+ return _jsx(Paragraph, {
41
+ dir: "auto",
42
+ children: children
43
+ }, index);
53
44
  });
54
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.174",
3
+ "version": "1.1.175",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -24,7 +24,7 @@
24
24
  "npm": ">= 7"
25
25
  },
26
26
  "devDependencies": {
27
- "@pushwoosh/frontend-builder-engine": "^2.1.1",
27
+ "@pushwoosh/frontend-builder-engine": "^3.0.0",
28
28
  "@svgr/webpack": "^8.1.0",
29
29
  "@testing-library/jest-dom": "^6.9.1",
30
30
  "@testing-library/react": "^16.3.0",