@topconsultnpm/sdkui-react 6.20.0-dev1.58 → 6.20.0-dev1.59
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.
|
@@ -70,13 +70,11 @@ const TMContextMenu = ({ items, trigger = 'right', children, target, externalCon
|
|
|
70
70
|
if (state.timeout)
|
|
71
71
|
clearTimeout(state.timeout);
|
|
72
72
|
state.timeout = setTimeout(() => {
|
|
73
|
-
// Mark that long-press was triggered
|
|
74
73
|
if (state)
|
|
75
74
|
state.longPressTriggered = true;
|
|
76
75
|
// Haptic feedback
|
|
77
76
|
if ('vibrate' in navigator)
|
|
78
77
|
navigator.vibrate(50);
|
|
79
|
-
// Dispatch synthetic contextmenu event to trigger existing onContextMenu handlers
|
|
80
78
|
const syntheticEvent = new MouseEvent('contextmenu', {
|
|
81
79
|
bubbles: true,
|
|
82
80
|
cancelable: true,
|
|
@@ -118,7 +116,7 @@ const TMContextMenu = ({ items, trigger = 'right', children, target, externalCon
|
|
|
118
116
|
e.preventDefault();
|
|
119
117
|
e.stopPropagation();
|
|
120
118
|
e.stopImmediatePropagation();
|
|
121
|
-
state.longPressTriggered = false;
|
|
119
|
+
state.longPressTriggered = false;
|
|
122
120
|
}
|
|
123
121
|
};
|
|
124
122
|
// Attach listeners to all matching elements
|
|
@@ -78,7 +78,6 @@ const TMFloatingMenuBar = ({ containerRef, contextMenuItems = [], isConstrained
|
|
|
78
78
|
const validItemIds = Array.isArray(settings.itemIds) ? settings.itemIds : [];
|
|
79
79
|
if (validItemIds.length > 0) {
|
|
80
80
|
// Check if any ID looks like the old format (contains language-specific text or is too long)
|
|
81
|
-
// Exclude separator IDs from this check as they have longer IDs by design
|
|
82
81
|
const hasOldFormatIds = validItemIds.some(id => typeof id === 'string' &&
|
|
83
82
|
!id.startsWith('separator-') &&
|
|
84
83
|
(id.length > 20 || id.includes(' ')));
|
|
@@ -202,7 +201,6 @@ const TMFloatingMenuBar = ({ containerRef, contextMenuItems = [], isConstrained
|
|
|
202
201
|
// Restore items in the saved order from localStorage
|
|
203
202
|
const restoredItems = initialConfig.savedItemIds
|
|
204
203
|
.map((id) => {
|
|
205
|
-
// Check if it's a separator
|
|
206
204
|
if (id.startsWith('separator-')) {
|
|
207
205
|
return {
|
|
208
206
|
id,
|
|
@@ -212,7 +210,6 @@ const TMFloatingMenuBar = ({ containerRef, contextMenuItems = [], isConstrained
|
|
|
212
210
|
isSeparator: true,
|
|
213
211
|
};
|
|
214
212
|
}
|
|
215
|
-
// Otherwise look for it in flat items
|
|
216
213
|
return flatItems.find(item => item.id === id);
|
|
217
214
|
})
|
|
218
215
|
.filter((item) => item !== undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.20.0-dev1.
|
|
3
|
+
"version": "6.20.0-dev1.59",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"lib"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@topconsultnpm/sdk-ts": "6.20.0-dev1.
|
|
43
|
+
"@topconsultnpm/sdk-ts": "6.20.0-dev1.4",
|
|
44
44
|
"buffer": "^6.0.3",
|
|
45
45
|
"devextreme": "25.1.7",
|
|
46
46
|
"devextreme-react": "25.1.7",
|