@camstack/ui-library 0.1.51 → 0.1.53
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/dist/composites/cap-settings/AutotrackSection.d.ts +5 -0
- package/dist/composites/cap-settings/MotionGridCanvas.d.ts +9 -0
- package/dist/composites/cap-settings/MotionZonesSettings.d.ts +2 -0
- package/dist/composites/cap-settings/PtzPanel.d.ts +2 -0
- package/dist/composites/cap-settings/index.d.ts +14 -0
- package/dist/composites/index.d.ts +2 -0
- package/dist/composites/state-values-stream.d.ts +14 -18
- package/dist/contexts/widget-registry.d.ts +67 -6
- package/dist/generated/system-hooks.d.ts +66 -30
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-device-autotrack.d.ts +10 -0
- package/dist/hooks/use-ptz.d.ts +29 -1
- package/dist/index.cjs +2140 -1162
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2099 -1148
- package/dist/index.js.map +1 -1
- package/dist/widgets/host-widgets.d.ts +9 -0
- package/package.json +9 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/** Props every host (in-bundle) widget receives. */
|
|
3
|
+
export interface HostWidgetProps {
|
|
4
|
+
readonly deviceId: number;
|
|
5
|
+
}
|
|
6
|
+
/** Host widgets — ui-library React components embeddable as a
|
|
7
|
+
* `type:'widget'` ConfigField. `WidgetSlot` resolves these BEFORE the
|
|
8
|
+
* Module-Federation `WidgetRegistry`. ids are namespaced `host/<name>`. */
|
|
9
|
+
export declare const HOST_WIDGETS: Readonly<Record<string, ComponentType<HostWidgetProps>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/ui-library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -40,8 +40,10 @@
|
|
|
40
40
|
"@tanstack/react-table": "^8.21.3",
|
|
41
41
|
"@trpc/client": "^11.16.0",
|
|
42
42
|
"@trpc/react-query": "^11.16.0",
|
|
43
|
+
"konva": "^10.2.3",
|
|
43
44
|
"react": ">=18",
|
|
44
45
|
"react-dom": ">=18",
|
|
46
|
+
"react-konva": "^19.2.3",
|
|
45
47
|
"superjson": "^2.0.0",
|
|
46
48
|
"tailwindcss": ">=4.0"
|
|
47
49
|
},
|
|
@@ -66,6 +68,12 @@
|
|
|
66
68
|
},
|
|
67
69
|
"superjson": {
|
|
68
70
|
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"react-konva": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"konva": {
|
|
76
|
+
"optional": true
|
|
69
77
|
}
|
|
70
78
|
},
|
|
71
79
|
"dependencies": {
|