graphwise-reactodia 0.0.1-TR13 → 0.0.1-TR15
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 +72 -42
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.css +44 -1
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.js +21 -7
- package/dist/collection/components/graphwise-reactodia/reactodia-app.js +24 -10
- 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 +38 -0
- package/dist/esm/graphwise-reactodia.entry.js +72 -42
- package/dist/graphwise-reactodia/graphwise-reactodia.esm.js +1 -1
- package/dist/graphwise-reactodia/p-a2c710e4.entry.js +1 -0
- package/dist/types/components/graphwise-reactodia/graphwise-reactodia.d.ts +11 -5
- package/dist/types/components/graphwise-reactodia/models/reactodia-app-props.d.ts +4 -0
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/graphwise-reactodia/p-420b9dce.entry.js +0 -1
|
@@ -40,17 +40,23 @@ export declare class GraphwiseReactodia {
|
|
|
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?;
|
|
47
|
+
/**
|
|
48
|
+
* `connectedCallback` and the watchers can run before all props are set: when the component's
|
|
49
|
+
* code is already loaded, the instance is created as soon as the
|
|
50
|
+
* element is attached, and every prop set after that triggers its watcher. Rendering at that
|
|
51
|
+
* point would initialise the graph without all props. `componentDidLoad` runs once the initial
|
|
52
|
+
* props are set, so we use it to determine when it's safe to render.
|
|
53
|
+
*/
|
|
54
|
+
private isComponentLoaded;
|
|
50
55
|
onCurrentRepositoryChange(): void;
|
|
51
56
|
onLanguageOrSettingsChange(): void;
|
|
52
57
|
onThemeChange(): void;
|
|
53
58
|
connectedCallback(): void;
|
|
59
|
+
componentDidLoad(): void;
|
|
54
60
|
disconnectedCallback(): void;
|
|
55
61
|
render(): any;
|
|
56
62
|
private renderGraph;
|
|
@@ -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
|
|
43
|
+
* The reactodia theme to use
|
|
44
44
|
*/
|
|
45
|
-
"theme"?:
|
|
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
|
|
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;
|