chore(packages): use temporary scope name
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# @react-flow/minimap
|
||||
# @rctflw/minimap
|
||||
|
||||
Mini map component for React Flow.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @react-flow/minimap
|
||||
npm install @rctflw/minimap
|
||||
```
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@react-flow/minimap",
|
||||
"name": "@rctflw/minimap",
|
||||
"version": "11.0.0-next.0",
|
||||
"description": "Minimap component for React Flow.",
|
||||
"keywords": [
|
||||
@@ -13,9 +13,9 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/react-flow-minimap.cjs.js",
|
||||
"module": "dist/react-flow-minimap.esm.js",
|
||||
"types": "dist/react-flow-minimap.cjs.d.ts",
|
||||
"main": "dist/rctflw-minimap.cjs.js",
|
||||
"module": "dist/rctflw-minimap.esm.js",
|
||||
"types": "dist/rctflw-minimap.cjs.d.ts",
|
||||
"sideEffects": false,
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@react-flow/core": "workspace:*",
|
||||
"@rctflw/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 '@react-flow/core';
|
||||
import { useStore, getRectOfNodes, ReactFlowState, Rect, Panel, getBoundsOfRects } from '@rctflw/core';
|
||||
|
||||
import MiniMapNode from './MiniMapNode';
|
||||
import { MiniMapProps, GetMiniMapNodeAttribute } from './types';
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { HTMLAttributes } from 'react';
|
||||
import { Node, PanelPosition } from '@react-flow/core';
|
||||
import { Node, PanelPosition } from '@rctflw/core';
|
||||
|
||||
export type GetMiniMapNodeAttribute<NodeData = any> = (
|
||||
node: Node<NodeData>
|
||||
) => string;
|
||||
export type GetMiniMapNodeAttribute<NodeData = any> = (node: Node<NodeData>) => string;
|
||||
|
||||
export interface MiniMapProps<NodeData = any>
|
||||
extends HTMLAttributes<SVGSVGElement> {
|
||||
export interface MiniMapProps<NodeData = any> extends HTMLAttributes<SVGSVGElement> {
|
||||
nodeColor?: string | GetMiniMapNodeAttribute<NodeData>;
|
||||
nodeStrokeColor?: string | GetMiniMapNodeAttribute<NodeData>;
|
||||
nodeClassName?: string | GetMiniMapNodeAttribute<NodeData>;
|
||||
|
||||
Reference in New Issue
Block a user