graphwise-reactodia 0.0.1-TR12 → 0.0.1-TR13

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,9 +34,9 @@ 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
  /**
@@ -47,8 +47,8 @@ export declare class GraphwiseReactodia {
47
47
  */
48
48
  theme?: string;
49
49
  private reactRoot?;
50
- onProviderSettingsChange(): void;
51
- onLanguageChange(): void;
50
+ onCurrentRepositoryChange(): void;
51
+ onLanguageOrSettingsChange(): void;
52
52
  onThemeChange(): void;
53
53
  connectedCallback(): void;
54
54
  disconnectedCallback(): void;
@@ -23,12 +23,12 @@ 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
+ * When true, the host is remounting the component to switch languages or to apply new provider
31
+ * settings, so the workspace should not be seeded, if a seed is present.
32
32
  * Rather, the current state should simply be reloaded.
33
33
  */
34
34
  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,7 +36,7 @@ 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
  /**
@@ -90,7 +90,7 @@ 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
  /**
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-TR13",
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",