chore(packages): use temporary scope name

This commit is contained in:
moklick
2022-08-29 12:08:13 +02:00
parent 8e30df2e82
commit f113cf4e19
30 changed files with 77 additions and 95 deletions

View File

@@ -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';

View File

@@ -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';

View File

@@ -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', () => {

View File

@@ -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', () => {

View File

@@ -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';

View File

@@ -1,4 +1,4 @@
import { ReactFlow } from '@react-flow/bundle';
import ReactFlow from 'reactflow';
import { nodes, edges } from '../../fixtures/simpleflow';

View File

@@ -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';

View File

@@ -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[] = [
{

View File

@@ -1,4 +1,4 @@
import { Node, Edge } from '@react-flow/bundle';
import { Node, Edge } from 'reactflow';
export const nodes: Node[] = [
{

View File

@@ -10,7 +10,7 @@ import {
Connection,
addEdge,
ReactFlowProps,
} from '@react-flow/bundle';
} from 'reactflow';
function ControlledFlow({
addOnNodeChangeHandler = true,

View File

@@ -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';

View File

@@ -13,7 +13,7 @@ import ReactFlow, {
HandleType,
} from 'reactflow';
import { Controls } from '@react-flow/controls';
import { Controls } from '@rctflw/controls';
const initialNodes: Node[] = [
{

View File

@@ -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';