@hiver/connector-agent 4.24.0-pmSearchLink-beta.1 → 4.24.0-pmSearchLink-beta.3
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/connector-cards.d.ts.map +1 -1
- package/components/ui/layover/view.d.ts +2 -1
- package/components/ui/layover/view.d.ts.map +1 -1
- package/features/connector-cards/api/idLookup.d.ts +12 -1
- package/features/connector-cards/api/idLookup.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts +1 -1
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/ListCards.d.ts +1 -1
- package/features/connector-cards/components/card-list/ListCards.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/cards-view.d.ts +1 -1
- package/features/connector-cards/components/card-list/cards-view.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/email-selection.d.ts +2 -1
- package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
- package/features/connector-cards/components/connector-header/index.d.ts +1 -0
- package/features/connector-cards/components/connector-header/index.d.ts.map +1 -1
- package/features/connector-cards/hooks/useIdLookup.d.ts +8 -5
- package/features/connector-cards/hooks/useIdLookup.d.ts.map +1 -1
- package/features/connector-cards/hooks/useRelatedRecords.d.ts.map +1 -1
- package/features/connector-cards/utils/idLookup.d.ts +14 -4
- package/features/connector-cards/utils/idLookup.d.ts.map +1 -1
- package/features/global-search/components/preview-and-link/index.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-linking.d.ts +2 -1
- package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
- package/features/write-form/components/link-search/constants.d.ts +25 -12
- package/features/write-form/components/link-search/constants.d.ts.map +1 -1
- package/features/write-form/components/link-search/index.d.ts.map +1 -1
- package/features/write-form/components/link-search/level-fields.d.ts +8 -5
- package/features/write-form/components/link-search/level-fields.d.ts.map +1 -1
- package/features/write-form/components/link-search/link-menu.d.ts +31 -0
- package/features/write-form/components/link-search/link-menu.d.ts.map +1 -0
- package/features/write-form/components/link-search/link-select.d.ts +24 -0
- package/features/write-form/components/link-search/link-select.d.ts.map +1 -0
- package/features/write-form/components/link-search/styles.d.ts +41 -0
- package/features/write-form/components/link-search/styles.d.ts.map +1 -1
- package/features/write-form/components/link-search/task-search.d.ts +7 -4
- package/features/write-form/components/link-search/task-search.d.ts.map +1 -1
- package/features/write-form/components/link-search/use-menu-keys.d.ts +12 -0
- package/features/write-form/components/link-search/use-menu-keys.d.ts.map +1 -0
- package/features/write-form/components/link-search/utils.d.ts +3 -1
- package/features/write-form/components/link-search/utils.d.ts.map +1 -1
- package/index.es.js +13284 -12586
- package/index.umd.js +998 -695
- package/package.json +1 -1
- package/store/idLookupKeyStore.d.ts +1 -2
- package/store/idLookupKeyStore.d.ts.map +1 -1
- package/testing/mocks/handlers/id-lookup-qa.d.ts.map +1 -1
- package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
- package/types/cards.d.ts +5 -4
- package/types/cards.d.ts.map +1 -1
- package/types/form.d.ts +2 -0
- package/types/form.d.ts.map +1 -1
|
@@ -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;AAqH3G,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CAm6BxC,CAAC"}
|
|
@@ -3,8 +3,9 @@ interface LayoverProps {
|
|
|
3
3
|
rightNode?: React.ReactNode;
|
|
4
4
|
title?: string;
|
|
5
5
|
backButtonTooltip?: string;
|
|
6
|
+
hideBar?: boolean;
|
|
6
7
|
onClose: () => void;
|
|
7
8
|
}
|
|
8
|
-
declare const Layover: ({ children, rightNode, title, backButtonTooltip, onClose }: LayoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const Layover: ({ children, rightNode, title, backButtonTooltip, hideBar, onClose }: LayoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default Layover;
|
|
10
11
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/view.tsx"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/view.tsx"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,wEAAkF,YAAY,4CAsB1G,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICardTypes, IdLookupRecordCard, ISpecificCardDataSlice } from '../../../types/cards';
|
|
1
|
+
import { ICardTypes, IdLookupRecordCard, ISpecificCardDataSlice, LinkedRecord } from '../../../types/cards';
|
|
2
2
|
export type IdLookupOption = {
|
|
3
3
|
connectorId: string;
|
|
4
4
|
value: string;
|
|
@@ -11,11 +11,22 @@ export type IdLookupOption = {
|
|
|
11
11
|
isRelated?: boolean;
|
|
12
12
|
displayValue?: string;
|
|
13
13
|
};
|
|
14
|
+
export type SavedRelatedKey = {
|
|
15
|
+
connectorId: string;
|
|
16
|
+
hiverParam: string;
|
|
17
|
+
value: string;
|
|
18
|
+
label?: string | null;
|
|
19
|
+
linked: LinkedRecord;
|
|
20
|
+
refreshCardIds: string[];
|
|
21
|
+
resolvedAt?: string | null;
|
|
22
|
+
};
|
|
14
23
|
export type IdLookupOptionsData = {
|
|
15
24
|
status?: 'pending' | 'ready' | 'completed';
|
|
16
25
|
options: IdLookupOption[];
|
|
17
26
|
defaults?: Record<string, string>;
|
|
27
|
+
relatedKeys?: SavedRelatedKey[];
|
|
18
28
|
};
|
|
29
|
+
export declare const idLookupOptionsQueryKey: (conversationId?: number) => (string | number | undefined)[];
|
|
19
30
|
export declare const fetchIdLookupOptions: (conversationId: number) => Promise<IdLookupOptionsData>;
|
|
20
31
|
export declare const useIdLookupOptionsQuery: ({ conversationId, enabled }: {
|
|
21
32
|
conversationId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/idLookup.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"idLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/idLookup.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1G,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IAGvB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAEhC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAIF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAEhC,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IAC3C,OAAO,EAAE,cAAc,EAAE,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,oBAAqB,MAAM,oCAA4C,CAAC;AAE5G,eAAO,MAAM,oBAAoB,mBAA0B,MAAM,KAAG,OAAO,CAAC,mBAAmB,CAkB9F,CAAC;AAEF,eAAO,MAAM,uBAAuB,gCAAiC;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,+EAqBjH,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,IAAI,EAAE;QACJ,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;QACnD,SAAS,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAC;QAC/C,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEN,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,6DAK7B;IACD,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,KAAG,OAAO,CAAC,sBAAsB,CAmBjC,CAAC"}
|
|
@@ -10,7 +10,7 @@ interface IProps {
|
|
|
10
10
|
specificConnectorApiStatus: {
|
|
11
11
|
[key: string]: ApiStatus;
|
|
12
12
|
} | null;
|
|
13
|
-
onCardUnlinking: () => void;
|
|
13
|
+
onCardUnlinking: (card?: ICard) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const Card: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AA0BhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8BxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AA0BhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8BxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CAsTjC,CAAC"}
|
|
@@ -7,7 +7,7 @@ interface IProps {
|
|
|
7
7
|
specificCardData: Record<string, ISpecificCard> | null;
|
|
8
8
|
specificConnectorApiStatus: Record<string, ApiStatus> | null;
|
|
9
9
|
defaultOpenState: boolean;
|
|
10
|
-
onCardUnlinking: () => void;
|
|
10
|
+
onCardUnlinking: (card?: ICard) => void;
|
|
11
11
|
isPrimaryUserAuthCard?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardWithUserAuth.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardWithUserAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAW3B,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"CardWithUserAuth.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardWithUserAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAW3B,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAKxC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAkGvC,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface IProps {
|
|
|
6
6
|
email: string;
|
|
7
7
|
specificCardData: Record<string, ISpecificCard> | null;
|
|
8
8
|
specificConnectorApiStatus: Record<string, ApiStatus> | null;
|
|
9
|
-
onCardUnlinking: () => void;
|
|
9
|
+
onCardUnlinking: (card?: ICard) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const ListCards: FC<IProps>;
|
|
12
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListCards.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/ListCards.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,UAAU,MAAM;IACd,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"ListCards.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/ListCards.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,UAAU,MAAM;IACd,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,MAAM,CA+ChC,CAAC"}
|
|
@@ -8,7 +8,7 @@ interface CardsViewProps {
|
|
|
8
8
|
specificCardData: Record<string, ISpecificCard> | null;
|
|
9
9
|
email: string;
|
|
10
10
|
specificConnectorApiStatus: Record<string, ApiStatus> | null;
|
|
11
|
-
onCardUnlinking: () => void;
|
|
11
|
+
onCardUnlinking: (card?: ICard) => void;
|
|
12
12
|
getCreateBanner: () => JSX.Element;
|
|
13
13
|
}
|
|
14
14
|
export declare const CardsView: ({ isSearchPending, searchResults, cards, specificCardData, email, specificConnectorApiStatus, onCardUnlinking, getCreateBanner }: CardsViewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards-view.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/cards-view.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAWnE,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"cards-view.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/cards-view.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAWnE,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,eAAe,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,SAAS,qIASnB,cAAc,mDA6BhB,CAAC"}
|
|
@@ -10,12 +10,13 @@ interface IProps {
|
|
|
10
10
|
emailHeaders?: Record<string, string>;
|
|
11
11
|
setSelectedEmail: (key: string) => void;
|
|
12
12
|
isLoading: boolean;
|
|
13
|
+
isKeyLoading?: boolean;
|
|
13
14
|
idOptionGroups?: IIdOptionGroup[];
|
|
14
15
|
selectedIdOption?: IdLookupOption;
|
|
15
16
|
onSelectIdOption?: (option: IdLookupOption) => void;
|
|
16
17
|
onSelectEmail?: (email: string) => void;
|
|
17
18
|
persistEmailSelection?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const EmailSelection: ({ selectedEmail, emailHeaders, root, isLoading, setSelectedEmail, idOptionGroups, selectedIdOption, onSelectIdOption, onSelectEmail, persistEmailSelection }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const EmailSelection: ({ selectedEmail, emailHeaders, root, isLoading, isKeyLoading, setSelectedEmail, idOptionGroups, selectedIdOption, onSelectIdOption, onSelectEmail, persistEmailSelection }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
21
22
|
//# sourceMappingURL=email-selection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-selection.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/email-selection.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAkB9E,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IAGpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"email-selection.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/email-selection.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAkB9E,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IAGpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,EAAE,OAAO,CAAC;IAGnB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAElC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAEpD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAGxC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAgMD,eAAO,MAAM,cAAc,+KAYxB,MAAM,4CA+ER,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface ConnectorHeaderProps {
|
|
|
8
8
|
cards: ICard[] | null;
|
|
9
9
|
handleCreateNewObject: () => void;
|
|
10
10
|
handleLinkNewObject: () => void;
|
|
11
|
+
onBack?: () => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const ConnectorHeader: FC<ConnectorHeaderProps>;
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/connector-header/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/connector-header/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,EAAE,EAAoB,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACtB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAEhC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6JpD,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { ITrackingData } from '../../../context';
|
|
2
2
|
import { IdLookupOption } from '../api/idLookup';
|
|
3
|
-
import { IdLookupKey } from '../../../types/cards';
|
|
3
|
+
import { IdLookupKey, LinkedRecord } from '../../../types/cards';
|
|
4
4
|
export declare const ID_LOOKUP_PAGE = "agent_connector_panel";
|
|
5
5
|
interface IProps {
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
/** connectorId → app name, for event props and dropdown group headings. */
|
|
8
8
|
appNames: Record<string, string>;
|
|
9
9
|
}
|
|
10
|
+
type SelectionSource = Extract<IdLookupKey['source'], 'manual' | 'default_preselect'> | 'related_saved';
|
|
10
11
|
/**
|
|
11
12
|
* ID-as-key state for the panel: the conversation's ID options, each app's
|
|
12
|
-
* active key, and R6 — an app
|
|
13
|
-
* card reads until the options arrive
|
|
14
|
-
*
|
|
13
|
+
* active key, and R6 — an app with a saved related key, or whose admin
|
|
14
|
+
* default is an ID field, holds its card reads until the options arrive
|
|
15
|
+
* (capped at ~2s). It then pre-selects the newest related key, else the first
|
|
16
|
+
* value for the default field, else stays on the email until the next open.
|
|
15
17
|
*/
|
|
16
18
|
export declare const useIdLookup: ({ enabled, appNames }: IProps) => {
|
|
17
19
|
optionsByConnector: Record<string, IdLookupOption[]>;
|
|
@@ -19,8 +21,9 @@ export declare const useIdLookup: ({ enabled, appNames }: IProps) => {
|
|
|
19
21
|
[x: string]: import('../../../store/idLookupKeyStore').ActiveIdLookupKey;
|
|
20
22
|
};
|
|
21
23
|
heldConnectorIds: "all" | ReadonlySet<string>;
|
|
22
|
-
selectIdOption: (option: IdLookupOption, source:
|
|
24
|
+
selectIdOption: (option: IdLookupOption, source: SelectionSource) => void;
|
|
23
25
|
setRelatedKey: (relatedConnectorId: string, key: Omit<IdLookupKey, "source">) => void;
|
|
26
|
+
handleRecordUnlinked: (appId: string, linked: LinkedRecord) => boolean;
|
|
24
27
|
clearIdKeys: () => void;
|
|
25
28
|
trackIdLookupEvent: (event: string, eventConnectorId: string, extra?: ITrackingData) => void;
|
|
26
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIdLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/hooks/useIdLookup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIdLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/hooks/useIdLookup.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,yCAAyC,CAAC;AAEnG,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE/D,eAAO,MAAM,cAAc,0BAA0B,CAAC;AAEtD,UAAU,MAAM;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAaD,KAAK,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAAC,GAAG,eAAe,CAAC;AAExG;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,0BAA2B,MAAM;;;;;;6BAoD5C,cAAc,UAAU,eAAe;wCAqC3B,MAAM,OAAO,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;kCAmCrD,MAAM,UAAU,YAAY;;gCAtF5B,MAAM,oBAAoB,MAAM,UAAU,aAAa;CAwMlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRelatedRecords.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/hooks/useRelatedRecords.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRelatedRecords.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/hooks/useRelatedRecords.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAE3B,YAAY,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC/B;AAMD,UAAU,MAAM;IACd,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,IAAI,CAAC;IAC/E,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACxF;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,0CAA2C,MAAM;iCA4BlE,oBAAoB;;;;;;;;;;;;mCAcd,oBAAoB,mBAAmB,KAAK,EAAE;sCA0F/C,MAAM;CAQvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IdLookupOption, RelatedRecordsResponse } from '../api/idLookup';
|
|
2
|
-
import { ICard, ISpecificCard, IdLookupKey } from '../../../types/cards';
|
|
1
|
+
import { IdLookupOption, RelatedRecordsResponse, SavedRelatedKey } from '../api/idLookup';
|
|
2
|
+
import { ICard, ISpecificCard, IdLookupKey, LinkedRecord } from '../../../types/cards';
|
|
3
3
|
export declare const MAX_ID_OPTIONS_PER_APP = 5;
|
|
4
4
|
/** `<value> (<label>)`, e.g. `SO97 (Order ID)` or `Acme Inc (Customer)`. */
|
|
5
5
|
export declare const formatIdOptionLabel: ({ value, label, displayValue }: Pick<IdLookupOption, "value" | "label" | "displayValue">) => string;
|
|
@@ -8,6 +8,15 @@ export declare const groupIdOptionsByConnector: (options: IdLookupOption[]) => R
|
|
|
8
8
|
export declare const toIdLookupKey: (option: IdLookupOption, source: IdLookupKey["source"]) => IdLookupKey;
|
|
9
9
|
/** The dropdown option for an app's related key (Link all related records). */
|
|
10
10
|
export declare const toRelatedIdOption: (connectorId: string, key: IdLookupKey) => IdLookupOption;
|
|
11
|
+
/**
|
|
12
|
+
* connectorId → that app's saved related keys, newest first. Links that gave
|
|
13
|
+
* the same key are merged into one key carrying all of them.
|
|
14
|
+
*/
|
|
15
|
+
export declare const groupSavedRelatedKeys: (saved?: SavedRelatedKey[]) => Record<string, IdLookupKey[]>;
|
|
16
|
+
/** Puts a just-saved key first, replacing what that link saved before. */
|
|
17
|
+
export declare const withSavedRelatedKey: (saved: SavedRelatedKey[] | undefined, entry: SavedRelatedKey) => SavedRelatedKey[];
|
|
18
|
+
/** Drops what a link saved, once it is unlinked or its lookup found nothing. */
|
|
19
|
+
export declare const withoutSavedRelatedKey: (saved: SavedRelatedKey[] | undefined, linked: LinkedRecord) => SavedRelatedKey[];
|
|
11
20
|
/**
|
|
12
21
|
* The option an app's active key corresponds to, if any. Matched on value, not
|
|
13
22
|
* hiverParam: a related key selects an extracted ID with its value when there
|
|
@@ -15,8 +24,9 @@ export declare const toRelatedIdOption: (connectorId: string, key: IdLookupKey)
|
|
|
15
24
|
*/
|
|
16
25
|
export declare const findOptionForKey: (options?: IdLookupOption[], key?: Pick<IdLookupKey, "value">) => IdLookupOption | undefined;
|
|
17
26
|
/**
|
|
18
|
-
* While an app is keyed on a related key, only the
|
|
19
|
-
* the related cards are shown for it — also after a remount
|
|
27
|
+
* While an app is keyed on a related key, only the cards of the records linked
|
|
28
|
+
* with that key and the related cards are shown for it — also after a remount
|
|
29
|
+
* reloads the list.
|
|
20
30
|
*/
|
|
21
31
|
export declare const withRelatedCardsOnly: (cards: ICard[], keys: Record<string, IdLookupKey>) => ICard[];
|
|
22
32
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/utils/idLookup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"idLookup.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/utils/idLookup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AACvH,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAsB,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGzG,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,mCAI7B,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,GAAG,cAAc,CAAC,WACY,CAAC;AAExE,6EAA6E;AAC7E,eAAO,MAAM,yBAAyB,YAAa,cAAc,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CASpG,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,cAAc,UAAU,WAAW,CAAC,QAAQ,CAAC,KAAG,WAUpF,CAAC;AAEH,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,OAAO,WAAW,KAAG,cAUxE,CAAC;AAKH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAAW,eAAe,EAAE,KAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAmBjG,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,UAAW,eAAe,EAAE,qBAAc,eAAe,sBAGxF,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,sBAAsB,UAAW,eAAe,EAAE,sBAAe,YAAY,sBAClC,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,aAAa,cAAc,EAAE,QAAa,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,+BACzB,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAW,KAAK,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAG,KAAK,EAU1F,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,KAAK,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAG,KAAK,EA8B1F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,wCAI3B;IACD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,EAAE,CAAC;CACnB,KAAG;IAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAkD5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/preview-and-link/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/preview-and-link/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoChE,UAAU,MAAM;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAE/C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACzE;AAED,eAAO,MAAM,cAAc,wIAMxB,MAAM,4CAgHR,CAAC"}
|
|
@@ -2,7 +2,8 @@ interface IProps {
|
|
|
2
2
|
setOpenTaskLinking: (value: boolean) => void;
|
|
3
3
|
onCancel: () => void;
|
|
4
4
|
onLinkingSuccess: () => void;
|
|
5
|
+
onSearchViewChange?: (isSearchView: boolean) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const CardLinking: ({ setOpenTaskLinking, onCancel, onLinkingSuccess }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const CardLinking: ({ setOpenTaskLinking, onCancel, onLinkingSuccess, onSearchViewChange }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
8
9
|
//# 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;
|
|
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;CACtD;AAED,eAAO,MAAM,WAAW,2EAA4E,MAAM,4CA6OzG,CAAC"}
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
+
export declare const LINK_AN_OBJECT = "Link an object";
|
|
1
2
|
export declare const SEARCH_OR_PASTE_LABEL = "Search or paste a link";
|
|
2
|
-
export declare const SEARCH_OR_PASTE_PLACEHOLDER = "Search or paste URL/ID";
|
|
3
|
-
export declare const TASK_SEARCH_PLACEHOLDER = "Search by name or ID";
|
|
4
|
-
export declare const LEVEL_PLACEHOLDER = "Select an item";
|
|
5
3
|
export declare const NO_RESULTS = "No results found";
|
|
6
4
|
export declare const INVALID_LINK = "This link is invalid";
|
|
7
5
|
export declare const OR_DIVIDER = "or";
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
export declare const MENU_SEARCH_PLACEHOLDER = "Search...";
|
|
7
|
+
export declare const LINK = "Link";
|
|
8
|
+
export declare const CANCEL = "Cancel";
|
|
9
|
+
export declare const ALREADY_LINKED_TOOLTIP = "Already linked to this conversation";
|
|
10
|
+
export declare const RECENT_CAP_NOTE = "Results from the 1,000 most recently updated tasks";
|
|
11
|
+
export declare const SEARCH_FAILED = "Search didn't work.";
|
|
12
|
+
export declare const SEARCH_RETRY = "Try again";
|
|
13
|
+
export declare const LOCATION_GONE = "This location wasn't found. Choose it again.";
|
|
14
|
+
export declare const getGlobalPlaceholder: (objectLabel?: string) => string;
|
|
15
|
+
export declare const getSelectPlaceholder: (level: string) => string;
|
|
16
|
+
export declare const getSelectFirstPlaceholder: (parent: string) => string;
|
|
17
|
+
export declare const getEmptyLevelMessage: (parent?: string) => string;
|
|
18
|
+
export declare const getOptionalHint: (child: string, level: string) => string;
|
|
19
|
+
export declare const getSearchingCopy: (app: string) => string;
|
|
20
|
+
export declare const getNoAccessCopy: (id: string, app: string) => string;
|
|
21
|
+
export declare const getNotFoundCopy: (id: string) => string;
|
|
22
|
+
export declare const getExpiredCopy: (app: string, isAgentConnection: boolean, objectLabel?: string) => {
|
|
23
|
+
title: string;
|
|
24
|
+
body: string;
|
|
25
|
+
action: string;
|
|
26
|
+
} | {
|
|
27
|
+
title: string;
|
|
28
|
+
body: string;
|
|
29
|
+
action: null;
|
|
15
30
|
};
|
|
16
|
-
export declare const TRY_AGAIN = "Try again";
|
|
17
|
-
export declare const getEmptyLevelMessage: (level: string, parentLevel?: string) => string;
|
|
18
31
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAC9D,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAC9D,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAC7C,eAAO,MAAM,YAAY,yBAAyB,CAAC;AACnD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,sBAAsB,wCAAwC,CAAC;AAC5E,eAAO,MAAM,eAAe,uDAAuD,CAAC;AAGpF,eAAO,MAAM,aAAa,wBAAwB,CAAC;AACnD,eAAO,MAAM,YAAY,cAAc,CAAC;AAExC,eAAO,MAAM,aAAa,iDAAiD,CAAC;AAS5E,eAAO,MAAM,oBAAoB,kCACuB,CAAC;AAGzD,eAAO,MAAM,oBAAoB,UAAW,MAAM,WAA+C,CAAC;AAGlG,eAAO,MAAM,yBAAyB,WAAY,MAAM,WAAuD,CAAC;AAGhH,eAAO,MAAM,oBAAoB,YAAa,MAAM,WACiB,CAAC;AAGtE,eAAO,MAAM,eAAe,UAAW,MAAM,SAAS,MAAM,WACc,CAAC;AAG3E,eAAO,MAAM,gBAAgB,QAAS,MAAM,WAAwB,CAAC;AAErE,eAAO,MAAM,eAAe,OAAQ,MAAM,OAAO,MAAM,WACwB,CAAC;AAEhF,eAAO,MAAM,eAAe,OAAQ,MAAM,WAAmD,CAAC;AAG9F,eAAO,MAAM,cAAc,QAAS,MAAM,qBAAqB,OAAO;;;;;;;;CAOqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/index.tsx"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAa,gBAAgB,EAAsB,MAAM,cAAc,CAAC;AAIpF,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC;IAEzB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,mBAAmB,CAAC;IAE/B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAUD,eAAO,MAAM,cAAc,8HAWxB,MAAM,4CA4XR,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { FormState } from '../../../../types/form';
|
|
2
2
|
import { WriteFormFields } from '../../types/form';
|
|
3
|
+
export type LevelValue = {
|
|
4
|
+
value: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
3
7
|
interface IProps {
|
|
4
8
|
formId: string;
|
|
5
9
|
levelFields: WriteFormFields[];
|
|
10
|
+
optionalLevels: string[];
|
|
11
|
+
objectLabel: string;
|
|
6
12
|
formState: FormState;
|
|
7
|
-
onLevelChange: (name: string, option:
|
|
8
|
-
value: string | number;
|
|
9
|
-
label: string;
|
|
10
|
-
} | null) => void;
|
|
13
|
+
onLevelChange: (name: string, option: LevelValue | null) => void;
|
|
11
14
|
onEmptyLevel?: (name: string) => void;
|
|
12
15
|
}
|
|
13
|
-
export declare const LevelFields: ({ formId, levelFields, formState, onLevelChange, onEmptyLevel }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const LevelFields: ({ formId, levelFields, optionalLevels, objectLabel, formState, onLevelChange, onEmptyLevel }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
export {};
|
|
15
18
|
//# sourceMappingURL=level-fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"level-fields.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/level-fields.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,
|
|
1
|
+
{"version":3,"file":"level-fields.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/level-fields.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAKnE,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAEjE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AA6GD,eAAO,MAAM,WAAW,iGAQrB,MAAM,4CAyCR,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
export interface MenuOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface LinkMenuProps<T extends MenuOption> {
|
|
7
|
+
id: string;
|
|
8
|
+
anchorEl: HTMLElement | null;
|
|
9
|
+
open: boolean;
|
|
10
|
+
options: T[];
|
|
11
|
+
activeIndex: number;
|
|
12
|
+
setActiveIndex: (index: number) => void;
|
|
13
|
+
onSelect: (option: T) => void;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingText?: string;
|
|
17
|
+
emptyText?: string | null;
|
|
18
|
+
emptyTone?: 'muted' | 'strong';
|
|
19
|
+
search?: {
|
|
20
|
+
value: string;
|
|
21
|
+
onChange: (value: string) => void;
|
|
22
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
23
|
+
};
|
|
24
|
+
renderOption?: (option: T) => ReactNode;
|
|
25
|
+
isOptionDisabled?: (option: T) => boolean;
|
|
26
|
+
optionTooltip?: (option: T) => string | undefined;
|
|
27
|
+
footer?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const LinkMenu: <T extends MenuOption>({ id, anchorEl, open, options, activeIndex, setActiveIndex, onSelect, onClose, loading, loadingText, emptyText, emptyTone, search, renderOption, isOptionDisabled, optionTooltip, footer }: LinkMenuProps<T>) => import('react').ReactPortal | null;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=link-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-menu.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/link-menu.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgEtD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,aAAa,CAAC,CAAC,SAAS,UAAU;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAE/B,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;KAAE,CAAC;IACzG,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,SAAS,CAAC;IACxC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,UAAU,8LAkB1C,aAAa,CAAC,CAAC,CAAC,uCA4FlB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MenuOption } from './link-menu';
|
|
3
|
+
export interface LinkSelectProps<T extends MenuOption> {
|
|
4
|
+
id: string;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
value: T | null;
|
|
7
|
+
options: T[];
|
|
8
|
+
placeholder: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hasError?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
loadingText?: string;
|
|
13
|
+
emptyText?: string | null;
|
|
14
|
+
onSearch: (query: string) => void;
|
|
15
|
+
onOpen?: () => void;
|
|
16
|
+
onChange: (option: T) => void;
|
|
17
|
+
renderValue?: (option: T) => string;
|
|
18
|
+
renderOption?: (option: T) => ReactNode;
|
|
19
|
+
isOptionDisabled?: (option: T) => boolean;
|
|
20
|
+
optionTooltip?: (option: T) => string | undefined;
|
|
21
|
+
footer?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const LinkSelect: <T extends MenuOption>({ id, ariaLabel, value, options, placeholder, disabled, hasError, loading, loadingText, emptyText, onSearch, onOpen, onChange, renderValue, renderOption, isOptionDisabled, optionTooltip, footer }: LinkSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=link-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-select.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/link-select.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAwC9C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,UAAU;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC;IACpC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,SAAS,CAAC;IACxC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,UAAU,uMAmB5C,eAAe,CAAC,CAAC,CAAC,4CA+FpB,CAAC"}
|
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
import { StackProps } from '@hiver/hiver-ui-kit';
|
|
2
2
|
import { StyledComponent } from '@emotion/styled';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
type El<T extends keyof JSX.IntrinsicElements, P = object> = StyledComponent<ComponentProps<T> & P>;
|
|
5
|
+
export declare const COLORS: {
|
|
6
|
+
readonly text: "var(--connector-text-primary, #334155)";
|
|
7
|
+
readonly strong: "var(--connector-input-text, #0f172a)";
|
|
8
|
+
readonly soft: "var(--connector-text-secondary, #64758b)";
|
|
9
|
+
readonly placeholder: "var(--connector-text-muted, #94a3b8)";
|
|
10
|
+
readonly border: "var(--connector-input-border, #cbd5e1)";
|
|
11
|
+
readonly subtleBorder: "var(--connector-border, #edf1f6)";
|
|
12
|
+
readonly focus: "var(--connector-input-border-focus, #246fea)";
|
|
13
|
+
readonly surface: "var(--connector-surface, #ffffff)";
|
|
14
|
+
readonly disabled: "var(--connector-surface-subtle, #f1f5f9)";
|
|
15
|
+
readonly hover: "var(--connector-surface-hover, #f1f5f9)";
|
|
16
|
+
readonly error: "#b91c1c";
|
|
17
|
+
readonly errorText: "#dc2626";
|
|
18
|
+
readonly chip: "#eeeeee";
|
|
19
|
+
readonly chipText: "#404040";
|
|
20
|
+
};
|
|
21
|
+
export declare const MENU_SHADOW = "0px 2px 2px rgba(16, 24, 40, 0.06), 0px 4px 4px rgba(16, 24, 40, 0.1)";
|
|
22
|
+
export declare const FOCUS_RING = "0 0 0 1.5px rgba(36, 111, 234, 0.3)";
|
|
23
|
+
export declare const Title: El<'p'>;
|
|
24
|
+
export declare const Form: StyledComponent<StackProps>;
|
|
3
25
|
export declare const FieldStack: StyledComponent<StackProps>;
|
|
26
|
+
export declare const FieldLabel: El<'label'>;
|
|
27
|
+
export declare const HelperText: El<'p', {
|
|
28
|
+
error?: boolean;
|
|
29
|
+
}>;
|
|
4
30
|
export declare const OrDivider: StyledComponent<StackProps>;
|
|
31
|
+
export declare const TextInput: El<'input', {
|
|
32
|
+
error?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const Chip: El<'span'>;
|
|
35
|
+
export declare const MenuStatus: StyledComponent<StackProps>;
|
|
36
|
+
export declare const MenuEmpty: El<'div', {
|
|
37
|
+
strong?: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const MenuNote: StyledComponent<StackProps>;
|
|
40
|
+
export declare const MenuSearchRow: StyledComponent<StackProps>;
|
|
41
|
+
export declare const Alert: StyledComponent<StackProps>;
|
|
42
|
+
export declare const AlertAction: El<'button'>;
|
|
43
|
+
export declare const InlineRetry: El<'button'>;
|
|
44
|
+
export declare const Footer: StyledComponent<StackProps>;
|
|
45
|
+
export {};
|
|
5
46
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,EAAE,CAAC,GAAG,MAAM,IAAI,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAIpG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAeT,CAAC;AAEX,eAAO,MAAM,WAAW,0EAA0E,CAAC;AACnG,eAAO,MAAM,UAAU,wCAAwC,CAAC;AAEhE,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,GAAG,CAMzB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,eAAe,CAAC,UAAU,CAI5C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAGlD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,OAAO,CAKlC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,GAAG,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAKnD,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,UAAU,CAajD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAoBtD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,MAAM,CAW3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAgBlD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAMrD,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,UAAU,CAchD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,UAAU,CAoBrD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,eAAe,CAAC,UAAU,CAwB7C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,QAAQ,CAapC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,QAAQ,CASpC,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,eAAe,CAAC,UAAU,CA+B9C,CAAC"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { TaskOption } from './utils';
|
|
2
1
|
import { LinkSearchRow } from '../../../../types/form';
|
|
3
2
|
import { LinkSearchStatus } from './use-link-search';
|
|
3
|
+
import { TaskOption } from './utils';
|
|
4
4
|
interface IProps {
|
|
5
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
6
7
|
value: TaskOption | null;
|
|
7
8
|
inputValue: string;
|
|
8
9
|
rows: LinkSearchRow[];
|
|
9
10
|
status: LinkSearchStatus;
|
|
10
|
-
|
|
11
|
+
app: string;
|
|
11
12
|
placeholder: string;
|
|
13
|
+
showCapNote?: boolean;
|
|
14
|
+
hideEmptyMessage?: boolean;
|
|
12
15
|
disabled?: boolean;
|
|
13
16
|
hasError?: boolean;
|
|
14
17
|
onInputChange: (value: string) => void;
|
|
15
18
|
onChange: (option: TaskOption | null) => void;
|
|
16
19
|
}
|
|
17
|
-
export declare const TaskSearch: ({
|
|
20
|
+
export declare const TaskSearch: ({ id, label, value, inputValue, rows, status, app, placeholder, showCapNote, hideEmptyMessage, disabled, hasError, onInputChange, onChange }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export {};
|
|
19
22
|
//# sourceMappingURL=task-search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-search.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/task-search.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"task-search.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/task-search.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAiD1C,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,UAAU,iJAepB,MAAM,4CAsGR,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { MenuOption } from './link-menu';
|
|
3
|
+
export declare const useMenuKeys: <T extends MenuOption>({ open, options, activeIndex, setActiveIndex, isOptionDisabled, onSelect, onClose }: {
|
|
4
|
+
open: boolean;
|
|
5
|
+
options: T[];
|
|
6
|
+
activeIndex: number;
|
|
7
|
+
setActiveIndex: (index: number) => void;
|
|
8
|
+
isOptionDisabled?: (option: T) => boolean;
|
|
9
|
+
onSelect: (option: T) => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}) => (event: KeyboardEvent) => void;
|
|
12
|
+
//# sourceMappingURL=use-menu-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-menu-keys.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/use-menu-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,UAAU,uFAQ7C;IACD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC1C,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,aACgB,aAAa,SAiB7B,CAAC"}
|
|
@@ -5,6 +5,8 @@ export interface TaskOption {
|
|
|
5
5
|
label: string;
|
|
6
6
|
row: LinkSearchRow;
|
|
7
7
|
}
|
|
8
|
-
export declare const toTaskOption: (row: LinkSearchRow) => TaskOption;
|
|
8
|
+
export declare const toTaskOption: (row: LinkSearchRow, withId?: boolean) => TaskOption;
|
|
9
9
|
export declare const isLevelReady: (field: WriteFormFields, formState: FormState) => boolean;
|
|
10
|
+
export declare const isUrl: (query: string) => boolean;
|
|
11
|
+
export declare const getQueryId: (query: string) => string;
|
|
10
12
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,aAAa,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/link-search/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,aAAa,CAAC;CACpB;AAGD,eAAO,MAAM,YAAY,QAAS,aAAa,uBAAmB,UAIhE,CAAC;AAGH,eAAO,MAAM,YAAY,UAAW,eAAe,aAAa,SAAS,YAGxE,CAAC;AAIF,eAAO,MAAM,KAAK,UAAW,MAAM,YAAmC,CAAC;AAGvE,eAAO,MAAM,UAAU,UAAW,MAAM,WASvC,CAAC"}
|