@knime/hub-features 1.35.0 → 1.35.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,11 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.35.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 43b78d2: Add `customProperties` to `EmbeddingContext`
8
+
3
9
  ## 1.35.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,6 +48,10 @@ export type EmbeddingContext = {
48
48
  */
49
49
  enabled: boolean;
50
50
  };
51
+ /**
52
+ * A set of custom properties provided by the host, which the guest has to read and validate.
53
+ */
54
+ customProperties?: Record<string, unknown>;
51
55
  };
52
56
 
53
57
  type ShowNotificationEvent = {
@@ -72,6 +76,14 @@ type HostNavigationRequestEvent = {
72
76
  | { intent: "navigate"; href: string; openIn: "_blank" | "_parent" };
73
77
  };
74
78
 
79
+ type CustomPropertyUpdateEvent = {
80
+ kind: "customPropertyUpdate";
81
+ payload: {
82
+ key: string;
83
+ value: unknown;
84
+ };
85
+ };
86
+
75
87
  type AnalyticsEvent = {
76
88
  kind: "analytics";
77
89
  payload: {
@@ -84,6 +96,7 @@ export type GenericEvent =
84
96
  | ShowNotificationEvent
85
97
  | ClearNotificationEvent
86
98
  | HostNavigationRequestEvent
99
+ | CustomPropertyUpdateEvent
87
100
  | AnalyticsEvent;
88
101
 
89
102
  export type GenericEventByKind<K extends GenericEvent["kind"]> = Extract<