@kne/form-info 0.1.7 → 0.1.9

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.
@@ -113,7 +113,7 @@ var classnames = createCommonjsModule(function (module) {
113
113
  }());
114
114
  });
115
115
 
116
- var style = {"form-outer":"_ZQNNL","form-info":"_GW4Xx","extra-btn":"_eY4qR","list-part":"_SL3dC","list-item":"_PNnMa","is-important":"_Xkp38","list-item-part":"_HiB5Q","table-list-inner":"_Uw-3T","multi-field-item":"_uogqr","react-form__field-label":"_UGjS9","multi-field-add-btn":"_rjVPh","table-list":"_r8-bn","table-list-field":"_Qkutm","table-list-header":"_9WdfD","is-req":"_CsPaL","table-options":"_8smwK","steps":"_IOdkE","steps-form-inner":"_uc1HZ","steps-modal":"_vWPQO","table-list-empty":"_DXskv","extra-container":"_wU-w4"};
116
+ var style = {"form-outer":"kne-form-info_ZQNNL","form-info":"kne-form-info_GW4Xx","extra-btn":"kne-form-info_eY4qR","list-part":"kne-form-info_SL3dC","list-item":"kne-form-info_PNnMa","is-important":"kne-form-info_Xkp38","list-item-part":"kne-form-info_HiB5Q","table-list-inner":"kne-form-info_Uw-3T","multi-field-item":"kne-form-info_uogqr","react-form__field-label":"kne-form-info_UGjS9","multi-field-add-btn":"kne-form-info_rjVPh","table-list":"kne-form-info_r8-bn","table-list-field":"kne-form-info_Qkutm","table-list-header":"kne-form-info_9WdfD","is-req":"kne-form-info_CsPaL","table-options":"kne-form-info_8smwK","steps":"kne-form-info_IOdkE","steps-form-inner":"kne-form-info_uc1HZ","steps-modal":"kne-form-info_vWPQO","table-list-empty":"kne-form-info_DXskv","extra-container":"kne-form-info_wU-w4"};
117
117
 
118
118
  const _excluded$7 = ["className", "column", "list", "gap"];
119
119
  const FormInfo = props => {
@@ -206,7 +206,7 @@ const withLocale = createWithIntlProvider({
206
206
  namespace: 'form-info'
207
207
  });
208
208
 
209
- const _excluded$6 = ["className", "itemClassName", "removeIcon", "removeText", "addText", "addIcon", "important", "title"],
209
+ const _excluded$6 = ["className", "itemClassName", "removeIcon", "removeText", "addText", "addIcon", "important", "title", "bordered"],
210
210
  _excluded2$2 = ["id", "allowRemove", "onRemove", "index", "groupArgs"];
211
211
  const List = withLocale(p => {
212
212
  const {
@@ -233,7 +233,8 @@ const List = withLocale(p => {
233
233
  addText,
234
234
  addIcon,
235
235
  important,
236
- title
236
+ title,
237
+ bordered
237
238
  } = _Object$assign,
238
239
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$6);
239
240
  return /*#__PURE__*/jsx(SubList, _extends({}, others, {
@@ -250,6 +251,7 @@ const List = withLocale(p => {
250
251
  [style['is-important']]: important
251
252
  }),
252
253
  children: [/*#__PURE__*/jsx(FormInfo, _extends({}, props, {
254
+ bordered: bordered,
253
255
  className: style['list-item-part'],
254
256
  gap: 16,
255
257
  extra: allowRemove && /*#__PURE__*/jsx(Button, {
@@ -270,6 +272,7 @@ const List = withLocale(p => {
270
272
  return /*#__PURE__*/jsx(InfoPage.Part, {
271
273
  className: itemClassName,
272
274
  title: title,
275
+ bordered: bordered,
273
276
  extra: /*#__PURE__*/jsx("div", {
274
277
  className: style['extra-container'],
275
278
  children: allowAdd && /*#__PURE__*/jsx(Button, {
@@ -345,7 +348,7 @@ const MultiField = withLocale(p => {
345
348
  }));
346
349
  });
347
350
 
348
- const _excluded$4 = ["className", "addIcon", "addText", "removeIcon", "removeText", "title"];
351
+ const _excluded$4 = ["className", "addIcon", "addText", "removeIcon", "removeText", "title", "bordered"];
349
352
  const TableList = withLocale(p => {
350
353
  const {
351
354
  formatMessage
@@ -370,7 +373,8 @@ const TableList = withLocale(p => {
370
373
  addText,
371
374
  removeIcon,
372
375
  removeText,
373
- title
376
+ title,
377
+ bordered
374
378
  } = _Object$assign,
375
379
  others = _objectWithoutPropertiesLoose(_Object$assign, _excluded$4);
376
380
  return /*#__PURE__*/jsx(TableList$1, _extends({}, others, {
@@ -438,6 +442,7 @@ const TableList = withLocale(p => {
438
442
  return /*#__PURE__*/jsx(InfoPage.Part, {
439
443
  title: title,
440
444
  className: classnames(className, style['table-list']),
445
+ bordered: bordered,
441
446
  extra: /*#__PURE__*/jsx("div", {
442
447
  className: style['extra-container'],
443
448
  children: allowAdd && /*#__PURE__*/jsx(Button, {
@@ -3332,7 +3337,9 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
3332
3337
  function baseUnset(object, path) {
3333
3338
  path = _castPath(path, object);
3334
3339
 
3335
- // Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
3340
+ // Prevent prototype pollution:
3341
+ // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
3342
+ // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
3336
3343
  var index = -1,
3337
3344
  length = path.length;
3338
3345
 
@@ -3340,32 +3347,17 @@ function baseUnset(object, path) {
3340
3347
  return true;
3341
3348
  }
3342
3349
 
3343
- var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
3344
-
3345
3350
  while (++index < length) {
3346
- var key = path[index];
3347
-
3348
- // skip non-string keys (e.g., Symbols, numbers)
3349
- if (typeof key !== 'string') {
3350
- continue;
3351
- }
3351
+ var key = _toKey(path[index]);
3352
3352
 
3353
3353
  // Always block "__proto__" anywhere in the path if it's not expected
3354
3354
  if (key === '__proto__' && !hasOwnProperty$1.call(object, '__proto__')) {
3355
3355
  return false;
3356
3356
  }
3357
3357
 
3358
- // Block "constructor.prototype" chains
3359
- if (key === 'constructor' &&
3360
- (index + 1) < length &&
3361
- typeof path[index + 1] === 'string' &&
3362
- path[index + 1] === 'prototype') {
3363
-
3364
- // Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
3365
- if (isRootPrimitive && index === 0) {
3366
- continue;
3367
- }
3368
-
3358
+ // Block constructor/prototype as non-terminal traversal keys to prevent
3359
+ // escaping the object graph into built-in constructors and prototypes.
3360
+ if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
3369
3361
  return false;
3370
3362
  }
3371
3363
  }