Skip to content

Commit

Permalink
feat: 🌟 internalize resizable sidesheet (#541)
Browse files Browse the repository at this point in the history
* feat: internalize resizable sidesheet

* Prettified Code!

* chore:

* ci: 💚

* chore:

* chore: 🔖

* fix: 🐛 fix bug where sidesheet would resize vertically

* chore: remove console log

* chore: remove console.log

* chore: correct version

* chore:

* chore:

* chore: 🔥 deprecate sidesheet

---------

Co-authored-by: Gustav-Eikaas <Gustav-Eikaas@users.noreply.github.com>
  • Loading branch information
Gustav-Eikaas and Gustav-Eikaas authored Nov 23, 2023
1 parent 5bf1547 commit e2fca08
Show file tree
Hide file tree
Showing 26 changed files with 214 additions and 419 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
with:
cache: 'pnpm'

- run: pnpm config set auto-install-peers true

- run: npm run first-time-setup

- run: pnpm build
49 changes: 0 additions & 49 deletions packages/sidesheet/CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/sidesheet/README.md

This file was deleted.

47 changes: 0 additions & 47 deletions packages/sidesheet/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/sidesheet/src/index.ts

This file was deleted.

58 changes: 0 additions & 58 deletions packages/sidesheet/src/lib/components/SidesheetFrame.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions packages/sidesheet/src/lib/hooks/useEffectOnce.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/sidesheet/src/lib/hooks/useResizeContext.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/sidesheet/src/lib/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/sidesheet/src/lib/types/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/sidesheet/src/lib/types/types.ts

This file was deleted.

74 changes: 0 additions & 74 deletions packages/sidesheet/src/lib/utils/createSidesheet.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/sidesheet/src/lib/utils/index.ts

This file was deleted.

24 changes: 0 additions & 24 deletions packages/sidesheet/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/sidesheet/tsconfig.lib.json

This file was deleted.

5 changes: 3 additions & 2 deletions packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "6.0.15",
"version": "6.1.0",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down Expand Up @@ -73,7 +73,7 @@
"@equinor/workspace-powerbi": "workspace:^",
"@equinor/workspace-react": "workspace:^",
"@tanstack/react-query": "^4.23.0",
"@types/react-dom": "^18.0.8",
"re-resizable": "^6.9.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^3.1.4",
Expand All @@ -85,6 +85,7 @@
"styled-components": "^5.3.6"
},
"devDependencies": {
"@types/react-dom": "^18.0.8",
"@types/jest": "27.4.1",
"@types/react": "^18.0.25",
"@types/styled-components": "^5.1.26",
Expand Down
1 change: 1 addition & 0 deletions packages/workspace-fusion/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Workspace } from './lib';
export * from './lib';
import { WorkspaceViewController } from '@equinor/workspace-react';
export { WorkspaceViewController };
export { useResizeContext } from './sidesheet';

export { Workspace };
export default Workspace;
3 changes: 1 addition & 2 deletions packages/workspace-fusion/src/lib/components/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { FilterContextProvider } from '@equinor/workspace-filter';
import { updateQueryParams } from '../classes/fusionUrlHandler';
import { WorkspaceContextProvider } from '../context/WorkspaceControllerContext';
import { useWorkspace } from '../hooks';
import { useCallback, useMemo, useRef } from 'react';
import { update } from '@equinor/eds-icons';
import { useMemo, useRef } from 'react';

const client = new QueryClient();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SidesheetWrapper } from '../../../../sidesheet/SidesheetWrapper';
import { SidesheetConfig } from '../types';
import { SidesheetSimpleWrapper } from './wrapper/SidesheetSimpleWrapper';

Expand Down
Loading

0 comments on commit e2fca08

Please sign in to comment.