@webitel/ui-sdk 26.6.119 → 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.
@@ -3,4 +3,4 @@ export declare const LoginOptions: {
3
3
  readonly SSO_AND_LOCAL: "sso_and_local";
4
4
  readonly SSO_ONLY: "sso_only";
5
5
  };
6
- export type LoginOptions = keyof typeof LoginOptions;
6
+ export type LoginOptions = (typeof LoginOptions)[keyof typeof LoginOptions];
@@ -1 +1,33 @@
1
- export function install(app: any): void;
1
+ import { type App } from 'vue';
2
+ /** Reactive viewport state exposed app-wide as `$breakpoint`. */
3
+ export interface Breakpoint {
4
+ xs: boolean;
5
+ sm: boolean;
6
+ md: boolean;
7
+ lg: boolean;
8
+ xl: boolean;
9
+ xsOnly: boolean;
10
+ smOnly: boolean;
11
+ smAndDown: boolean;
12
+ smAndUp: boolean;
13
+ mdOnly: boolean;
14
+ mdAndDown: boolean;
15
+ mdAndUp: boolean;
16
+ lgOnly: boolean;
17
+ lgAndDown: boolean;
18
+ lgAndUp: boolean;
19
+ xlOnly: boolean;
20
+ /** true if screen width < mobileBreakpoint */
21
+ mobile: boolean;
22
+ /** Current breakpoint name (e.g. 'md') */
23
+ name: string;
24
+ height: number;
25
+ width: number;
26
+ }
27
+ declare const install: (app: App) => void;
28
+ export { install };
29
+ declare module 'vue' {
30
+ interface ComponentCustomProperties {
31
+ $breakpoint: Breakpoint;
32
+ }
33
+ }
@@ -4,5 +4,5 @@ export type NormalizeDatetimeValueParam = RelativeDatetimeValue | number | strin
4
4
  export type NormalizeDatetimeOptions = {
5
5
  round?: RelativeDatetimeRoundOption;
6
6
  };
7
- export declare const isRelativeDatetimeValue: (value: string) => value is RelativeDatetimeValue;
7
+ export declare const isRelativeDatetimeValue: (value: unknown) => value is RelativeDatetimeValue;
8
8
  export declare const normalizeToTimestamp: (value?: NormalizeDatetimeValueParam, options?: NormalizeDatetimeOptions) => number;