@ts4nfdi/terminology-service-suite 6.12.0 → 6.12.1
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/README.md +6 -4
- package/dist/components/widgets/EntityListWidget/EntityListWidgetStories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityDefinedByWidget/EntityDefinedByWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityDefinedByWidget/EntityDefinedByWidgetStories.d.ts +8 -8
- package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListWidget.stories.d.ts +2 -2
- package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListWidgetStories.d.ts +9 -9
- package/dist/components/widgets/MetadataWidget/MetadataWidget.stories.d.ts +15 -0
- package/dist/components/widgets/MetadataWidget/MetadataWidgetStories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts +3 -3
- package/dist/esm/index.es.js +83 -87
- package/dist/esm/index.es.js.map +1 -1
- package/dist/model/ts4nfdi-model/Ts4nfdiSearchResult.d.ts +1 -0
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm install @ts4nfdi/terminology-service-suite
|
|
|
19
19
|
2. Install peer dependencies
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
npm install @elastic/eui@
|
|
22
|
+
npm install @elastic/eui@113.3.0 @elastic/eui-theme-borealis @emotion/react @emotion/css moment @elastic/datemath react@18.3 react-dom@18.3 react-query@3.39.2 axios@1.1.2
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
3. In the 'Docs' tab of the widgets in the React Storybook, a code snippet is provided in the `Show code` drop-down below the sample widget. Copy the snippet, add into your app and replace with your parameters. See example below:
|
|
@@ -47,11 +47,13 @@ const queryClient = new QueryClient();
|
|
|
47
47
|
</QueryClientProvider>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
### If you encounter any installation or integration errors, please open an issue to let us know!
|
|
51
|
+
|
|
50
52
|
## Hints:
|
|
51
53
|
|
|
52
|
-
-
|
|
53
|
-
- We can provide server functions at user request, e.g. `getBreadcrumbData()` to allow server side data fetching. [Pull request](https://github.com/ts4nfdi/terminology-service-suite/pull/269)
|
|
54
|
-
- In Next.js apps, it may be necessary to explicitly import widget stylesheets. We tested this in a Next.js app and found that missing stylesheet imports can cause UI issues. The styles are available in [`packages/react/src/style/ts4nfdiStyles`](https://github.com/ts4nfdi/terminology-service-suite/tree/main/packages/react/src/style/ts4nfdiStyles). Copy the relevant stylesheet for the widget you use into your project and import it there. For example, when using `SearchResultsListWidget`, you may need to add and import `SearchResultStyle.css`.
|
|
54
|
+
- **Vite:** There is an [Elastic UI issue](https://github.com/elastic/eui/issues/5463) using Vite and EUI versions <113.0.0. We recommend using TSS versions >6.12.0 and EUI versions >113.0.0. For TSS versions >6.0.0 and <6.12.0 we integrated a [workaround](https://github.com/ts4nfdi/terminology-service-suite/wiki/Why-patch%E2%80%90package-and-the-prepare-script%3F).
|
|
55
|
+
- **Next.js:** The TSS is a client library - in a Next.js app, the 'use client'-directive is needed. We can provide server functions at user request, e.g. `getBreadcrumbData()` to allow server side data fetching. [Pull request](https://github.com/ts4nfdi/terminology-service-suite/pull/269)
|
|
56
|
+
- **Next.js:** In Next.js apps, it may be necessary to explicitly import widget stylesheets. We tested this in a Next.js app and found that missing stylesheet imports can cause UI issues. The styles are available in [`packages/react/src/style/ts4nfdiStyles`](https://github.com/ts4nfdi/terminology-service-suite/tree/main/packages/react/src/style/ts4nfdiStyles). Copy the relevant stylesheet for the widget you use into your project and import it there. For example, when using `SearchResultsListWidget`, you may need to add and import `SearchResultStyle.css`.
|
|
55
57
|
|
|
56
58
|
# Usage of older versions
|
|
57
59
|
|
|
@@ -33,7 +33,7 @@ export declare const EntityListWidgetStoryArgs: {
|
|
|
33
33
|
};
|
|
34
34
|
export declare const EntityListWidgetIndividualsArgs: {
|
|
35
35
|
readonly api: "https://www.ebi.ac.uk/ols4/api/";
|
|
36
|
-
readonly ontologyId: "
|
|
36
|
+
readonly ontologyId: "iao";
|
|
37
37
|
readonly entityType: "individual";
|
|
38
38
|
readonly parameter: "";
|
|
39
39
|
};
|
|
@@ -54,6 +54,6 @@ declare const meta: {
|
|
|
54
54
|
};
|
|
55
55
|
export default meta;
|
|
56
56
|
type Story = StoryObj<typeof meta>;
|
|
57
|
-
export declare const
|
|
57
|
+
export declare const v2ApiFOODON: Story;
|
|
58
58
|
export declare const legacyApi: Story;
|
|
59
59
|
export declare const emptyInDefiningOntology: Story;
|
|
@@ -35,21 +35,21 @@ export declare const EntityDefinedByWidgetStoryArgs: {
|
|
|
35
35
|
readonly onNavigateToOntology: "Console message";
|
|
36
36
|
};
|
|
37
37
|
export declare const emptyInDefiningOntologyArgs: {
|
|
38
|
-
readonly iri: "http://
|
|
38
|
+
readonly iri: "http://purl.obolibrary.org/obo/MONDO_0005015";
|
|
39
39
|
readonly api: "https://www.ebi.ac.uk/ols4/api/";
|
|
40
40
|
readonly entityType: "term";
|
|
41
41
|
readonly ontologyId: "efo";
|
|
42
42
|
};
|
|
43
|
-
export declare const
|
|
44
|
-
readonly iri: "http://
|
|
45
|
-
readonly api: "https://
|
|
46
|
-
readonly ontologyId: "
|
|
43
|
+
export declare const v2ApiFOODONArgs: {
|
|
44
|
+
readonly iri: "http://purl.obolibrary.org/obo/NCBITaxon_10090";
|
|
45
|
+
readonly api: "https://semanticlookup.zbmed.de/ols/api/";
|
|
46
|
+
readonly ontologyId: "foodon";
|
|
47
47
|
};
|
|
48
48
|
export declare const legacyApiArgs: {
|
|
49
|
-
readonly iri: "http://
|
|
50
|
-
readonly api: "https://
|
|
49
|
+
readonly iri: "http://purl.obolibrary.org/obo/NCBITaxon_10090";
|
|
50
|
+
readonly api: "https://semanticlookup.zbmed.de/ols/api/";
|
|
51
51
|
readonly entityType: "term";
|
|
52
|
-
readonly ontologyId: "
|
|
52
|
+
readonly ontologyId: "foodon";
|
|
53
53
|
readonly useLegacy: true;
|
|
54
54
|
};
|
|
55
55
|
export declare const commonEntityDefinedByWidgetPlay: ({ canvasElement, }: {
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
};
|
|
55
55
|
export default meta;
|
|
56
56
|
type Story = StoryObj<typeof meta>;
|
|
57
|
-
export declare const
|
|
58
|
-
export declare const
|
|
57
|
+
export declare const v2ApiNCBITaxon: Story;
|
|
58
|
+
export declare const v2ApiFOODON: Story;
|
|
59
59
|
export declare const legacyApi: Story;
|
|
60
60
|
export declare const exceedsMaxDisplay: Story;
|
package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListWidgetStories.d.ts
CHANGED
|
@@ -34,19 +34,19 @@ export declare const EntityOntoListWidgetStoryArgs: {
|
|
|
34
34
|
readonly parameter: "";
|
|
35
35
|
readonly onNavigateToOntology: "Console message";
|
|
36
36
|
};
|
|
37
|
-
export declare const
|
|
38
|
-
readonly iri: "http://
|
|
39
|
-
readonly api: "https://
|
|
37
|
+
export declare const v2ApiNCBITaxonArgs: {
|
|
38
|
+
readonly iri: "http://purl.obolibrary.org/obo/NCBITaxon_10090";
|
|
39
|
+
readonly api: "https://semanticlookup.zbmed.de/ols/api/";
|
|
40
40
|
readonly entityType: "term";
|
|
41
|
-
readonly ontologyId: "
|
|
41
|
+
readonly ontologyId: "ncbitaxon";
|
|
42
42
|
};
|
|
43
|
-
export declare const
|
|
44
|
-
readonly iri: "http://
|
|
45
|
-
readonly api: "https://
|
|
46
|
-
readonly ontologyId: "
|
|
43
|
+
export declare const v2ApiFOODONArgs: {
|
|
44
|
+
readonly iri: "http://purl.obolibrary.org/obo/NCBITaxon_10090";
|
|
45
|
+
readonly api: "https://semanticlookup.zbmed.de/ols/api/";
|
|
46
|
+
readonly ontologyId: "foodon";
|
|
47
47
|
};
|
|
48
48
|
export declare const legacyApiArgs: {
|
|
49
|
-
readonly iri: "http://
|
|
49
|
+
readonly iri: "http://purl.obolibrary.org/obo/MONDO_0005015";
|
|
50
50
|
readonly api: "https://www.ebi.ac.uk/ols4/api/";
|
|
51
51
|
readonly entityType: "term";
|
|
52
52
|
readonly ontologyId: "efo";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { MetadataWidget } from './MetadataWidget';
|
|
3
|
+
declare const meta: Meta<typeof MetadataWidget>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const MetadataWidget1: Story;
|
|
7
|
+
export declare const OLS3: Story;
|
|
8
|
+
export declare const OLS4V1: Story;
|
|
9
|
+
export declare const OLS4V2: Story;
|
|
10
|
+
export declare const SelectingDefiningOntology: Story;
|
|
11
|
+
export declare const DefiningOntologyUnavailable: Story;
|
|
12
|
+
export declare const DefinedByAlsoAppearsInWidgets: Story;
|
|
13
|
+
export declare const HiddenTabs: Story;
|
|
14
|
+
export declare const TermAsLink: Story;
|
|
15
|
+
export declare const ShowComparisonInputField: Story;
|
|
@@ -85,9 +85,9 @@ export declare const MetadataWidgetStoryArgs: {
|
|
|
85
85
|
readonly onNavigateToOntology: "Console message";
|
|
86
86
|
readonly onNavigateToDisambiguate: "Console message";
|
|
87
87
|
readonly hierarchyWrap: false;
|
|
88
|
-
readonly className: "ts4nfdi-metadata-style";
|
|
89
88
|
readonly parameter: "";
|
|
90
89
|
readonly showHeader: true;
|
|
90
|
+
readonly className: "ts4nfdi-metadata-style";
|
|
91
91
|
};
|
|
92
92
|
export declare const MetadataWidget1Args: {
|
|
93
93
|
readonly api: "https://semanticlookup.zbmed.de/ols/api/";
|
package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ export declare const HierarchyWidgetStoryArgs: {
|
|
|
161
161
|
export declare const ClassHierarchyArgs: {
|
|
162
162
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
163
163
|
readonly backendType: "ols";
|
|
164
|
-
readonly iri: "http://
|
|
164
|
+
readonly iri: "http://purl.obolibrary.org/obo/MONDO_0005015";
|
|
165
165
|
readonly entityType: "class";
|
|
166
166
|
readonly ontologyId: "efo";
|
|
167
167
|
readonly apiKey: "";
|
|
@@ -361,9 +361,9 @@ export declare const OntoportalHierarchyArgs: {
|
|
|
361
361
|
export declare const OLS3HierarchyArgs: {
|
|
362
362
|
readonly apiUrl: "https://ols3-semanticlookup.zbmed.de/ols/api/";
|
|
363
363
|
readonly backendType: "ols";
|
|
364
|
-
readonly iri: "http://
|
|
364
|
+
readonly iri: "http://purl.obolibrary.org/obo/NCIT_C2984";
|
|
365
365
|
readonly entityType: "class";
|
|
366
|
-
readonly ontologyId: "
|
|
366
|
+
readonly ontologyId: "ncit";
|
|
367
367
|
readonly useLegacy: true;
|
|
368
368
|
readonly apiKey: "";
|
|
369
369
|
readonly onNavigateToEntity: "Console message";
|