@telicent-oss/ds 0.10.4-rc3 → 0.11.0-sitest

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/telicent-oss/telicent-ds.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.10.4-rc3",
10
+ "version": "0.11.0-sitest",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",
@@ -21,7 +21,7 @@
21
21
  "@mui/x-tree-view": "7.3.1",
22
22
  "@react-spring/web": "9.7.3",
23
23
  "@tanstack/react-query": "^5.18.0",
24
- "@telicent-oss/ontologyservice": "^0.31.1-rc1",
24
+ "@telicent-oss/ontologyservice": "^0.31.4-sitest",
25
25
  "classnames": "^2.3.1",
26
26
  "d3": "^7.8.2",
27
27
  "lodash": "^4.17.21",
@@ -59,8 +59,9 @@
59
59
  "bump:pre": "yarn bump:prerelease"
60
60
  },
61
61
  "peerDependencies": {
62
- "react": "^18.2.0",
63
- "react-dom": "^18.2.0"
62
+ "react": "*",
63
+ "react-dom": "*",
64
+ "@telicent-oss/ontology-find-icon-helper": "*"
64
65
  },
65
66
  "browserslist": {
66
67
  "production": [
@@ -1,49 +0,0 @@
1
- import { OntologyService } from '@telicent-oss/ontologyservice';
2
-
3
- type OntologyStyle = {
4
- defaultIcons: {
5
- riIcon: string;
6
- faIcon: string;
7
- faUnicode: string;
8
- faClass: string;
9
- };
10
- defaultStyles: {
11
- shape: string;
12
- borderRadius: string;
13
- borderWidth: string;
14
- selectedBorderWidth: string;
15
- dark: {
16
- backgroundColor: string;
17
- color: string;
18
- };
19
- light: {
20
- backgroundColor: string;
21
- color: string;
22
- };
23
- };
24
- };
25
- export type StyleResponse = Record<string, OntologyStyle>;
26
- export type IconStyle = {
27
- classUri: string;
28
- backgroundColor: string;
29
- color: string;
30
- iconFallbackText: string;
31
- alt: string;
32
- } & Partial<{
33
- faIcon: string;
34
- faUnicode: string;
35
- shape: string;
36
- }>;
37
- type OntologyStylesContextProps = {
38
- isLoadingStyles: boolean;
39
- styles: IconStyle[];
40
- findIcon: (classUri: string) => IconStyle;
41
- };
42
- type OntologyStylesProviderProps = {
43
- service: OntologyService;
44
- } & Partial<{
45
- children: React.ReactNode;
46
- }>;
47
- declare const OntologyStylesProvider: React.FC<OntologyStylesProviderProps>;
48
- declare const useOntologyStyles: () => OntologyStylesContextProps;
49
- export { OntologyStylesProvider, useOntologyStyles };
@@ -1,5 +0,0 @@
1
- import { IconStyle, StyleResponse } from './OntologyStyles';
2
-
3
- export declare const getOntologyClass: (uri: string) => string;
4
- export declare const getTypeInitials: (type: string) => string;
5
- export declare const flattenStyles: (data: StyleResponse) => IconStyle[];
@@ -1 +0,0 @@
1
- export {};