@bigbinary/neeto-rules-frontend 0.8.0 → 0.8.1
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/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { withImmutableActions, withT, useMutationWithInvalidation, useQueryParam
|
|
|
2
2
|
import { create as create$1 } from 'zustand';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useEffect, useContext, useLayoutEffect as useLayoutEffect$1, createElement, useMemo as useMemo$1, forwardRef, createContext, useCallback as useCallback$1, Component, Fragment as Fragment$1, memo } from 'react';
|
|
5
|
-
import { findBy, isNotEmpty, noop as noop$4,
|
|
5
|
+
import { findBy, isNotEmpty, noop as noop$4, isPresent, renameKeys, nullSafe, toLabelAndValue, removeBy } from '@bigbinary/neeto-cist';
|
|
6
6
|
import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
|
|
7
7
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
8
8
|
import Pane from '@bigbinary/neetoui/Pane';
|
|
@@ -11008,6 +11008,9 @@ var setEditorContent = function setEditorContent(ref, content) {
|
|
|
11008
11008
|
|
|
11009
11009
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11010
11010
|
var dotPath = useWith(path, [split(".")]);
|
|
11011
|
+
var formatAdditionalData = function formatAdditionalData(additionalData) {
|
|
11012
|
+
return isPresent(additionalData) ? additionalData : [ADDITIONAL_DATA_INITIAL_VALUE];
|
|
11013
|
+
};
|
|
11011
11014
|
|
|
11012
11015
|
var KeyValuePairsField = withT(function (_ref) {
|
|
11013
11016
|
var t = _ref.t,
|
|
@@ -11121,7 +11124,7 @@ var ApiFields = function ApiFields(_ref) {
|
|
|
11121
11124
|
var isTemplateSelectionEnabled = isPresent(templates);
|
|
11122
11125
|
var handleTemplateChange = function handleTemplateChange(template) {
|
|
11123
11126
|
setFieldValue("".concat(name, ".endpoint"), template.endpoint);
|
|
11124
|
-
setFieldValue("".concat(name, ".additionalData"), template.additionalData);
|
|
11127
|
+
setFieldValue("".concat(name, ".additionalData"), formatAdditionalData(template.additionalData));
|
|
11125
11128
|
};
|
|
11126
11129
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11127
11130
|
children: [/*#__PURE__*/jsx$1(Typography, {
|