@hiver/connector-agent 4.26.0 → 4.27.0-appWidgets-beta.0

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.
@@ -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,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAO3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAE5G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,KAAK,MAAM,GAAG;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAC;AAE/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;AAqH3G,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CA06BxC,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;AAqH3G,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CA27BxC,CAAC"}
@@ -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;
@@ -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,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,WAAW,cAAc;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ode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=AppWidgetQueryProvider.d.ts.map
@@ -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,42 @@
1
+ import { AppWidgetCategory } from './types';
2
+ /**
3
+ * How to pick one value from a template card. Templates are admin-editable and many customers
4
+ * run their own variant (shopify_zwift_uk, salesforce_bayzat...), so a pick lists every field
5
+ * key we have seen for it, then a label pattern. When neither matches, the model falls back to
6
+ * the card's next field by priority rather than showing nothing.
7
+ */
8
+ export type FieldPick = {
9
+ label: string;
10
+ keys: string[];
11
+ labelPattern?: RegExp;
12
+ /** Keys whose values are joined with a space (first_name + last_name). */
13
+ join?: string[];
14
+ format?: 'date' | 'money';
15
+ };
16
+ export type RecordSpec = {
17
+ /** Shown above the card title. */
18
+ recordType: string;
19
+ /** Matches the template card's title. */
20
+ cardTitle: RegExp;
21
+ /** Template cards whose title also matches this are not this record (e.g. automation cards). */
22
+ excludeTitle?: RegExp;
23
+ title: FieldPick;
24
+ fields: [FieldPick, FieldPick];
25
+ };
26
+ export type AppSpec = {
27
+ id: string;
28
+ /** Matches the connector name, which custom variants prefix or suffix ("Shopify - Zwift UK"). */
29
+ namePattern: RegExp;
30
+ category: AppWidgetCategory;
31
+ records: RecordSpec[];
32
+ /** PM tools: the tool's own word for a record, singular and plural. */
33
+ recordWord?: [string, string];
34
+ /** Opportunity/deal word used in the collapsed value. */
35
+ dealWord?: [string, string];
36
+ /** Label of the Create button; apps without one show only Search & link, full width. */
37
+ createLabel?: string;
38
+ };
39
+ export declare const APP_SPECS: AppSpec[];
40
+ /** The widget spec for a connector, or null when the app has no widget in M1. */
41
+ export declare const getAppSpec: (connectorName: string | undefined | null) => AppSpec | null;
42
+ //# sourceMappingURL=apps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,gGAAgG;IAChG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,iGAAiG;IACjG,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,uEAAuE;IACvE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA4QF,eAAO,MAAM,SAAS,EAAE,OAAO,EAAsE,CAAC;AAEtG,iFAAiF;AACjF,eAAO,MAAM,UAAU,kBAAmB,MAAM,GAAG,SAAS,GAAG,IAAI,KAAG,OAAO,GAAG,IACiB,CAAC"}
@@ -0,0 +1,53 @@
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
+ type: 'view_all';
17
+ } | {
18
+ type: 'reconnect';
19
+ } | {
20
+ type: 'notify_admin';
21
+ };
22
+ export type AppWidgetTrackingFn = (event: string, data: Record<string, unknown>) => void;
23
+ export type AppWidgetCommonProps = UseAppWidgetDataArgs & {
24
+ isAdmin?: boolean;
25
+ /** Merged into every event: product, user role and view (default or split) are host-owned. */
26
+ trackingContext?: Record<string, unknown>;
27
+ sendTrackingEvent?: AppWidgetTrackingFn;
28
+ };
29
+ export type AppWidgetSummaryProps = AppWidgetCommonProps & {
30
+ /** Reports what the header shows, for hosts that render their own badge or pill. */
31
+ onSummaryChange?: (summary: {
32
+ text: string;
33
+ isLoading: boolean;
34
+ disconnected: boolean;
35
+ }) => void;
36
+ };
37
+ /**
38
+ * The collapsed value for a host's section header ("14 orders"). Blank when nothing is found, a
39
+ * grey placeholder while a slow load runs, and the role's label while the connection is broken.
40
+ */
41
+ export declare const AppWidgetSummary: FC<AppWidgetSummaryProps>;
42
+ export type AppWidgetBodyProps = AppWidgetCommonProps & {
43
+ onAction: (action: AppWidgetAction) => void;
44
+ /** Set by the host once the admin was notified (Notify admin is host-delivered). */
45
+ adminNotified?: boolean;
46
+ };
47
+ /**
48
+ * The expanded widget: the lookup line, up to two record cards, View all, and the app's buttons.
49
+ * Host-agnostic: every click becomes an {@link AppWidgetAction} the host maps to its app tab.
50
+ */
51
+ export declare const AppWidgetBody: FC<AppWidgetBodyProps>;
52
+ export type { AppWidgetModel };
53
+ //# sourceMappingURL=AppWidget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppWidget.d.ts","sourceRoot":"","sources":["../../../../src/features/app-widget/components/AppWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAmBxD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,2FAA2F;AAC3F,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;AAEzF,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8FAA8F;IAC9F,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC,CAAC;AAuBF,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GAAG;IACzD,oFAAoF;IACpF,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CAClG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0CtD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,oFAAoF;IACpF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuFhD,CAAC;AAoLF,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,11 @@
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,17 @@
1
+ import { AppSpec } from './apps';
2
+ /**
3
+ * Widget copy in one place. Several strings are still open product questions (per-app
4
+ * broken-connection wording, restricted-card wording), so they are built here from the app spec
5
+ * rather than inlined in components.
6
+ */
7
+ export declare const emptyStateText: (app: AppSpec) => string;
8
+ export declare const disconnectedText: (app: AppSpec, appName: string, isAdmin: boolean) => string;
9
+ export declare const reconnectLabel: (appName: string) => string;
10
+ export declare const NOTIFY_ADMIN_LABEL = "Notify admin";
11
+ export declare const NOTIFY_ADMIN_SENT_LABEL = "Admin notified";
12
+ /** Collapsed value while the connection is broken, per role (Q30 may change these). */
13
+ export declare const disconnectedSummary: (isAdmin: boolean) => "Reconnect" | "Unavailable";
14
+ export declare const viewAllLabel: (total: number) => string;
15
+ export declare const SEARCH_LINK_LABEL = "Search & link";
16
+ export declare const showingRecordsFor: (key: string) => string;
17
+ //# 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,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;GAIG;AAEH,eAAO,MAAM,cAAc,QAAS,OAAO,KAAG,MAa7C,CAAC;AASF,eAAO,MAAM,gBAAgB,QAAS,OAAO,WAAW,MAAM,WAAW,OAAO,KAAG,MAGqD,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,eAAO,MAAM,YAAY,UAAW,MAAM,WAA+C,CAAC;AAE1F,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,QAAS,MAAM,WAAiC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { CardFieldValue, IListItemFieldData, ISpecificCard } from '../../types/cards';
2
+ import { AppSpec } from './apps';
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
+ /** Reads rows without mutating the response (parseCardData sorts in place). */
13
+ export declare const extractRows: (data: ISpecificCard | null) => Row[];
14
+ export declare const toNumber: (value: CardFieldValue | undefined) => number | null;
15
+ /** "$12.4K"; plain compact number when the row carries no ISO currency code. */
16
+ export declare const formatMoney: (amount: number, currency?: string) => string;
17
+ /**
18
+ * Turns an app's card reads into what the widget shows. Pure: the hook supplies the reads, so
19
+ * this is where the per-category rules (which cards, in which order, what the collapsed value
20
+ * says) live and are tested.
21
+ */
22
+ export declare const buildAppWidgetModel: (app: AppSpec, reads: AppWidgetCardRead[]) => AppWidgetModel;
23
+ export {};
24
+ //# 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":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAe,kBAAkB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,KAAK,EAAE,OAAO,EAAyB,MAAM,QAAQ,CAAC;AAC7D,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;AAmBF,+EAA+E;AAC/E,eAAO,MAAM,WAAW,SAAU,aAAa,GAAG,IAAI,KAAG,GAAG,EAsB3D,CAAC;AAmBF,eAAO,MAAM,QAAQ,UAAW,cAAc,GAAG,SAAS,KAAG,MAAM,GAAG,IAIrE,CAAC;AAOF,gFAAgF;AAChF,eAAO,MAAM,WAAW,WAAY,MAAM,aAAa,MAAM,KAAG,MAS/D,CAAC;AA2RF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAS,OAAO,SAAS,iBAAiB,EAAE,KAAG,cAqB9E,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,44 @@
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
+ export type AppWidgetConnection = 'ok' | 'expired';
27
+ export type AppWidgetModel = {
28
+ category: AppWidgetCategory;
29
+ /** Collapsed value ("14 orders"); empty string when nothing was found. */
30
+ summary: string;
31
+ /** At most two, in the category's order. */
32
+ records: AppWidgetRecord[];
33
+ /** Every record the widget could show; drives "View all (N)". */
34
+ total: number;
35
+ connection: AppWidgetConnection;
36
+ };
37
+ /** One card from the cards list, with its data read (null while unread or failed). */
38
+ export type AppWidgetCardRead = {
39
+ card: ICard;
40
+ data: ISpecificCard | null;
41
+ /** HTTP status of the data read, when it failed. */
42
+ errorStatus?: number;
43
+ };
44
+ //# 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,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,eAAe,GAAG;IAC5B,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oFAAoF;IACpF,MAAM,EAAE,OAAO,CAAC;IAChB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { AppSpec } from './apps';
2
+ import { AppWidgetModel } from './types';
3
+ export type UseAppWidgetDataArgs = {
4
+ connectorId: string;
5
+ connectorName: string;
6
+ conversationId: number;
7
+ /** The email the app's records are looked up by (the conversation's contact). */
8
+ contactEmail: string;
9
+ inboxIds: string[];
10
+ /** Hosts pause reads while the widget is hidden behind a flag or by the user. */
11
+ enabled?: boolean;
12
+ };
13
+ export type AppWidgetData = {
14
+ app: AppSpec | null;
15
+ model: AppWidgetModel | null;
16
+ /** Cards list or a card read still in flight. Hosts show placeholders after a short delay. */
17
+ isLoading: boolean;
18
+ /** Re-reads every card, skipping the server's short cache of keyed reads. */
19
+ refresh: () => void;
20
+ };
21
+ export declare const appWidgetQueryScope: (connectorId: string, conversationId: number) => readonly ["appWidget", string, number];
22
+ /**
23
+ * The widget's own reads. It deliberately does not go through the app tab's redux card slice:
24
+ * that slice is a module singleton the tab clears on unmount, so a widget sharing it would be
25
+ * wiped whenever the tab closes. The requests are the tab's, so both show the same records.
26
+ */
27
+ export declare const useAppWidgetData: ({ connectorId, connectorName, conversationId, contactEmail, inboxIds, enabled }: UseAppWidgetDataArgs) => AppWidgetData;
28
+ //# 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":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG;IACjC,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;IACnB,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IACpB,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,aA0EzB,CAAC"}
package/index.d.ts CHANGED
@@ -32,4 +32,9 @@ 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 { getAppSpec as getAppWidgetSpec } from './features/app-widget/apps';
35
40
  //# 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,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC9G,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAA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