diff --git a/packages/editor-ui-button/package.json b/packages/editor-ui-button/package.json index 6eadd65..c13857d 100644 --- a/packages/editor-ui-button/package.json +++ b/packages/editor-ui-button/package.json @@ -1,4 +1,20 @@ { "name": "@editor-ui/button", - "version": "0.0.0" + "version": "0.0.0", + "devDependencies": { + "@emotion/react": "^11.11.3", + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@emotion/react": "^11.11.3", + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "dependencies": { + "@editor-ui/theme": "workspace:^", + "@editor-ui/tooltip": "workspace:^" + } } \ No newline at end of file diff --git a/packages/editor-ui-context-menu/package.json b/packages/editor-ui-context-menu/package.json index 3bd89a6..b6d111f 100644 --- a/packages/editor-ui-context-menu/package.json +++ b/packages/editor-ui-context-menu/package.json @@ -3,6 +3,19 @@ "version": "0.0.0", "dependencies": { "@editor-ui/foundation": "0.0.0", - "@radix-ui/react-context-menu": "^0.1.1" + "@editor-ui/menu": "workspace:^", + "@editor-ui/spacer": "workspace:^", + "@radix-ui/react-context-menu": "^0.1.1", + "@radix-ui/react-icons": "^1.0.3" + }, + "devDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" } } \ No newline at end of file diff --git a/packages/editor-ui-dropdown-menu/package.json b/packages/editor-ui-dropdown-menu/package.json index 9d885ff..1b4c300 100644 --- a/packages/editor-ui-dropdown-menu/package.json +++ b/packages/editor-ui-dropdown-menu/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "private": false, "dependencies": { - "@radix-ui/react-dropdown-menu": "^0.1.6" + "@radix-ui/react-dropdown-menu": "^0.1.6", + "@stitches/react": "^1.2.8" } } \ No newline at end of file diff --git a/packages/editor-ui-hierarchy/package.json b/packages/editor-ui-hierarchy/package.json index 2e661ac..2fc4101 100644 --- a/packages/editor-ui-hierarchy/package.json +++ b/packages/editor-ui-hierarchy/package.json @@ -2,6 +2,20 @@ "name": "@editor-ui/hierarchy", "version": "0.0.0", "dependencies": { - "@editor-ui/foundation": "0.0.0" + "@editor-ui/foundation": "0.0.0", + "@editor-ui/icons": "workspace:^", + "@editor-ui/listview": "workspace:^", + "@editor-ui/spacer": "workspace:^", + "@radix-ui/react-icons": "^1.0.3" + }, + "devDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" } } \ No newline at end of file diff --git a/packages/editor-ui-hooks/package.json b/packages/editor-ui-hooks/package.json index 26bf0d7..a9ed436 100644 --- a/packages/editor-ui-hooks/package.json +++ b/packages/editor-ui-hooks/package.json @@ -1,5 +1,13 @@ { "name": "@editor-ui/hooks", "version": "0.0.0", - "description": "React hooks fro editor-ui on for react" + "description": "React hooks fro editor-ui on for react", + "devDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" + } } \ No newline at end of file diff --git a/packages/editor-ui-icons/package.json b/packages/editor-ui-icons/package.json index 01be356..4821fbd 100644 --- a/packages/editor-ui-icons/package.json +++ b/packages/editor-ui-icons/package.json @@ -3,5 +3,15 @@ "version": "0.0.0", "dependencies": { "@editor-ui/foundation": "0.0.0" + }, + "devDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" } } \ No newline at end of file diff --git a/packages/editor-ui-listview/package.json b/packages/editor-ui-listview/package.json index 7192b8b..b10d1b2 100644 --- a/packages/editor-ui-listview/package.json +++ b/packages/editor-ui-listview/package.json @@ -1,13 +1,30 @@ { - "name": "@editor-ui/listview", - "version": "0.0.0", - "dependencies": { - "@editor-ui/foundation": "0.0.0", - "react-virtualized": "^9.22.3", - "react-window": "^1.8.6" - }, - "devDependencies": { - "@types/react-virtualized": "^9.21.13", - "@types/react-window": "^1.8.5" - } -} \ No newline at end of file + "name": "@editor-ui/listview", + "version": "0.0.0", + "dependencies": { + "@editor-ui/context-menu": "workspace:^", + "@editor-ui/foundation": "0.0.0", + "@editor-ui/hooks": "workspace:^", + "@editor-ui/scroll-area": "workspace:^", + "@editor-ui/sortable": "workspace:^", + "@editor-ui/spacer": "workspace:^", + "@editor-ui/theme": "workspace:^", + "@editor-ui/utils": "workspace:^", + "@radix-ui/react-compose-refs": "^1.0.1", + "@reflect-ui/uiutils": "0.1.2-2", + "react-virtualized": "^9.22.3", + "react-window": "^1.8.6" + }, + "peerDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "devDependencies": { + "@emotion/styled": "^11.11.0", + "@types/react": "18.2.58", + "@types/react-virtualized": "^9.21.13", + "@types/react-window": "^1.8.5", + "react": "^18.2.0" + } +} diff --git a/packages/editor-ui-menu/package.json b/packages/editor-ui-menu/package.json index d017baa..6c600d0 100644 --- a/packages/editor-ui-menu/package.json +++ b/packages/editor-ui-menu/package.json @@ -2,6 +2,13 @@ "name": "@editor-ui/menu", "version": "0.0.0", "dependencies": { - "@editor-ui/foundation": "0.0.0" + "@editor-ui/foundation": "0.0.0", + "@editor-ui/theme": "workspace:^" + }, + "devDependencies": { + "@emotion/css": "^11.11.2" + }, + "peerDependencies": { + "@emotion/css": "^11.11.2" } } \ No newline at end of file diff --git a/packages/editor-ui-property/layout/dnd-wrapper/index.tsx b/packages/editor-ui-property/layout/dnd-wrapper/index.tsx index 391c478..a759010 100644 --- a/packages/editor-ui-property/layout/dnd-wrapper/index.tsx +++ b/packages/editor-ui-property/layout/dnd-wrapper/index.tsx @@ -31,8 +31,8 @@ function DnDWrapper(props: DnDWrapperProps) { const { active, over } = event; if (over && active.id !== over.id) { - const oldIndex = keys.indexOf(active.id); - const newIndex = keys.indexOf(over.id); + const oldIndex = keys.indexOf(active.id as string); + const newIndex = keys.indexOf(over.id as string); onMoveItem?.(oldIndex, newIndex); } diff --git a/packages/editor-ui-property/package.json b/packages/editor-ui-property/package.json index fbae62b..4bdebcb 100644 --- a/packages/editor-ui-property/package.json +++ b/packages/editor-ui-property/package.json @@ -6,17 +6,25 @@ "build-storybook": "build-storybook" }, "dependencies": { + "@dnd-kit/core": "^6.1.0", + "@dnd-kit/modifiers": "^7.0.0", + "@dnd-kit/sortable": "^8.0.0", + "@dnd-kit/utilities": "^3.2.2", "@editor-ui/foundation": "0.0.0", - "@radix-ui/react-checkbox": "^1.0.1", + "@radix-ui/react-checkbox": "^1.0.4", + "@radix-ui/react-icons": "^1.0.3", "@radix-ui/react-select": "^1.2.0" }, "peerDependencies": { "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", + "@types/react": "18.2.58", "react": "^18.2.0" }, "devDependencies": { "@emotion/react": "^11.10.5", - "@emotion/styled": "^11.10.5" + "@emotion/styled": "^11.10.5", + "@types/react": "18.2.58", + "react": "^18.2.0" } } diff --git a/packages/editor-ui-scroll-area/package.json b/packages/editor-ui-scroll-area/package.json index ec17822..b17e6bb 100644 --- a/packages/editor-ui-scroll-area/package.json +++ b/packages/editor-ui-scroll-area/package.json @@ -4,6 +4,15 @@ "authors": "Grida.co", "version": "0.0.0", "dependencies": { + "@editor-ui/theme": "workspace:^", "@radix-ui/react-scroll-area": "^0.0.16" + }, + "devDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" } } diff --git a/packages/editor-ui-sortable/package.json b/packages/editor-ui-sortable/package.json index 156dd6c..edca953 100644 --- a/packages/editor-ui-sortable/package.json +++ b/packages/editor-ui-sortable/package.json @@ -7,5 +7,17 @@ "@dnd-kit/sortable": "^4.0.0", "@dnd-kit/utilities": "^2.0.0", "@editor-ui/foundation": "0.0.0" + }, + "devDependencies": { + "@types/react": "18.2.58", + "@types/react-dom": "^18.0.8", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "peerDependencies": { + "@types/react": "18.2.58", + "@types/react-dom": "^18.0.8", + "react": "^18.2.0", + "react-dom": "^18.2.0" } } diff --git a/packages/editor-ui-spacer/package.json b/packages/editor-ui-spacer/package.json index c8f3084..582d079 100644 --- a/packages/editor-ui-spacer/package.json +++ b/packages/editor-ui-spacer/package.json @@ -3,5 +3,11 @@ "version": "0.0.0", "dependencies": { "@editor-ui/foundation": "0.0.0" + }, + "devDependencies": { + "@emotion/styled": "^11.11.0" + }, + "peerDependencies": { + "@emotion/styled": "^11.11.0" } } \ No newline at end of file diff --git a/packages/editor-ui-theme/package.json b/packages/editor-ui-theme/package.json index 972c08f..4a9ba2d 100644 --- a/packages/editor-ui-theme/package.json +++ b/packages/editor-ui-theme/package.json @@ -3,11 +3,17 @@ "version": "0.0.0", "peerDependencies": { "@emotion/core": "^11.0.0", + "@emotion/css": "^11.1.3", "@emotion/react": "^11.1.5", "@emotion/styled": "^11.1.5", - "@emotion/css": "^11.1.3" + "@types/react": "18.2.58", + "react": "^18.2.0" }, "dependencies": { "immer": "^9.0.3" + }, + "devDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" } } \ No newline at end of file diff --git a/packages/editor-ui-tooltip/package.json b/packages/editor-ui-tooltip/package.json index f35fc80..6a9fbbd 100644 --- a/packages/editor-ui-tooltip/package.json +++ b/packages/editor-ui-tooltip/package.json @@ -2,8 +2,17 @@ "name": "@editor-ui/tooltip", "version": "0.0.0", "dependencies": { + "@editor-ui/foundation": "0.0.0", + "@editor-ui/theme": "workspace:^", "@radix-ui/react-slot": "^0.0.11", - "@radix-ui/react-tooltip": "^0.0.19", - "@editor-ui/foundation": "0.0.0" + "@radix-ui/react-tooltip": "^0.0.19" + }, + "devDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" } } \ No newline at end of file diff --git a/packages/editor-ui-utils/package.json b/packages/editor-ui-utils/package.json index 61faffc..01e6138 100644 --- a/packages/editor-ui-utils/package.json +++ b/packages/editor-ui-utils/package.json @@ -2,6 +2,15 @@ "name": "@editor-ui/utils", "version": "0.0.0", "dependencies": { + "@radix-ui/primitive": "^1.0.1", "react-use-gesture": "^9.1.3" + }, + "devDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" + }, + "peerDependencies": { + "@types/react": "18.2.58", + "react": "^18.2.0" } } diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index 1fb3beb..5279fc9 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -1,41 +1,46 @@ { - "name": "@editor-ui/editor", - "version": "0.0.0", - "description": "full package of editor ui packages", - "dependencies": { - "@dnd-kit/core": "^2.1.2", - "@dnd-kit/modifiers": "^1.0.5", - "@dnd-kit/sortable": "^2.0.1", - "@dnd-kit/utilities": "^1.0.3", - "@editor-ui/foundation": "0.0.0", - "@editor-ui/multiplayer": "0.0.0", - "@radix-ui/react-dropdown-menu": "^0.1.6", - "@radix-ui/react-icons": "^1.0.3", - "@radix-ui/react-progress": "^0.0.13", - "@radix-ui/react-slider": "^0.0.11", - "@radix-ui/react-tooltip": "^0.0.18", - "@stitches/react": "^1.2.8", - "emotion-icons": "^3.7.0" + "name": "@editor-ui/editor", + "version": "0.0.0", + "description": "full package of editor ui packages", + "dependencies": { + "@dnd-kit/core": "^2.1.2", + "@dnd-kit/modifiers": "^1.0.5", + "@dnd-kit/sortable": "^2.0.1", + "@dnd-kit/utilities": "^1.0.3", + "@editor-ui/button": "workspace:^", + "@editor-ui/foundation": "workspace:^", + "@editor-ui/hierarchy": "workspace:^", + "@editor-ui/hooks": "workspace:^", + "@editor-ui/multiplayer": "workspace:^", + "@editor-ui/spacer": "workspace:^", + "@editor-ui/utils": "workspace:^", + "@radix-ui/react-dropdown-menu": "^0.1.6", + "@radix-ui/react-icons": "^1.0.3", + "@radix-ui/react-progress": "^0.0.13", + "@radix-ui/react-slider": "^0.0.11", + "@radix-ui/react-tooltip": "^0.0.18", + "@stitches/react": "^1.2.8", + "emotion-icons": "^3.7.0" + }, + "peerDependencies": { + "@emotion/core": "^11.0.0", + "@emotion/react": "^11.1.5", + "@emotion/styled": "^11.1.5", + "react": "^17.0.1 || ^18.2.0", + "react-dom": "^17.0.1 || ^18.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true }, - "peerDependencies": { - "@emotion/core": "^11.0.0", - "@emotion/react": "^11.1.5", - "@emotion/styled": "^11.1.5", - "react": "^17.0.1 || ^18.2.0", - "react-dom": "^17.0.1 || ^18.2.0" + "@emotion/react": { + "optional": true }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - } - }, - "publishConfig": { - "access": "public" + "@emotion/styled": { + "optional": true } -} \ No newline at end of file + }, + "publishConfig": { + "access": "public" + } +}