@jield/solodb-react-components 1.1.1 → 1.1.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.
@@ -21,4 +21,4 @@ export interface UsePartActionsResult {
21
21
  * are allowed — it reads `runStepPart.available_actions` (server-provided) directly
22
22
  * and forwards the chosen action id to `performRunStepPartAction`.
23
23
  */
24
- export declare function usePartActions({ parts, selectedParts, getRunPart, getRunStepPart, actionsFromScanner, }: UsePartActionsOptions): UsePartActionsResult;
24
+ export declare function usePartActions({ runStep, parts, selectedParts, getRunPart, getRunStepPart, actionsFromScanner, }: UsePartActionsOptions): UsePartActionsResult;
@@ -1,10 +1,13 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
- import { RunStep, RunStepPart, RunStepPartState } from '@jield/solodb-typescript-core';
2
+ import { ApiFormattedResponse, RunStep, RunStepPart, RunStepPartState } from '@jield/solodb-typescript-core';
3
3
  type UpdateRunStepPartCacheOptions = {
4
4
  runStepPart: RunStepPart;
5
5
  latestAction: RunStepPartState;
6
6
  };
7
+ type UpdateRunStepPartCacheByRunStepOptions = UpdateRunStepPartCacheOptions | {
8
+ latestActions: RunStepPartState[] | ApiFormattedResponse<RunStepPartState>;
9
+ };
7
10
  export declare const updateRunStepPartCache: (queryClient: QueryClient, options: UpdateRunStepPartCacheOptions) => void;
8
- export declare const updateRunStepPartCacheByRunStep: (queryClient: QueryClient, runStep: RunStep, options: UpdateRunStepPartCacheOptions) => void;
11
+ export declare const updateRunStepPartCacheByRunStep: (queryClient: QueryClient, runStep: RunStep, options: UpdateRunStepPartCacheByRunStepOptions) => void;
9
12
  export declare const upsertRunStepPartCache: (queryClient: QueryClient, runStep: RunStep, runStepPart: RunStepPart) => void;
10
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jield/solodb-react-components",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "repository": "jield-webdev/solodb-react-components",
6
6
  "main": "./dist/index.cjs",
@@ -27,7 +27,7 @@
27
27
  "coverage": "vitest run --coverage"
28
28
  },
29
29
  "dependencies": {
30
- "@jield/solodb-typescript-core": "^1.1.2",
30
+ "@jield/solodb-typescript-core": "^1.1.4",
31
31
  "@testing-library/dom": "^10.4.1",
32
32
  "moment": "^2.30.1",
33
33
  "moment-timezone": "^0.6.1",
@@ -51,29 +51,29 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@originjs/vite-plugin-commonjs": "^1.0.3",
54
- "@tanstack/react-query": "~5.96.2",
55
- "@tanstack/react-query-devtools": "~5.96.2",
54
+ "@tanstack/react-query": "~5.97.0",
55
+ "@tanstack/react-query-devtools": "~5.97.0",
56
56
  "@tanstack/react-table": "^8.21.3",
57
57
  "@testing-library/jest-dom": "^6.9.1",
58
58
  "@testing-library/react": "^16.3.2",
59
59
  "@testing-library/user-event": "^14.6.1",
60
- "@types/node": "^25.5.2",
60
+ "@types/node": "^25.6.0",
61
61
  "@types/react": "^19.2.14",
62
62
  "@types/react-dom": "^19.2.3",
63
63
  "@types/react-router-dom": "^5.3.3",
64
64
  "@vitejs/plugin-react": "^6.0.1",
65
- "@vitest/coverage-v8": "^4.1.2",
66
- "axios": "^1.14.0",
67
- "jsdom": "^29.0.1",
68
- "prettier": "^3.8.1",
65
+ "@vitest/coverage-v8": "^4.1.4",
66
+ "axios": "^1.15.0",
67
+ "jsdom": "^29.0.2",
68
+ "prettier": "^3.8.2",
69
69
  "prop-types": "^15.8.1",
70
- "react": "^19.2.4",
71
- "react-dom": "^19.2.4",
70
+ "react": "^19.2.5",
71
+ "react-dom": "^19.2.5",
72
72
  "react-router-dom": "^7.14.0",
73
73
  "typescript": "^6.0.2",
74
- "vite": "^8.0.3",
74
+ "vite": "^8.0.8",
75
75
  "vite-plugin-dts": "^4.5.4",
76
- "vitest": "^4.1.2"
76
+ "vitest": "^4.1.4"
77
77
  },
78
78
  "packageManager": "yarn@4.13.0"
79
79
  }