@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 +6 -0
- package/package.json +1 -1
- package/src/embeddingSDK/types.ts +13 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -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<
|