chore(packages): use temporary scope name
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import { ReactFlow, Edge, useEdges } from '@react-flow/bundle';
|
||||
import ReactFlow, { Edge, useEdges } from 'reactflow';
|
||||
|
||||
import { nodes as initialNodes, edges as initialEdges } from '../../fixtures/simpleflow';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import { Node, ReactFlow, useNodes } from '@react-flow/bundle';
|
||||
import ReactFlow, { Node, useNodes } from 'reactflow';
|
||||
|
||||
import { nodes } from '../../fixtures/simpleflow';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ReactFlow, useOnViewportChange, Viewport } from '@react-flow/bundle';
|
||||
import ReactFlow, { useOnViewportChange, Viewport } from 'reactflow';
|
||||
|
||||
describe('useOnViewportChange.cy.tsx', () => {
|
||||
it('listen to viewport drag', () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ReactFlow, useViewport, Viewport } from '@react-flow/bundle';
|
||||
import ReactFlow, { useViewport, Viewport } from 'reactflow';
|
||||
|
||||
describe('useViewport.cy.tsx', () => {
|
||||
it('handles drag', () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ReactFlow, EdgeProps } from '@react-flow/bundle';
|
||||
import ReactFlow, { EdgeProps } from 'reactflow';
|
||||
|
||||
import ControlledFlow from '../../support/ControlledFlow';
|
||||
import * as simpleflow from '../../fixtures/simpleflow';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ReactFlow } from '@react-flow/bundle';
|
||||
import ReactFlow from 'reactflow';
|
||||
|
||||
import { nodes, edges } from '../../fixtures/simpleflow';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ReactFlow, ReactFlowProps, Viewport, useViewport, SnapGrid, CoordinateExtent, Node } from '@react-flow/bundle';
|
||||
import ReactFlow, { ReactFlowProps, Viewport, useViewport, SnapGrid, CoordinateExtent, Node } from 'reactflow';
|
||||
|
||||
import ControlledFlow from '../../support/ControlledFlow';
|
||||
import * as simpleflow from '../../fixtures/simpleflow';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Node, Edge, isNode, isEdge, getOutgoers, getIncomers, addEdge } from '@react-flow/bundle';
|
||||
import { Node, Edge, isNode, isEdge, getOutgoers, getIncomers, addEdge } from 'reactflow';
|
||||
|
||||
const nodes: Node[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Node, Edge } from '@react-flow/bundle';
|
||||
import { Node, Edge } from 'reactflow';
|
||||
|
||||
export const nodes: Node[] = [
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
Connection,
|
||||
addEdge,
|
||||
ReactFlowProps,
|
||||
} from '@react-flow/bundle';
|
||||
} from 'reactflow';
|
||||
|
||||
function ControlledFlow({
|
||||
addOnNodeChangeHandler = true,
|
||||
|
||||
@@ -20,7 +20,7 @@ import './commands';
|
||||
// require('./commands')
|
||||
|
||||
import { mount } from 'cypress/react18';
|
||||
import { XYPosition } from '@react-flow/bundle';
|
||||
import { XYPosition } from 'reactflow';
|
||||
|
||||
import '../../styles/globals.css';
|
||||
import '../../styles/rf-style.css';
|
||||
|
||||
@@ -13,7 +13,7 @@ import ReactFlow, {
|
||||
HandleType,
|
||||
} from 'reactflow';
|
||||
|
||||
import { Controls } from '@react-flow/controls';
|
||||
import { Controls } from '@rctflw/controls';
|
||||
|
||||
const initialNodes: Node[] = [
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import '../styles/globals.css';
|
||||
|
||||
// Unfortunately this doesn't work because preconsruct clears the dist folder and there is
|
||||
// no way to hook into the watch process to copy the files back to the dist folder
|
||||
// import '@react-flow/core/dist/theme-default.css';
|
||||
// import '@rctflw/core/dist/theme-default.css';
|
||||
|
||||
// this is a workaround for testing the theme. See explanation above.
|
||||
import '../styles/rf-style.css';
|
||||
|
||||
Reference in New Issue
Block a user