andoncloud-dashboard-toolkit 1.5.21 → 1.5.22

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.
@@ -0,0 +1,2 @@
1
+ export declare const ACCESS_LIMIT_DAYS = 30;
2
+ export declare const MAX_RANGE_DAYS = 365;
@@ -1,5 +1,6 @@
1
1
  import type { CalculateContext, PeriodDefinition, PeriodId } from '../components/DashboardFilters/types';
2
2
  import { Shift } from '../graphql-request';
3
+ export declare const resolveShiftIdForPeriod: (periodId: PeriodId, shifts: Shift[]) => string | null;
3
4
  export declare const periods: PeriodDefinition[];
4
5
  export declare const findPeriodById: (id: string) => PeriodDefinition | undefined;
5
6
  export declare const getTimeRangeLabel: (shifts: Shift[], selectedShiftIds: string[]) => string | null;
@@ -1,6 +1,7 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { Shift } from '../graphql-request';
3
3
  export interface NormalizedShift {
4
+ id: string;
4
5
  name: string;
5
6
  startedAt: Dayjs;
6
7
  finishedAt: Dayjs;
@@ -1 +1 @@
1
- export declare const LIBRARY_VERSION = "1.5.21";
1
+ export declare const LIBRARY_VERSION = "1.5.22";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIBRARY_VERSION = "1.5.20";
1
+ export declare const LIBRARY_VERSION = "1.5.21";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andoncloud-dashboard-toolkit",
3
- "version": "1.5.21",
3
+ "version": "1.5.22",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -33,15 +33,15 @@
33
33
  "version:bump": "npm version --no-git-tag-version patch"
34
34
  },
35
35
  "peerDependencies": {
36
- "@mui/icons-material": "^5.0.0",
37
- "@mui/lab": "^5.0.0",
38
- "@mui/material": "^5.0.0",
36
+ "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0",
37
+ "@mui/lab": "^5.0.0 || ^6.0.0 || ^7.0.0",
38
+ "@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0",
39
39
  "actioncable": "^5.0.0",
40
40
  "andoncloud-sdk": "^1.0.0",
41
41
  "graphql-request": "^6.0.0",
42
- "i18next": "^22.0.0",
43
- "react": "^18.0.0",
44
- "react-i18next": "^12.0.0"
42
+ "i18next": ">=22.0.0",
43
+ "react": "^18.0.0 || ^19.0.0",
44
+ "react-i18next": ">=12.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@emotion/react": "^11.14.0",
@@ -60,7 +60,7 @@
60
60
  "@parcel/watcher": "^2.5.6",
61
61
  "@types/actioncable": "^5.2.11",
62
62
  "@types/lodash.isempty": "^4.4.9",
63
- "@types/node": "^25.3.5",
63
+ "@types/node": "^25.4.0",
64
64
  "@types/react": "^19.2.14",
65
65
  "@types/react-dom": "^19.2.3",
66
66
  "@types/react-text-truncate": "^0.19.0",
@@ -76,7 +76,7 @@
76
76
  "gh-pages": "^6.3.0",
77
77
  "gql-generator": "^2.0.0",
78
78
  "graphql-request": "^4.3.0",
79
- "i18next": "^25.8.14",
79
+ "i18next": "^25.8.17",
80
80
  "microbundle-crl": "^0.13.11",
81
81
  "mobx": "^6.15.0",
82
82
  "mobx-react-lite": "^4.1.1",
@@ -1,6 +0,0 @@
1
- import { Shift } from '../../graphql-request';
2
- import type { PeriodDefinition } from './types';
3
- export declare const periods: PeriodDefinition[];
4
- export declare const findPeriodById: (id: string) => PeriodDefinition | undefined;
5
- export declare const getTimeRangeLabel: (shifts: Shift[], selectedShiftIds: string[]) => string | null;
6
- export declare const getShiftTimeRange: (shift: Shift) => string;
@@ -1,3 +0,0 @@
1
- export const mutations: typeof import("./mutations");
2
- export const queries: typeof import("./queries");
3
- export const subscriptions: typeof import("./subscriptions");
@@ -1,18 +0,0 @@
1
- export const createDashboard: string;
2
- export const createOrder: string;
3
- export const createProduct: string;
4
- export const createStatusChange: string;
5
- export const createUserPresence: string;
6
- export const createWidget: string;
7
- export const pauseOrderExecution: string;
8
- export const removeDashboard: string;
9
- export const removeUserPresence: string;
10
- export const removeWidget: string;
11
- export const removeWorkplaceUsersPresences: string;
12
- export const setCounter: string;
13
- export const startOrderExecution: string;
14
- export const stopOrderExecution: string;
15
- export const updateDashboard: string;
16
- export const updateNotification: string;
17
- export const updateOrderExecution: string;
18
- export const updateWidget: string;
@@ -1,26 +0,0 @@
1
- export const applicationInfo: string;
2
- export const companyConfig: string;
3
- export const counterDirectories: string;
4
- export const counters: string;
5
- export const currentUser: string;
6
- export const dashboards: string;
7
- export const departments: string;
8
- export const floorPlans: string;
9
- export const items: string;
10
- export const metricValues: string;
11
- export const metrics: string;
12
- export const notifications: string;
13
- export const orders: string;
14
- export const ordersExecutions: string;
15
- export const products: string;
16
- export const reasons: string;
17
- export const reasonsRecommendation: string;
18
- export const shifts: string;
19
- export const standardRates: string;
20
- export const statusChangeTransitionPermissions: string;
21
- export const statusChanges: string;
22
- export const users: string;
23
- export const usersPresences: string;
24
- export const widget: string;
25
- export const widgets: string;
26
- export const workplaces: string;
@@ -1 +0,0 @@
1
- export const workplaceEvent: string;