@hiver/connector-agent 4.3.4 → 4.4.1-choreSmartPreviewsEvents-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.
Files changed (48) hide show
  1. package/app/integration-sense/index.d.ts +17 -0
  2. package/app/integration-sense/index.d.ts.map +1 -0
  3. package/app/integration-sense/provider.d.ts +6 -0
  4. package/app/integration-sense/provider.d.ts.map +1 -0
  5. package/components/ui/loader-button/index.d.ts +8 -0
  6. package/components/ui/loader-button/index.d.ts.map +1 -0
  7. package/components/ui/modal/index.d.ts +1 -0
  8. package/components/ui/modal/index.d.ts.map +1 -1
  9. package/context/react-query-client-provider/index.d.ts.map +1 -1
  10. package/features/connector-highlight/api/connector-analytics.d.ts +4 -0
  11. package/features/connector-highlight/api/connector-analytics.d.ts.map +1 -0
  12. package/features/connector-highlight/api/connector-feedback-mutation.d.ts +12 -0
  13. package/features/connector-highlight/api/connector-feedback-mutation.d.ts.map +1 -0
  14. package/features/connector-highlight/components/connector-highlight/index.d.ts +21 -0
  15. package/features/connector-highlight/components/connector-highlight/index.d.ts.map +1 -0
  16. package/features/connector-highlight/components/custom-tooltip/index.d.ts +9 -0
  17. package/features/connector-highlight/components/custom-tooltip/index.d.ts.map +1 -0
  18. package/features/connector-highlight/components/data-card/index.d.ts +17 -0
  19. package/features/connector-highlight/components/data-card/index.d.ts.map +1 -0
  20. package/features/connector-highlight/components/data-card/styles.d.ts +16 -0
  21. package/features/connector-highlight/components/data-card/styles.d.ts.map +1 -0
  22. package/features/connector-highlight/components/feedback-form/index.d.ts +13 -0
  23. package/features/connector-highlight/components/feedback-form/index.d.ts.map +1 -0
  24. package/features/connector-highlight/components/feedback-form/styles.d.ts +6 -0
  25. package/features/connector-highlight/components/feedback-form/styles.d.ts.map +1 -0
  26. package/features/connector-highlight/components/highlighter-test/index.d.ts +4 -0
  27. package/features/connector-highlight/components/highlighter-test/index.d.ts.map +1 -0
  28. package/features/connector-highlight/constant/api.d.ts +4 -0
  29. package/features/connector-highlight/constant/api.d.ts.map +1 -0
  30. package/features/connector-highlight/constant/index.d.ts +30 -0
  31. package/features/connector-highlight/constant/index.d.ts.map +1 -0
  32. package/features/connector-highlight/types/index.d.ts +38 -0
  33. package/features/connector-highlight/types/index.d.ts.map +1 -0
  34. package/features/connector-highlight/utils/highlighter.d.ts +24 -0
  35. package/features/connector-highlight/utils/highlighter.d.ts.map +1 -0
  36. package/features/connector-highlight/utils/index.d.ts +4 -0
  37. package/features/connector-highlight/utils/index.d.ts.map +1 -0
  38. package/index.d.ts +1 -0
  39. package/index.d.ts.map +1 -1
  40. package/index.es.js +7701 -7007
  41. package/index.umd.js +359 -237
  42. package/main.d.ts.map +1 -1
  43. package/package.json +1 -1
  44. package/testing/mocks/handlers/analyse.d.ts +2 -0
  45. package/testing/mocks/handlers/analyse.d.ts.map +1 -0
  46. package/testing/mocks/handlers.d.ts.map +1 -1
  47. package/utils/index.d.ts +1 -0
  48. package/utils/index.d.ts.map +1 -1
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { ITrackingData } from '../../context';
3
+ interface ConnectorFunctions {
4
+ goToApps: () => void;
5
+ redirectToAdmin: (id: string) => void;
6
+ sendTrackingEvent: (event: string, data?: ITrackingData) => void;
7
+ }
8
+ interface IApp {
9
+ conversationId?: string;
10
+ hasSmList: boolean;
11
+ smIds: string[];
12
+ isAdmin: boolean;
13
+ connectorFunctions: ConnectorFunctions;
14
+ }
15
+ export declare const IntegrationSense: FC<IApp>;
16
+ export {};
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/integration-sense/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQ3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAED,UAAU,IAAI;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,IAAI,CA+BrC,CAAC"}
@@ -0,0 +1,6 @@
1
+ type AppProviderProps = {
2
+ children: React.ReactNode;
3
+ };
4
+ export declare const HighlighterAppProvider: ({ children }: AppProviderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/app/integration-sense/provider.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,iBAAkB,gBAAgB,4CAUpE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from '@hiver/hiver-ui-kit';
2
+ type LoaderButtonProps = ButtonProps & {
3
+ isLoading?: boolean;
4
+ label: string;
5
+ };
6
+ export declare const LoaderButton: (props: LoaderButtonProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAoB,MAAM,qBAAqB,CAAC;AAE5E,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAIpD,CAAC"}
@@ -5,6 +5,7 @@ interface IModalProps {
5
5
  children: ReactNode;
6
6
  showCloseButton?: boolean;
7
7
  borderRadius?: number;
8
+ sx?: React.CSSProperties;
8
9
  }
9
10
  export declare const Modal: React.FC<IModalProps>;
10
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,UAAU,WAAW;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkCvC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,UAAU,WAAW;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/react-query-client-provider/index.tsx"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAIF,QAAA,MAAM,wBAAwB,iBAAkB,uBAAuB,4CAEtE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/react-query-client-provider/index.tsx"],"names":[],"mappings":"AAGA,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,wBAAwB,iBAAkB,uBAAuB,4CAGtE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AnalysisData } from '../types';
2
+ export declare const getConnectorAnalytics: (conversationId: string) => Promise<any>;
3
+ export declare function useConnectorAnalytics(conversationId: string | undefined, hasSmList: boolean): import('@tanstack/react-query').UseQueryResult<AnalysisData | null, Error>;
4
+ //# sourceMappingURL=connector-analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-analytics.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/api/connector-analytics.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,UAAU,CAAC;AAG/D,eAAO,MAAM,qBAAqB,mBAA0B,MAAM,iBAuBjE,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,OAAO,8EAU3F"}
@@ -0,0 +1,12 @@
1
+ import { IFeedbackData } from '../types';
2
+ interface SubmitFeedbackParams {
3
+ conversationId: string;
4
+ feedbackData: IFeedbackData;
5
+ }
6
+ interface FeedbackResponse {
7
+ success: boolean;
8
+ message?: string;
9
+ }
10
+ export declare function useConnectorFeedback(): import('@tanstack/react-query').UseMutationResult<FeedbackResponse, Error, SubmitFeedbackParams, unknown>;
11
+ export {};
12
+ //# sourceMappingURL=connector-feedback-mutation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-feedback-mutation.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/api/connector-feedback-mutation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,oBAAoB;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,aAAa,CAAC;CAC7B;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,oBAAoB,8GAiBnC"}
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { GmailHighlighter } from '../../utils/highlighter';
3
+ import { ITrackingData } from '../../../../context';
4
+ interface IConnectorHighlighter {
5
+ conversationId?: string;
6
+ hasSmList: boolean;
7
+ smIds: string[];
8
+ isAdmin: boolean;
9
+ goToApps: () => void;
10
+ redirectToAdmin: (id: string) => void;
11
+ sendTrackingEvent: (event: string, data?: ITrackingData) => void;
12
+ }
13
+ declare global {
14
+ interface Window {
15
+ gmailHighlighter?: GmailHighlighter;
16
+ tooltipCleanup?: () => void;
17
+ }
18
+ }
19
+ export declare const ConnectorHighlighter: React.FC<IConnectorHighlighter>;
20
+ export {};
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/connector-highlight/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,UAAU,qBAAqB;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;KAC7B;CACF;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmFhE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface TooltipByElementsProps {
3
+ elements: HTMLElement[];
4
+ title: string | React.ReactNode | ((key: string, fn: () => void) => React.ReactNode);
5
+ onKeyChange?: (key: string) => void;
6
+ }
7
+ export declare function TooltipByElements({ elements, title, onKeyChange }: TooltipByElementsProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/custom-tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACrF,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAmBD,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,sBAAsB,2CAwJzF"}
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { AnalysisDataItem } from '../../types';
3
+ import { ITrackingData } from '../../../../context';
4
+ interface DataCardProps {
5
+ analysisData: AnalysisDataItem;
6
+ conversationId: string;
7
+ isAdmin?: boolean;
8
+ smIds: string[];
9
+ showGoToApp?: boolean;
10
+ redirectToAdmin: (id: string) => void;
11
+ goToApps: () => void;
12
+ hideTooltip: () => void;
13
+ sendTrackingEvent: (event: string, data?: ITrackingData) => void;
14
+ }
15
+ export declare const DataCard: React.FC<DataCardProps>;
16
+ export {};
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/data-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA8C5D,OAAO,KAAK,EAA8C,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,UAAU,aAAa;IACrB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiO5C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { StyledComponent } from '@emotion/styled';
2
+ import { BoxProps, ButtonProps, TooltipProps, TypographyProps } from '@hiver/hiver-ui-kit';
3
+ export declare const CardWrapper: StyledComponent<BoxProps>;
4
+ export declare const CardHeader: StyledComponent<BoxProps>;
5
+ export declare const CardTitle: StyledComponent<TypographyProps & {
6
+ width?: string;
7
+ }>;
8
+ export declare const HorizontalLine: StyledComponent<BoxProps>;
9
+ export declare const DataWrapper: StyledComponent<BoxProps>;
10
+ export declare const DataLabel: StyledComponent<TypographyProps>;
11
+ export declare const DataValue: StyledComponent<TypographyProps>;
12
+ export declare const DataItem: StyledComponent<BoxProps>;
13
+ export declare const FixedFooter: StyledComponent<BoxProps>;
14
+ export declare const FeedbackTooltip: StyledComponent<TooltipProps>;
15
+ export declare const GoToButton: StyledComponent<ButtonProps>;
16
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/data-card/styles.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEhG,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAUjD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAMhD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAM3E,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAIpD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAMjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAQtD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAStD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAI9C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAQjD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,YAAY,CAGzD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,WAAW,CAMnD,CAAC"}
@@ -0,0 +1,13 @@
1
+ interface FeedbackFormProps {
2
+ onCancel: () => void;
3
+ onSubmit: (data: {
4
+ feedbackOption: string;
5
+ feedbackComment: string;
6
+ }) => void;
7
+ isLoading: boolean;
8
+ showOptions?: boolean;
9
+ title: string;
10
+ }
11
+ export declare const FeedbackForm: ({ onCancel, onSubmit, isLoading, showOptions, title }: FeedbackFormProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/feedback-form/index.tsx"],"names":[],"mappings":"AAUA,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9E,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,YAAY,0DAAkE,iBAAiB,4CAwE3G,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { StyledComponent } from '@emotion/styled';
2
+ import { BoxProps } from '@hiver/hiver-ui-kit';
3
+ export declare const FeedbackWrapper: StyledComponent<BoxProps>;
4
+ export declare const HorizontalLine: StyledComponent<BoxProps>;
5
+ export declare const ButtonWrapper: StyledComponent<BoxProps>;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/feedback-form/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,QAAQ,CAcrD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAGpD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAKnD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare const HighlighterTest: React.FC;
3
+ export default HighlighterTest;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-highlight/components/highlighter-test/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAoDnC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const BASE_URL = "/v1/api";
2
+ export declare const FETCH_CONVERSATION_ANALYSIS: string;
3
+ export declare const SUBMIT_FEEDBACK: string;
4
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/constant/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,2BAA2B,EAAE,MAAkE,CAAC;AAC7G,eAAO,MAAM,eAAe,EAAE,MAAsE,CAAC"}
@@ -0,0 +1,30 @@
1
+ export declare const THUMBS_UP_MSG = "Everything looks good";
2
+ export declare const THUMBS_DOWN_MSG = "Something is not working";
3
+ export declare const FEEDBACK_MSG = "Share feedback";
4
+ export declare const SETTINGS_MSG = "Manage Smart Previews";
5
+ export declare const REACH_TO_ADMIN_MSG = "Reach out to your admin to disable this feature";
6
+ export declare const INFO_MSG = "Reach out to your admin to disable this feature";
7
+ export declare const GO_TO_APPS = "Go to Apps";
8
+ export declare const DISABLE_FEATURE = "Disable Feature";
9
+ export declare const THUMBS_DOWN_FEEDBACK_FORM_TITLE = "Tell us what went wrong";
10
+ export declare const GENERIC_FEEDBACK_FORM_TITLE = "Please provide feedback";
11
+ export declare const FEEDBACK_OPTIONS: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ export declare const FEEDBACK_INPUT_PLACEHOLDER_OPTIONAL = "Tell us more (optional)";
16
+ export declare const FEEDBACK_INPUT_PLACEHOLDER = "Enter your feedback";
17
+ export declare const VALUE_TRUNCATE_LENGTH = 40;
18
+ export declare const SUCCESS_FEEDBACK_TOAST_MSG = "Feedback submitted";
19
+ export declare const FAILED_FEEDBACK_TOAST_MSG = "Failed to submit feedback";
20
+ export declare const TRACKING_EVENTS: {
21
+ OBJECT_HIGHLIGHTED: string;
22
+ OBJECT_HOVERED: string;
23
+ PERMALINK_CLICKED: string;
24
+ POSITIVE_FEEDBACK_CLICKED: string;
25
+ NEGATIVE_FEEDBACK_CLICKED: string;
26
+ NEGATIVE_FEEDBACK_SUBMITTED: string;
27
+ FEEDBACK_OPTION_CLICKED: string;
28
+ FEEDBACK_OPTION_SUBMITTED: string;
29
+ };
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/constant/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,YAAY,0BAA0B,CAAC;AACpD,eAAO,MAAM,kBAAkB,oDAAoD,CAAC;AACpF,eAAO,MAAM,QAAQ,oDAAoD,CAAC;AAC1E,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,+BAA+B,4BAA4B,CAAC;AACzE,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;GAI5B,CAAC;AAEF,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAC7E,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAChE,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,0BAA0B,uBAAuB,CAAC;AAC/D,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,eAAe;;;;;;;;;CAS3B,CAAC"}
@@ -0,0 +1,38 @@
1
+ export interface AnalysisDataItem {
2
+ cardData: {
3
+ data?: {
4
+ flatDetails?: {
5
+ data: CardItem[];
6
+ };
7
+ };
8
+ logoUrl?: string;
9
+ textToHighlight: string;
10
+ externalResourceId: string;
11
+ cardTitle: string;
12
+ id: string;
13
+ connectorId: string;
14
+ cardKey: string;
15
+ };
16
+ }
17
+ export interface CardItem {
18
+ key: string;
19
+ label: string;
20
+ value: string;
21
+ deepLink?: string;
22
+ priority: number;
23
+ }
24
+ export type AnalysisData = Record<string, AnalysisDataItem>;
25
+ export interface IUserFeedbackData {
26
+ feedbackOption?: string;
27
+ feedbackComment?: string;
28
+ isThumbsUp?: boolean;
29
+ }
30
+ export interface IFeedbackData {
31
+ card_id: string;
32
+ entity_id: string;
33
+ comment?: string;
34
+ positive_feedback?: boolean;
35
+ feedback_type: string;
36
+ option?: string;
37
+ }
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE;YACL,WAAW,CAAC,EAAE;gBACZ,IAAI,EAAE,QAAQ,EAAE,CAAC;aAClB,CAAC;SACH,CAAC;QACF,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,SAAS,EAAE,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,24 @@
1
+ export declare class GmailHighlighter {
2
+ private highlightTerms;
3
+ private observer;
4
+ private isHighlighting;
5
+ private debounceTimer;
6
+ private debounceDelay;
7
+ private onHighlightsUpdated;
8
+ constructor(highlightTerms?: string[], onHighlightsUpdated?: ((elements: HTMLElement[]) => void) | null);
9
+ init(): void;
10
+ startObserver(): void;
11
+ findGmailContainer(): Element | null;
12
+ debounceHighlight(): void;
13
+ highlightAllEmails(): void;
14
+ isElementVisible(element: Element): boolean;
15
+ highlightInElement(element: Element): void;
16
+ highlightInTextNode(textNode: Node): void;
17
+ clearHighlights(): void;
18
+ escapeRegex(string: string): string;
19
+ refreshHighlights(): void;
20
+ updateHighlightTerms(newTerms: string[] | null): void;
21
+ destroy(): void;
22
+ }
23
+ export default GmailHighlighter;
24
+ //# sourceMappingURL=highlighter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlighter.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/utils/highlighter.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,cAAc,CAAW;IACjC,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,cAAc,CAAU;IAChC,OAAO,CAAC,aAAa,CAAwB;IAC7C,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,mBAAmB,CAA6C;gBAE5D,cAAc,GAAE,MAAM,EAAO,EAAE,mBAAmB,GAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC,GAAG,IAAW;IAWjH,IAAI;IAOJ,aAAa;IA8Cb,kBAAkB,IAAI,OAAO,GAAG,IAAI;IAUpC,iBAAiB,IAAI,IAAI;IAWzB,kBAAkB,IAAI,IAAI;IA4C1B,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAM3C,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAmC1C,mBAAmB,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI;IAkCzC,eAAe;IAiBf,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAInC,iBAAiB;IAIjB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,IAAI;IAKrD,OAAO;CAcR;AAuCD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TooltipProps } from '@hiver/hiver-ui-kit';
2
+ export declare const isPointInRect: (x: number, y: number, rect: DOMRect, buffer?: number) => boolean;
3
+ export declare const calculatePlacement: (target: HTMLElement, tooltipHeight?: number, tooltipWidth?: number) => TooltipProps["placement"];
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-highlight/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,eAAO,MAAM,aAAa,MAAO,MAAM,KAAK,MAAM,QAAQ,OAAO,sBAAgB,OAEhF,CAAC;AAGF,eAAO,MAAM,kBAAkB,WACrB,WAAW,kBACJ,MAAM,iBACP,MAAM,KACnB,YAAY,CAAC,WAAW,CA2B1B,CAAC"}
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { App as ConnectorCardList } from './app/index';
2
2
  export { CONNECTORS_AGENT_EVENTS } from './app/constants';
3
+ export { IntegrationSense } from './app/integration-sense';
3
4
  export { initConnectorsBifrost, getConnectorsBifrostConfigs, HiverConnectorBifrostAuth } from '@connector/bifrost';
4
5
  export { getMetaData } from '@connector/utils';
5
6
  export { addNewConnectors, shouldCaptureFeedback, setCaptureFeedbackOnDemand, dismissNotification, shouldShowNotification } from '@connector/indexeddb';
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,qBAAqB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,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"}
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,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"}