@flowgram.ai/free-layout-core 0.5.6 → 1.0.0
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/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3713,7 +3713,7 @@ function usePlaygroundReadonlyState(listenChange) {
|
|
|
3713
3713
|
function checkTargetDraggable(el) {
|
|
3714
3714
|
return el && el.tagName !== "INPUT" && el.tagName !== "TEXTAREA" && !el.closest(".flow-canvas-not-draggable");
|
|
3715
3715
|
}
|
|
3716
|
-
var isFirefox = navigator?.userAgent?.includes?.("Firefox");
|
|
3716
|
+
var isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes?.("Firefox");
|
|
3717
3717
|
function useNodeRender(nodeFromProps) {
|
|
3718
3718
|
const node = nodeFromProps || (0, import_react2.useContext)(import_core21.PlaygroundEntityContext);
|
|
3719
3719
|
const renderData = node.getData(import_document13.FlowNodeRenderData);
|