@ts4nfdi/terminology-service-suite 6.17.0 → 7.1.0

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.
Files changed (23) hide show
  1. package/dist/api/ols/OlsSearchApi.d.ts +1 -2
  2. package/dist/app/globals.d.ts +0 -1
  3. package/dist/app/types.d.ts +2 -6
  4. package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.stories.d.ts +0 -5
  5. package/dist/components/widgets/AutocompleteWidget/AutocompleteWidgetStories.d.ts +0 -6
  6. package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.stories.d.ts +1 -1
  7. package/dist/components/widgets/EntityInfoWidget/EntityInfoWidgetStories.d.ts +1 -1
  8. package/dist/components/widgets/MappingListWidget/MappingListWidget.d.ts +5 -0
  9. package/dist/components/widgets/{MappingListDetailWidget/MappingListDetailWidgetStories.d.ts → MappingListWidget/MappingListWidgetStories.d.ts} +7 -7
  10. package/dist/components/widgets/MappingListWidget/index.d.ts +1 -0
  11. package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.stories.d.ts +2 -2
  12. package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidgetStories.d.ts +2 -11
  13. package/dist/components/widgets/index.d.ts +1 -1
  14. package/dist/esm/index.es.js +2774 -2838
  15. package/dist/esm/index.es.js.map +1 -1
  16. package/dist/server/index.es.js.map +1 -1
  17. package/dist/stories/storyArgs.d.ts +0 -1
  18. package/dist/utils/olsApiUtils.d.ts +1 -1
  19. package/package.json +2 -2
  20. package/dist/components/widgets/MappingListDetailWidget/MappingListDetailWidget.d.ts +0 -5
  21. package/dist/components/widgets/MappingListDetailWidget/index.d.ts +0 -1
  22. package/dist/model/ts4nfdi-model/Ts4nfdiSearchResult.d.ts +0 -16
  23. /package/dist/components/widgets/{MappingListDetailWidget/MappingListDetailWidget.stories.d.ts → MappingListWidget/MappingListWidget.stories.d.ts} +0 -0
@@ -4,7 +4,6 @@ import { OlsBaseApi } from './OlsBaseApi';
4
4
  export declare class OlsSearchApi extends OlsBaseApi {
5
5
  search: (queryParams: SearchQueryParams, paginationParams: PaginationParams, contentParams?: ContentParams, parameter?: string, abortSignal?: AbortSignal) => Promise<any>;
6
6
  select: (queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string) => Promise<any>;
7
- searchTs4nfdiGateway: (queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string, ts4nfdiGateway?: boolean) => Promise<any>;
8
7
  /**
9
8
  * Fetch select data.
10
9
  * @param queryParams
@@ -12,7 +11,7 @@ export declare class OlsSearchApi extends OlsBaseApi {
12
11
  * @param contentParams
13
12
  * @param parameter
14
13
  */
15
- getSelectData(queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string, ts4nfdiGateway?: boolean): Promise<Select>;
14
+ getSelectData(queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string): Promise<Select>;
16
15
  suggest: (queryParams: SuggestQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string) => Promise<any>;
17
16
  }
18
17
  export declare function splitAndApplyParams(url: URL, raw: string): void;
@@ -1,5 +1,4 @@
1
1
  export declare const TIB_API_ENDPOINT = "https://api.terminology.tib.eu/api/";
2
- export declare const GATEWAY_API_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/";
3
2
  export declare const GATEWAY_API_OLS_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/ols4/api/";
4
3
  export declare const ZBMED_OLS4_API = "https://semanticlookup.zbmed.de/ols/api/";
5
4
  export declare const ZBMED_OLS3_API = "https://ols3-semanticlookup.zbmed.de/ols/api/";
@@ -197,11 +197,7 @@ export type AutocompleteWidgetProps = EuiComboBoxProps<string> & ParameterObj &
197
197
  */
198
198
  singleSuggestionRow?: boolean;
199
199
  /**
200
- * Use the TS4NFDI Gateway API
201
- */
202
- ts4nfdiGateway?: boolean;
203
- /**
204
- * Whether to show the api source in the result list or not. Default is true. Only when the API gateway is selected.
200
+ * Whether to show the api source in the result list or not. Default is true. Only when the API Gateway is selected.
205
201
  */
206
202
  showApiSource?: boolean;
207
203
  /**
@@ -669,7 +665,7 @@ export type EntityListWidgetProps = {
669
665
  entityType: EntityTypeName;
670
666
  parameter?: string;
671
667
  };
672
- export type MappingListDetailWidgetProps = {
668
+ export type MappingListWidgetProps = {
673
669
  api: string;
674
670
  source: string;
675
671
  };
@@ -38,7 +38,6 @@ declare const meta: {
38
38
  };
39
39
  args: {
40
40
  api: string;
41
- ts4nfdiGateway: boolean;
42
41
  singleSelection: boolean;
43
42
  allowCustomTerms: boolean;
44
43
  selectionChangedEvent: import('storybook/internal/actions').HandlerFunction;
@@ -57,10 +56,6 @@ declare const meta: {
57
56
  export default meta;
58
57
  type Story = StoryObj<typeof meta>;
59
58
  export declare const WithDefaults: Story;
60
- export declare const UseAPIGatewayWithOLS: Story;
61
- export declare const UseAPIGatewayWithOntoPortal: Story;
62
- export declare const UseAPIGatewayWithSkosmos: Story;
63
- export declare const HideApiSourceApiGateway: Story;
64
59
  export declare const WithDefaultsCompact: Story;
65
60
  export declare const WithPreselectedValueOLS4v2: Story;
66
61
  export declare const WithPreselectedValueAndUnresolvedIriOLS3: Story;
@@ -26,7 +26,6 @@ export declare const AutocompleteWidgetStoryArgTypes: {
26
26
  };
27
27
  export declare const AutocompleteWidgetStoryArgsReact: {
28
28
  api: string;
29
- ts4nfdiGateway: boolean;
30
29
  singleSelection: boolean;
31
30
  allowCustomTerms: boolean;
32
31
  selectionChangedEvent: import('storybook/actions').HandlerFunction;
@@ -43,7 +42,6 @@ export declare const AutocompleteWidgetStoryArgsReact: {
43
42
  };
44
43
  export declare const AutocompleteWidgetStoryArgsHTML: {
45
44
  api: string;
46
- ts4nfdiGateway: boolean;
47
45
  singleSelection: boolean;
48
46
  allowCustomTerms: boolean;
49
47
  selectionChangedEvent: () => void;
@@ -58,10 +56,6 @@ export declare const AutocompleteWidgetStoryArgsHTML: {
58
56
  onNavigateToOntology: string;
59
57
  };
60
58
  export declare const WithDefaultsArgs: {};
61
- export declare const UseAPIGatewayWithOLSArgs: AutocompleteWidgetProps;
62
- export declare const UseAPIGatewayWithOntoPortalArgs: AutocompleteWidgetProps;
63
- export declare const UseAPIGatewayWithSkosmosArgs: AutocompleteWidgetProps;
64
- export declare const HideApiSourceApiGatewayArgs: AutocompleteWidgetProps;
65
59
  export declare const WithDefaultsCompactArgs: AutocompleteWidgetProps;
66
60
  export declare const WithPreselectedValueOLS4v2Args: AutocompleteWidgetProps;
67
61
  export declare const WithPreselectedValueAndUnresolvedIriOLS3Args: AutocompleteWidgetProps;
@@ -66,4 +66,4 @@ export declare const InfoWidgetPropertyAssertion: Story;
66
66
  export declare const InfoWidgetPropertyCharacteristics: Story;
67
67
  export declare const NavigateToEBIPage: Story;
68
68
  export declare const SkosmosImport: Story;
69
- export declare const InfoEntityWithMathFormula: Story;
69
+ export declare const MathFormularRepresentation: Story;
@@ -182,7 +182,7 @@ export declare const SkosmosImportArgs: {
182
182
  onNavigateToOntology: string;
183
183
  onNavigateToDisambiguate: string;
184
184
  };
185
- export declare const InfoEntityWithMathFormulaArgs: {
185
+ export declare const MathFormularRepresentationArgs: {
186
186
  api: string;
187
187
  useLegacy: boolean;
188
188
  iri: string;
@@ -0,0 +1,5 @@
1
+ import { MappingListWidgetProps } from '../../../app';
2
+ declare function MappingListWidget(props: MappingListWidgetProps): import("react").JSX.Element;
3
+ export declare function WrappedMappingListWidget(props: MappingListWidgetProps): import("react").JSX.Element;
4
+ export { MappingListWidget };
5
+ export default WrappedMappingListWidget;
@@ -1,25 +1,25 @@
1
- export declare const MappingListDetailWidgetStoryArgTypes: {};
2
- export declare const MappingListDetailWidgetStoryArgs_OEO_00000150: {
1
+ export declare const MappingListWidgetStoryArgTypes: {};
2
+ export declare const MappingListWidgetStoryArgs_OEO_00000150: {
3
3
  readonly api: "https://coli-conc.gbv.de/api/";
4
4
  readonly source: "https://openenergyplatform.org/ontology/oeo/OEO_00000150";
5
5
  };
6
- export declare const MappingListDetailWidgetStoryArgs_Q259745: {
6
+ export declare const MappingListWidgetStoryArgs_Q259745: {
7
7
  readonly api: "https://coli-conc.gbv.de/api/";
8
8
  readonly source: "http://www.wikidata.org/entity/Q259745";
9
9
  };
10
- export declare const MappingListDetailWidgetStoryArgs_Energy: {
10
+ export declare const MappingListWidgetStoryArgs_Energy: {
11
11
  readonly api: "https://coli-conc.gbv.de/api/";
12
12
  readonly source: "https://schema.org/Energy";
13
13
  };
14
- export declare const MappingListDetailWidgetStoryArgs_Rec_B_2000: {
14
+ export declare const MappingListWidgetStoryArgs_Rec_B_2000: {
15
15
  readonly api: "https://coli-conc.gbv.de/api/";
16
16
  readonly source: "http://uri.gbv.de/terminology/nsk/Rec%20B%202000";
17
17
  };
18
- export declare const MappingListDetailWidgetStoryArgs_Ges_C_2700: {
18
+ export declare const MappingListWidgetStoryArgs_Ges_C_2700: {
19
19
  readonly api: "https://coli-conc.gbv.de/api/";
20
20
  readonly source: "http://uri.gbv.de/terminology/nsk/Ges%20C%202700";
21
21
  };
22
- export declare const MappingListDetailWidgetStoryArgs_B14C4A: {
22
+ export declare const MappingListWidgetStoryArgs_B14C4A: {
23
23
  readonly api: "https://coli-conc.gbv.de/api/";
24
24
  readonly source: "https://www.w3id.org/archlink/terms/conservationthesaurus/B14C4A";
25
25
  };
@@ -0,0 +1 @@
1
+ export { MappingListWidget, WrappedMappingListWidget, } from './MappingListWidget';
@@ -20,8 +20,8 @@ declare const meta: {
20
20
  };
21
21
  export default meta;
22
22
  type Story = StoryObj<typeof meta>;
23
- export declare const MathmodP983: Story;
24
- export declare const MathmodP989: Story;
23
+ export declare const MathmoddbDefiningFormula: Story;
24
+ export declare const MathmoddbInDefiningFormula: Story;
25
25
  export declare const MathMLInput: Story;
26
26
  export declare const MathMLTextInput: Story;
27
27
  export declare const MathMLFractionInput: Story;
@@ -4,21 +4,12 @@ export declare const TextMathMLExample = "<math xmlns=\"http://www.w3.org/1998/M
4
4
  export declare const FractionMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mfrac><mrow><mi>a</mi><mo>+</mo><mi>b</mi></mrow><mi>c</mi></mfrac></math>";
5
5
  export declare const MathFormulaWidgetStoryArgTypes: ArgTypes;
6
6
  export declare const MathMLInputStoryArgs: {
7
- api: string;
8
- ontologyId: string;
9
- iri: string;
10
7
  mathML: string;
11
8
  };
12
9
  export declare const MathMLTextInputStoryArgs: {
13
- api: string;
14
- ontologyId: string;
15
- iri: string;
16
10
  mathML: string;
17
11
  };
18
12
  export declare const MathMLFractionInputStoryArgs: {
19
- api: string;
20
- ontologyId: string;
21
- iri: string;
22
13
  mathML: string;
23
14
  };
24
15
  export declare const MathFormulaWidgetStoryArgs: {
@@ -26,13 +17,13 @@ export declare const MathFormulaWidgetStoryArgs: {
26
17
  readonly ontologyId: "";
27
18
  readonly iri: "";
28
19
  };
29
- export declare const MathmodP983StoryArgs: {
20
+ export declare const MathmoddbInDefiningFormulaStoryArgs: {
30
21
  api: string;
31
22
  ontologyId: string;
32
23
  iri: string;
33
24
  mathProperty: string;
34
25
  };
35
- export declare const MathmodP989StoryArgs: {
26
+ export declare const MathmoddbDefiningFormulaStoryArgs: {
36
27
  api: string;
37
28
  ontologyId: string;
38
29
  iri: string;
@@ -5,7 +5,7 @@ export * from './EntityListWidget';
5
5
  export * from './EntityRelationsWidget';
6
6
  export * from './GraphViewWidget';
7
7
  export * from './JsonApiWidget';
8
- export * from './MappingListDetailWidget';
8
+ export * from './MappingListWidget';
9
9
  export * from './MetadataWidget';
10
10
  export * from './OntologyInfoWidget';
11
11
  export * from './ResourcesWidget';