@hiver/connector-agent 4.27.0-appWidgets-beta.30 → 4.27.0-appWidgets-beta.31
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.
|
@@ -99,7 +99,7 @@ export type AppWidgetBodyProps = AppWidgetCommonProps & {
|
|
|
99
99
|
adminNotified?: boolean;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
|
-
* The expanded widget: "Look up by" (not for PM tools), up to two record cards, View all, and the
|
|
102
|
+
* The expanded widget: "Look up by" (HIG only, not for PM tools), up to two record cards, View all, and the
|
|
103
103
|
* app's buttons. Host-agnostic: every click becomes an {@link AppWidgetAction} the host maps to its
|
|
104
104
|
* app tab.
|
|
105
105
|
*/
|
|
@@ -9,6 +9,12 @@ export type UseAppWidgetDataArgs = AppWidgetLoadArgs & {
|
|
|
9
9
|
* starts on `contactEmail`; hosts that know only one address can leave this out.
|
|
10
10
|
*/
|
|
11
11
|
contactEmails?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Show the "Look up by" line (never for PM tools). HIG turns it on; Omni leaves it off. When on,
|
|
14
|
+
* the picker also offers the conversation's addresses, read the way the app tab's email selector
|
|
15
|
+
* reads them.
|
|
16
|
+
*/
|
|
17
|
+
showLookup?: boolean;
|
|
12
18
|
};
|
|
13
19
|
export type AppWidgetData = {
|
|
14
20
|
/** The template's widget; null while it loads or when the template declares none. */
|
|
@@ -38,5 +44,5 @@ export declare const appWidgetQueryScope: (connectorId: string, conversationId:
|
|
|
38
44
|
* that slice is a module singleton the tab clears on unmount, so a widget sharing it would be
|
|
39
45
|
* wiped whenever the tab closes. The requests are the tab's, so both show the same records.
|
|
40
46
|
*/
|
|
41
|
-
export declare const useAppWidgetData: ({ connectorId, connectorName, conversationId, contactEmail, contactEmails, inboxIds, enabled }: UseAppWidgetDataArgs) => AppWidgetData;
|
|
47
|
+
export declare const useAppWidgetData: ({ connectorId, connectorName, conversationId, contactEmail, contactEmails, inboxIds, enabled, showLookup }: UseAppWidgetDataArgs) => AppWidgetData;
|
|
42
48
|
//# sourceMappingURL=useAppWidgetData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppWidgetData.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/useAppWidgetData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"useAppWidgetData.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/useAppWidgetData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qFAAqF;IACrF,GAAG,EAAE,eAAe,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,8FAA8F;IAC9F,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qGAAqG;IACrG,WAAW,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,2FAA2F;IAC3F,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,yGAAyG;IACzG,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAWF,eAAO,MAAM,mBAAmB,gBAAiB,MAAM,kBAAkB,MAAM,2CAC1B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,+GAS1B,oBAAoB,KAAG,aA8GzB,CAAC"}
|