@bigbinary/neeto-rules-frontend 2.8.10 → 2.8.11-beta1
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/dist/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +40 -15
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/NeetoRulesForm.js +2 -2
- package/dist/cjs/NeetoRulesBuilder.js +40 -15
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/v2/NeetoRulesBuilder.js +39 -14
- package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesForm.js +2 -2
- package/dist/cjs/v2/index.js +2 -2
- package/dist/{index-ql13coG-.js → index-HxpDd_fD.js} +2 -2
- package/dist/{index-ql13coG-.js.map → index-HxpDd_fD.js.map} +1 -1
- package/dist/{index-D-pmcUGT.js → index-YOuCSbmi.js} +2 -2
- package/dist/{index-D-pmcUGT.js.map → index-YOuCSbmi.js.map} +1 -1
- package/dist/{index-CpWEW_Rn.js → index-djZiAHat.js} +2 -2
- package/dist/{index-CpWEW_Rn.js.map → index-djZiAHat.js.map} +1 -1
- package/dist/{index-XiWPZpLF.js → index-zvsaUL1M.js} +2 -2
- package/dist/{index-XiWPZpLF.js.map → index-zvsaUL1M.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/keyboardShortcuts-CMYWaUJh.js +96 -0
- package/dist/{keyboardShortcuts-BGpApRKG.js.map → keyboardShortcuts-CMYWaUJh.js.map} +1 -1
- package/dist/keyboardShortcuts-cmT662QR.js +92 -0
- package/dist/{keyboardShortcuts-B-6CQw6N.js.map → keyboardShortcuts-cmT662QR.js.map} +1 -1
- package/dist/v2/NeetoRulesBuilder.js +39 -14
- package/dist/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/v2/NeetoRulesForm.js +2 -2
- package/dist/v2/index.js +2 -2
- package/package.json +1 -1
- package/dist/keyboardShortcuts-B-6CQw6N.js +0 -92
- package/dist/keyboardShortcuts-BGpApRKG.js +0 -96
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-10-
|
|
1
|
+
Built at 2026-10-29T05:40:59.790Z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
3
|
-
import { f as flatten, S as SHORTCUTS } from './keyboardShortcuts-
|
|
3
|
+
import { f as flatten, S as SHORTCUTS } from './keyboardShortcuts-cmT662QR.js';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
5
|
import { useState, useRef, useEffect, createElement, Fragment as Fragment$1, useCallback, useMemo } from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -11,7 +11,7 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
11
11
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
12
12
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
|
-
import { E as EditorAction, o as Panel, r as ErrorCallout, s as SmsFields, M as MIN_DELAY_VALUE, t as MAX_DELAY_VALUE, v as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from './index-
|
|
14
|
+
import { E as EditorAction, o as Panel, r as ErrorCallout, s as SmsFields, M as MIN_DELAY_VALUE, t as MAX_DELAY_VALUE, v as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from './index-YOuCSbmi.js';
|
|
15
15
|
import { u as useCustomDataStore } from './useCustomDataStore-BtKYtLVc.js';
|
|
16
16
|
import { u as useUtilityStore } from './useUtilityStore-CCUYS1mS.js';
|
|
17
17
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -3995,7 +3995,9 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
3995
3995
|
anchor = _ref.anchor,
|
|
3996
3996
|
index = _ref.index,
|
|
3997
3997
|
_ref$belowContent = _ref.belowContent,
|
|
3998
|
-
belowContent = _ref$belowContent === void 0 ? null : _ref$belowContent
|
|
3998
|
+
belowContent = _ref$belowContent === void 0 ? null : _ref$belowContent,
|
|
3999
|
+
_ref$renderOptionCont = _ref.renderOptionContent,
|
|
4000
|
+
renderOptionContent = _ref$renderOptionCont === void 0 ? null : _ref$renderOptionCont;
|
|
3999
4001
|
var _useTranslation = useTranslation(),
|
|
4000
4002
|
t = _useTranslation.t;
|
|
4001
4003
|
var _useFormikContext = useFormikContext(),
|
|
@@ -4139,6 +4141,26 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4139
4141
|
children: category
|
|
4140
4142
|
});
|
|
4141
4143
|
};
|
|
4144
|
+
var renderOptionRow = function renderOptionRow(option) {
|
|
4145
|
+
var item = /*#__PURE__*/jsx(Radio.Item, _objectSpread$2(_objectSpread$2({
|
|
4146
|
+
disabled: option.disabled,
|
|
4147
|
+
label: optionLabel(option),
|
|
4148
|
+
labelProps: previewHandlers(option.value),
|
|
4149
|
+
value: option.value
|
|
4150
|
+
}, option.icon || option.disabledReason ? {
|
|
4151
|
+
dataTestid: option.value
|
|
4152
|
+
} : {}), previewHandlers(option.value)), option.value);
|
|
4153
|
+
var content = renderOptionContent === null || renderOptionContent === void 0 ? void 0 : renderOptionContent({
|
|
4154
|
+
option: option,
|
|
4155
|
+
isSelected: isSelected(option.value)
|
|
4156
|
+
});
|
|
4157
|
+
if (!content) return [item];
|
|
4158
|
+
return [item, /*#__PURE__*/jsx("div", {
|
|
4159
|
+
className: "mb-pane-option-content",
|
|
4160
|
+
"data-testid": "".concat(option.value, "-option-content"),
|
|
4161
|
+
children: content
|
|
4162
|
+
}, "".concat(option.value, "-content"))];
|
|
4163
|
+
};
|
|
4142
4164
|
var renderBody = function renderBody() {
|
|
4143
4165
|
var _selectedValues$;
|
|
4144
4166
|
if (isEmpty(filtered)) {
|
|
@@ -4186,16 +4208,7 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4186
4208
|
return [category ? /*#__PURE__*/jsx("div", {
|
|
4187
4209
|
className: "mb-pane-group",
|
|
4188
4210
|
children: category
|
|
4189
|
-
}, "group-".concat(category)) : null].concat(_toConsumableArray(items.
|
|
4190
|
-
return /*#__PURE__*/jsx(Radio.Item, _objectSpread$2(_objectSpread$2({
|
|
4191
|
-
disabled: option.disabled,
|
|
4192
|
-
label: optionLabel(option),
|
|
4193
|
-
labelProps: previewHandlers(option.value),
|
|
4194
|
-
value: option.value
|
|
4195
|
-
}, option.icon || option.disabledReason ? {
|
|
4196
|
-
dataTestid: option.value
|
|
4197
|
-
} : {}), previewHandlers(option.value)), option.value);
|
|
4198
|
-
})));
|
|
4211
|
+
}, "group-".concat(category)) : null].concat(_toConsumableArray(items.flatMap(renderOptionRow)));
|
|
4199
4212
|
}).filter(Boolean)
|
|
4200
4213
|
});
|
|
4201
4214
|
};
|
|
@@ -4303,7 +4316,7 @@ var RecipientField = function RecipientField(_ref) {
|
|
|
4303
4316
|
};
|
|
4304
4317
|
|
|
4305
4318
|
var RecipientPane = function RecipientPane(_ref) {
|
|
4306
|
-
var _schema$actions, _schema$actions$actio, _action$recipient, _schema$actions2, _schema$actions2$acti, _schema$actions3, _schema$actions3$rend, _schema$actions4, _schema$actions4$opti, _schema$actions5, _schema$actions5$opti, _schema$actions6, _schema$actions7, _schema$actions$rende, _schema$actions8, _schema$actions8$rend, _action$metadata, _schema$actions9;
|
|
4319
|
+
var _schema$actions, _schema$actions$actio, _action$recipient, _schema$actions2, _schema$actions2$acti, _schema$actions3, _schema$actions3$rend, _schema$actions4, _schema$actions4$opti, _schema$actions5, _schema$actions5$opti, _schema$actions6, _schema$actions7, _schema$actions$rende, _schema$actions8, _schema$actions8$rend, _action$metadata, _schema$actions9, _schema$actions0;
|
|
4307
4320
|
var schema = _ref.schema,
|
|
4308
4321
|
index = _ref.index;
|
|
4309
4322
|
var _useTranslation = useTranslation(),
|
|
@@ -4360,6 +4373,17 @@ var RecipientPane = function RecipientPane(_ref) {
|
|
|
4360
4373
|
name: "".concat(name, ".").concat(RECIPIENT_STORAGE_FIELDS.phoneNumbers),
|
|
4361
4374
|
phoneNumbers: (_action$metadata = action.metadata) === null || _action$metadata === void 0 ? void 0 : _action$metadata.phoneNumbers
|
|
4362
4375
|
}) : null;
|
|
4376
|
+
var renderOptionContent = (_schema$actions9 = schema.actions) !== null && _schema$actions9 !== void 0 && _schema$actions9.renderRecipientOptionContent ? function (_ref2) {
|
|
4377
|
+
var option = _ref2.option,
|
|
4378
|
+
isSelected = _ref2.isSelected;
|
|
4379
|
+
return schema.actions.renderRecipientOptionContent({
|
|
4380
|
+
channel: channel,
|
|
4381
|
+
recipient: option.value,
|
|
4382
|
+
name: name,
|
|
4383
|
+
action: action,
|
|
4384
|
+
isSelected: isSelected
|
|
4385
|
+
});
|
|
4386
|
+
} : null;
|
|
4363
4387
|
var belowField = phoneField || recipientField;
|
|
4364
4388
|
var belowContent = belowField ? /*#__PURE__*/jsx("div", {
|
|
4365
4389
|
className: "mt-5",
|
|
@@ -4381,13 +4405,14 @@ var RecipientPane = function RecipientPane(_ref) {
|
|
|
4381
4405
|
return /*#__PURE__*/jsx(OptionsPane, {
|
|
4382
4406
|
belowContent: belowContent,
|
|
4383
4407
|
index: index,
|
|
4408
|
+
renderOptionContent: renderOptionContent,
|
|
4384
4409
|
schema: schema,
|
|
4385
4410
|
anchor: BUILDER_ANCHORS.ACTION_RECIPIENT
|
|
4386
4411
|
});
|
|
4387
4412
|
}
|
|
4388
4413
|
|
|
4389
4414
|
// eslint-disable-next-line security/detect-object-injection
|
|
4390
|
-
var meta = ((_schema$
|
|
4415
|
+
var meta = ((_schema$actions0 = schema.actions) === null || _schema$actions0 === void 0 || (_schema$actions0 = _schema$actions0.channelMeta) === null || _schema$actions0 === void 0 ? void 0 : _schema$actions0[channel]) || {};
|
|
4391
4416
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
4392
4417
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
4393
4418
|
children: /*#__PURE__*/jsxs("div", {
|