@webitel/ui-sdk 26.8.1 → 26.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.8.1",
3
+ "version": "26.8.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -4,4 +4,4 @@ export const LoginOptions = {
4
4
  SSO_ONLY: 'sso_only',
5
5
  } as const;
6
6
 
7
- export type LoginOptions = keyof typeof LoginOptions;
7
+ export type LoginOptions = (typeof LoginOptions)[keyof typeof LoginOptions];
@@ -25,9 +25,12 @@ export type NormalizeDatetimeOptions = {
25
25
  };
26
26
 
27
27
  export const isRelativeDatetimeValue = (
28
- value: string,
28
+ value: unknown,
29
29
  ): value is RelativeDatetimeValue => {
30
- return (Object.values(RelativeDatetimeValue) as string[]).includes(value);
30
+ return (
31
+ typeof value === 'string' &&
32
+ (Object.values(RelativeDatetimeValue) as string[]).includes(value)
33
+ );
31
34
  };
32
35
 
33
36
  const convertRelativeDatetimeToTimestamp = (