seat-editor 3.6.9 → 3.6.10

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.
@@ -16,18 +16,18 @@ const LayerView = (props) => {
16
16
  const { componentProps, extraComponentProps, onSelectComponent, onDoubleClick, mappingKey, statusKey, defaultBackground, defaultBoundingBox,
17
17
  // iconTags,
18
18
  tooltipProps, onRightClick, allowTooltip = true, tableMatchKey, eventMatchTable, ghostAttributes, onDrop, onSwitch, refs, privilegedTags, loadingRender, actionPrivileged = {
19
- select: true,
20
- move: true,
21
- switch: true,
22
- drop: true,
23
- rightClick: true,
24
- double: true,
25
- selection: true,
26
- grapConnection: true,
27
- viewGraph: true,
28
- dragTable: true,
29
- selectNode: true,
30
- connectingNode: true
19
+ select: false,
20
+ move: false,
21
+ switch: false,
22
+ drop: false,
23
+ rightClick: false,
24
+ double: false,
25
+ selection: false,
26
+ grapConnection: false,
27
+ viewGraph: false,
28
+ dragTable: false,
29
+ selectNode: false,
30
+ connectingNode: false
31
31
  }, onMakeSelection, } = props;
32
32
  const widthTooltip = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.minWidth) || 168;
33
33
  const tableGhost = useRef(null);
@@ -15,18 +15,18 @@ const LayerView = (props) => {
15
15
  const { componentProps, extraComponentProps, onSelectComponent, onDoubleClick, mappingKey, statusKey, defaultBackground, defaultBoundingBox,
16
16
  // iconTags,
17
17
  tooltipProps, onRightClick, allowTooltip = true, tableMatchKey, eventMatchTable, ghostAttributes, onDrop, onSwitch, refs, privilegedTags, loadingRender, actionPrivileged = {
18
- select: true,
19
- move: true,
20
- switch: true,
21
- drop: true,
22
- rightClick: true,
23
- double: true,
24
- selection: true,
25
- grapConnection: true,
26
- viewGraph: true,
27
- dragTable: true,
28
- selectNode: true,
29
- connectingNode: true
18
+ select: false,
19
+ move: false,
20
+ switch: false,
21
+ drop: false,
22
+ rightClick: false,
23
+ double: false,
24
+ selection: false,
25
+ grapConnection: false,
26
+ viewGraph: false,
27
+ dragTable: false,
28
+ selectNode: false,
29
+ connectingNode: false
30
30
  }, onMakeSelection, } = props;
31
31
  const widthTooltip = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.minWidth) || 168;
32
32
  const tableGhost = useRef(null);
@@ -69,7 +69,7 @@ export const buildPath = (points) => {
69
69
  // ─── renderElements ──────────────────────────────────────────────────────────
70
70
  export const renderElements = (elementEditor, mappingKey, tableMatchKey, connecting) => {
71
71
  return elementEditor.map((editorItem) => {
72
- var _a;
72
+ var _a, _b;
73
73
  const isUsingMapping = mappingKey &&
74
74
  typeof editorItem[mappingKey] === "object" &&
75
75
  editorItem[mappingKey] !== null;
@@ -80,7 +80,7 @@ export const renderElements = (elementEditor, mappingKey, tableMatchKey, connect
80
80
  if (hasKey)
81
81
  return item.value == (editorItem === null || editorItem === void 0 ? void 0 : editorItem[item.key]);
82
82
  });
83
- const fill = (connecting === null || connecting === void 0 ? void 0 : connecting.fromId) == (finalProps === null || finalProps === void 0 ? void 0 : finalProps.id) ? "#7239EA" : (_a = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties.fill) !== null && _a !== void 0 ? _a : finalProps === null || finalProps === void 0 ? void 0 : finalProps.fill;
83
+ const fill = (connecting === null || connecting === void 0 ? void 0 : connecting.fromId) == (finalProps === null || finalProps === void 0 ? void 0 : finalProps.id) ? "#7239EA" : (_b = (_a = tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : finalProps === null || finalProps === void 0 ? void 0 : finalProps.fill;
84
84
  finalProps = Object.assign(Object.assign(Object.assign({}, finalProps), tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.properties), { fill: fill, className: tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.className, element: tableMatch === null || tableMatch === void 0 ? void 0 : tableMatch.element });
85
85
  }
86
86
  return finalProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.6.9",
3
+ "version": "3.6.10",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",