@hiver/connector-agent 4.28.0-pmCommentSync-beta.0 → 4.28.0-pmCommentSync-beta.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/app/app-widget/index.d.ts +15 -0
- package/app/app-widget/index.d.ts.map +1 -0
- package/app/connector-cards.d.ts.map +1 -1
- package/context/index.d.ts +9 -0
- package/context/index.d.ts.map +1 -1
- package/features/app-widget/AppWidgetQueryProvider.d.ts +5 -0
- package/features/app-widget/AppWidgetQueryProvider.d.ts.map +1 -0
- package/features/app-widget/components/AppWidget.d.ts +68 -0
- package/features/app-widget/components/AppWidget.d.ts.map +1 -0
- package/features/app-widget/config.d.ts +96 -0
- package/features/app-widget/config.d.ts.map +1 -0
- package/features/app-widget/constants.d.ts +11 -0
- package/features/app-widget/constants.d.ts.map +1 -0
- package/features/app-widget/copy.d.ts +34 -0
- package/features/app-widget/copy.d.ts.map +1 -0
- package/features/app-widget/loader.d.ts +34 -0
- package/features/app-widget/loader.d.ts.map +1 -0
- package/features/app-widget/model.d.ts +34 -0
- package/features/app-widget/model.d.ts.map +1 -0
- package/features/app-widget/query-client.d.ts +12 -0
- package/features/app-widget/query-client.d.ts.map +1 -0
- package/features/app-widget/types.d.ts +62 -0
- package/features/app-widget/types.d.ts.map +1 -0
- package/features/app-widget/useAppWidgetData.d.ts +24 -0
- package/features/app-widget/useAppWidgetData.d.ts.map +1 -0
- package/features/app-widget/usePersonalConnect.d.ts +11 -0
- package/features/app-widget/usePersonalConnect.d.ts.map +1 -0
- package/features/app-widget/useWidgetComments.d.ts +8 -0
- package/features/app-widget/useWidgetComments.d.ts.map +1 -0
- package/features/global-search/components/index.d.ts +8 -0
- package/features/global-search/components/index.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-linking.d.ts +3 -1
- package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
- package/index.d.ts +10 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +12149 -11349
- package/index.umd.js +552 -552
- package/package.json +1 -1
- package/utils/action-queue.d.ts +12 -0
- package/utils/action-queue.d.ts.map +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AppWidgetBodyProps, AppWidgetSummaryProps } from '../../features/app-widget/components/AppWidget';
|
|
3
|
+
import { ConnectorThemeConfig } from '../../theme/connector-theme';
|
|
4
|
+
type Themed = {
|
|
5
|
+
theme?: ConnectorThemeConfig;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Host entry points for the right panel's app widgets. Hosts own the section shell (title, logo,
|
|
9
|
+
* chevron, drag handle) and render the summary in its header and the body inside it. Both share
|
|
10
|
+
* one query cache, so the body opens on the data the header already read.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AppWidgetSummary: FC<AppWidgetSummaryProps & Themed>;
|
|
13
|
+
export declare const AppWidgetBody: FC<AppWidgetBodyProps & Themed>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/app-widget/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAsB,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAM5G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,KAAK,MAAM,GAAG;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAiB/C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,GAAG,MAAM,CAM/D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,GAAG,MAAM,CAMzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-cards.d.ts","sourceRoot":"","sources":["../../src/app/connector-cards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAkF,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"connector-cards.d.ts","sourceRoot":"","sources":["../../src/app/connector-cards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAkF,MAAM,OAAO,CAAC;AA0H3G,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CAigCxC,CAAC"}
|
package/context/index.d.ts
CHANGED
|
@@ -19,10 +19,19 @@ export interface ICurrentOption {
|
|
|
19
19
|
export interface ITrackingData {
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* A create or link flow in the app tab finished. Hosts that opened the flow from somewhere else
|
|
24
|
+
* (a right-panel app widget) use it to return there; `back` means the rep left without saving.
|
|
25
|
+
*/
|
|
26
|
+
export type AppFlowEndEvent = {
|
|
27
|
+
flow: 'create' | 'link';
|
|
28
|
+
outcome: 'success' | 'back';
|
|
29
|
+
};
|
|
22
30
|
export interface ConnectorFunctions {
|
|
23
31
|
redirectToAdmin: (connectorId?: string, queryParams?: Record<string, string | number | boolean>) => void;
|
|
24
32
|
getFormElement?: () => HTMLElement | null;
|
|
25
33
|
toggleFormElement?: (state: boolean) => void;
|
|
34
|
+
onFlowEnd?: (event: AppFlowEndEvent) => void;
|
|
26
35
|
}
|
|
27
36
|
export interface StackingContext {
|
|
28
37
|
expandedForm?: number;
|
package/context/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAA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CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,EAAE,eAYlC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppWidgetQueryProvider.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/AppWidgetQueryProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,sBAAsB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAE3E,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AppWidgetModel, AppWidgetRecord } from '../types';
|
|
3
|
+
import { UseAppWidgetDataArgs } from '../useAppWidgetData';
|
|
4
|
+
/** Everything a widget can ask its host to do. The host owns navigation to the app tab. */
|
|
5
|
+
export type AppWidgetAction = {
|
|
6
|
+
type: 'create';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'search_link';
|
|
9
|
+
prefill: {
|
|
10
|
+
email: string;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
type: 'open_record';
|
|
14
|
+
record: AppWidgetRecord;
|
|
15
|
+
}
|
|
16
|
+
/** Comment Sync: open a linked task's comment thread in the app tab (record has externalResourceId). */
|
|
17
|
+
| {
|
|
18
|
+
type: 'open_task_thread';
|
|
19
|
+
record: AppWidgetRecord;
|
|
20
|
+
} | {
|
|
21
|
+
type: 'view_all';
|
|
22
|
+
} | {
|
|
23
|
+
type: 'reconnect';
|
|
24
|
+
} | {
|
|
25
|
+
type: 'notify_admin';
|
|
26
|
+
};
|
|
27
|
+
export type AppWidgetTrackingFn = (event: string, data: Record<string, unknown>) => void;
|
|
28
|
+
export type AppWidgetCommonProps = UseAppWidgetDataArgs & {
|
|
29
|
+
isAdmin?: boolean;
|
|
30
|
+
/** Merged into every event: product, user role and view (default or split) are host-owned. */
|
|
31
|
+
trackingContext?: Record<string, unknown>;
|
|
32
|
+
sendTrackingEvent?: AppWidgetTrackingFn;
|
|
33
|
+
};
|
|
34
|
+
export type AppWidgetSummaryProps = AppWidgetCommonProps & {
|
|
35
|
+
/** Reports what the header shows, for hosts that render their own badge or pill. */
|
|
36
|
+
/**
|
|
37
|
+
* `available` is false when the app has no cards turned on for the conversation's inboxes:
|
|
38
|
+
* hosts hide the whole section then (the summary stays mounted so it can report it back).
|
|
39
|
+
*/
|
|
40
|
+
onSummaryChange?: (summary: {
|
|
41
|
+
text: string;
|
|
42
|
+
isLoading: boolean;
|
|
43
|
+
disconnected: boolean;
|
|
44
|
+
available: boolean;
|
|
45
|
+
}) => void;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The collapsed value for a host's section header ("14 orders"). Blank when nothing is found, a
|
|
49
|
+
* grey placeholder while a slow load runs, and the role's label while the connection is broken.
|
|
50
|
+
*/
|
|
51
|
+
export declare const AppWidgetSummary: FC<AppWidgetSummaryProps>;
|
|
52
|
+
export type AppWidgetBodyProps = AppWidgetCommonProps & {
|
|
53
|
+
onAction: (action: AppWidgetAction) => void;
|
|
54
|
+
/**
|
|
55
|
+
* The host's Comment Sync flag is on: linked PM tasks show their comment count and open their
|
|
56
|
+
* thread. Hosts read the flag themselves (its key differs per product).
|
|
57
|
+
*/
|
|
58
|
+
commentSync?: boolean;
|
|
59
|
+
/** Set by the host once the admin was notified (Notify admin is host-delivered). */
|
|
60
|
+
adminNotified?: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The expanded widget: the lookup line, up to two record cards, View all, and the app's buttons.
|
|
64
|
+
* Host-agnostic: every click becomes an {@link AppWidgetAction} the host maps to its app tab.
|
|
65
|
+
*/
|
|
66
|
+
export declare const AppWidgetBody: FC<AppWidgetBodyProps>;
|
|
67
|
+
export type { AppWidgetModel };
|
|
68
|
+
//# sourceMappingURL=AppWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|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EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACtH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2CtD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oFAAoF;IACpF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAgJhD,CAAC;AA2PF,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AppWidgetCategory } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* How an app's widget reads its cards. Authored per template as `appWidget` in
|
|
4
|
+
* custom-integration-template-library and served by custom-integrations from the connector's
|
|
5
|
+
* live template, so the SDK holds no per-app knowledge: a new app, or a customer's own
|
|
6
|
+
* template, gets a widget by declaring one.
|
|
7
|
+
*/
|
|
8
|
+
export type AppWidgetFieldConfig = {
|
|
9
|
+
key: string;
|
|
10
|
+
/** Defaults to the field's own label. */
|
|
11
|
+
label?: string;
|
|
12
|
+
format?: 'money' | 'date';
|
|
13
|
+
/** Render red when the value is above zero (an overdue amount). */
|
|
14
|
+
tone?: 'criticalWhenPositive';
|
|
15
|
+
/** Shown instead of "—" when the record leaves this field empty ("No account"). */
|
|
16
|
+
empty?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AppWidgetCardConfig = {
|
|
19
|
+
/** Records of one kind share an id ("order"), which the rules below refer to. */
|
|
20
|
+
record: string;
|
|
21
|
+
/** Shown above the card title ("Order"); also "Restricted <recordType>". */
|
|
22
|
+
recordType: string;
|
|
23
|
+
/** Joined with a space; when empty, the first `fallback` key with a value. */
|
|
24
|
+
title: {
|
|
25
|
+
keys: string[];
|
|
26
|
+
fallback?: string[];
|
|
27
|
+
};
|
|
28
|
+
fields: AppWidgetFieldConfig[];
|
|
29
|
+
/** A record whose status matches `closed` (case-insensitive) is not open. */
|
|
30
|
+
status?: {
|
|
31
|
+
key: string;
|
|
32
|
+
closed: string;
|
|
33
|
+
};
|
|
34
|
+
currencyKey?: string;
|
|
35
|
+
closeDateKey?: string;
|
|
36
|
+
};
|
|
37
|
+
export type AppWidgetWhen = {
|
|
38
|
+
present?: string;
|
|
39
|
+
absent?: string;
|
|
40
|
+
};
|
|
41
|
+
export type AppWidgetLookupConfig = {
|
|
42
|
+
record: string;
|
|
43
|
+
limit?: number;
|
|
44
|
+
open?: boolean;
|
|
45
|
+
sort?: {
|
|
46
|
+
key: string;
|
|
47
|
+
order?: 'asc' | 'desc';
|
|
48
|
+
};
|
|
49
|
+
when?: AppWidgetWhen;
|
|
50
|
+
};
|
|
51
|
+
export type AppWidgetSummaryRule = {
|
|
52
|
+
when?: AppWidgetWhen;
|
|
53
|
+
count?: {
|
|
54
|
+
records?: string[];
|
|
55
|
+
open?: boolean;
|
|
56
|
+
linked?: boolean;
|
|
57
|
+
};
|
|
58
|
+
value?: {
|
|
59
|
+
record: string;
|
|
60
|
+
key: string;
|
|
61
|
+
};
|
|
62
|
+
as?: 'number' | 'money' | 'text';
|
|
63
|
+
/** Only when the value is above zero. */
|
|
64
|
+
positive?: boolean;
|
|
65
|
+
/** Always zero, in the record's currency ("$0 balance"). */
|
|
66
|
+
zero?: boolean;
|
|
67
|
+
/** [singular, plural] with {n}, or one string with {value}. */
|
|
68
|
+
text?: string | [string, string];
|
|
69
|
+
};
|
|
70
|
+
export type AppWidgetConfig = {
|
|
71
|
+
connectorId: string;
|
|
72
|
+
category: AppWidgetCategory;
|
|
73
|
+
createLabel?: string;
|
|
74
|
+
/** Read linked records only, with no email lookup (PM tools). */
|
|
75
|
+
linkedOnly?: boolean;
|
|
76
|
+
/** No cards yet still means the app is on when it has create/link forms. */
|
|
77
|
+
availableViaForms?: boolean;
|
|
78
|
+
/** The app's word for a record, [singular, plural]. */
|
|
79
|
+
recordWord?: [string, string];
|
|
80
|
+
linkedFirst?: string[];
|
|
81
|
+
lookups?: AppWidgetLookupConfig[];
|
|
82
|
+
uncounted?: string[];
|
|
83
|
+
summary?: AppWidgetSummaryRule[];
|
|
84
|
+
/** Keyed by this connector's card ids. */
|
|
85
|
+
cards: Record<string, AppWidgetCardConfig>;
|
|
86
|
+
};
|
|
87
|
+
export declare const APP_WIDGET_CONFIG_API = "/v1/api/connectors/app-widgets/config";
|
|
88
|
+
/**
|
|
89
|
+
* Each connector's widget, or null when its template declares none. One request for the ids not
|
|
90
|
+
* read yet. A failed read is not cached, so the next panel open retries it.
|
|
91
|
+
*/
|
|
92
|
+
export declare const loadAppWidgetConfigs: (connectorIds: string[]) => Promise<Record<string, AppWidgetConfig | null>>;
|
|
93
|
+
export declare const loadAppWidgetConfig: (connectorId: string) => Promise<AppWidgetConfig | null>;
|
|
94
|
+
/** Tests, and hosts after an admin edits a template in the same session. */
|
|
95
|
+
export declare const clearAppWidgetConfigs: () => void;
|
|
96
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,mEAAmE;IACnE,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,mF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
|
1
|
+
export declare const APP_WIDGET_EVENTS: {
|
|
2
|
+
readonly RENDERED: "app_widget_rendered";
|
|
3
|
+
readonly CARD_CLICKED: "app_widget_card_clicked";
|
|
4
|
+
readonly VIEW_ALL_CLICKED: "app_widget_view_all_clicked";
|
|
5
|
+
readonly CTA_CLICKED: "app_widget_cta_clicked";
|
|
6
|
+
readonly REFRESHED: "app_widget_refreshed";
|
|
7
|
+
readonly AUTH_ACTION: "app_widget_auth_action";
|
|
8
|
+
};
|
|
9
|
+
/** Placeholders appear only when a load is slower than this, so fast loads don't flicker (Q29). */
|
|
10
|
+
export declare const PLACEHOLDER_DELAY_MS = 300;
|
|
11
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,mGAAmG;AACnG,eAAO,MAAM,oBAAoB,MAAM,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AppWidgetConfig } from './config';
|
|
2
|
+
import { AppWidgetModel } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Widget copy in one place. Several strings are still open product questions (per-app
|
|
5
|
+
* broken-connection wording, restricted-card wording), so they are built here from the
|
|
6
|
+
* category and the template's recordWord rather than inlined in components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const emptyStateText: (app: AppWidgetConfig) => string;
|
|
9
|
+
export declare const disconnectedText: (app: AppWidgetConfig, appName: string, isAdmin: boolean) => string;
|
|
10
|
+
export declare const reconnectLabel: (appName: string) => string;
|
|
11
|
+
export declare const NOTIFY_ADMIN_LABEL = "Notify admin";
|
|
12
|
+
export declare const NOTIFY_ADMIN_SENT_LABEL = "Admin notified";
|
|
13
|
+
/** Collapsed value while the connection is broken, per role (Q30 may change these). */
|
|
14
|
+
export declare const disconnectedSummary: (isAdmin: boolean) => "Unavailable" | "Reconnect";
|
|
15
|
+
/** The app needs the rep's own connection (decision for K-10/K-11; collapsed label pending Q30). */
|
|
16
|
+
export declare const personalConnectText: (appName: string) => string;
|
|
17
|
+
export declare const PERSONAL_CONNECT_LABEL = "Connect";
|
|
18
|
+
export declare const PERSONAL_CONNECT_SUMMARY = "Connect";
|
|
19
|
+
export declare const PERSONAL_CONNECT_FAILED_TEXT = "Couldn't connect. Try again.";
|
|
20
|
+
/** Counts above 99 read "99+", in the collapsed value as on View all. */
|
|
21
|
+
export declare const cappedCount: (count: number) => string;
|
|
22
|
+
export declare const viewAllLabel: (total: number) => string;
|
|
23
|
+
export declare const SEARCH_LINK_LABEL = "Search & link";
|
|
24
|
+
/** A linked task's Comment Sync line (Figma 2248-31458: "5 comments"); "Add a comment" when it has none. */
|
|
25
|
+
export declare const commentsLabel: (count: number) => string;
|
|
26
|
+
export declare const ADD_COMMENT_LABEL = "Add a comment";
|
|
27
|
+
export declare const COMMENTS_LABEL = "Comments";
|
|
28
|
+
/** The app's reads failed for a reason that passes (rate limit, server error, network). */
|
|
29
|
+
export declare const UNAVAILABLE_TEXT = "Couldn't load right now.";
|
|
30
|
+
export declare const TRY_AGAIN_LABEL = "Try again";
|
|
31
|
+
export declare const showingRecordsFor: (key: string) => string;
|
|
32
|
+
/** The collapsed value a host shows in its section header; empty when nothing was found. */
|
|
33
|
+
export declare const appWidgetSummaryText: (model: AppWidgetModel | null, isAdmin: boolean) => string;
|
|
34
|
+
//# sourceMappingURL=copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/copy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;GAIG;AAEH,eAAO,MAAM,cAAc,QAAS,eAAe,KAAG,MAarD,CAAC;AAKF,eAAO,MAAM,gBAAgB,QAAS,eAAe,WAAW,MAAM,WAAW,OAAO,KAAG,MAG6C,CAAC;AAEzI,eAAO,MAAM,cAAc,YAAa,MAAM,WAA2B,CAAC;AAE1E,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,YAAa,OAAO,gCAA4C,CAAC;AAEjG,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,YAAa,MAAM,WAAsD,CAAC;AAC1G,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAChD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E,yEAAyE;AACzE,eAAO,MAAM,WAAW,UAAW,MAAM,WAAyC,CAAC;AAEnF,eAAO,MAAM,YAAY,UAAW,MAAM,WAAuC,CAAC;AAElF,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD,4GAA4G;AAC5G,eAAO,MAAM,aAAa,UAAW,MAAM,WAAsD,CAAC;AAClG,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,eAAO,MAAM,iBAAiB,QAAS,MAAM,WAAiC,CAAC;AAI/E,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,UAAW,cAAc,GAAG,IAAI,WAAW,OAAO,KAAG,MAKrF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ICard } from '../../types/cards';
|
|
2
|
+
import { AppWidgetConfig } from './config';
|
|
3
|
+
import { AppWidgetCardRead, AppWidgetModel } from './types';
|
|
4
|
+
export type AppWidgetLoadArgs = {
|
|
5
|
+
connectorId: string;
|
|
6
|
+
connectorName: string;
|
|
7
|
+
conversationId: number;
|
|
8
|
+
/** The email the app's records are looked up by (the conversation's contact). */
|
|
9
|
+
contactEmail: string;
|
|
10
|
+
inboxIds: string[];
|
|
11
|
+
};
|
|
12
|
+
export type AppWidgetCardList = {
|
|
13
|
+
/** The cards the widget reads (linked records carry an externalResourceId). */
|
|
14
|
+
cards: ICard[];
|
|
15
|
+
/** The app is turned on for these inboxes (see AppWidgetModel.available). */
|
|
16
|
+
available: boolean;
|
|
17
|
+
/** Every one of the app's forms reports it unauthenticated: its connection is broken. */
|
|
18
|
+
formsUnauthenticated?: boolean;
|
|
19
|
+
/** The app has a link or search form for these inboxes (Search & link has something to open). */
|
|
20
|
+
canSearchLink?: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** The app's cards for this conversation that its widget reads. */
|
|
23
|
+
export declare const fetchAppWidgetCards: (config: AppWidgetConfig, args: AppWidgetLoadArgs) => Promise<AppWidgetCardList>;
|
|
24
|
+
/** One card's data. Failures come back as a read with the HTTP status, not a throw. */
|
|
25
|
+
export declare const readAppWidgetCard: (card: ICard, { conversationId, contactEmail, inboxIds }: AppWidgetLoadArgs, isRefresh?: boolean) => Promise<AppWidgetCardRead>;
|
|
26
|
+
/**
|
|
27
|
+
* Framework-free read of one app's widget, for hosts that are not React (Omni's Vue panel puts
|
|
28
|
+
* the collapsed value in its own section header). Same requests and rules as the React widget.
|
|
29
|
+
* Resolves null for apps without a widget.
|
|
30
|
+
*/
|
|
31
|
+
export declare const loadAppWidgetModel: (args: AppWidgetLoadArgs, { refresh }?: {
|
|
32
|
+
refresh?: boolean;
|
|
33
|
+
}) => Promise<AppWidgetModel | null>;
|
|
34
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+EAA+E;IAC/E,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;IACnB,yFAAyF;IACzF,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iGAAiG;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAyCF,mEAAmE;AACnE,eAAO,MAAM,mBAAmB,WACtB,eAAe,QACjB,iBAAiB,KACtB,OAAO,CAAC,iBAAiB,CAuB3B,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,SACtB,KAAK,8CACiC,iBAAiB,0BAE5D,OAAO,CAAC,iBAAiB,CAiB3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SACvB,iBAAiB,gBACF;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KACzC,OAAO,CAAC,cAAc,GAAG,IAAI,CAO/B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CardFieldValue, IListItemFieldData, ISpecificCard } from '../../types/cards';
|
|
2
|
+
import { AppWidgetConfig } from './config';
|
|
3
|
+
import { AppWidgetCardRead, AppWidgetModel } from './types';
|
|
4
|
+
type RawField = Pick<IListItemFieldData, 'label' | 'value' | 'priority' | 'key' | 'type'> & {
|
|
5
|
+
deepLink?: string | null;
|
|
6
|
+
};
|
|
7
|
+
/** One record inside a card read: a flat card has one, a list card one per list item. */
|
|
8
|
+
type Row = {
|
|
9
|
+
fields: RawField[];
|
|
10
|
+
externalResourceId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Reads rows without mutating the response (parseCardData sorts in place).
|
|
14
|
+
*
|
|
15
|
+
* A card that found nothing, or whose upstream call failed, still comes back with its
|
|
16
|
+
* fields (null values) plus a cardErrorMessage: "No '<card>' found for …" for a miss,
|
|
17
|
+
* "Issue with the connected <app> app … (Error code: …)" for a failure. Under an ID
|
|
18
|
+
* lookup a miss has no data at all. The app tab shows these as empty or errored cards
|
|
19
|
+
* (isCardEmpty / isCardError), never as records, so they are not records here either:
|
|
20
|
+
* counting them turned every miss or failed read into a phantom card titled with the
|
|
21
|
+
* field label.
|
|
22
|
+
*/
|
|
23
|
+
export declare const extractRows: (data: ISpecificCard | null) => Row[];
|
|
24
|
+
export declare const toNumber: (value: CardFieldValue | undefined) => number | null;
|
|
25
|
+
/** "$12.4K"; plain compact number when the row carries no ISO currency code. */
|
|
26
|
+
export declare const formatMoney: (amount: number, currency?: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Turns an app's card reads into what the widget shows, driven entirely by the template's
|
|
29
|
+
* `appWidget` config. Pure: the hook supplies the reads, so this is where the rules (which cards,
|
|
30
|
+
* in which order, what the collapsed value says) are interpreted and tested.
|
|
31
|
+
*/
|
|
32
|
+
export declare const buildAppWidgetModel: (config: AppWidgetConfig, reads: AppWidgetCardRead[], available?: boolean, formsUnauthenticated?: boolean, canSearchLink?: boolean) => AppWidgetModel;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAe,kBAAkB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,KAAK,EAEV,eAAe,EAIhB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,iBAAiB,EAAkB,cAAc,EAAmB,MAAM,SAAS,CAAC;AAElG,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC,GAAG;IAC1F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,yFAAyF;AACzF,KAAK,GAAG,GAAG;IACT,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAyCF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,SAAU,aAAa,GAAG,IAAI,KAAG,GAAG,EAuB3D,CAAC;AAmBF,eAAO,MAAM,QAAQ,UAAW,cAAc,GAAG,SAAS,KAAG,MAAM,GAAG,IAIrE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,WAAW,WAAY,MAAM,aAAa,MAAM,KAAG,MAU/D,CAAC;AAiSF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,WACtB,eAAe,SAChB,iBAAiB,EAAE,mFAMzB,cA2BF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One QueryClient for every app-widget mount on the page. Hosts render the collapsed value in
|
|
3
|
+
* their own section header and the body inside the section, and both unmount the body while the
|
|
4
|
+
* section is collapsed (HIG's accordion unmountOnExit, Omni's isSectionMounted). Omni also mounts
|
|
5
|
+
* each through its own React root. Sharing the cache is what lets the body open instantly on the
|
|
6
|
+
* data the header already read, and lets a refresh in the body update the header.
|
|
7
|
+
*
|
|
8
|
+
* Every key is namespaced by connector and conversation, so sharing across conversations is safe.
|
|
9
|
+
* Exported so tests can clear it between cases.
|
|
10
|
+
*/
|
|
11
|
+
export declare const sharedAppWidgetQueryClient: import('@tanstack/query-core').QueryClient;
|
|
12
|
+
//# sourceMappingURL=query-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-client.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/query-client.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,4CAA+B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ICard, ISpecificCard } from '../../types/cards';
|
|
2
|
+
export type AppWidgetCategory = 'ecommerce' | 'crm' | 'finance' | 'pm';
|
|
3
|
+
/** One field shown on a widget card. `tone: 'critical'` renders red (NetSuite overdue > 0). */
|
|
4
|
+
export type AppWidgetField = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
tone?: 'critical';
|
|
8
|
+
};
|
|
9
|
+
/** A record as the widget shows it: a type, a title and at most two fields. */
|
|
10
|
+
export type AppWidgetRecord = {
|
|
11
|
+
/** Stable within one widget: card id plus the record's external id (or row index). */
|
|
12
|
+
id: string;
|
|
13
|
+
cardId: string;
|
|
14
|
+
/** The record type the spec names ("Order", "Opportunity"), shown above the title. */
|
|
15
|
+
recordType: string;
|
|
16
|
+
title: string;
|
|
17
|
+
fields: AppWidgetField[];
|
|
18
|
+
/** Opens the record in the third-party app. */
|
|
19
|
+
deepLink: string | null;
|
|
20
|
+
externalResourceId?: string;
|
|
21
|
+
/** Linked to the conversation by a rep (the card carried an externalResourceId). */
|
|
22
|
+
linked: boolean;
|
|
23
|
+
/** The rep cannot read this linked record; rendered as "Restricted <word>" with no fields. */
|
|
24
|
+
restricted?: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* `unavailable`: nothing could be shown because the app's reads failed for a reason that passes
|
|
28
|
+
* (rate limited, a server error, a network failure); the rep is offered a retry.
|
|
29
|
+
* `personal`: the app needs each rep's own (user-tier) connection and this rep has not made one;
|
|
30
|
+
* the company connection is fine, so the rep is offered Connect, not Reconnect / Notify admin.
|
|
31
|
+
*/
|
|
32
|
+
export type AppWidgetConnection = 'ok' | 'expired' | 'unavailable' | 'personal';
|
|
33
|
+
export type AppWidgetModel = {
|
|
34
|
+
category: AppWidgetCategory;
|
|
35
|
+
/** Collapsed value ("14 orders"); empty string when nothing was found. */
|
|
36
|
+
summary: string;
|
|
37
|
+
/** At most two, in the category's order. */
|
|
38
|
+
records: AppWidgetRecord[];
|
|
39
|
+
/** Every record the widget could show; drives "View all (N)". */
|
|
40
|
+
total: number;
|
|
41
|
+
connection: AppWidgetConnection;
|
|
42
|
+
/**
|
|
43
|
+
* False when the app has no cards turned on for the conversation's inboxes. The app is then
|
|
44
|
+
* not enabled for this shared mailbox and hosts hide the widget instead of an empty state.
|
|
45
|
+
*/
|
|
46
|
+
available: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* False when the app has no link or search form turned on for these inboxes, so Search & link
|
|
49
|
+
* would open an empty picker; hosts then leave the button out.
|
|
50
|
+
*/
|
|
51
|
+
canSearchLink: boolean;
|
|
52
|
+
};
|
|
53
|
+
/** One card from the cards list, with its data read (null while unread or failed). */
|
|
54
|
+
export type AppWidgetCardRead = {
|
|
55
|
+
card: ICard;
|
|
56
|
+
data: ISpecificCard | null;
|
|
57
|
+
/** HTTP status of the data read, when it failed. */
|
|
58
|
+
errorStatus?: number;
|
|
59
|
+
/** The read failed in a way a retry can fix (no response at all: a network failure). */
|
|
60
|
+
failed?: boolean;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC;AAEvE,+FAA+F;AAC/F,MAAM,MAAM,cAAc,GAAG;IAC3B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@
|
|
|
1
|
+
import { AppWidgetConfig } from './config';
|
|
2
|
+
import { AppWidgetLoadArgs } from './loader';
|
|
3
|
+
import { AppWidgetModel } from './types';
|
|
4
|
+
export type UseAppWidgetDataArgs = AppWidgetLoadArgs & {
|
|
5
|
+
/** Hosts pause reads while the widget is hidden behind a flag or by the user. */
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type AppWidgetData = {
|
|
9
|
+
/** The template's widget; null while it loads or when the template declares none. */
|
|
10
|
+
app: AppWidgetConfig | null;
|
|
11
|
+
model: AppWidgetModel | null;
|
|
12
|
+
/** Cards list or a card read still in flight. Hosts show placeholders after a short delay. */
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
/** Re-reads every card, skipping the server's short cache of keyed reads. */
|
|
15
|
+
refresh: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const appWidgetQueryScope: (connectorId: string, conversationId: number) => readonly ["appWidget", string, number];
|
|
18
|
+
/**
|
|
19
|
+
* The widget's own reads. It deliberately does not go through the app tab's redux card slice:
|
|
20
|
+
* that slice is a module singleton the tab clears on unmount, so a widget sharing it would be
|
|
21
|
+
* wiped whenever the tab closes. The requests are the tab's, so both show the same records.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useAppWidgetData: ({ connectorId, connectorName, conversationId, contactEmail, inboxIds, enabled }: UseAppWidgetDataArgs) => AppWidgetData;
|
|
24
|
+
//# sourceMappingURL=useAppWidgetData.d.ts.map
|
|
@@ -0,0 +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;AAElD,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,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,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAMF,eAAO,MAAM,mBAAmB,gBAAiB,MAAM,kBAAkB,MAAM,2CAC1B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,oFAO1B,oBAAoB,KAAG,aAmEzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type PersonalConnectState = 'idle' | 'connecting' | 'failed';
|
|
2
|
+
/**
|
|
3
|
+
* The rep's own (user-tier) connect flow for a widget: the same start + popup + status poll the
|
|
4
|
+
* app tab runs (useUserAuthFlow), without its Redux store, which widget hosts don't mount. Only
|
|
5
|
+
* this rep's widget refreshes on success; other reps keep their own state.
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePersonalConnect: (connectorId: string, onConnected: () => void) => {
|
|
8
|
+
state: PersonalConnectState;
|
|
9
|
+
connect: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=usePersonalConnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePersonalConnect.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/usePersonalConnect.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;AAIpE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,eAAe,MAAM,IAAI;;;CAsD9E,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaskCommentSummary } from '../pm-comments/types/wire';
|
|
2
|
+
/**
|
|
3
|
+
* Comment Sync counts for the PM records a widget shows (PRD G22: the entry point sits in the
|
|
4
|
+
* right panel's app section). Same summary request and poll as the app tab's card row, keyed by
|
|
5
|
+
* task id. Off unless the host turned Comment Sync on and there are linked tasks to ask about.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useWidgetCommentSummaries: (connectorId: string, conversationId: number, taskIds: string[], enabled: boolean) => Map<string, TaskCommentSummary>;
|
|
8
|
+
//# sourceMappingURL=useWidgetComments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetComments.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/useWidgetComments.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,gBACvB,MAAM,kBACH,MAAM,WACb,MAAM,EAAE,WACR,OAAO,KACf,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAahC,CAAC"}
|
|
@@ -7,6 +7,14 @@ interface GlobalSearchProps {
|
|
|
7
7
|
setSelectedObject: Dispatch<SetStateAction<SearchOptionType | null>>;
|
|
8
8
|
fetchSearchResults: (data: SearchResultsProps) => void;
|
|
9
9
|
onReset: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Fills the box and opens the object menu, e.g. with the contact's email when a widget's
|
|
12
|
+
* Search & link lands on an app whose only link forms are search forms. A new key re-seeds.
|
|
13
|
+
*/
|
|
14
|
+
seed?: {
|
|
15
|
+
query: string;
|
|
16
|
+
key: number;
|
|
17
|
+
} | null;
|
|
10
18
|
}
|
|
11
19
|
export declare const GlobalSearch: FC<GlobalSearchProps>;
|
|
12
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/components/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA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CAgG9C,CAAC"}
|
|
@@ -3,7 +3,9 @@ interface IProps {
|
|
|
3
3
|
onCancel: () => void;
|
|
4
4
|
onLinkingSuccess: () => void;
|
|
5
5
|
onSearchViewChange?: (isSearchView: boolean) => void;
|
|
6
|
+
/** Preselect this connector's link form (a widget's Search & link in the all-apps panel). */
|
|
7
|
+
preferredConnectorId?: string | null;
|
|
6
8
|
}
|
|
7
|
-
export declare const CardLinking: ({ setOpenTaskLinking, onCancel, onLinkingSuccess, onSearchViewChange }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CardLinking: ({ setOpenTaskLinking, onCancel, onLinkingSuccess, onSearchViewChange, preferredConnectorId }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
9
11
|
//# sourceMappingURL=card-linking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAwCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAwCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,6FAA6F;IAC7F,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,iGAMrB,MAAM,4CAgPR,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -32,4 +32,14 @@ export { createAppStore } from './store/appStore';
|
|
|
32
32
|
export { connectorThemeDefaults, resolveConnectorThemeTokens } from './theme/connector-theme';
|
|
33
33
|
export type { ConnectorColorScheme, ConnectorThemeConfig, ConnectorThemeTokens } from './theme/connector-theme';
|
|
34
34
|
export { SplitAppsNudge } from './app/split-apps-nudge';
|
|
35
|
+
export { AppWidgetSummary, AppWidgetBody } from './app/app-widget';
|
|
36
|
+
export { APP_WIDGET_EVENTS } from './features/app-widget/constants';
|
|
37
|
+
export type { AppWidgetAction, AppWidgetBodyProps, AppWidgetSummaryProps, AppWidgetTrackingFn } from './features/app-widget/components/AppWidget';
|
|
38
|
+
export type { AppWidgetRecord } from './features/app-widget/types';
|
|
39
|
+
export { loadAppWidgetConfigs } from './features/app-widget/config';
|
|
40
|
+
export type { AppWidgetConfig } from './features/app-widget/config';
|
|
41
|
+
export { loadAppWidgetModel } from './features/app-widget/loader';
|
|
42
|
+
export type { AppWidgetLoadArgs } from './features/app-widget/loader';
|
|
43
|
+
export { appWidgetSummaryText } from './features/app-widget/copy';
|
|
44
|
+
export type { AppWidgetModel } from './features/app-widget/types';
|
|
35
45
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACnH,OA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