@knime/hub-features 1.20.1 → 1.21.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 068203b: introduce new version for user activity events
8
+
3
9
  ## 1.20.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.20.1",
3
+ "version": "1.21.0",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,8 @@
37
37
  "ofetch": "^1.4.1",
38
38
  "typescript": "^5.8.3",
39
39
  "@knime/components": "1.45.6",
40
- "@knime/styles": "1.15.0",
41
- "@knime/utils": "1.10.0"
40
+ "@knime/utils": "1.10.0",
41
+ "@knime/styles": "1.15.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "consola": "3.x",
@@ -85,7 +85,19 @@ export type GenericEventHandlers = {
85
85
  [K in GenericEvent["kind"]]?: (event: GenericEventByKind<K>) => void;
86
86
  };
87
87
 
88
- export type UserActivityInfo = {
89
- idle: boolean;
90
- lastActive: string;
91
- };
88
+ export type UserActivityInfo =
89
+ | {
90
+ idle: boolean;
91
+ lastActive: string;
92
+ version?: "v0";
93
+ }
94
+ | {
95
+ /**
96
+ * active: *default* state, user is interacting with app but NO background task is running
97
+ * idle: user is NOT interacting and NO task is running
98
+ * background-task: whenever a background task is running, whether the user is interacting with app or not
99
+ */
100
+ state: "active" | "idle" | "background-task";
101
+ lastActive: string;
102
+ version: "v1";
103
+ };