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.
@@ -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. When omitted,
38
- * the data provider falls back to Reactodia's generic OWL/RDFS preset. Changing it rebuilds
39
- * the data provider and resets the canvas.
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 currently applied by the host (e.g. `light`, `dark`). The value itself is never read -
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?: string;
45
+ theme?: 'light' | 'dark';
49
46
  private reactRoot?;
50
- onProviderSettingsChange(): void;
51
- onLanguageChange(): void;
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. Falls back
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?: SparqlDataProviderSettings;
28
+ providerSettings: SparqlDataProviderSettings;
30
29
  /**
31
- * When true, the host is remounting the component switch languages, so the workspace should not be seeded, if a seed is present.
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 or query preset by recreating it with a
10
- * fresh data provider. The canvas is reset to empty, matching the initial mount.
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. When omitted, the data provider falls back to Reactodia's generic OWL/RDFS preset. Changing it rebuilds the data provider and resets the canvas.
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 theme currently applied by the host (e.g. `light`, `dark`). The value itself is never read - the node colors are taken from the host's CSS custom properties - it only signals that those values have changed. The host owns the theme, including whether it follows the OS color scheme, so the change is passed in instead of being detected here.
43
+ * The reactodia theme to use
44
44
  */
45
- "theme"?: string;
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. When omitted, the data provider falls back to Reactodia's generic OWL/RDFS preset. Changing it rebuilds the data provider and resets the canvas.
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 theme currently applied by the host (e.g. `light`, `dark`). The value itself is never read - the node colors are taken from the host's CSS custom properties - it only signals that those values have changed. The host owns the theme, including whether it follows the OS color scheme, so the change is passed in instead of being detected here.
97
+ * The reactodia theme to use
98
98
  */
99
- "theme"?: string;
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-TR12",
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": "^15.17.0",
49
+ "cypress": "15.17.0",
50
50
  "jest": "^29.7.0",
51
51
  "jest-cli": "^29.7.0",
52
52
  "react": "^18.3.1",