Skip to content

Commit 1e398ed

Browse files
committed
reverts arc changes
1 parent 2a3de9f commit 1e398ed

File tree

8 files changed

+1130
-2
lines changed

8 files changed

+1130
-2
lines changed

.github/workflows/release-arc.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Release @neo4j-devtools/arc'
2+
3+
defaults:
4+
run:
5+
working-directory: src/neo4j-arc
6+
7+
on:
8+
push:
9+
branches:
10+
- master
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
environment: Publish
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
repository: neo4j/neo4j-browser
19+
# Setup .npmrc file to publish to npm
20+
- uses: actions/setup-node@v2
21+
with:
22+
registry-url: 'https://registry.npmjs.org'
23+
# Defaults to the user or organization that owns the workflow file
24+
scope: '@neo4j-devtools'
25+
- run: npm -g install yarn
26+
# - run: yarn test
27+
- run: yarn install --frozen-lockfile
28+
- run: yarn build
29+
- uses: JS-DevTools/npm-publish@v1
30+
with:
31+
token: ${{ secrets.NPM_TOKEN }}
32+
package: 'src/neo4j-arc/package.json'
33+
access: 'public'

.github/workflows/test-arc.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: 'Arc PR e2e tests'
22

3+
defaults:
4+
run:
5+
working-directory: src/neo4j-arc
6+
37
on:
48
pull_request:
59
branches:
@@ -14,4 +18,5 @@ jobs:
1418
node-version-file: '.nvmrc'
1519
- run: npm -g install yarn
1620
- run: yarn install --frozen-lockfile
17-
- run: yarn test-arc
21+
- run: yarn test
22+
- run: yarn build

src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/DetailsPane.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { ClipboardCopier, PropertiesTable, upperFirst } from 'neo4j-arc/common'
2424
import { StyleableNodeLabel } from './StyleableNodeLabel'
2525
import { StyleableRelType } from './StyleableRelType'
2626
import { PaneBody, PaneHeader, PaneTitle, PaneWrapper } from './styled'
27-
import { DetailsPaneProps } from 'neo4j-arc/graph-visualization'
27+
import { DetailsPaneProps } from 'neo4j-arc'
2828

2929
export const DETAILS_PANE_STEP_SIZE = 1000
3030
export function DetailsPane({

src/neo4j-arc/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Neo4j Arc - Browser Component Library
2+
3+
This project currently contains all the components in common between Neo4j Browser and NX. Arc is a recursive backronym for Arc React Components.
4+
5+
## Development
6+
7+
Currently the only supported action for Arc is building it, a dev env & tests to come. To build arc, simply run `yarn build` in this directory, no other steps needed.

src/neo4j-arc/package.json

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"name": "@neo4j-devtools/arc",
3+
"version": "0.0.47",
4+
"main": "dist/neo4j-arc.js",
5+
"author": "Neo4j Inc.",
6+
"license": "GPL-3.0",
7+
"typings": "dist/neo4j-arc.d.ts",
8+
"scripts": {
9+
"build": "rollup -c --failAfterWarnings",
10+
"test": "tsc --noEmit",
11+
"prepublishOnly": "npm run test && npm run build"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/neo4j/neo4j-browser.git"
16+
},
17+
"files": [
18+
"dist",
19+
"package.json",
20+
"README.md",
21+
"LICENSE"
22+
],
23+
"devDependencies": {
24+
"@rollup/plugin-alias": "^3.1.9",
25+
"@types/react": "^17.0.40",
26+
"esbuild": "^0.14.26",
27+
"neo4j-driver-core": "5.9.2",
28+
"react": "^17.0.2",
29+
"react-dom": "^17.0.2",
30+
"rollup": "^2.70.1",
31+
"rollup-plugin-dts": "^4.2.0",
32+
"rollup-plugin-esbuild": "^4.9.1",
33+
"typescript": "^4.6.2"
34+
},
35+
"dependencies": {
36+
"@heroicons/react": "^2.0.16",
37+
"@juggle/resize-observer": "^3.3.1",
38+
"@neo4j-cypher/antlr4": "^1.0.0",
39+
"@neo4j-cypher/editor-support": "^1.0.1",
40+
"@neo4j-cypher/extract-statements": "^1.0.1",
41+
"@neo4j-devtools/word-color": "^0.0.7",
42+
"@types/d3-color": "^3.0.2",
43+
"@types/d3-drag": "^3.0.1",
44+
"@types/d3-ease": "^3.0.0",
45+
"@types/d3-force": "^3.0.3",
46+
"@types/d3-scale": "^4.0.2",
47+
"@types/d3-selection": "^3.0.2",
48+
"@types/d3-shape": "^3.0.2",
49+
"@types/d3-transition": "^3.0.1",
50+
"@types/d3-zoom": "^3.0.1",
51+
"@types/lodash-es": "^4.17.6",
52+
"@types/styled-components": "^5.1.1",
53+
"d3-color": "^3.0.1",
54+
"d3-drag": "^3.0.0",
55+
"d3-ease": "^3.0.1",
56+
"d3-force": "^3.0.0",
57+
"d3-scale": "^4.0.2",
58+
"d3-selection": "^3.0.0",
59+
"d3-shape": "^3.0.1",
60+
"d3-transition": "^3.0.1",
61+
"d3-zoom": "^3.0.0",
62+
"deepmerge": "^4.2.2",
63+
"lodash-es": "^4.17.21",
64+
"monaco-editor": "0.23.0",
65+
"re-resizable": "^6.9.9",
66+
"react-is": "^17.0.2",
67+
"styled-components": "^5.3.5"
68+
},
69+
"peerDependencies": {
70+
"neo4j-driver-core": "5.9.2",
71+
"react": "^17.0.2",
72+
"react-dom": "^17.0.2"
73+
}
74+
}

src/neo4j-arc/rollup.config.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import dts from 'rollup-plugin-dts'
2+
import esbuild from 'rollup-plugin-esbuild'
3+
import alias from '@rollup/plugin-alias'
4+
import pkg from './package.json'
5+
6+
const importsWithPaths = [
7+
'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInputList',
8+
'monaco-editor/esm/vs/editor/editor.api',
9+
'monaco-editor/esm/vs/editor/editor.all.js',
10+
'@heroicons/react/24/solid',
11+
'@heroicons/react/24/outline'
12+
]
13+
14+
const dependenciesNotToBundle = Object.keys({
15+
...pkg.dependencies,
16+
...pkg.peerDependencies
17+
}).concat(importsWithPaths)
18+
19+
const aliasEntries = [
20+
{ find: 'neo4j-arc/common', replacement: './common/index.ts' }
21+
]
22+
23+
export default [
24+
{
25+
input: 'index.ts',
26+
external: id => dependenciesNotToBundle.includes(id),
27+
plugins: [/* handles ts */ esbuild(), alias({ entries: aliasEntries })],
28+
output: [
29+
{
30+
file: pkg.main,
31+
format: 'es',
32+
sourcemap: true
33+
}
34+
]
35+
},
36+
// Build types
37+
{
38+
input: 'index.ts',
39+
plugins: [dts(), alias({ entries: aliasEntries })],
40+
output: {
41+
file: pkg.typings,
42+
format: 'es'
43+
}
44+
}
45+
]

src/neo4j-arc/tsconfig.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"jsx": "react",
5+
"sourceMap": true,
6+
"allowSyntheticDefaultImports": true,
7+
"moduleResolution": "node",
8+
"paths": {
9+
"neo4j-arc/common": ["./common/index.ts"]
10+
}
11+
},
12+
"exclude": ["**/*.test.ts", "**/*.test.tsx"]
13+
}

0 commit comments

Comments
 (0)