@ts4nfdi/terminology-service-suite 6.16.0 → 6.17.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.
- package/README.md +1 -1
- package/dist/app/types.d.ts +9 -3
- package/dist/app/widgetDescriptions.d.ts +1 -0
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.stories.d.ts +7 -21
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidgetStories.d.ts +22 -22
- package/dist/esm/index.es.js +2516 -2357
- package/dist/esm/index.es.js.map +1 -1
- package/dist/server/index.es.js +2 -1
- package/dist/server/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +30 -1
- package/package.json +1 -1
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@115.0.0 @emotion/react@11.13.5 react@18.3.0 react-dom@18.3.0 react-query@3.39.2 axios@1.1.2 moment@2.30.1 @elastic/datemath@5.0.3 @emotion/css@11.13.5 @elastic/eui-theme-borealis@7.0.0
|
|
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:
|
package/dist/app/types.d.ts
CHANGED
|
@@ -273,11 +273,17 @@ export type DescriptionPresentationProps = DescTextObj & CssClassNameObj & {
|
|
|
273
273
|
isLoading?: boolean;
|
|
274
274
|
error?: string | unknown;
|
|
275
275
|
};
|
|
276
|
-
export type MathFormulaWidgetProps =
|
|
276
|
+
export type MathFormulaWidgetProps = OptionalIriObj & ApiObj & OptionalOntologyIdObj & {
|
|
277
277
|
/**
|
|
278
|
-
* The math property URI to render for the target term
|
|
278
|
+
* The math property URI to render for the target term.
|
|
279
|
+
* Required when mathML is not provided.
|
|
279
280
|
*/
|
|
280
|
-
mathProperty
|
|
281
|
+
mathProperty?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Inline MathML string to render directly.
|
|
284
|
+
* When provided, iri, ontologyId, and mathProperty are not required.
|
|
285
|
+
*/
|
|
286
|
+
mathML?: string;
|
|
281
287
|
};
|
|
282
288
|
export type IriWidgetProps = ForcedIriObj & CssClassNameObj & {
|
|
283
289
|
/**
|
|
@@ -10,6 +10,7 @@ export declare const DescriptionDescription: string;
|
|
|
10
10
|
export declare const EntityDefinedByDescription: string;
|
|
11
11
|
export declare const EntityOntoListDescription: string;
|
|
12
12
|
export declare const IriDescription: string;
|
|
13
|
+
export declare const MathFormulaDescription: string;
|
|
13
14
|
export declare const MetadataDescription: string;
|
|
14
15
|
export declare const AlternativeNameTabDescription: string;
|
|
15
16
|
export declare const CrossRefTabDescription: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MathFormulaWidgetProps } from '../../../../app
|
|
1
|
+
import { MathFormulaWidgetProps } from '../../../../app';
|
|
2
2
|
declare function MathFormulaWidget(props: MathFormulaWidgetProps): import("react").JSX.Element;
|
|
3
3
|
declare function WrappedMathFormulaWidget(props: MathFormulaWidgetProps): import("react").JSX.Element;
|
|
4
4
|
export { MathFormulaWidget, WrappedMathFormulaWidget };
|
package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.stories.d.ts
CHANGED
|
@@ -5,30 +5,13 @@ declare const meta: {
|
|
|
5
5
|
component: typeof MathFormulaWidget;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
required: boolean;
|
|
12
|
-
description: string;
|
|
13
|
-
table: {
|
|
14
|
-
type: {
|
|
15
|
-
summary: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
ontologyId: {
|
|
20
|
-
required: boolean;
|
|
21
|
-
description: string;
|
|
22
|
-
table: {
|
|
23
|
-
defaultValue: {
|
|
24
|
-
summary: string;
|
|
25
|
-
};
|
|
26
|
-
type: {
|
|
27
|
-
summary: string;
|
|
28
|
-
};
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
29
11
|
};
|
|
30
12
|
};
|
|
31
13
|
};
|
|
14
|
+
argTypes: import('@storybook/react-vite').ArgTypes<import('@storybook/react-vite').Args>;
|
|
32
15
|
args: {
|
|
33
16
|
readonly api: "";
|
|
34
17
|
readonly ontologyId: "";
|
|
@@ -39,3 +22,6 @@ export default meta;
|
|
|
39
22
|
type Story = StoryObj<typeof meta>;
|
|
40
23
|
export declare const MathmodP983: Story;
|
|
41
24
|
export declare const MathmodP989: Story;
|
|
25
|
+
export declare const MathMLInput: Story;
|
|
26
|
+
export declare const MathMLTextInput: Story;
|
|
27
|
+
export declare const MathMLFractionInput: Story;
|
package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidgetStories.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { ArgTypes } from '@storybook/react';
|
|
2
|
+
export declare const SimpleMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mi>x</mi><mo>=</mo><mn>1</mn></math>";
|
|
3
|
+
export declare const TextMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mtext>formula example</mtext></math>";
|
|
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
|
+
export declare const MathFormulaWidgetStoryArgTypes: ArgTypes;
|
|
6
|
+
export declare const MathMLInputStoryArgs: {
|
|
7
|
+
api: string;
|
|
8
|
+
ontologyId: string;
|
|
9
|
+
iri: string;
|
|
10
|
+
mathML: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const MathMLTextInputStoryArgs: {
|
|
13
|
+
api: string;
|
|
14
|
+
ontologyId: string;
|
|
15
|
+
iri: string;
|
|
16
|
+
mathML: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const MathMLFractionInputStoryArgs: {
|
|
19
|
+
api: string;
|
|
20
|
+
ontologyId: string;
|
|
21
|
+
iri: string;
|
|
22
|
+
mathML: string;
|
|
23
23
|
};
|
|
24
24
|
export declare const MathFormulaWidgetStoryArgs: {
|
|
25
25
|
readonly api: "";
|