@telicent-oss/ds 0.28.0 → 0.28.2

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/ds.js CHANGED
@@ -80337,7 +80337,7 @@ const useStyleSelector = (initialMapConfig) => {
80337
80337
  mapConfig,
80338
80338
  props: {
80339
80339
  onChange: onChange2,
80340
- data: [mapConfig == null ? void 0 : mapConfig.vectorStyles, ...mapConfig.tileSets].filter(Boolean)
80340
+ data: [...Array.isArray(mapConfig.vectorStyles) ? mapConfig.vectorStyles : mapConfig.vectorStyles ? [mapConfig.vectorStyles] : [], ...mapConfig.tileSets].filter(Boolean)
80341
80341
  }
80342
80342
  };
80343
80343
  };
@@ -80524,7 +80524,7 @@ const FeatureMap = ({
80524
80524
  findByClassUri,
80525
80525
  attributionControl = true
80526
80526
  }) => {
80527
- const mapContainerRef = React__default.useRef(null);
80527
+ const mapContainerRef = React__default.createRef();
80528
80528
  const [cursor2, setCursor] = useState("auto");
80529
80529
  const styleSelector = useStyleSelector(mapStyleOptions);
80530
80530
  const resetCursor = () => {
package/dist/ds.umd.cjs CHANGED
@@ -80355,7 +80355,7 @@ uniform ${i3} ${s4} u_${a3};
80355
80355
  mapConfig,
80356
80356
  props: {
80357
80357
  onChange: onChange2,
80358
- data: [mapConfig == null ? void 0 : mapConfig.vectorStyles, ...mapConfig.tileSets].filter(Boolean)
80358
+ data: [...Array.isArray(mapConfig.vectorStyles) ? mapConfig.vectorStyles : mapConfig.vectorStyles ? [mapConfig.vectorStyles] : [], ...mapConfig.tileSets].filter(Boolean)
80359
80359
  }
80360
80360
  };
80361
80361
  };
@@ -80542,7 +80542,7 @@ uniform ${i3} ${s4} u_${a3};
80542
80542
  findByClassUri,
80543
80543
  attributionControl = true
80544
80544
  }) => {
80545
- const mapContainerRef = React$2.useRef(null);
80545
+ const mapContainerRef = React$2.createRef();
80546
80546
  const [cursor2, setCursor] = React$2.useState("auto");
80547
80547
  const styleSelector = useStyleSelector(mapStyleOptions);
80548
80548
  const resetCursor = () => {
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="webworker" />
2
- console.info("sw.js version: 0.28.0");
2
+ console.info("sw.js version: 0.28.2");
3
3
  self.addEventListener("install", () => self.skipWaiting());
4
4
  self.addEventListener("activate", (event) =>
5
5
  event.waitUntil(self.clients.claim())
@@ -12,7 +12,9 @@ export interface AuthConfig {
12
12
  }
13
13
  export interface ApiFactory {
14
14
  instance: AxiosInstance;
15
- withSessionHandling: (config: SessionHandlingConfig) => ApiFactory;
15
+ withSessionHandling: (config: SessionHandlingConfig) => {
16
+ instance: AxiosInstance;
17
+ };
16
18
  build: () => {
17
19
  instance: AxiosInstance;
18
20
  };
@@ -13,7 +13,7 @@ declare const initialView: {
13
13
  maxZoom: number;
14
14
  };
15
15
  export interface FeatureMapProps {
16
- mapStyleOptions?: {
16
+ mapStyleOptions: {
17
17
  vectorStyles?: StyleOption | StyleOption[];
18
18
  tileSets?: StyleOption[];
19
19
  };
@@ -46,10 +46,10 @@ declare const meta: {
46
46
  };
47
47
  };
48
48
  decorators: (Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react/*').ReactRenderer, {
49
- mapStyleOptions?: {
49
+ mapStyleOptions: {
50
50
  vectorStyles?: import('./utils/schema').StyleOption | import('./utils/schema').StyleOption[];
51
51
  tileSets?: import('./utils/schema').StyleOption[];
52
- } | undefined;
52
+ };
53
53
  initialViewState?: {
54
54
  latitude: number;
55
55
  longitude: number;
@@ -30,6 +30,6 @@ export declare const useStyleSelector: (initialMapConfig: {
30
30
  };
31
31
  props: {
32
32
  onChange: (value: LayerOption) => void;
33
- data: (StyleOption | StyleOption[] | undefined)[];
33
+ data: StyleOption[];
34
34
  };
35
35
  };
@@ -12,5 +12,5 @@ export interface TeliButtonProps extends TeliButtonBaseProps {
12
12
  */
13
13
  tooltipPlacement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
14
14
  }
15
- declare const TeliButton: React.FC<TeliButtonProps>;
15
+ declare const TeliButton: React.ForwardRefExoticComponent<Omit<TeliButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
16
  export default TeliButton;
@@ -33,5 +33,5 @@ export interface TeliButtonBaseProps extends MUIButtonBaseProps {
33
33
  */
34
34
  size?: "small" | "medium" | "large";
35
35
  }
36
- declare const TeliButtonBase: React.FC<TeliButtonBaseProps>;
36
+ declare const TeliButtonBase: React.ForwardRefExoticComponent<Omit<TeliButtonBaseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
37
37
  export default TeliButtonBase;
@@ -50,7 +50,7 @@ export interface MiniSearchAutocompleteProps<Value extends AutocompleteOption =
50
50
  *
51
51
  * `(event: React.MouseEvent<HTMLButtonElement>) => void;`
52
52
  */
53
- onSearch?: React.MouseEventHandler<HTMLButtonElement>;
53
+ onSearch?: React.MouseEventHandler<HTMLElement>;
54
54
  /**
55
55
  * Callback fired when the a key is pressed
56
56
  *
@@ -58,5 +58,7 @@ export interface MiniSearchAutocompleteProps<Value extends AutocompleteOption =
58
58
  */
59
59
  onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
60
60
  }
61
- declare const MiniSearchAutocomplete: React.ForwardRefExoticComponent<MiniSearchAutocompleteProps<AutocompleteOption, boolean, boolean, boolean> & React.RefAttributes<HTMLDivElement>>;
62
- export default MiniSearchAutocomplete;
61
+ declare const _default: <Value extends AutocompleteOption = AutocompleteOption, Multiple extends boolean = false, DisableClearable extends boolean = false, FreeSolo extends boolean = false>(props: MiniSearchAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo> & {
62
+ ref?: React.Ref<HTMLDivElement>;
63
+ }) => React.ReactElement | null;
64
+ export default _default;
@@ -2,14 +2,13 @@ import { default as zod } from 'zod';
2
2
 
3
3
  export declare const UIThemeSchema: zod.ZodEnum<["DataNavy", "DocumentPink", "GraphOrange", "AdminBlue", "Blank"]>;
4
4
  export type UITheme = zod.infer<typeof UIThemeSchema>;
5
- declare const THEME_COLORS: Record<UITheme, Partial<{
5
+ declare const THEME_COLORS: Record<UITheme, {
6
6
  50: string;
7
7
  100: string;
8
8
  200: string;
9
9
  400: string;
10
10
  500: string;
11
11
  600: string;
12
- }> & {
13
12
  main: string;
14
13
  light: string;
15
14
  dark: string;
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.28.0",
10
+ "version": "0.28.2",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",
@@ -20,7 +20,7 @@
20
20
  "@mui/material": "^5.16.6",
21
21
  "@mui/x-tree-view": "7.3.1",
22
22
  "@react-spring/web": "9.7.3",
23
- "@telicent-oss/ontologyservice": "0.31.3-TELFE654.0",
23
+ "@telicent-oss/ontologyservice": "1.0.0",
24
24
  "@telicent-oss/react-lib": "^0.5.0",
25
25
  "@telicent-oss/telicent-frontend-cli": "^1.2.1",
26
26
  "classnames": "^2.3.1",
@@ -225,10 +225,5 @@
225
225
  "engine": {
226
226
  "node": "20.14.0"
227
227
  },
228
- "ci": {
229
- "shared-workflows/.github/workflows/javascript-test-feature-branch.yml": {
230
- "WARNING: TSC CHECK NO ERROR": true
231
- }
232
- },
233
228
  "color": "#FF9999"
234
229
  }