@bigbinary/neeto-team-members-frontend 2.3.5 → 2.3.6

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/README.md CHANGED
@@ -12,13 +12,13 @@ functioning of the package. Install all the peer dependencies using the below
12
12
  command:
13
13
 
14
14
  ```zsh
15
- yarn add @bigbinary/neeto-icons@1.8.37 @bigbinary/neetoui@3.5.17 axios@0.27.2 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@9.0.8 yup@0.32.11
15
+ yarn add @bigbinary/neeto-icons@1.8.39 @bigbinary/neetoui@3.5.17 axios@0.27.2 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@9.0.8 yup@0.32.11
16
16
  ```
17
17
 
18
18
  2. Now install the latest **neetoTeamMembers** package using the below command:
19
19
 
20
20
  ```zsh
21
- yarn add @bigbinary/neeto-team-members-frontend@2.3.4
21
+ yarn add @bigbinary/neeto-team-members-frontend@2.3.6
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -107,4 +107,4 @@ live update.
107
107
  | neetoAuth | :x: | :x: | |
108
108
  | neetoChat | :x: | :x: | |
109
109
  | neetoDesk | :x: | :white_check_mark: | |
110
- | neetoInvoice | :x: | :x: | |
110
+ | neetoInvoice | :x: | :white_check_mark: | |
package/dist/index.cjs.js CHANGED
@@ -269,6 +269,13 @@ var Logger = function () {
269
269
  prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
270
270
  }), this.options));
271
271
  }
272
+ }, {
273
+ key: "clone",
274
+ value: function clone(options) {
275
+ options = options || this.options;
276
+ options.prefix = options.prefix || this.prefix;
277
+ return new Logger(this.logger, options);
278
+ }
272
279
  }]);
273
280
 
274
281
  return Logger;
@@ -1817,7 +1824,12 @@ var Interpolator = function () {
1817
1824
  var optionsString = "{".concat(c[1]);
1818
1825
  key = c[0];
1819
1826
  optionsString = this.interpolate(optionsString, clonedOptions);
1820
- optionsString = optionsString.replace(/'/g, '"');
1827
+ var matchedSingleQuotes = optionsString.match(/'/g);
1828
+ var matchedDoubleQuotes = optionsString.match(/"/g);
1829
+
1830
+ if (matchedSingleQuotes && matchedSingleQuotes.length % 2 === 0 && !matchedDoubleQuotes || matchedDoubleQuotes.length % 2 !== 0) {
1831
+ optionsString = optionsString.replace(/'/g, '"');
1832
+ }
1821
1833
 
1822
1834
  try {
1823
1835
  clonedOptions = JSON.parse(optionsString);
@@ -2907,6 +2919,11 @@ var I18n = function (_EventEmitter) {
2907
2919
  });
2908
2920
 
2909
2921
  var clone = new I18n(mergedOptions);
2922
+
2923
+ if (options.debug !== undefined || options.prefix !== undefined) {
2924
+ clone.logger = clone.logger.clone(options);
2925
+ }
2926
+
2910
2927
  var membersToCopy = ['store', 'services', 'language'];
2911
2928
  membersToCopy.forEach(function (m) {
2912
2929
  clone[m] = _this8[m];
@@ -12480,6 +12497,8 @@ const renderPayload = function (_ref) {
12480
12497
  };
12481
12498
 
12482
12499
  const ManageMember = _ref => {
12500
+ var _config$manageMember;
12501
+
12483
12502
  let config = _ref.config,
12484
12503
  isOpen = _ref.isOpen,
12485
12504
  metaName = _ref.metaName,
@@ -12498,6 +12517,14 @@ const ManageMember = _ref => {
12498
12517
  setHasSubmitted(false);
12499
12518
  };
12500
12519
 
12520
+ const manageMemberProps = {
12521
+ hasSubmitted,
12522
+ onPaneClose,
12523
+ roles,
12524
+ selectedMember,
12525
+ queryClient
12526
+ };
12527
+
12501
12528
  const _useCreateMember = useCreateMember({
12502
12529
  onSuccess: () => {
12503
12530
  var _config$createMember, _config$createMember$;
@@ -12534,7 +12561,7 @@ const ManageMember = _ref => {
12534
12561
  what: instance.t(metaName, SINGULAR).toLocaleLowerCase()
12535
12562
  }) : instance.t("common.add_", {
12536
12563
  what: instance.t(metaName, SINGULAR).toLocaleLowerCase()
12537
- }))), /*#__PURE__*/React__default["default"].createElement(formik.Formik, {
12564
+ }))), config !== null && config !== void 0 && (_config$manageMember = config.manageMember) !== null && _config$manageMember !== void 0 && _config$manageMember.component ? config.manageMember.component(manageMemberProps) : /*#__PURE__*/React__default["default"].createElement(formik.Formik, {
12538
12565
  initialValues: renderInitialValues(selectedMember),
12539
12566
  onSubmit: handleAddMember,
12540
12567
  validationSchema: VALIDATION_SCHEMA,