@bpmn-io/form-js-editor 1.8.5 → 1.8.7

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/LICENSE CHANGED
@@ -1,23 +1,23 @@
1
- Copyright (c) 2021-present Camunda Services GmbH
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in the
5
- Software without restriction, including without limitation the rights to use, copy,
6
- modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
- and to permit persons to whom the Software is furnished to do so, subject to the
8
- following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- The source code responsible for displaying the bpmn.io project watermark that
14
- links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
- removed or changed. When this software is being used in a website or application,
16
- the watermark must stay fully visible and not visually overlapped by other elements.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
1
+ Copyright (c) 2021-present Camunda Services GmbH
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in the
5
+ Software without restriction, including without limitation the rights to use, copy,
6
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7
+ and to permit persons to whom the Software is furnished to do so, subject to the
8
+ following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ The source code responsible for displaying the bpmn.io project watermark that
14
+ links back to https://bpmn.io as part of rendered diagrams MUST NOT be
15
+ removed or changed. When this software is being used in a website or application,
16
+ the watermark must stay fully visible and not visually overlapped by other elements.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
19
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
20
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
23
23
  OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/index.cjs CHANGED
@@ -886,11 +886,10 @@ var SvgClose = function SvgClose(props) {
886
886
  fill: "currentColor"
887
887
  }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
888
888
  fillRule: "evenodd",
889
- d: "m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8 12 4.7Z",
889
+ d: "m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z",
890
890
  clipRule: "evenodd"
891
891
  })));
892
892
  };
893
- var CloseIcon = SvgClose;
894
893
 
895
894
  var _path$4, _path2$1;
896
895
  function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
@@ -918,13 +917,12 @@ var SvgDelete = function SvgDelete(props) {
918
917
  transform: "translate(.536)"
919
918
  }), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
920
919
  fill: "currentcolor",
921
- d: "M7.536 6h-1v6h1V6Zm3 0h-1v6h1V6Z"
920
+ d: "M7.536 6h-1v6h1zm3 0h-1v6h1z"
922
921
  })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
923
922
  fill: "currentcolor",
924
- d: "M2.536 3v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3h-12Zm2 11V4h8v10h-8Zm6-13h-4v1h4V1Z"
923
+ d: "M2.536 3v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zm2 11V4h8v10zm6-13h-4v1h4z"
925
924
  })));
926
925
  };
927
- var DeleteIcon$1 = SvgDelete;
928
926
 
929
927
  var _path$3;
930
928
  function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
@@ -945,7 +943,6 @@ var SvgDraggable = function SvgDraggable(props) {
945
943
  }
946
944
  }));
947
945
  };
948
- var DraggableIcon = SvgDraggable;
949
946
 
950
947
  var _path$2;
951
948
  function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
@@ -957,10 +954,9 @@ var SvgSearch = function SvgSearch(props) {
957
954
  fill: "none"
958
955
  }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
959
956
  fill: "currentColor",
960
- d: "m14.5 13.793-3.776-3.776a5.508 5.508 0 1 0-.707.707l3.776 3.776.707-.707ZM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"
957
+ d: "m14.5 13.793-3.776-3.776a5.508 5.508 0 1 0-.707.707l3.776 3.776zM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"
961
958
  })));
962
959
  };
963
- var SearchIcon = SvgSearch;
964
960
 
965
961
  var _path$1, _rect, _mask, _path2, _path3, _path4, _path5, _path6;
966
962
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
@@ -973,7 +969,7 @@ var SvgEmptyForm = function SvgEmptyForm(props) {
973
969
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
974
970
  fill: "#FF832B",
975
971
  fillRule: "evenodd",
976
- d: "M70 78v8a3 3 0 0 1-3 3h-8v-5h6v-6h5Zm0-16h-5V46h5v16Zm0-32h-5v-6h-6v-5h8a3 3 0 0 1 3 3v8ZM43 19v5H27v-5h16Zm-32 0v5H5v6H0v-8a3 3 0 0 1 3-3h8ZM0 46h5v16H0V46Zm0 32h5v6h6v5H3a3 3 0 0 1-3-3v-8Zm27 11v-5h16v5H27Z",
972
+ d: "M70 78v8a3 3 0 0 1-3 3h-8v-5h6v-6zm0-16h-5V46h5zm0-32h-5v-6h-6v-5h8a3 3 0 0 1 3 3zM43 19v5H27v-5zm-32 0v5H5v6H0v-8a3 3 0 0 1 3-3zM0 46h5v16H0zm0 32h5v6h6v5H3a3 3 0 0 1-3-3zm27 11v-5h16v5z",
977
973
  clipRule: "evenodd"
978
974
  })), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
979
975
  width: 70,
@@ -986,16 +982,16 @@ var SvgEmptyForm = function SvgEmptyForm(props) {
986
982
  fill: "#fff"
987
983
  }, /*#__PURE__*/React__namespace.createElement("path", {
988
984
  fillRule: "evenodd",
989
- d: "M87.085 88.684 75.43 45.185l43.499 11.656-11.044 8.072 8.557 8.556-12.728 12.728-8.557-8.556-8.072 11.043Z",
985
+ d: "M87.085 88.684 75.43 45.185l43.499 11.656-11.044 8.072 8.557 8.556-12.728 12.728-8.557-8.556z",
990
986
  clipRule: "evenodd"
991
987
  }))), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
992
988
  fill: "#393939",
993
989
  fillRule: "evenodd",
994
- d: "M87.085 88.684 75.43 45.185l43.499 11.656-11.044 8.072 8.557 8.556-12.728 12.728-8.557-8.556-8.072 11.043Z",
990
+ d: "M87.085 88.684 75.43 45.185l43.499 11.656-11.044 8.072 8.557 8.556-12.728 12.728-8.557-8.556z",
995
991
  clipRule: "evenodd"
996
992
  })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
997
993
  fill: "#393939",
998
- d: "M75.43 45.185 70.6 46.48l-2.241-8.365 8.365 2.242-1.294 4.83Zm11.655 43.499 4.037 2.95-6.163 8.432-2.704-10.088 4.83-1.294Zm31.844-31.843 1.294-4.83 10.088 2.703-8.432 6.163-2.95-4.036Zm-11.044 8.072-3.535 3.535-4.128-4.127 4.713-3.445 2.95 4.037Zm8.557 8.556 3.535-3.535 3.536 3.535-3.536 3.536-3.535-3.536Zm-12.728 12.728 3.536 3.536-3.536 3.535-3.536-3.535 3.536-3.536Zm-8.557-8.556-4.036-2.951 3.444-4.713 4.128 4.128-3.536 3.535ZM80.26 43.89 91.915 87.39l-9.66 2.588L70.6 46.48l9.66-2.588Zm37.375 17.78L74.136 50.014l2.588-9.66 43.499 11.656-2.589 9.66Zm-12.699-.795 11.043-8.072 5.901 8.073-11.043 8.072-5.901-8.073Zm7.971 16.129-8.556-8.557 7.071-7.07 8.556 8.556-7.071 7.07Zm-12.728 5.657 12.728-12.728 7.071 7.07-12.727 12.729-7.072-7.071Zm-1.485-8.557 8.557 8.557-7.072 7.07-8.556-8.556 7.07-7.071ZM83.049 85.733 91.12 74.69l8.073 5.901-8.072 11.044-8.073-5.902Z",
994
+ d: "M75.43 45.185 70.6 46.48l-2.241-8.365 8.365 2.242zm11.655 43.499 4.037 2.95-6.163 8.432-2.704-10.088zm31.844-31.843 1.294-4.83 10.088 2.703-8.432 6.163zm-11.044 8.072-3.535 3.535-4.128-4.127 4.713-3.445zm8.557 8.556 3.535-3.535 3.536 3.535-3.536 3.536zm-12.728 12.728 3.536 3.536-3.536 3.535-3.536-3.535zm-8.557-8.556-4.036-2.951 3.444-4.713 4.128 4.128zM80.26 43.89 91.915 87.39l-9.66 2.588L70.6 46.48zm37.375 17.78L74.136 50.014l2.588-9.66 43.499 11.656zm-12.699-.795 11.043-8.072 5.901 8.073-11.043 8.072zm7.971 16.129-8.556-8.557 7.071-7.07 8.556 8.556zm-12.728 5.657 12.728-12.728 7.071 7.07-12.727 12.729zm-1.485-8.557 8.557 8.557-7.072 7.07-8.556-8.556zM83.049 85.733 91.12 74.69l8.073 5.901-8.072 11.044z",
999
995
  mask: "url(#EmptyForm_svg__a)"
1000
996
  })), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
1001
997
  stroke: "#000",
@@ -1015,7 +1011,6 @@ var SvgEmptyForm = function SvgEmptyForm(props) {
1015
1011
  d: "M78.969 36.367v-8"
1016
1012
  })));
1017
1013
  };
1018
- var EmptyFormIcon = SvgEmptyForm;
1019
1014
 
1020
1015
  function EditorText(props) {
1021
1016
  const {
@@ -1558,7 +1553,7 @@ function Palette(props) {
1558
1553
  class: "fjs-palette-search-container",
1559
1554
  children: [jsxRuntime.jsx("span", {
1560
1555
  class: "fjs-palette-search-icon",
1561
- children: jsxRuntime.jsx(SearchIcon, {})
1556
+ children: jsxRuntime.jsx(SvgSearch, {})
1562
1557
  }), jsxRuntime.jsx("input", {
1563
1558
  class: "fjs-palette-search",
1564
1559
  ref: inputRef,
@@ -1571,7 +1566,7 @@ function Palette(props) {
1571
1566
  title: "Clear content",
1572
1567
  class: "fjs-palette-search-clear",
1573
1568
  onClick: handleClear,
1574
- children: jsxRuntime.jsx(CloseIcon, {})
1569
+ children: jsxRuntime.jsx(SvgClose, {})
1575
1570
  })]
1576
1571
  }), jsxRuntime.jsxs("div", {
1577
1572
  class: "fjs-palette-entries",
@@ -2202,7 +2197,7 @@ function EmptyForm() {
2202
2197
  class: "fjs-empty-editor",
2203
2198
  children: jsxRuntime.jsxs("div", {
2204
2199
  class: "fjs-empty-editor-card",
2205
- children: [jsxRuntime.jsx(EmptyFormIcon, {}), jsxRuntime.jsx("h2", {
2200
+ children: [jsxRuntime.jsx(SvgEmptyForm, {}), jsxRuntime.jsx("h2", {
2206
2201
  children: "Build your form"
2207
2202
  }), jsxRuntime.jsx("span", {
2208
2203
  children: "Drag and drop components here to start designing."
@@ -2328,7 +2323,7 @@ function Element$1(props) {
2328
2323
  title: getRemoveButtonTitle(field, formFields),
2329
2324
  class: "fjs-context-pad-item",
2330
2325
  onClick: onRemove,
2331
- children: jsxRuntime.jsx(DeleteIcon$1, {})
2326
+ children: jsxRuntime.jsx(SvgDelete, {})
2332
2327
  }) : null
2333
2328
  }), props.children, jsxRuntime.jsx(FieldResizer, {
2334
2329
  position: "left",
@@ -2385,7 +2380,7 @@ function Row(props) {
2385
2380
  class: classnames(DRAG_ROW_MOVE_CLS),
2386
2381
  children: [jsxRuntime.jsx("span", {
2387
2382
  class: "fjs-row-dragger",
2388
- children: jsxRuntime.jsx(DraggableIcon, {})
2383
+ children: jsxRuntime.jsx(SvgDraggable, {})
2389
2384
  }), jsxRuntime.jsx("div", {
2390
2385
  class: classes.join(' '),
2391
2386
  style: props.style,
@@ -13323,10 +13318,9 @@ var SvgRepeat = function SvgRepeat(props) {
13323
13318
  fill: "none"
13324
13319
  }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
13325
13320
  fill: "currentColor",
13326
- d: "M3 3h10.086l-1.793-1.793L12 .5l3 3-3 3-.707-.707L13.086 4H3v3.5H2V4a1.001 1.001 0 0 1 1-1ZM4.707 10.207 2.914 12H13V8.5h1V12a1.002 1.002 0 0 1-1 1H2.914l1.793 1.793L4 15.5l-3-3 3-3 .707.707Z"
13321
+ d: "M3 3h10.086l-1.793-1.793L12 .5l3 3-3 3-.707-.707L13.086 4H3v3.5H2V4a1 1 0 0 1 1-1M4.707 10.207 2.914 12H13V8.5h1V12a1 1 0 0 1-1 1H2.914l1.793 1.793L4 15.5l-3-3 3-3z"
13327
13322
  })));
13328
13323
  };
13329
- var RepeatSvg = SvgRepeat;
13330
13324
 
13331
13325
  class EditorRepeatRenderManager {
13332
13326
  constructor(formFields, formFieldRegistry) {
@@ -13352,7 +13346,7 @@ class EditorRepeatRenderManager {
13352
13346
  RepeatFooter() {
13353
13347
  return jsxRuntime.jsxs("div", {
13354
13348
  className: "fjs-repeat-render-footer",
13355
- children: [jsxRuntime.jsx(RepeatSvg, {}), jsxRuntime.jsx("span", {
13349
+ children: [jsxRuntime.jsx(SvgRepeat, {}), jsxRuntime.jsx("span", {
13356
13350
  children: "Repeatable"
13357
13351
  })]
13358
13352
  });
@@ -13670,7 +13664,7 @@ function createFormEditor(options) {
13670
13664
  });
13671
13665
  }
13672
13666
 
13673
- Object.defineProperty(exports, 'schemaVersion', {
13667
+ Object.defineProperty(exports, "schemaVersion", {
13674
13668
  enumerable: true,
13675
13669
  get: function () { return formJsViewer.schemaVersion; }
13676
13670
  });