@bigbinary/neeto-rules-frontend 2.5.25 → 2.5.27

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.
Files changed (39) hide show
  1. package/app/javascript/src/translations/ar.json +390 -0
  2. package/app/javascript/src/translations/bg.json +390 -0
  3. package/app/javascript/src/translations/ca.json +390 -0
  4. package/app/javascript/src/translations/cs.json +390 -0
  5. package/app/javascript/src/translations/da.json +390 -0
  6. package/app/javascript/src/translations/de.json +2 -1
  7. package/app/javascript/src/translations/en.json +1 -1
  8. package/app/javascript/src/translations/es-MX.json +390 -0
  9. package/app/javascript/src/translations/es.json +2 -1
  10. package/app/javascript/src/translations/et.json +390 -0
  11. package/app/javascript/src/translations/fi.json +390 -0
  12. package/app/javascript/src/translations/fil.json +390 -0
  13. package/app/javascript/src/translations/fr.json +2 -1
  14. package/app/javascript/src/translations/hi.json +390 -0
  15. package/app/javascript/src/translations/hr.json +390 -0
  16. package/app/javascript/src/translations/id.json +390 -0
  17. package/app/javascript/src/translations/it.json +390 -0
  18. package/app/javascript/src/translations/ja.json +390 -0
  19. package/app/javascript/src/translations/ko.json +390 -0
  20. package/app/javascript/src/translations/nl.json +390 -0
  21. package/app/javascript/src/translations/pl.json +390 -0
  22. package/app/javascript/src/translations/pt-BR.json +390 -0
  23. package/app/javascript/src/translations/pt.json +390 -0
  24. package/app/javascript/src/translations/ro.json +390 -0
  25. package/app/javascript/src/translations/ru.json +390 -0
  26. package/app/javascript/src/translations/sk.json +390 -0
  27. package/app/javascript/src/translations/sl.json +390 -0
  28. package/app/javascript/src/translations/sv.json +390 -0
  29. package/app/javascript/src/translations/th.json +390 -0
  30. package/app/javascript/src/translations/tr.json +390 -0
  31. package/app/javascript/src/translations/uk.json +390 -0
  32. package/app/javascript/src/translations/vi.json +390 -0
  33. package/app/javascript/src/translations/zh-CN.json +390 -0
  34. package/app/javascript/src/translations/zh-TW.json +390 -0
  35. package/dist/NeetoRulesForm.js +26 -1
  36. package/dist/NeetoRulesForm.js.map +1 -1
  37. package/dist/cjs/NeetoRulesForm.js +26 -1
  38. package/dist/cjs/NeetoRulesForm.js.map +1 -1
  39. package/package.json +15 -15
@@ -168,6 +168,7 @@ var Footer = function Footer(_ref) {
168
168
  var children = _ref.children,
169
169
  className = _ref.className;
170
170
  return /*#__PURE__*/jsxRuntime.jsx("div", {
171
+ "data-cy": "pane-footer",
171
172
  className: classNames("neeto-rules-side-panel__footer neeto-ui-border-gray-300 flex items-center justify-between border-t p-6", className),
172
173
  children: children
173
174
  });
@@ -185,12 +186,14 @@ var Header = function Header(_ref) {
185
186
  var _useTranslation = reactI18next.useTranslation(),
186
187
  t = _useTranslation.t;
187
188
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
189
+ "data-cy": "pane-header",
188
190
  className: classNames("neeto-rules-side-panel__header neeto-ui-border-gray-300 flex items-start justify-between border-b p-6", _defineProperty({}, className, className)),
189
191
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
190
192
  className: "flex min-w-0 flex-grow",
191
193
  children: children
192
194
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
193
195
  className: "flex-shrink-0 scale-x-[-1]",
196
+ "data-cy": "collapse-sidebar-button",
194
197
  icon: Collapse,
195
198
  size: "medium",
196
199
  style: "text",
@@ -455,9 +458,11 @@ var ActionPanel = function ActionPanel() {
455
458
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
456
459
  className: "flex flex-col space-y-2",
457
460
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
461
+ "data-cy": "action-title",
458
462
  style: "h3",
459
463
  children: [label, "..."]
460
464
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
465
+ "data-cy": "action-description",
461
466
  style: "body2",
462
467
  children: t("neetoRules.form.addActionDescription")
463
468
  })]
@@ -486,6 +491,7 @@ var ActionPanel = function ActionPanel() {
486
491
  })]
487
492
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
488
493
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
494
+ "data-cy": "continue-button",
489
495
  onClick: handleContinue,
490
496
  children: t("neetoRules.buttons.continue")
491
497
  })
@@ -1695,6 +1701,7 @@ var Target$e = function Target(_ref) {
1695
1701
  children: separator
1696
1702
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1697
1703
  label: label,
1704
+ "data-cy": "action-value-input-button",
1698
1705
  style: "link",
1699
1706
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
1700
1707
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3233,6 +3240,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3233
3240
  className: "flex items-center space-x-2",
3234
3241
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
3235
3242
  className: "flex-shrink-0",
3243
+ "data-cy": "back-button",
3236
3244
  icon: Left,
3237
3245
  size: "medium",
3238
3246
  style: "text",
@@ -3250,10 +3258,12 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3250
3258
  }));
3251
3259
  }
3252
3260
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
3261
+ "data-cy": "action-sub-item-title",
3253
3262
  style: "h3",
3254
3263
  children: header
3255
3264
  })]
3256
3265
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
3266
+ "data-cy": "action-sub-item-description",
3257
3267
  style: "body2",
3258
3268
  children: t("neetoRules.form.addActionSubItemDescription")
3259
3269
  })]
@@ -3272,6 +3282,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3272
3282
  })]
3273
3283
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
3274
3284
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
3285
+ "data-cy": "continue-button",
3275
3286
  onClick: handleContinue,
3276
3287
  children: t("neetoRules.buttons.continue")
3277
3288
  })
@@ -3402,6 +3413,7 @@ var Target$6 = function Target(_ref) {
3402
3413
  var label = valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
3403
3414
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
3404
3415
  label: label,
3416
+ "data-cy": "condition-value-input-button",
3405
3417
  style: "link",
3406
3418
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3407
3419
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3937,7 +3949,7 @@ var Target$1 = function Target(_ref) {
3937
3949
  };
3938
3950
  }, [field.value, dropdownOptions]);
3939
3951
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
3940
- "data-cy": "condition-value-dropdown-button",
3952
+ "data-cy": "condition-verb-dropdown-button",
3941
3953
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3942
3954
  style: "link",
3943
3955
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -4147,9 +4159,11 @@ var FieldPanel = function FieldPanel() {
4147
4159
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4148
4160
  className: "flex flex-col space-y-2",
4149
4161
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
4162
+ "data-cy": "condition-title",
4150
4163
  style: "h3",
4151
4164
  children: [index ? logicalOperatorLabel : conditionLabel, "..."]
4152
4165
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4166
+ "data-cy": "condition-description",
4153
4167
  style: "body2",
4154
4168
  children: t("neetoRules.form.addConditionDescription")
4155
4169
  })]
@@ -4165,6 +4179,7 @@ var FieldPanel = function FieldPanel() {
4165
4179
  })
4166
4180
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4167
4181
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4182
+ "data-cy": "continue-button",
4168
4183
  onClick: handleContinue,
4169
4184
  children: t("neetoRules.buttons.continue")
4170
4185
  })
@@ -4382,10 +4397,12 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4382
4397
  }));
4383
4398
  }
4384
4399
  }), /*#__PURE__*/jsxRuntime.jsxs(Typography, {
4400
+ "data-cy": "condition-verb-and-value-title",
4385
4401
  style: "h3",
4386
4402
  children: [index ? logicalOperatorLabel : conditionLabel, " ", fieldLabel, "..."]
4387
4403
  })]
4388
4404
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4405
+ "data-cy": "condition-verb-and-value-description",
4389
4406
  style: "body2",
4390
4407
  children: t("neetoRules.form.addConditionVerbAndValueDescription")
4391
4408
  })]
@@ -4410,6 +4427,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4410
4427
  })
4411
4428
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4412
4429
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4430
+ "data-cy": "continue-button",
4413
4431
  onClick: handleContinue,
4414
4432
  children: t("neetoRules.buttons.continue")
4415
4433
  })
@@ -4652,9 +4670,11 @@ var EventsPanel = function EventsPanel() {
4652
4670
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4653
4671
  className: "flex flex-col space-y-2",
4654
4672
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
4673
+ "data-cy": "event-title",
4655
4674
  style: "h3",
4656
4675
  children: [t("neetoRules.common.when"), "..."]
4657
4676
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4677
+ "data-cy": "event-description",
4658
4678
  style: "body2",
4659
4679
  children: t("neetoRules.form.addEventDescription")
4660
4680
  })]
@@ -4686,6 +4706,7 @@ var EventsPanel = function EventsPanel() {
4686
4706
  })
4687
4707
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4688
4708
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4709
+ "data-cy": "continue-button",
4689
4710
  onClick: handleContinue,
4690
4711
  children: t("neetoRules.buttons.continue")
4691
4712
  })
@@ -4758,6 +4779,7 @@ var PerformerPanel = function PerformerPanel() {
4758
4779
  className: "flex items-center space-x-2",
4759
4780
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
4760
4781
  className: "flex-shrink-0",
4782
+ "data-cy": "back-button",
4761
4783
  icon: Left,
4762
4784
  size: "medium",
4763
4785
  style: "text",
@@ -4774,10 +4796,12 @@ var PerformerPanel = function PerformerPanel() {
4774
4796
  }));
4775
4797
  }
4776
4798
  }), /*#__PURE__*/jsxRuntime.jsxs(Typography, {
4799
+ "data-cy": "performer-title",
4777
4800
  style: "h3",
4778
4801
  children: [t("neetoRules.form.actionTriggeredBy"), "..."]
4779
4802
  })]
4780
4803
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4804
+ "data-cy": "performer-description",
4781
4805
  style: "body2",
4782
4806
  children: t("neetoRules.form.addPerformerDescription")
4783
4807
  })]
@@ -4804,6 +4828,7 @@ var PerformerPanel = function PerformerPanel() {
4804
4828
  })
4805
4829
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4806
4830
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4831
+ "data-cy": "continue-button",
4807
4832
  onClick: handleContinue,
4808
4833
  children: t("neetoRules.buttons.continue")
4809
4834
  })