@luxonis/depthai-viewer-common 2.5.2 → 3.0.1-rc.1
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/AGENTS.md +3 -1
- package/benchmark-cli.mjs +1121 -0
- package/benchmark-download.sh +1 -149
- package/benchmark-lib.sh +336 -0
- package/benchmark-root.sh +77 -4
- package/benchmark.sh +264 -19
- package/dist/components/DepthAIContext.d.ts +2 -0
- package/dist/components/DepthAIContext.d.ts.map +1 -1
- package/dist/components/DepthAIContext.js +3 -2
- package/dist/components/DepthAIContext.js.map +1 -1
- package/dist/components/Streams.d.ts +1 -1
- package/dist/components/Streams.d.ts.map +1 -1
- package/dist/components/Streams.js +23 -11
- package/dist/components/Streams.js.map +1 -1
- package/dist/dai-connection/connection.d.ts +3 -2
- package/dist/dai-connection/connection.d.ts.map +1 -1
- package/dist/dai-connection/connection.js +6 -3
- package/dist/dai-connection/connection.js.map +1 -1
- package/dist/fonts/inter.css +28 -20
- package/dist/hooks/connection.d.ts.map +1 -1
- package/dist/hooks/connection.js +9 -1
- package/dist/hooks/connection.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/providers/VisualizerRuntimeConfigProvider.d.ts +16 -0
- package/dist/providers/VisualizerRuntimeConfigProvider.d.ts.map +1 -0
- package/dist/providers/VisualizerRuntimeConfigProvider.js +79 -0
- package/dist/providers/VisualizerRuntimeConfigProvider.js.map +1 -0
- package/dist/utils/url.js +2 -2
- package/dist/utils/url.js.map +1 -1
- package/package.json +9 -9
package/AGENTS.md
CHANGED
|
@@ -4,13 +4,14 @@ This file applies to `packages/common`.
|
|
|
4
4
|
|
|
5
5
|
## Package Role
|
|
6
6
|
|
|
7
|
-
`packages/common` is the shared library for Visualizer, Viewer, and third-party frontend consumers. Treat it as public-facing code, not just internal glue.
|
|
7
|
+
`packages/common` is the shared library for Visualizer, Viewer, and third-party frontend consumers. It sits between the consuming apps and the reusable packages in `libraries/*`. Treat it as public-facing code, not just internal glue.
|
|
8
8
|
|
|
9
9
|
## Change Rules
|
|
10
10
|
|
|
11
11
|
- Prefer stable, readable APIs. Breaking exports, renamed symbols, or import path moves have high blast radius.
|
|
12
12
|
- Keep code generic. Do not add Viewer- or Visualizer-specific branding, product flows, or device assumptions here unless they truly belong in the shared library.
|
|
13
13
|
- Only move code into `common` when it is genuinely reusable across packages or valuable for third-party consumers.
|
|
14
|
+
- If logic belongs in published packages such as `@luxonis/depthai-pipeline-lib` or `@luxonis/visualizer-protobuf`, change those libraries directly instead of duplicating their internals here.
|
|
14
15
|
- Do not import from app packages.
|
|
15
16
|
- If you add a new public entry point, keep `package.json` exports and README expectations aligned.
|
|
16
17
|
- Be careful with CSS, fonts, and peer dependency behavior because this package is published to npm.
|
|
@@ -20,6 +21,7 @@ This file applies to `packages/common`.
|
|
|
20
21
|
- Local build: `npm run build`
|
|
21
22
|
- Clean rebuild: `npm run build:clean`
|
|
22
23
|
- Dependency consistency: `npm run check-deps`
|
|
24
|
+
- If your change touches workspace library integration, also verify `npm run build:workspace-libs`
|
|
23
25
|
- If you changed shared API or behavior, also verify downstream consumers from the repo root with `npm run build:visualizer` and `npm run build:viewer`
|
|
24
26
|
|
|
25
27
|
## Avoid
|