Skip to content

Commit

Permalink
release: update version to 2.1.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Apr 27, 2024
1 parent 7de232a commit d27fafd
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 90 deletions.
4 changes: 2 additions & 2 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.next
.next/
next-env.d.ts
/out
dist/
8 changes: 5 additions & 3 deletions docs/CHANGELOG.v2.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Changelog


## [2.1.0-beta.7](https://github.com/zthxxx/react-dev-inspector/compare/v2.0.1...v2.1.0-beta.7)
## [2.1.0-beta.8](https://github.com/zthxxx/react-dev-inspector/compare/v2.0.1...v2.1.0-beta.8)

### Features

- integrate an `InspectContextPanel` trigger by right-click inspect
- add `@react-dev-inspector/components` package
- allow to setting some custom `InspectAgent`, to work with default `DOMInspectAgent` together
- add `@react-dev-inspector/web-components` package
- export the `Overlay` (inspector indicating UI), support custom to get boxSizing and bounding
- export the `InspectContextPanel` component, which is a context-menu as a draggable and resizable floating panel
- add export of some utils for access react fiber
- add export of some utils for access react fiber (`fiberUtils`) or help inspecting (`inspectUtils`),
use for custom InspectAgent

### Refactor

Expand Down
1 change: 1 addition & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default withNextra({
ignoreDuringBuilds: true,
},
output: 'export',
distDir: 'dist',
images: {
/**
* Error: Image Optimization using Next.js' default loader is not compatible with `next export`.
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"clean": "rimraf .next dist",
"dev": "npm run clean && node server.mjs",
"build": "npm run clean && next build && next export -o dist"
"build": "npm run clean && next build"
},
"dependencies": {
"clsx": "1.2.1",
Expand Down
20 changes: 10 additions & 10 deletions packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
{
"name": "@react-dev-inspector/babel-plugin",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "babel plugin for react-dev-inspector to generate source code position info into jsx properties",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/esm",
"scripts": {
"test": "jest --passWithNoTests",
"gen:test-outputs": "tsx scripts/gen-test-outputs.ts",
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
"directory": "packages/babel-plugin"
},
"homepage": "https://react-dev-inspector.zthxxx.me/docs/compiler-plugin#react-dev-inspectorbabel-plugin",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand All @@ -28,12 +21,19 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"files": [
"README.md",
"src",
"dist"
],
"scripts": {
"test": "jest --passWithNoTests",
"gen:test-outputs": "tsx scripts/gen-test-outputs.ts",
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down
52 changes: 26 additions & 26 deletions packages/inspector/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
{
"name": "react-dev-inspector",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "dev-tool for inspect react components and jump to local IDE for component code.",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/esm",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./plugins/babel": "./dist/cjs/plugins/babel.js",
"./plugins/vite": "./dist/cjs/plugins/vite.js",
"./plugins/webpack": "./dist/cjs/plugins/webpack.js",
"./plugins/umi": "./dist/cjs/plugins/umi.js",
"./plugins/umi/react-inspector": "./dist/cjs/plugins/umi.js",
"./plugins/ice": "./dist/cjs/plugins/ice.js"
},
"scripts": {
"test": "vitest run --passWithNoTests",
"test:watch": "vitest watch",
"clean": "rimraf coverage dist es lib build",
"dev": "storybook dev -p 59762",
"sync:readme": "cp -f ../../README.md README.md",
"build:storybook": "storybook build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:test": "tsc -p tsconfig.test.json",
"build": "npm-run-all clean --parallel sync:readme build:esm build:cjs build:test"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
Expand All @@ -49,12 +25,36 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"homepage": "https://react-dev-inspector.zthxxx.me",
"files": [
"README.md",
"src",
"dist"
],
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./plugins/babel": "./dist/cjs/plugins/babel.js",
"./plugins/vite": "./dist/cjs/plugins/vite.js",
"./plugins/webpack": "./dist/cjs/plugins/webpack.js",
"./plugins/umi": "./dist/cjs/plugins/umi.js",
"./plugins/umi/react-inspector": "./dist/cjs/plugins/umi.js",
"./plugins/ice": "./dist/cjs/plugins/ice.js"
},
"scripts": {
"test": "vitest run --passWithNoTests",
"test:watch": "vitest watch",
"clean": "rimraf coverage dist es lib build",
"dev": "storybook dev -p 59762",
"sync:readme": "cp -f ../../README.md README.md",
"build:storybook": "storybook build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:test": "tsc -p tsconfig.test.json",
"build": "npm-run-all clean --parallel sync:readme build:esm build:cjs build:test"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/inspector/src/Inspector/Inspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const defaultInspectAgents: InspectAgent<any>[] = [
/**
* the inspect meta info that is sent to the callback when an element is hovered over or clicked.
*/
export interface InspectParams<Element> {
export interface InspectParams<Element = DOMElement> {
/** hover / click event target dom element */
element: Element;
/** nearest named react component fiber for dom element */
Expand All @@ -60,7 +60,7 @@ export interface InspectParams<Element> {
editor?: TrustedEditor;
}

export type OnInspectElementParams<Element> =
export type OnInspectElementParams<Element = DOMElement> =
& Omit<Required<InspectParams<Element>>, 'editor'>
& Pick<InspectParams<Element>, 'editor'>

Expand Down
16 changes: 8 additions & 8 deletions packages/launch-editor-endpoint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/launch-editor-endpoint",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "middleware's endpoint and types for react-dev-inspector",
"main": "dist/cjs",
Expand All @@ -13,17 +13,12 @@
"require": "./dist/cjs/index.js"
}
},
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
"directory": "packages/launch-editor-endpoint"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector/tree/dev/packages/launch-editor-endpoint",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand All @@ -33,12 +28,17 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"files": [
"README.md",
"src",
"dist"
],
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"devDependencies": {
"@types/node": "20.12.10",
"@zthxxx/tsconfig": "1.0.5",
Expand Down
16 changes: 8 additions & 8 deletions packages/middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "@react-dev-inspector/middleware",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "express middleware for react-dev-inspector to launch local IDE",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/esm",
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
"directory": "packages/middleware"
},
"homepage": "https://react-dev-inspector.zthxxx.me/docs/integration#inspector-middleware",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand All @@ -26,12 +21,17 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"files": [
"README.md",
"src",
"dist"
],
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down
16 changes: 8 additions & 8 deletions packages/umi3-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "@react-dev-inspector/umi3-plugin",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "umi3 plugin for react-dev-inspector to add babel plugin and server middleware",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/esm",
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
"directory": "packages/umi3-plugin"
},
"homepage": "https://react-dev-inspector.zthxxx.me/docs/integration/umijs",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand All @@ -26,12 +21,17 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"files": [
"README.md",
"src",
"dist"
],
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down
16 changes: 8 additions & 8 deletions packages/umi4-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "@react-dev-inspector/umi4-plugin",
"version": "2.1.0-beta.7",
"version": "2.1.0-beta.8",
"sideEffects": false,
"description": "umi4 plugin for react-dev-inspector to add babel plugin and server middleware",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/esm",
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/zthxxx/react-dev-inspector.git",
"directory": "packages/umi4-plugin"
},
"homepage": "https://react-dev-inspector.zthxxx.me/docs/integration/umijs",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
Expand All @@ -26,12 +21,17 @@
"bugs": {
"url": "https://github.com/zthxxx/react-dev-inspector/issues"
},
"homepage": "https://github.com/zthxxx/react-dev-inspector",
"files": [
"README.md",
"src",
"dist"
],
"scripts": {
"clean": "rimraf coverage dist es lib build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "npm-run-all clean --parallel build:esm build:cjs"
},
"engines": {
"node": ">=12.0.0"
},
Expand Down
Loading

0 comments on commit d27fafd

Please sign in to comment.