@zealicsolutions/web-ui 1.0.140-beta.218 → 1.0.140-beta.219
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/cjs/contexts/WebpageContext/WebpageContext.d.ts +10 -3
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Avatar/Avatar.d.ts +2 -0
- package/dist/cjs/molecules/BasicTextField/BasicTextField.d.ts +2 -0
- package/dist/cjs/molecules/Select/Select.d.ts +2 -0
- package/dist/esm/contexts/WebpageContext/WebpageContext.d.ts +10 -3
- package/dist/esm/contexts/WebpageContext/WebpageContext.js.map +1 -1
- package/dist/esm/molecules/Avatar/Avatar.d.ts +2 -0
- package/dist/esm/molecules/Avatar/Avatar.js +1 -1
- package/dist/esm/molecules/Avatar/Avatar.js.map +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.d.ts +2 -0
- package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
- package/dist/esm/molecules/Button/hooks/useButtonAction.js +1 -1
- package/dist/esm/molecules/Button/hooks/useButtonAction.js.map +1 -1
- package/dist/esm/molecules/Select/Select.d.ts +2 -0
- package/dist/esm/molecules/Select/Select.js +1 -1
- package/dist/esm/molecules/Select/Select.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,9 +23,9 @@ export type CortexRwoContextType = {
|
|
|
23
23
|
export type CortexContextParamMapping = {
|
|
24
24
|
/** The agent's required context key (e.g., "studyId") */
|
|
25
25
|
contextKey: string;
|
|
26
|
-
/** The source type
|
|
27
|
-
contextSource: 'webpage';
|
|
28
|
-
/** The source field to get the value from (e.g., "primaryRwoId") */
|
|
26
|
+
/** The source type - "webpage" for page-level context or "organism" for button action context */
|
|
27
|
+
contextSource: 'webpage' | 'organism';
|
|
28
|
+
/** The source field to get the value from (e.g., "primaryRwoId" or organism DMF ID) */
|
|
29
29
|
contextSourceField: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
@@ -55,8 +55,15 @@ export type OpenAIChatOptions = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Input parameters resolved from the button's organism context.
|
|
57
57
|
* These are merged with webpage-level context in CortexProvider.
|
|
58
|
+
* @deprecated Use aiContext instead for new fieldMap format
|
|
58
59
|
*/
|
|
59
60
|
inputParams?: Record<string, unknown>;
|
|
61
|
+
/**
|
|
62
|
+
* AI context - resolved from the button's organism context using fieldMap.
|
|
63
|
+
* Keys are agent context param names (destinations), values are resolved from organism fields.
|
|
64
|
+
* This is the new format that supports source → destination field mapping.
|
|
65
|
+
*/
|
|
66
|
+
aiContext?: Record<string, unknown>;
|
|
60
67
|
};
|
|
61
68
|
export type WebpageContextType = {
|
|
62
69
|
webpageId?: string;
|