Skip to content

Commit 8d76fda

Browse files
committed
fix: refactor to use core npm package
1 parent aaf435a commit 8d76fda

32 files changed

+557
-69
lines changed

package-lock.json

Lines changed: 489 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compas-open-scd/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"module": "open-scd.js",
1919
"type": "module",
2020
"dependencies": {
21+
"@compas-oscd/core": "^0.1.7",
22+
"@compas-oscd/xml": "^0.0.1",
2123
"@material/mwc-dialog": "0.22.1",
2224
"@material/mwc-drawer": "0.22.1",
2325
"@material/mwc-fab": "0.22.1",
@@ -36,17 +38,16 @@
3638
"@material/mwc-textarea": "0.22.1",
3739
"@material/mwc-textfield": "0.22.1",
3840
"@material/mwc-top-app-bar-fixed": "0.22.1",
41+
"@openscd/addons": "*",
42+
"@openscd/open-scd": "*",
43+
"@openscd/plugins": "*",
3944
"ace-custom-element": "^1.6.5",
4045
"csv-stringify": "^6.2.0",
4146
"lit-element": "2.5.1",
4247
"lit-html": "1.4.1",
4348
"lit-translate": "^1.2.1",
4449
"marked": "^4.0.10",
45-
"panzoom": "^9.4.2",
46-
"@compas-oscd/xml": "^0.0.1",
47-
"@openscd/open-scd": "*",
48-
"@openscd/plugins": "*",
49-
"@openscd/addons": "*"
50+
"panzoom": "^9.4.2"
5051
},
5152
"scripts": {
5253
"lint:eslint": "eslint --ext .ts,.html . --ignore-path .gitignore",
@@ -62,7 +63,7 @@
6263
"test:unit": "web-test-runner --watch --group unit",
6364
"test:integration": "web-test-runner --watch --group integration",
6465
"doc:clean": "npx rimraf doc",
65-
"doc:typedoc": "typedoc --plugin none --out doc src",
66+
"doc:typedoc": "typedoc --entryPointStrategy expand --entryPoints ./src --exclude **/*.spec.ts --exclude **/*.test.ts --out doc",
6667
"doc:wca": "wca src --outDir doc/components",
6768
"doc": "npm run doc:clean && npm run doc:typedoc && npm run doc:wca",
6869
"release": "standard-version",
@@ -84,8 +85,8 @@
8485
"@snowpack/plugin-typescript": "^1.2.1",
8586
"@types/marked": "^2.0.4",
8687
"@types/node": "^16.6.1",
87-
"@typescript-eslint/eslint-plugin": "^4.29.2",
88-
"@typescript-eslint/parser": "^4.29.2",
88+
"@typescript-eslint/eslint-plugin": "^5.30.0",
89+
"@typescript-eslint/parser": "^5.30.0",
8990
"@web/dev-server-esbuild": "^0.2.16",
9091
"@web/test-runner": "^0.13.22",
9192
"concurrently": "^6.2.1",
@@ -104,9 +105,9 @@
104105
"source-map": "^0.7.4",
105106
"standard-version": "^9.3.1",
106107
"tslib": "^2.3.1",
107-
"typedoc": "^0.21.10",
108-
"typedoc-plugin-markdown": "3.10.4",
109-
"typescript": "4.3.5",
108+
"typedoc": "^0.24.0",
109+
"typedoc-plugin-markdown": "^3.14.0",
110+
"typescript": "~4.7.4",
110111
"web-component-analyzer": "^1.1.6",
111112
"workbox-cli": "^6.2.4"
112113
},

packages/compas-open-scd/src/addons/CompasHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import '@openscd/open-scd/src/filtered-list.js';
1717

1818
import {
1919
IssueDetail,
20-
} from '@openscd/core/foundation/deprecated/history.js';
20+
} from '@compas-oscd/core/foundation/deprecated/history.js';
2121

2222
import { HistoryUIDetail, OscdHistory } from '@openscd/open-scd/src/addons/History.js';
2323
import { wizards } from '@openscd/plugins/src/wizards/wizard-library';

packages/compas-open-scd/src/compas-editors/CompasVersions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { MultiSelectedEvent } from '@material/mwc-list/mwc-list-foundation';
2323

2424
import '@openscd/open-scd/src/plain-compare-list.js';
2525

26-
import { newLogEvent } from "@openscd/core/foundation/deprecated/history.js";
27-
import { newOpenDocEvent } from "@openscd/core/foundation/deprecated/open-event.js";
26+
import { newLogEvent } from "@compas-oscd/core/foundation/deprecated/history.js";
27+
import { newOpenDocEvent } from "@compas-oscd/core/foundation/deprecated/open-event.js";
2828

2929
import {
3030
newWizardEvent,

packages/compas-open-scd/src/compas-editors/autogen-substation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { LitElement, property } from 'lit-element';
22
import {
33
newActionEvent,
4-
} from '@openscd/core/foundation/deprecated/editor.js';
4+
} from '@compas-oscd/core/foundation/deprecated/editor.js';
55
import { createElement } from '@compas-oscd/xml';
6-
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
6+
import { newLogEvent } from '@compas-oscd/core/foundation/deprecated/history.js';
77
import { get } from 'lit-translate';
88

99
let cbNum = 1;

packages/compas-open-scd/src/compas-editors/sitipe/sitipe-bay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import '@material/mwc-icon-button';
1818
import { IconButton } from '@material/mwc-icon-button';
1919

2020
import { isPublic } from '@openscd/open-scd/src/foundation.js';
21-
import { newActionEvent } from '@openscd/core/foundation/deprecated/editor.js';
21+
import { newActionEvent } from '@compas-oscd/core/foundation/deprecated/editor.js';
2222
import { createElement } from '@compas-oscd/xml';
23-
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
23+
import { newLogEvent } from '@compas-oscd/core/foundation/deprecated/history.js';
2424

25-
import { ComplexAction, SimpleAction } from "@openscd/core/foundation/deprecated/editor.js";
25+
import { ComplexAction, SimpleAction } from "@compas-oscd/core/foundation/deprecated/editor.js";
2626

2727
import '@openscd/open-scd/src/action-pane.js';
2828
import '@openscd/open-scd/src/action-icon.js';

packages/compas-open-scd/src/compas-services/Websocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';
1+
import { newPendingStateEvent } from '@compas-oscd/core/foundation/deprecated/waiter.js';
22
import {
33
APPLICATION_ERROR,
44
extractErrorMessage,

packages/compas-open-scd/src/compas-services/foundation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { get } from 'lit-translate';
2-
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
2+
import { newLogEvent } from '@compas-oscd/core/foundation/deprecated/history.js';
33

44
export const NOT_FOUND_ERROR = 'NotFoundError';
55
export const APPLICATION_ERROR = 'ApplicationError';

packages/compas-open-scd/src/compas-wizards/scl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
import { cloneElement } from '@compas-oscd/xml';
1212

13-
import { ComplexAction, EditorAction } from "@openscd/core/foundation/deprecated/editor.js";
13+
import { ComplexAction, EditorAction } from "@compas-oscd/core/foundation/deprecated/editor.js";
1414

1515
import '../compas/CompasLabelsField.js';
1616

packages/compas-open-scd/src/compas/CompasAutoAlignment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import '@material/mwc-list';
1212
import '@material/mwc-list/mwc-check-list-item';
1313

1414
import { newWizardEvent } from '@openscd/open-scd/src/foundation.js';
15-
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
16-
import { newOpenDocEvent } from '@openscd/core/foundation/deprecated/open-event.js';
15+
import { newLogEvent } from '@compas-oscd/core/foundation/deprecated/history.js';
16+
import { newOpenDocEvent } from '@compas-oscd/core/foundation/deprecated/open-event.js';
1717

1818
import { CompasSclAutoAlignmentService } from '../compas-services/CompasSclAutoAlignmentService.js';
1919
import { createLogEvent } from '../compas-services/foundation.js';

0 commit comments

Comments
 (0)