@bigbinary/neeto-rules-frontend 2.5.1 → 2.5.3
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/app/javascript/src/translations/en.json +2 -2
- package/dist/NeetoRules.js +3 -3
- package/dist/NeetoRulesForm.js +8 -5
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +3 -3
- package/dist/cjs/CannedResponsesPane.js +21 -36
- package/dist/cjs/CannedResponsesPane.js.map +1 -1
- package/dist/cjs/NeetoRules.js +59 -83
- package/dist/cjs/NeetoRules.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +398 -438
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/RulePreview.js +41 -54
- package/dist/cjs/RulePreview.js.map +1 -1
- package/dist/cjs/constants.js +1 -3
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/hooks.js +1 -3
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.js +5 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/{constants-67118957.js → constants-C0OOtVhT.js} +1 -1
- package/dist/{constants-67118957.js.map → constants-C0OOtVhT.js.map} +1 -1
- package/dist/{constants-7347bfc4.js → constants-CB5HRjxq.js} +1 -1
- package/dist/{constants-7347bfc4.js.map → constants-CB5HRjxq.js.map} +1 -1
- package/dist/constants.js +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{constants-12c6ac46.js → index-9h4B7JZZ.js} +1 -1
- package/dist/index-9h4B7JZZ.js.map +1 -0
- package/dist/{constants-2f1113f8.js → index-DFwPrb81.js} +1 -1
- package/dist/index-DFwPrb81.js.map +1 -0
- package/dist/index.js +5 -5
- package/dist/{useCustomDataStore-51ceac06.js → useCustomDataStore-B1qHMIGJ.js} +1 -1
- package/dist/{useCustomDataStore-51ceac06.js.map → useCustomDataStore-B1qHMIGJ.js.map} +1 -1
- package/dist/{useCustomDataStore-c57f5581.js → useCustomDataStore-BEG8I__n.js} +1 -1
- package/dist/{useCustomDataStore-c57f5581.js.map → useCustomDataStore-BEG8I__n.js.map} +1 -1
- package/dist/{useUtilityStore-e4b36ba2.js → useUtilityStore-BGuo9bko.js} +1 -1
- package/dist/{useUtilityStore-e4b36ba2.js.map → useUtilityStore-BGuo9bko.js.map} +1 -1
- package/dist/{useUtilityStore-ee4f96f8.js → useUtilityStore-KjKihXb0.js} +1 -1
- package/dist/{useUtilityStore-ee4f96f8.js.map → useUtilityStore-KjKihXb0.js.map} +1 -1
- package/dist/{utils-cd8f199f.js → utils-BngEaPaz.js} +1 -1
- package/dist/{utils-cd8f199f.js.map → utils-BngEaPaz.js.map} +1 -1
- package/dist/{utils-866e8e3b.js → utils-CvS2p6ZS.js} +1 -1
- package/dist/{utils-866e8e3b.js.map → utils-CvS2p6ZS.js.map} +1 -1
- package/package.json +19 -18
- package/dist/constants-12c6ac46.js.map +0 -1
- package/dist/constants-2f1113f8.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-C0OOtVhT.js","sources":["../app/javascript/src/components/NeetoRulesForm/Element/Conditions/constants.js"],"sourcesContent":["import { t } from \"i18next\";\n\nconst OPERATORS = { or: \"or_operator\", and: \"and_operator\" };\n\nconst OPERATOR_LABELS = {\n or_operator: t(\"neetoRules.operators.or\"),\n and_operator: t(\"neetoRules.operators.and\"),\n};\n\nconst VERB_LABELS = {\n is: t(\"neetoRules.conditionVerbs.is\"),\n is_not: t(\"neetoRules.conditionVerbs.isNot\"),\n contains: t(\"neetoRules.conditionVerbs.contains\"),\n does_not_contain: t(\"neetoRules.conditionVerbs.doesNotContain\"),\n contains_any_of: t(\"neetoRules.conditionVerbs.containsAnyOf\"),\n contains_all_of: t(\"neetoRules.conditionVerbs.containsAllOf\"),\n contains_none_of: t(\"neetoRules.conditionVerbs.containsNoneOf\"),\n starts_with: t(\"neetoRules.conditionVerbs.startsWith\"),\n ends_with: t(\"neetoRules.conditionVerbs.endsWith\"),\n less_than: t(\"neetoRules.conditionVerbs.lessThan\"),\n greater_than: t(\"neetoRules.conditionVerbs.greaterThan\"),\n any_time: t(\"neetoRules.conditionVerbs.anyTime\"),\n during: t(\"neetoRules.conditionVerbs.during\"),\n not_during: t(\"neetoRules.conditionVerbs.notDuring\"),\n any_of: t(\"neetoRules.conditionVerbs.anyOf\"),\n none_of: t(\"neetoRules.conditionVerbs.noneOf\"),\n is_before: t(\"neetoRules.conditionVerbs.isBefore\"),\n is_after: t(\"neetoRules.conditionVerbs.isAfter\"),\n};\n\nconst CONDITION_VALUE_TYPES = {\n text: \"text\",\n number: \"number\",\n decimal: \"decimal\",\n url: \"url\",\n email: \"email\",\n dropdown: \"dropdown\",\n multiSelect: \"multi-select\",\n multiSelectCreate: \"multi-select-create\",\n date: \"date\",\n regex: \"regex\",\n textarea: \"textarea\",\n};\n\nconst INPUT_FIELD_TYPES = [\n \"email\",\n \"text\",\n \"number\",\n \"decimal\",\n \"url\",\n \"regex\",\n];\n\nconst DATETIME_FORMAT = { date: \"DD/MM/YYYY\", time: \"HH:mm a\" };\n\nconst MAXIMUM_OPTION_LENGTH = 7;\n\nexport {\n OPERATORS,\n OPERATOR_LABELS,\n VERB_LABELS,\n CONDITION_VALUE_TYPES,\n DATETIME_FORMAT,\n MAXIMUM_OPTION_LENGTH,\n INPUT_FIELD_TYPES,\n};\n"],"names":["OPERATORS","or","and","OPERATOR_LABELS","or_operator","t","and_operator","VERB_LABELS","is","is_not","contains","does_not_contain","contains_any_of","contains_all_of","contains_none_of","starts_with","ends_with","less_than","greater_than","any_time","during","not_during","any_of","none_of","is_before","is_after","CONDITION_VALUE_TYPES","text","number","decimal","url","email","dropdown","multiSelect","multiSelectCreate","date","regex","textarea","INPUT_FIELD_TYPES","MAXIMUM_OPTION_LENGTH"],"mappings":";;;;AAEA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,EAAE,EAAE,aAAa;AAAEC,EAAAA,GAAG,EAAE,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,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAA;AACZ,EAAC;AAED,IAAMC,iBAAiB,GAAG,CACxB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACR;AAIKC,IAAAA,qBAAqB,GAAG;;;;;;;;;"}
|
|
@@ -45,4 +45,4 @@ var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
|
|
|
45
45
|
var MAXIMUM_OPTION_LENGTH = 7;
|
|
46
46
|
|
|
47
47
|
export { CONDITION_VALUE_TYPES as C, INPUT_FIELD_TYPES as I, MAXIMUM_OPTION_LENGTH as M, OPERATOR_LABELS as O, VERB_LABELS as V, OPERATORS as a };
|
|
48
|
-
//# sourceMappingURL=constants-
|
|
48
|
+
//# sourceMappingURL=constants-CB5HRjxq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-CB5HRjxq.js","sources":["../app/javascript/src/components/NeetoRulesForm/Element/Conditions/constants.js"],"sourcesContent":["import { t } from \"i18next\";\n\nconst OPERATORS = { or: \"or_operator\", and: \"and_operator\" };\n\nconst OPERATOR_LABELS = {\n or_operator: t(\"neetoRules.operators.or\"),\n and_operator: t(\"neetoRules.operators.and\"),\n};\n\nconst VERB_LABELS = {\n is: t(\"neetoRules.conditionVerbs.is\"),\n is_not: t(\"neetoRules.conditionVerbs.isNot\"),\n contains: t(\"neetoRules.conditionVerbs.contains\"),\n does_not_contain: t(\"neetoRules.conditionVerbs.doesNotContain\"),\n contains_any_of: t(\"neetoRules.conditionVerbs.containsAnyOf\"),\n contains_all_of: t(\"neetoRules.conditionVerbs.containsAllOf\"),\n contains_none_of: t(\"neetoRules.conditionVerbs.containsNoneOf\"),\n starts_with: t(\"neetoRules.conditionVerbs.startsWith\"),\n ends_with: t(\"neetoRules.conditionVerbs.endsWith\"),\n less_than: t(\"neetoRules.conditionVerbs.lessThan\"),\n greater_than: t(\"neetoRules.conditionVerbs.greaterThan\"),\n any_time: t(\"neetoRules.conditionVerbs.anyTime\"),\n during: t(\"neetoRules.conditionVerbs.during\"),\n not_during: t(\"neetoRules.conditionVerbs.notDuring\"),\n any_of: t(\"neetoRules.conditionVerbs.anyOf\"),\n none_of: t(\"neetoRules.conditionVerbs.noneOf\"),\n is_before: t(\"neetoRules.conditionVerbs.isBefore\"),\n is_after: t(\"neetoRules.conditionVerbs.isAfter\"),\n};\n\nconst CONDITION_VALUE_TYPES = {\n text: \"text\",\n number: \"number\",\n decimal: \"decimal\",\n url: \"url\",\n email: \"email\",\n dropdown: \"dropdown\",\n multiSelect: \"multi-select\",\n multiSelectCreate: \"multi-select-create\",\n date: \"date\",\n regex: \"regex\",\n textarea: \"textarea\",\n};\n\nconst INPUT_FIELD_TYPES = [\n \"email\",\n \"text\",\n \"number\",\n \"decimal\",\n \"url\",\n \"regex\",\n];\n\nconst DATETIME_FORMAT = { date: \"DD/MM/YYYY\", time: \"HH:mm a\" };\n\nconst MAXIMUM_OPTION_LENGTH = 7;\n\nexport {\n OPERATORS,\n OPERATOR_LABELS,\n VERB_LABELS,\n CONDITION_VALUE_TYPES,\n DATETIME_FORMAT,\n MAXIMUM_OPTION_LENGTH,\n INPUT_FIELD_TYPES,\n};\n"],"names":["OPERATORS","or","and","OPERATOR_LABELS","or_operator","t","and_operator","VERB_LABELS","is","is_not","contains","does_not_contain","contains_any_of","contains_all_of","contains_none_of","starts_with","ends_with","less_than","greater_than","any_time","during","not_during","any_of","none_of","is_before","is_after","CONDITION_VALUE_TYPES","text","number","decimal","url","email","dropdown","multiSelect","multiSelectCreate","date","regex","textarea","INPUT_FIELD_TYPES","MAXIMUM_OPTION_LENGTH"],"mappings":";;AAEA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,EAAE,EAAE,aAAa;AAAEC,EAAAA,GAAG,EAAE,cAAA;AAAe,EAAC;AAE5D,IAAMC,eAAe,GAAG;AACtBC,EAAAA,WAAW,EAAEC,CAAC,CAAC,yBAAyB,CAAC;EACzCC,YAAY,EAAED,CAAC,CAAC,0BAA0B,CAAA;AAC5C,EAAC;AAED,IAAME,WAAW,GAAG;AAClBC,EAAAA,EAAE,EAAEH,CAAC,CAAC,8BAA8B,CAAC;AACrCI,EAAAA,MAAM,EAAEJ,CAAC,CAAC,iCAAiC,CAAC;AAC5CK,EAAAA,QAAQ,EAAEL,CAAC,CAAC,oCAAoC,CAAC;AACjDM,EAAAA,gBAAgB,EAAEN,CAAC,CAAC,0CAA0C,CAAC;AAC/DO,EAAAA,eAAe,EAAEP,CAAC,CAAC,yCAAyC,CAAC;AAC7DQ,EAAAA,eAAe,EAAER,CAAC,CAAC,yCAAyC,CAAC;AAC7DS,EAAAA,gBAAgB,EAAET,CAAC,CAAC,0CAA0C,CAAC;AAC/DU,EAAAA,WAAW,EAAEV,CAAC,CAAC,sCAAsC,CAAC;AACtDW,EAAAA,SAAS,EAAEX,CAAC,CAAC,oCAAoC,CAAC;AAClDY,EAAAA,SAAS,EAAEZ,CAAC,CAAC,oCAAoC,CAAC;AAClDa,EAAAA,YAAY,EAAEb,CAAC,CAAC,uCAAuC,CAAC;AACxDc,EAAAA,QAAQ,EAAEd,CAAC,CAAC,mCAAmC,CAAC;AAChDe,EAAAA,MAAM,EAAEf,CAAC,CAAC,kCAAkC,CAAC;AAC7CgB,EAAAA,UAAU,EAAEhB,CAAC,CAAC,qCAAqC,CAAC;AACpDiB,EAAAA,MAAM,EAAEjB,CAAC,CAAC,iCAAiC,CAAC;AAC5CkB,EAAAA,OAAO,EAAElB,CAAC,CAAC,kCAAkC,CAAC;AAC9CmB,EAAAA,SAAS,EAAEnB,CAAC,CAAC,oCAAoC,CAAC;EAClDoB,QAAQ,EAAEpB,CAAC,CAAC,mCAAmC,CAAA;AACjD,EAAC;AAED,IAAMqB,qBAAqB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAA;AACZ,EAAC;AAED,IAAMC,iBAAiB,GAAG,CACxB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACR;AAIKC,IAAAA,qBAAqB,GAAG;;;;"}
|
package/dist/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AUTOMATION_RULES_QUERY_KEY } from './
|
|
1
|
+
export { A as AUTOMATION_RULES_QUERY_KEY } from './index-9h4B7JZZ.js';
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/hooks.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-9h4B7JZZ.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":"AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DFwPrb81.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":";;AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AUTOMATION_RULES_QUERY_KEY } from './
|
|
1
|
+
export { A as AUTOMATION_RULES_QUERY_KEY } from './index-9h4B7JZZ.js';
|
|
2
2
|
export { default as CannedResponsesPane } from './CannedResponsesPane.js';
|
|
3
3
|
export { default as NeetoRules } from './NeetoRules.js';
|
|
4
|
-
export { u as useCustomDataStore } from './useCustomDataStore-
|
|
4
|
+
export { u as useCustomDataStore } from './useCustomDataStore-B1qHMIGJ.js';
|
|
5
5
|
export { default as NeetoRulesForm } from './NeetoRulesForm.js';
|
|
6
6
|
export { default as RulePreview } from './RulePreview.js';
|
|
7
7
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -33,7 +33,7 @@ import 'axios';
|
|
|
33
33
|
import '@bigbinary/neeto-molecules/Header';
|
|
34
34
|
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
35
35
|
import '@bigbinary/neetoui/Button';
|
|
36
|
-
import './utils-
|
|
36
|
+
import './utils-CvS2p6ZS.js';
|
|
37
37
|
import '@hello-pangea/dnd';
|
|
38
38
|
import '@bigbinary/neeto-icons/Reorder';
|
|
39
39
|
import 'react-router-dom';
|
|
@@ -43,7 +43,7 @@ import '@bigbinary/neeto-molecules/TableWrapper';
|
|
|
43
43
|
import '@bigbinary/neetoui/Alert';
|
|
44
44
|
import '@bigbinary/neetoui/Table';
|
|
45
45
|
import '@bigbinary/neetoui/NoData';
|
|
46
|
-
import './useUtilityStore-
|
|
46
|
+
import './useUtilityStore-KjKihXb0.js';
|
|
47
47
|
import 'zustand';
|
|
48
48
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
49
49
|
import '@bigbinary/neeto-molecules/MoreDropdown';
|
|
@@ -73,7 +73,7 @@ import '@bigbinary/neetoui/Tag';
|
|
|
73
73
|
import 'react-select';
|
|
74
74
|
import 'yup';
|
|
75
75
|
import '@bigbinary/neeto-editor/utils';
|
|
76
|
-
import './constants-
|
|
76
|
+
import './constants-CB5HRjxq.js';
|
|
77
77
|
import '@bigbinary/neeto-icons/Eye';
|
|
78
78
|
import '@bigbinary/neetoui/Popover';
|
|
79
79
|
import '@bigbinary/neetoui/formik/Radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomDataStore-
|
|
1
|
+
{"version":3,"file":"useCustomDataStore-B1qHMIGJ.js","sources":["../app/javascript/src/components/NeetoRulesForm/stores/useCustomDataStore.js"],"sourcesContent":["import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { create } from \"zustand\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCustomDataStore = create(\n withImmutableActions(set => ({ customData: {}, setCustomDataState: set }))\n);\n\nexport default useCustomDataStore;\n"],"names":["useCustomDataStore","create","withImmutableActions","set","customData","setCustomDataState"],"mappings":";;;AAGA;AACA,IAAMA,kBAAkB,GAAGC,MAAM,CAC/BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;IAAEC,UAAU,EAAE,EAAE;AAAEC,IAAAA,kBAAkB,EAAEF,GAAAA;GAAK,CAAA;AAAA,CAAC,CAC3E;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomDataStore-
|
|
1
|
+
{"version":3,"file":"useCustomDataStore-BEG8I__n.js","sources":["../app/javascript/src/components/NeetoRulesForm/stores/useCustomDataStore.js"],"sourcesContent":["import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { create } from \"zustand\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCustomDataStore = create(\n withImmutableActions(set => ({ customData: {}, setCustomDataState: set }))\n);\n\nexport default useCustomDataStore;\n"],"names":["useCustomDataStore","create","withImmutableActions","set","customData","setCustomDataState"],"mappings":";;;;;AAGA;AACA,IAAMA,kBAAkB,GAAGC,cAAM,CAC/BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;IAAEC,UAAU,EAAE,EAAE;AAAEC,IAAAA,kBAAkB,EAAEF,GAAAA;GAAK,CAAA;AAAA,CAAC,CAC3E;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUtilityStore-
|
|
1
|
+
{"version":3,"file":"useUtilityStore-BGuo9bko.js","sources":["../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { create } from \"zustand\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","setMoreActionDropdownItems","items","hidePreviewPane"],"mappings":";;;;;AAGA;AACA,IAAMA,eAAe,GAAGC,cAAM,CAC5BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,uBAAuB,EAAE,EAAE;AAC3BC,IAAAA,eAAe,EAAE,KAAK;AACtBC,IAAAA,0BAA0B,EAAE,SAA5BA,0BAA0BA,CAAEC,KAAK,EAAA;AAAA,MAAA,OAC/BJ,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAEG,KAAK;AAAEF,QAAAA,eAAe,EAAE,IAAA;AAAK,OAAC,CAAC,CAAA;AAAA,KAAA;IAChEG,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OACbL,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAE,EAAE;AAAEC,QAAAA,eAAe,EAAE,KAAA;AAAM,OAAC,CAAC,CAAA;AAAA,KAAA;GAC/D,CAAA;AAAA,CAAC,CACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUtilityStore-
|
|
1
|
+
{"version":3,"file":"useUtilityStore-KjKihXb0.js","sources":["../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { create } from \"zustand\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","setMoreActionDropdownItems","items","hidePreviewPane"],"mappings":";;;AAGA;AACA,IAAMA,eAAe,GAAGC,MAAM,CAC5BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,uBAAuB,EAAE,EAAE;AAC3BC,IAAAA,eAAe,EAAE,KAAK;AACtBC,IAAAA,0BAA0B,EAAE,SAA5BA,0BAA0BA,CAAEC,KAAK,EAAA;AAAA,MAAA,OAC/BJ,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAEG,KAAK;AAAEF,QAAAA,eAAe,EAAE,IAAA;AAAK,OAAC,CAAC,CAAA;AAAA,KAAA;IAChEG,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OACbL,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAE,EAAE;AAAEC,QAAAA,eAAe,EAAE,KAAA;AAAM,OAAC,CAAC,CAAA;AAAA,KAAA;GAC/D,CAAA;AAAA,CAAC,CACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-BngEaPaz.js","sources":["../app/javascript/src/utils.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase"],"mappings":";;IAAaA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAAE,EAAAA,EAAAA,CAAAA,MAAA,CAAQF,QAAQ,EAAM,MAAA,CAAA;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA,CAAA;GAClB,CAAA;AAAA,EAAC;IAEWI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;EAAA,IAAAC,sBAAA,EAAAC,sBAAA,CAAA;AAAA,EAAA,IAHJC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAAC,UAAA,GAAAJ,IAAA,CAChBJ,KAAK;AAALA,IAAAA,KAAK,GAAAQ,UAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,UAAA;IACTC,aAAa,GAAAL,IAAA,CAAbK,aAAa,CAAA;EAEb,IAAI,CAACA,aAAa,IAAI,CAACA,aAAa,CAACC,SAAS,EAAE,OAAOH,gBAAgB,CAAA;EAEvE,IAAI,CAACI,KAAK,CAACC,OAAO,CAACH,aAAa,CAACC,SAAS,CAAC,EAAE;AAAA,IAAA,IAAAG,qBAAA,CAAA;AAC3C,IAAA,OAAA,CAAAA,qBAAA,GAAOJ,aAAa,CAACC,SAAS,MAAA,IAAA,IAAAG,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAvBA,qBAAA,CAAyBC,WAAW,EAAE,CAAA;AAC/C,GAAA;EAEA,OAAAT,CAAAA,sBAAA,IAAAC,sBAAA,GAAOG,aAAa,CAACC,SAAS,CAACV,KAAK,CAAC,MAAA,IAAA,IAAAM,sBAAA,KAA9BA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,sBAAA,CAAgCQ,WAAW,EAAE,cAAAT,sBAAA,KAAA,KAAA,CAAA,GAAAA,sBAAA,GAAIE,gBAAgB,CAAA;AAC1E;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-CvS2p6ZS.js","sources":["../app/javascript/src/utils.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase"],"mappings":"IAAaA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,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.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-rules-nano",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "NODE_ENV=production rollup -c --environment production",
|
|
33
|
+
"build": "NODE_ENV=production rollup --bundleConfigAsCjs -c --environment production",
|
|
34
34
|
"build-preview": "NODE_ENV=production webpack",
|
|
35
35
|
"prepare": "husky install",
|
|
36
36
|
"release": "yarn build && yalc push --sig"
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"@babel/preset-typescript": "^7.18.6",
|
|
61
61
|
"@babel/runtime": "7.19.0",
|
|
62
62
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
63
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
64
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
65
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
66
|
-
"@bigbinary/neeto-editor": "1.43.
|
|
67
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
63
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.5",
|
|
64
|
+
"@bigbinary/neeto-cist": "1.0.13",
|
|
65
|
+
"@bigbinary/neeto-commons-frontend": "4.10.0",
|
|
66
|
+
"@bigbinary/neeto-editor": "1.43.16",
|
|
67
|
+
"@bigbinary/neeto-filters-frontend": "4.3.6",
|
|
68
68
|
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
69
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
70
|
-
"@bigbinary/neeto-molecules": "3.
|
|
71
|
-
"@bigbinary/neetoui": "8.2.
|
|
69
|
+
"@bigbinary/neeto-icons": "1.20.12",
|
|
70
|
+
"@bigbinary/neeto-molecules": "3.8.0",
|
|
71
|
+
"@bigbinary/neetoui": "8.2.31",
|
|
72
72
|
"@emotion/is-prop-valid": "1.2.0",
|
|
73
73
|
"@faker-js/faker": "8.2.0",
|
|
74
74
|
"@hello-pangea/dnd": "16.3.0",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"babel-plugin-istanbul": "^6.1.1",
|
|
91
91
|
"babel-plugin-js-logger": "1.0.17",
|
|
92
92
|
"babel-plugin-macros": "3.1.0",
|
|
93
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
93
94
|
"babel-plugin-preval": "^5.1.0",
|
|
94
95
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
95
96
|
"babel-preset-react": "6.24.1",
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
"react-select": "5.6.0",
|
|
146
147
|
"react-toastify": "8.0.2",
|
|
147
148
|
"react_ujs": "^3.1.1",
|
|
148
|
-
"rollup": "
|
|
149
|
+
"rollup": "^4.24.0",
|
|
149
150
|
"rollup-plugin-analyzer": "4.0.0",
|
|
150
151
|
"rollup-plugin-cleaner": "1.0.0",
|
|
151
152
|
"rollup-plugin-copy": "^3.5.0",
|
|
@@ -172,14 +173,14 @@
|
|
|
172
173
|
},
|
|
173
174
|
"peerDependencies": {
|
|
174
175
|
"@babel/runtime": "7.19.0",
|
|
175
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
176
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
177
|
-
"@bigbinary/neeto-editor": "1.43.
|
|
178
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
176
|
+
"@bigbinary/neeto-cist": "1.0.13",
|
|
177
|
+
"@bigbinary/neeto-commons-frontend": "4.10.0",
|
|
178
|
+
"@bigbinary/neeto-editor": "1.43.16",
|
|
179
|
+
"@bigbinary/neeto-filters-frontend": "4.3.6",
|
|
179
180
|
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
180
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
181
|
-
"@bigbinary/neeto-molecules": "3.
|
|
182
|
-
"@bigbinary/neetoui": "8.2.
|
|
181
|
+
"@bigbinary/neeto-icons": "1.20.12",
|
|
182
|
+
"@bigbinary/neeto-molecules": "3.8.0",
|
|
183
|
+
"@bigbinary/neetoui": "8.2.31",
|
|
183
184
|
"@hello-pangea/dnd": "16.3.0",
|
|
184
185
|
"@honeybadger-io/js": "^6.4.1",
|
|
185
186
|
"@honeybadger-io/react": "^6.1.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-12c6ac46.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":"AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-2f1113f8.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":";;AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;;"}
|