graphwise-reactodia 0.0.1-TR12 → 0.0.1-TR14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/graphwise-reactodia.cjs.entry.js +77 -51
- package/dist/cjs/graphwise-reactodia.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.css +47 -1
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.js +17 -12
- package/dist/collection/components/graphwise-reactodia/reactodia-app.js +36 -17
- package/dist/collection/components/graphwise-reactodia/services/diagram/diagram.service.js +4 -1
- package/dist/collection/components/graphwise-reactodia/styles/type-style.resolver.js +25 -26
- package/dist/collection/pages/graphwise-reactodia/main.js +10 -0
- package/dist/collection/pages/graphwise-reactodia/owl-rdfs-settings.js +195 -0
- package/dist/esm/graphwise-reactodia.entry.js +77 -51
- package/dist/esm/graphwise-reactodia.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/graphwise-reactodia/graphwise-reactodia.esm.js +1 -1
- package/dist/graphwise-reactodia/p-0cb06f14.entry.js +1 -0
- package/dist/types/components/graphwise-reactodia/graphwise-reactodia.d.ts +7 -10
- package/dist/types/components/graphwise-reactodia/models/reactodia-app-props.d.ts +8 -4
- package/dist/types/components/graphwise-reactodia/reactodia-app.d.ts +3 -2
- package/dist/types/components.d.ts +6 -6
- package/package.json +2 -2
- package/dist/graphwise-reactodia/p-52bd1b0e.entry.js +0 -1
|
@@ -34,21 +34,18 @@ export declare class GraphwiseReactodia {
|
|
|
34
34
|
language: LanguageKey;
|
|
35
35
|
/**
|
|
36
36
|
* Query preset for the SPARQL data provider, owned and configured by the host. A DOM
|
|
37
|
-
* property (an object, not an attribute) passed in from outside the wrapper.
|
|
38
|
-
*
|
|
39
|
-
* the
|
|
37
|
+
* property (an object, not an attribute) passed in from outside the wrapper. Required: the
|
|
38
|
+
* wrapper has no default preset and throws when it is missing. Changing it rebuilds the data
|
|
39
|
+
* provider and reloads the graph with it, keeping the current diagram.
|
|
40
40
|
*/
|
|
41
41
|
providerSettings?: SparqlDataProviderSettings;
|
|
42
42
|
/**
|
|
43
|
-
* The theme
|
|
44
|
-
* the node colors are taken from the host's CSS custom properties - it only signals that those
|
|
45
|
-
* values have changed. The host owns the theme, including whether it follows the OS color scheme,
|
|
46
|
-
* so the change is passed in instead of being detected here.
|
|
43
|
+
* The reactodia theme to use
|
|
47
44
|
*/
|
|
48
|
-
theme?:
|
|
45
|
+
theme?: 'light' | 'dark';
|
|
49
46
|
private reactRoot?;
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
onCurrentRepositoryChange(): void;
|
|
48
|
+
onLanguageOrSettingsChange(): void;
|
|
52
49
|
onThemeChange(): void;
|
|
53
50
|
connectedCallback(): void;
|
|
54
51
|
disconnectedCallback(): void;
|
|
@@ -23,12 +23,16 @@ export interface ReactodiaAppProps {
|
|
|
23
23
|
*/
|
|
24
24
|
language: LanguageKey;
|
|
25
25
|
/**
|
|
26
|
-
* Query preset for the SPARQL data provider, owned and configured by the host.
|
|
27
|
-
* to Reactodia's generic `OwlRdfsSettings` OWL/RDFS preset when omitted.
|
|
26
|
+
* Query preset for the SPARQL data provider, owned and configured by the host.
|
|
28
27
|
*/
|
|
29
|
-
providerSettings
|
|
28
|
+
providerSettings: SparqlDataProviderSettings;
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
30
|
+
* Color scheme of the Reactodia UI. When omitted, Reactodia follows the OS color scheme.
|
|
31
|
+
*/
|
|
32
|
+
theme?: 'light' | 'dark';
|
|
33
|
+
/**
|
|
34
|
+
* When true, the host is remounting the component to switch languages or to apply new provider
|
|
35
|
+
* settings, so the workspace should not be seeded, if a seed is present.
|
|
32
36
|
* Rather, the current state should simply be reloaded.
|
|
33
37
|
*/
|
|
34
38
|
isReload?: boolean;
|
|
@@ -6,8 +6,9 @@ import { ReactodiaAppProps } from './models/reactodia-app-props';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function mountReactodia(container: HTMLElement, props: ReactodiaAppProps): Root;
|
|
8
8
|
/**
|
|
9
|
-
* Re-points the diagram at a new SPARQL endpoint
|
|
10
|
-
*
|
|
9
|
+
* Re-points the diagram at a new SPARQL endpoint by recreating it with a fresh data provider.
|
|
10
|
+
* The canvas is reset to empty, matching the initial mount, since the data of another repository
|
|
11
|
+
* has nothing to do with the current graph.
|
|
11
12
|
*/
|
|
12
13
|
export declare function updateReactodia(props: ReactodiaAppProps): Promise<void>;
|
|
13
14
|
/**
|
|
@@ -36,13 +36,13 @@ export namespace Components {
|
|
|
36
36
|
*/
|
|
37
37
|
"language": LanguageKey;
|
|
38
38
|
/**
|
|
39
|
-
* Query preset for the SPARQL data provider, owned and configured by the host. A DOM property (an object, not an attribute) passed in from outside the wrapper.
|
|
39
|
+
* Query preset for the SPARQL data provider, owned and configured by the host. A DOM property (an object, not an attribute) passed in from outside the wrapper. Required: the wrapper has no default preset and throws when it is missing. Changing it rebuilds the data provider and reloads the graph with it, keeping the current diagram.
|
|
40
40
|
*/
|
|
41
41
|
"providerSettings"?: SparqlDataProviderSettings;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
43
|
+
* The reactodia theme to use
|
|
44
44
|
*/
|
|
45
|
-
"theme"?:
|
|
45
|
+
"theme"?: 'light' | 'dark';
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
declare global {
|
|
@@ -90,13 +90,13 @@ declare namespace LocalJSX {
|
|
|
90
90
|
*/
|
|
91
91
|
"language"?: LanguageKey;
|
|
92
92
|
/**
|
|
93
|
-
* Query preset for the SPARQL data provider, owned and configured by the host. A DOM property (an object, not an attribute) passed in from outside the wrapper.
|
|
93
|
+
* Query preset for the SPARQL data provider, owned and configured by the host. A DOM property (an object, not an attribute) passed in from outside the wrapper. Required: the wrapper has no default preset and throws when it is missing. Changing it rebuilds the data provider and reloads the graph with it, keeping the current diagram.
|
|
94
94
|
*/
|
|
95
95
|
"providerSettings"?: SparqlDataProviderSettings;
|
|
96
96
|
/**
|
|
97
|
-
* The
|
|
97
|
+
* The reactodia theme to use
|
|
98
98
|
*/
|
|
99
|
-
"theme"?:
|
|
99
|
+
"theme"?: 'light' | 'dark';
|
|
100
100
|
}
|
|
101
101
|
interface IntrinsicElements {
|
|
102
102
|
"graphwise-reactodia": GraphwiseReactodia;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphwise-reactodia",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-TR14",
|
|
4
4
|
"description": "Graphwise wrapper around the Reactodia graph explorer.",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"author": "Ontotext AD",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/jest": "^29.5.14",
|
|
47
47
|
"@types/react": "^18.3.12",
|
|
48
48
|
"@types/react-dom": "^18.3.1",
|
|
49
|
-
"cypress": "
|
|
49
|
+
"cypress": "15.17.0",
|
|
50
50
|
"jest": "^29.7.0",
|
|
51
51
|
"jest-cli": "^29.7.0",
|
|
52
52
|
"react": "^18.3.1",
|