graphwise-reactodia 0.0.1-TR13 → 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.
@@ -40,12 +40,9 @@ export declare class GraphwiseReactodia {
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
47
  onCurrentRepositoryChange(): void;
51
48
  onLanguageOrSettingsChange(): void;
@@ -26,6 +26,10 @@ export interface ReactodiaAppProps {
26
26
  * Query preset for the SPARQL data provider, owned and configured by the host.
27
27
  */
28
28
  providerSettings: SparqlDataProviderSettings;
29
+ /**
30
+ * Color scheme of the Reactodia UI. When omitted, Reactodia follows the OS color scheme.
31
+ */
32
+ theme?: 'light' | 'dark';
29
33
  /**
30
34
  * When true, the host is remounting the component to switch languages or to apply new provider
31
35
  * settings, so the workspace should not be seeded, if a seed is present.
@@ -40,9 +40,9 @@ export namespace Components {
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 {
@@ -94,9 +94,9 @@ declare namespace LocalJSX {
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-TR13",
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",