From db261090bfaaca25ce2bf2a742453de0835705a4 Mon Sep 17 00:00:00 2001 From: Edward Brunton <42774600+EdwardBrunton@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:09:00 +0100 Subject: [PATCH] refactor: Rename package references from '@equinor/workspace-core' to 'core' --- packages/core/package.json | 2 +- packages/filter/package.json | 2 +- .../ExpandedFilterGroup.tsx | 2 +- packages/power-bi/package.json | 2 +- .../src/lib/components/Header/Header.tsx | 2 +- pnpm-lock.yaml | 135 ++---------------- 6 files changed, 18 insertions(+), 127 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 1a573e89..2bb2520f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,5 +1,5 @@ { - "name": "@equinor/workspace-core", + "name": "core", "version": "1.0.0", "type": "module", "sideEffects": false, diff --git a/packages/filter/package.json b/packages/filter/package.json index d39dbc70..d031fda4 100644 --- a/packages/filter/package.json +++ b/packages/filter/package.json @@ -30,7 +30,7 @@ "@equinor/eds-icons": "^0.18.0", "@equinor/eds-tokens": "^0.9.0", "@tanstack/react-query": "^5.32.0", - "@equinor/workspace-core": "workspace:^", + "core": "workspace:^", "react-error-boundary": "^4.0.13", "react-sortablejs": "^6.1.4", "react-virtual": "^2.10.4", diff --git a/packages/filter/src/lib/components/expandedFilterGroup/ExpandedFilterGroup.tsx b/packages/filter/src/lib/components/expandedFilterGroup/ExpandedFilterGroup.tsx index ee6d7244..7a3da9cd 100644 --- a/packages/filter/src/lib/components/expandedFilterGroup/ExpandedFilterGroup.tsx +++ b/packages/filter/src/lib/components/expandedFilterGroup/ExpandedFilterGroup.tsx @@ -2,7 +2,7 @@ import { Button, Icon, Search } from '@equinor/eds-core-react'; import { useMemo, useRef, useState } from 'react'; import { FilterClearIcon } from '../../icons'; import { FilterGroup, FilterValueType } from '../../types'; -import { useClickOutside } from '@equinor/workspace-core'; +import { useClickOutside } from 'core'; import { Case, Switch } from '../../utils/Switch'; import { StyledSearchButton, StyledFilterHeaderGroup, StyledTitle, StyledWrapper } from './expandedFilterGroup.styles'; import { VirtualContainer } from '../virtualContainer/VirtualContainer'; diff --git a/packages/power-bi/package.json b/packages/power-bi/package.json index 4b254346..76e07773 100644 --- a/packages/power-bi/package.json +++ b/packages/power-bi/package.json @@ -33,7 +33,7 @@ "markdown-to-jsx": "^7", "powerbi-client": "^2", "powerbi-client-react": "^1", - "@equinor/workspace-core": "workspace:^", + "core": "workspace:^", "react-error-boundary": "^4", "react-sortablejs": "^6", "react-virtual": "^2", diff --git a/packages/power-bi/src/lib/components/Header/Header.tsx b/packages/power-bi/src/lib/components/Header/Header.tsx index 48e0e75f..5ae488bb 100644 --- a/packages/power-bi/src/lib/components/Header/Header.tsx +++ b/packages/power-bi/src/lib/components/Header/Header.tsx @@ -1,7 +1,7 @@ import { Button, Icon, Search } from '@equinor/eds-core-react'; import { useState } from 'react'; import styled from 'styled-components'; -import { useClickOutside } from '@equinor/workspace-core'; +import { useClickOutside } from 'core'; import { FilterClearIcon } from '../../icons'; import { FilterController } from '../Filter/Filter'; import { Case, Switch } from '../switch/Switch'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fcb347c..e6b30f20 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -302,19 +302,19 @@ importers: dependencies: '@equinor/eds-core-react': specifier: ^0.28.0 - version: 0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@equinor/eds-icons': specifier: ^0.18.0 version: 0.18.0 '@equinor/eds-tokens': specifier: ^0.9.0 version: 0.9.0 - '@equinor/workspace-core': - specifier: workspace:^ - version: link:../core '@tanstack/react-query': specifier: ^5.32.0 version: 5.32.0(react@18.3.1) + core: + specifier: workspace:^ + version: link:../core react-error-boundary: specifier: ^4.0.13 version: 4.0.13(react@18.3.1) @@ -360,7 +360,7 @@ importers: dependencies: '@equinor/eds-core-react': specifier: 0.28.0 - version: 0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@equinor/eds-icons': specifier: ^0.18.0 version: 0.18.0 @@ -412,19 +412,19 @@ importers: dependencies: '@equinor/eds-core-react': specifier: ^0 - version: 0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@equinor/eds-icons': specifier: ^0 version: 0.18.0 '@equinor/eds-tokens': specifier: ^0 version: 0.9.0 - '@equinor/workspace-core': - specifier: workspace:^ - version: link:../core '@tanstack/react-query': specifier: ^5 version: 5.32.0(react@18.3.1) + core: + specifier: workspace:^ + version: link:../core markdown-to-jsx: specifier: ^7 version: 7.4.7(react@18.3.1) @@ -476,7 +476,7 @@ importers: dependencies: '@equinor/eds-core-react': specifier: ^0 - version: 0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@equinor/eds-icons': specifier: ^0 version: 0.18.0 @@ -574,7 +574,7 @@ importers: dependencies: '@equinor/eds-core-react': specifier: ^0.28.0 - version: 0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + version: 0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@equinor/eds-icons': specifier: ^0.18.0 version: 0.18.0 @@ -6188,51 +6188,26 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-jsx@7.24.1(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6243,71 +6218,36 @@ snapshots: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.20.12)': dependencies: '@babel/core': 7.20.12 '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.20.2 - '@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.24.5)': dependencies: '@babel/core': 7.24.5 @@ -6612,12 +6552,12 @@ snapshots: - '@types/react' - supports-color - '@equinor/eds-core-react@0.28.0(@babel/core@7.24.5)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1))': + '@equinor/eds-core-react@0.28.0(@babel/core@7.20.12)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1))': dependencies: '@babel/runtime': 7.24.1 '@equinor/eds-icons': 0.17.0 '@equinor/eds-tokens': 0.9.0 - '@equinor/eds-utils': 0.7.0(@babel/core@7.24.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) + '@equinor/eds-utils': 0.7.0(@babel/core@7.20.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1)) '@floating-ui/react-dom-interactions': 0.10.3(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tanstack/react-virtual': 3.0.0-beta.30(react@18.3.1) downshift: 7.2.0(react@18.3.1) @@ -6653,20 +6593,6 @@ snapshots: - '@babel/core' - supports-color - '@equinor/eds-utils@0.7.0(@babel/core@7.24.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(styled-components@6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1))': - dependencies: - '@babel/runtime': 7.24.1 - '@equinor/eds-tokens': 0.9.0 - '@popperjs/core': 2.11.6 - babel-jest: 29.2.2(@babel/core@7.24.5) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-popper: 2.3.0(@popperjs/core@2.11.6)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - styled-components: 6.1.8(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - transitivePeerDependencies: - - '@babel/core' - - supports-color - '@equinor/fusion-react-ag-grid-styles@31.2.1(@ag-grid-community/styles@29.3.5)(@equinor/fusion-react-styles@0.6.2(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))': dependencies: '@ag-grid-community/styles': 29.3.5 @@ -7887,19 +7813,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-jest@29.2.2(@babel/core@7.24.5): - dependencies: - '@babel/core': 7.24.5 - '@jest/transform': 29.2.2 - '@types/babel__core': 7.20.5 - babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.2.0(@babel/core@7.24.5) - chalk: 4.1.2 - graceful-fs: 4.2.10 - slash: 3.0.0 - transitivePeerDependencies: - - supports-color - babel-plugin-istanbul@6.1.1: dependencies: '@babel/helper-plugin-utils': 7.20.2 @@ -7937,34 +7850,12 @@ snapshots: '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.20.12) '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.20.12) - babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.5): - dependencies: - '@babel/core': 7.24.5 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.5) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.24.5) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.24.5) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.5) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.5) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.5) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.5) - babel-preset-jest@29.2.0(@babel/core@7.20.12): dependencies: '@babel/core': 7.20.12 babel-plugin-jest-hoist: 29.2.0 babel-preset-current-node-syntax: 1.0.1(@babel/core@7.20.12) - babel-preset-jest@29.2.0(@babel/core@7.24.5): - dependencies: - '@babel/core': 7.24.5 - babel-plugin-jest-hoist: 29.2.0 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.5) - bail@2.0.2: {} balanced-match@1.0.2: {}