chore(packages): use @reactflow org for packages
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# @rctflw/background
|
||||
# @reactflow/background
|
||||
|
||||
Background component for React Flow.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @rctflw/background
|
||||
npm install @reactflow/background
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rctflw/background",
|
||||
"name": "@reactflow/background",
|
||||
"version": "11.0.0-next.0",
|
||||
"description": "Background component with different variants for React Flow",
|
||||
"keywords": [
|
||||
@@ -13,10 +13,13 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/rctflw-background.cjs.js",
|
||||
"module": "dist/rctflw-background.esm.js",
|
||||
"types": "dist/rctflw-background.cjs.d.ts",
|
||||
"main": "dist/reactflow-background.cjs.js",
|
||||
"module": "dist/reactflow-background.esm.js",
|
||||
"types": "dist/reactflow-background.cjs.d.ts",
|
||||
"sideEffects": false,
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -25,7 +28,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@rctflw/core": "workspace:*",
|
||||
"@reactflow/core": "workspace:*",
|
||||
"classcat": "^5.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { memo, useRef, useId } from 'react';
|
||||
import cc from 'classcat';
|
||||
import { useStore, ReactFlowState } from '@rctflw/core';
|
||||
import { useStore, ReactFlowState } from '@reactflow/core';
|
||||
|
||||
import { BackgroundProps, BackgroundVariant } from './types';
|
||||
import { DotPattern, LinePattern } from './Patterns';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# @rctflw/controls
|
||||
# @reactflow/controls
|
||||
|
||||
Controls component for React Flow.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @rctflw/controls
|
||||
npm install @reactflow/controls
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rctflw/controls",
|
||||
"name": "@reactflow/controls",
|
||||
"version": "11.0.0-next.0",
|
||||
"description": "Component to control the viewport of a React Flow instance",
|
||||
"keywords": [
|
||||
@@ -13,9 +13,9 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/rctflw-controls.cjs.js",
|
||||
"module": "dist/rctflw-controls.esm.js",
|
||||
"types": "dist/rctflw-controls.cjs.d.ts",
|
||||
"main": "dist/reactflow-controls.cjs.js",
|
||||
"module": "dist/reactflow-controls.esm.js",
|
||||
"types": "dist/reactflow-controls.cjs.d.ts",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
@@ -26,9 +26,12 @@
|
||||
"scripts": {
|
||||
"build": "postcss src/*.css --config ../../postcss.config.json --dir dist"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@rctflw/core": "workspace:*",
|
||||
"@reactflow/core": "workspace:*",
|
||||
"classcat": "^5.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { memo, FC, useEffect, useState, PropsWithChildren } from 'react';
|
||||
import cc from 'classcat';
|
||||
import { useStore, useStoreApi, useReactFlow, ReactFlowState, Panel } from '@rctflw/core';
|
||||
import { useStore, useStoreApi, useReactFlow, ReactFlowState, Panel } from '@reactflow/core';
|
||||
|
||||
import PlusIcon from './Icons/Plus';
|
||||
import MinusIcon from './Icons/Minus';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
||||
import { FitViewOptions, PanelPosition } from '@rctflw/core';
|
||||
import { FitViewOptions, PanelPosition } from '@reactflow/core';
|
||||
|
||||
export interface ControlProps extends HTMLAttributes<HTMLDivElement> {
|
||||
showZoom?: boolean;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# @rctflw/core
|
||||
# @reactflow/core
|
||||
|
||||
Core components and util functions of React Flow.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @rctflw/core
|
||||
npm install @reactflow/core
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rctflw/core",
|
||||
"name": "@reactflow/core",
|
||||
"version": "11.0.0-next.0",
|
||||
"description": "Core components and util functions of React Flow.",
|
||||
"keywords": [
|
||||
@@ -13,11 +13,14 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/rctflw-core.cjs.js",
|
||||
"module": "dist/rctflw-core.esm.js",
|
||||
"types": "dist/rctflw-core.cjs.d.ts",
|
||||
"main": "dist/reactflow-core.cjs.js",
|
||||
"module": "dist/reactflow-core.esm.js",
|
||||
"types": "dist/reactflow-core.cjs.d.ts",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/wbkd/react-flow.git",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* these are the necessary styles for React Flow */
|
||||
/* these are the necessary styles for React Flow, they get used by base.css and style.css */
|
||||
.react-flow__container {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
@@ -138,6 +138,7 @@
|
||||
|
||||
&.connectable {
|
||||
pointer-events: all;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
&-bottom {
|
||||
|
||||
@@ -7,7 +7,7 @@ export const getDimensions = (node: HTMLDivElement): Dimensions => ({
|
||||
|
||||
export const clamp = (val: number, min = 0, max = 1): number => Math.min(Math.max(val, min), max);
|
||||
|
||||
export const clampPosition = (position: XYPosition, extent: CoordinateExtent) => ({
|
||||
export const clampPosition = (position: XYPosition = { x: 0, y: 0 }, extent: CoordinateExtent) => ({
|
||||
x: clamp(position.x, extent[0][0], extent[1][0]),
|
||||
y: clamp(position.y, extent[0][1], extent[1][1]),
|
||||
});
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# @rctflw/minimap
|
||||
# @reactflow/minimap
|
||||
|
||||
Mini map component for React Flow.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @rctflw/minimap
|
||||
npm install @reactflow/minimap
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rctflw/minimap",
|
||||
"name": "@reactflow/minimap",
|
||||
"version": "11.0.0-next.0",
|
||||
"description": "Minimap component for React Flow.",
|
||||
"keywords": [
|
||||
@@ -13,10 +13,13 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/rctflw-minimap.cjs.js",
|
||||
"module": "dist/rctflw-minimap.esm.js",
|
||||
"types": "dist/rctflw-minimap.cjs.d.ts",
|
||||
"main": "dist/reactflow-minimap.cjs.js",
|
||||
"module": "dist/reactflow-minimap.esm.js",
|
||||
"types": "dist/reactflow-minimap.cjs.d.ts",
|
||||
"sideEffects": false,
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -28,7 +31,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@rctflw/core": "workspace:*",
|
||||
"@reactflow/core": "workspace:*",
|
||||
"classcat": "^5.0.3",
|
||||
"zustand": "^4.0.0"
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { memo, useId } from 'react';
|
||||
import cc from 'classcat';
|
||||
import shallow from 'zustand/shallow';
|
||||
import { useStore, getRectOfNodes, ReactFlowState, Rect, Panel, getBoundsOfRects } from '@rctflw/core';
|
||||
import { useStore, getRectOfNodes, ReactFlowState, Rect, Panel, getBoundsOfRects } from '@reactflow/core';
|
||||
|
||||
import MiniMapNode from './MiniMapNode';
|
||||
import { MiniMapProps, GetMiniMapNodeAttribute } from './types';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { HTMLAttributes } from 'react';
|
||||
import { Node, PanelPosition } from '@rctflw/core';
|
||||
import { Node, PanelPosition } from '@reactflow/core';
|
||||
|
||||
export type GetMiniMapNodeAttribute<NodeData = any> = (node: Node<NodeData>) => string;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "reactflow",
|
||||
"version": "11.0.0-next.2",
|
||||
"version": "11.0.0-next.6",
|
||||
"description": "A highly customizable React library for building node-based editors and interactive flow charts",
|
||||
"keywords": [
|
||||
"react",
|
||||
@@ -28,10 +28,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@rctflw/background": "workspace:*",
|
||||
"@rctflw/controls": "workspace:*",
|
||||
"@rctflw/core": "workspace:*",
|
||||
"@rctflw/minimap": "workspace:*"
|
||||
"@reactflow/background": "workspace:*",
|
||||
"@reactflow/controls": "workspace:*",
|
||||
"@reactflow/core": "workspace:*",
|
||||
"@reactflow/minimap": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
export * from '@rctflw/core';
|
||||
export * from '@rctflw/minimap';
|
||||
export * from '@rctflw/controls';
|
||||
export * from '@rctflw/background';
|
||||
export * from '@reactflow/core';
|
||||
export * from '@reactflow/minimap';
|
||||
export * from '@reactflow/controls';
|
||||
export * from '@reactflow/background';
|
||||
|
||||
import { ReactFlow } from '@rctflw/core';
|
||||
|
||||
export default ReactFlow;
|
||||
export { ReactFlow as default } from '@reactflow/core';
|
||||
|
||||
Reference in New Issue
Block a user