@archie/devtools 0.0.46 → 0.0.47
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/client/client.js +3 -15
- package/dist/client/client.mjs +4 -16
- package/package.json +1 -1
package/dist/client/client.js
CHANGED
|
@@ -9617,6 +9617,7 @@ var combinedCollisionDetection = (args) => {
|
|
|
9617
9617
|
// src/client/dnd/DndProvider.tsx
|
|
9618
9618
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
9619
9619
|
var externalDragMouse = { x: 0, y: 0, commitRequested: false };
|
|
9620
|
+
var EMPTY_SENSORS = [];
|
|
9620
9621
|
function DndProvider({ children }) {
|
|
9621
9622
|
const setActive = useDndStore((s) => s.setActive);
|
|
9622
9623
|
const dragEndHandlers = useDndStore((s) => s.dragEndHandlers);
|
|
@@ -9758,30 +9759,17 @@ function DndProvider({ children }) {
|
|
|
9758
9759
|
designModeState.resetArrangeSession();
|
|
9759
9760
|
designModeState.setEnabled(false);
|
|
9760
9761
|
}, []);
|
|
9761
|
-
if (designModeEnabled) {
|
|
9762
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
9763
|
-
children,
|
|
9764
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
9765
|
-
DesignModeErrorBoundary,
|
|
9766
|
-
{
|
|
9767
|
-
onError: handleDesignModeCrash,
|
|
9768
|
-
resetKey: designModeEnabled,
|
|
9769
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DesignModeOverlay, {})
|
|
9770
|
-
}
|
|
9771
|
-
)
|
|
9772
|
-
] });
|
|
9773
|
-
}
|
|
9774
9762
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
9775
9763
|
DndContext,
|
|
9776
9764
|
{
|
|
9777
|
-
sensors,
|
|
9765
|
+
sensors: designModeEnabled ? EMPTY_SENSORS : sensors,
|
|
9778
9766
|
collisionDetection: combinedCollisionDetection,
|
|
9779
9767
|
onDragStart: handleDragStart,
|
|
9780
9768
|
onDragEnd: handleDragEnd,
|
|
9781
9769
|
onDragCancel: () => setActive(null),
|
|
9782
9770
|
children: [
|
|
9783
9771
|
children,
|
|
9784
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DragOverlay2, {}),
|
|
9772
|
+
!designModeEnabled && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DragOverlay2, {}),
|
|
9785
9773
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
9786
9774
|
DesignModeErrorBoundary,
|
|
9787
9775
|
{
|
package/dist/client/client.mjs
CHANGED
|
@@ -9580,8 +9580,9 @@ var combinedCollisionDetection = (args) => {
|
|
|
9580
9580
|
};
|
|
9581
9581
|
|
|
9582
9582
|
// src/client/dnd/DndProvider.tsx
|
|
9583
|
-
import {
|
|
9583
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
9584
9584
|
var externalDragMouse = { x: 0, y: 0, commitRequested: false };
|
|
9585
|
+
var EMPTY_SENSORS = [];
|
|
9585
9586
|
function DndProvider({ children }) {
|
|
9586
9587
|
const setActive = useDndStore((s) => s.setActive);
|
|
9587
9588
|
const dragEndHandlers = useDndStore((s) => s.dragEndHandlers);
|
|
@@ -9723,30 +9724,17 @@ function DndProvider({ children }) {
|
|
|
9723
9724
|
designModeState.resetArrangeSession();
|
|
9724
9725
|
designModeState.setEnabled(false);
|
|
9725
9726
|
}, []);
|
|
9726
|
-
if (designModeEnabled) {
|
|
9727
|
-
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
9728
|
-
children,
|
|
9729
|
-
/* @__PURE__ */ jsx5(
|
|
9730
|
-
DesignModeErrorBoundary,
|
|
9731
|
-
{
|
|
9732
|
-
onError: handleDesignModeCrash,
|
|
9733
|
-
resetKey: designModeEnabled,
|
|
9734
|
-
children: /* @__PURE__ */ jsx5(DesignModeOverlay, {})
|
|
9735
|
-
}
|
|
9736
|
-
)
|
|
9737
|
-
] });
|
|
9738
|
-
}
|
|
9739
9727
|
return /* @__PURE__ */ jsxs4(
|
|
9740
9728
|
DndContext,
|
|
9741
9729
|
{
|
|
9742
|
-
sensors,
|
|
9730
|
+
sensors: designModeEnabled ? EMPTY_SENSORS : sensors,
|
|
9743
9731
|
collisionDetection: combinedCollisionDetection,
|
|
9744
9732
|
onDragStart: handleDragStart,
|
|
9745
9733
|
onDragEnd: handleDragEnd,
|
|
9746
9734
|
onDragCancel: () => setActive(null),
|
|
9747
9735
|
children: [
|
|
9748
9736
|
children,
|
|
9749
|
-
/* @__PURE__ */ jsx5(DragOverlay2, {}),
|
|
9737
|
+
!designModeEnabled && /* @__PURE__ */ jsx5(DragOverlay2, {}),
|
|
9750
9738
|
/* @__PURE__ */ jsx5(
|
|
9751
9739
|
DesignModeErrorBoundary,
|
|
9752
9740
|
{
|