@seedtactics/insight-client 16.8.4-beta.9 → 17.0.0-beta.0

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.
Files changed (41) hide show
  1. package/README.md +21 -0
  2. package/dist/assets/index-BkKYqUM0.js +388 -0
  3. package/dist/cell-status/material-details.d.ts +19 -5
  4. package/dist/cell-status/material-details.js +71 -37
  5. package/dist/components/LogEntry.js +2 -9
  6. package/dist/components/log-entry-container-name.d.ts +2 -0
  7. package/dist/components/log-entry-container-name.js +10 -0
  8. package/dist/components/operations/AllMaterial.js +4 -3
  9. package/dist/components/station-monitor/BasketLoadStationWork.js +12 -8
  10. package/dist/components/station-monitor/BulkRawMaterial.js +4 -4
  11. package/dist/components/station-monitor/CancelLoadButton.d.ts +4 -0
  12. package/dist/components/station-monitor/CancelLoadButton.js +60 -0
  13. package/dist/components/station-monitor/Closeout.js +2 -1
  14. package/dist/components/station-monitor/Inspection.js +2 -1
  15. package/dist/components/station-monitor/InvalidateCycle.d.ts +4 -1
  16. package/dist/components/station-monitor/InvalidateCycle.js +104 -38
  17. package/dist/components/station-monitor/LoadStation.js +25 -15
  18. package/dist/components/station-monitor/Material.js +14 -1
  19. package/dist/components/station-monitor/QuarantineButton.js +160 -90
  20. package/dist/components/station-monitor/Queues.js +2 -1
  21. package/dist/components/station-monitor/QueuesAddMaterial.js +65 -57
  22. package/dist/components/station-monitor/SystemOverview.js +2 -1
  23. package/dist/components/station-monitor/Whiteboard.js +2 -2
  24. package/dist/data/material-operation-policy.d.ts +21 -0
  25. package/dist/data/material-operation-policy.js +89 -0
  26. package/dist/extension.d.ts +4 -4
  27. package/dist/extension.js +15 -3
  28. package/dist/index.html +1 -2
  29. package/dist/index.js +1 -1
  30. package/dist/network/api.d.ts +20 -4
  31. package/dist/network/api.js +163 -2
  32. package/dist/network/backend-mock.js +6 -0
  33. package/dist/network/backend.d.ts +2 -0
  34. package/dist/network/backend.js +2 -1
  35. package/package.json +11 -11
  36. package/dist/assets/index-DHusyIyb.js +0 -388
  37. package/dist/assets/manifest-BzJli0lx.webmanifest +0 -15
  38. package/dist/bootstrap.d.ts +0 -5
  39. package/dist/bootstrap.js +0 -56
  40. package/dist/components/station-monitor/Material.test.d.ts +0 -1
  41. package/dist/components/station-monitor/Material.test.js +0 -199
package/README.md CHANGED
@@ -15,6 +15,27 @@ just using FMS Insight and don't intend any changes to the client, you can just
15
15
  BlackMaple.MachineFramework nuget. This npm package is needed only if you wish to modify the client
16
16
  or import portions of the client into your own pages.
17
17
 
18
+ ## Extending the Client
19
+
20
+ The supported entry point for embedding a customized FMS Insight application is
21
+ `@seedtactics/insight-client/extension`. It exports:
22
+
23
+ - `bootstrapInsight` to start the application in a supplied element, or in the element with ID
24
+ `root`.
25
+ - `AppProps` to add custom routes, change the mode chooser, or replace the basket load-station
26
+ command.
27
+ - `customState`, a read-only Jotai atom containing the server's opaque custom state.
28
+ - `authenticatedFetch` for extension requests which should use the current Insight user's bearer
29
+ token.
30
+ - `defaultChooseModes` and `RouteLocation` for composing custom navigation.
31
+
32
+ The host application must provide compatible versions of the package's React, React DOM, and Jotai
33
+ peer dependencies. This ensures custom components and Insight use the same React runtime and Jotai
34
+ store.
35
+
36
+ Other package subpaths expose reusable Insight internals. They remain available for existing
37
+ integrations, but `extension` is the intentionally small application-composition API.
38
+
18
39
  ## Code Overview
19
40
 
20
41
  The client stores data in [jotai](https://jotai.org/) stores. We use a thick-client approach: each