@knime/hub-features 1.32.0 → 1.33.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.33.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [6f6509e]
8
+ - @knime/components@1.46.8
9
+
10
+ ## 1.33.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 49b0d7a: Add analytics event for requesting a node dialog migration
15
+
3
16
  ## 1.32.0
4
17
 
5
18
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.32.0",
3
+ "version": "1.33.1",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "lodash-es": "4.18.1",
40
40
  "ofetch": "^1.4.1",
41
41
  "typescript": "^5.9.3",
42
- "@knime/components": "1.46.7",
42
+ "@knime/components": "1.46.8",
43
43
  "@knime/styles": "1.15.1",
44
44
  "@knime/utils": "1.11.1"
45
45
  },
@@ -1163,6 +1163,29 @@ export const nodeConfigFeedbackSubmitted = <T extends DefaultContext>(ctx: T) =>
1163
1163
  return event;
1164
1164
  };
1165
1165
 
1166
+ /**
1167
+ * Fired when the user requests the migration of a node's auto-generated dialog to a modern dialog
1168
+ */
1169
+ export const nodeMigrationRequested = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"nodeMigrationRequested">): AnalyticsEvent => {
1170
+ const staticData = {
1171
+ ...toSnakeCaseDeep(ctx),
1172
+ unique_event_id: crypto.randomUUID(),
1173
+ timestamp: new Date().toISOString(),
1174
+ event_name: "node_migration_requested",
1175
+ event_source: "editor",
1176
+ event_display_name: "Node Migration Requested",
1177
+ interaction: {
1178
+ location: "node_configuration",
1179
+ trigger: "user",
1180
+ type: "click",
1181
+ },
1182
+ } satisfies SchemaStaticFields & GeneratedStaticFields;
1183
+
1184
+ const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
1185
+
1186
+ return event;
1187
+ };
1188
+
1166
1189
  /**
1167
1190
  * Fired when the user executes all nodes via the context menu
1168
1191
  */
@@ -800,6 +800,17 @@ export interface AnalyticsEventSchema {
800
800
  };
801
801
  payload: NodeConfigFeedbackPayload;
802
802
  };
803
+ nodeMigrationRequested: {
804
+ event_name: "node_migration_requested";
805
+ event_source: "editor";
806
+ event_display_name: "Node Migration Requested";
807
+ interaction: {
808
+ location: "node_configuration";
809
+ trigger: InteractionTrigger & "user";
810
+ type: InteractionType & "click";
811
+ };
812
+ payload: NodeMigrationRequestedPayload;
813
+ };
803
814
  executeAllNodesCtxMenu: {
804
815
  event_name: "all_nodes_executed";
805
816
  event_source: "editor";
@@ -1290,6 +1301,9 @@ export interface NodeConfigFeedbackPayload {
1290
1301
  rating: number;
1291
1302
  message?: string;
1292
1303
  }
1304
+ export interface NodeMigrationRequestedPayload {
1305
+ nodeFactoryId: string;
1306
+ }
1293
1307
  export interface NodeExecutionPayload {
1294
1308
  nodes: {
1295
1309
  nodeType: "node" | "component" | "metanode";
@@ -84,6 +84,7 @@
84
84
  "nodeCreatedCanvasDragDropFile",
85
85
  "nodeCreatedFloatingToolsAddByFile",
86
86
  "nodeConfigFeedbackSubmitted",
87
+ "nodeMigrationRequested",
87
88
  "executeAllNodesCtxMenu",
88
89
  "executeAllNodesKeyboard",
89
90
  "executeAllNodesToolbar",
@@ -4288,6 +4289,66 @@
4288
4289
  }
4289
4290
  }
4290
4291
  },
4292
+ "nodeMigrationRequested": {
4293
+ "type": "object",
4294
+ "additionalProperties": false,
4295
+ "$comment": "Fired when the user requests the migration of a node's auto-generated dialog to a modern dialog",
4296
+ "required": [
4297
+ "event_name",
4298
+ "event_source",
4299
+ "event_display_name",
4300
+ "interaction",
4301
+ "payload"
4302
+ ],
4303
+ "properties": {
4304
+ "event_name": {
4305
+ "type": "string",
4306
+ "const": "node_migration_requested"
4307
+ },
4308
+ "event_source": {
4309
+ "type": "string",
4310
+ "const": "editor"
4311
+ },
4312
+ "event_display_name": {
4313
+ "type": "string",
4314
+ "const": "Node Migration Requested"
4315
+ },
4316
+ "interaction": {
4317
+ "type": "object",
4318
+ "additionalProperties": false,
4319
+ "required": ["location", "trigger", "type"],
4320
+ "properties": {
4321
+ "location": {
4322
+ "type": "string",
4323
+ "const": "node_configuration"
4324
+ },
4325
+ "trigger": {
4326
+ "allOf": [
4327
+ {
4328
+ "$ref": "#/definitions/InteractionTrigger"
4329
+ },
4330
+ {
4331
+ "const": "user"
4332
+ }
4333
+ ]
4334
+ },
4335
+ "type": {
4336
+ "allOf": [
4337
+ {
4338
+ "$ref": "#/definitions/InteractionType"
4339
+ },
4340
+ {
4341
+ "const": "click"
4342
+ }
4343
+ ]
4344
+ }
4345
+ }
4346
+ },
4347
+ "payload": {
4348
+ "$ref": "#/definitions/NodeMigrationRequestedPayload"
4349
+ }
4350
+ }
4351
+ },
4291
4352
  "executeAllNodesCtxMenu": {
4292
4353
  "type": "object",
4293
4354
  "additionalProperties": false,
@@ -6814,6 +6875,16 @@
6814
6875
  }
6815
6876
  }
6816
6877
  },
6878
+ "NodeMigrationRequestedPayload": {
6879
+ "type": "object",
6880
+ "additionalProperties": false,
6881
+ "required": ["nodeFactoryId"],
6882
+ "properties": {
6883
+ "nodeFactoryId": {
6884
+ "type": "string"
6885
+ }
6886
+ }
6887
+ },
6817
6888
  "NodeExecutionPayload": {
6818
6889
  "type": "object",
6819
6890
  "additionalProperties": false,