@hiver/connector-agent 4.23.0-repocleanup-beta.0 → 4.23.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 (157) hide show
  1. package/api/linkCard.d.ts +4 -1
  2. package/api/linkCard.d.ts.map +1 -1
  3. package/app/connector-cards.d.ts.map +1 -1
  4. package/app/email-logger/provider.d.ts.map +1 -1
  5. package/app/hig-slack/HigSlackSection.d.ts.map +1 -1
  6. package/app/hig-slack/style.d.ts +7 -0
  7. package/app/hig-slack/style.d.ts.map +1 -1
  8. package/app/omni-slack/SlackLinkActionsIsland.d.ts +7 -1
  9. package/app/omni-slack/SlackLinkActionsIsland.d.ts.map +1 -1
  10. package/app/provider.d.ts.map +1 -1
  11. package/app/style.d.ts.map +1 -1
  12. package/constants/card.d.ts +1 -0
  13. package/constants/card.d.ts.map +1 -1
  14. package/constants/global-constants.d.ts +2 -0
  15. package/constants/global-constants.d.ts.map +1 -1
  16. package/constants/tracking-events.d.ts +4 -0
  17. package/constants/tracking-events.d.ts.map +1 -1
  18. package/features/connector-cards/api/idLookup.d.ts +56 -0
  19. package/features/connector-cards/api/idLookup.d.ts.map +1 -0
  20. package/features/connector-cards/api/index.d.ts +4 -1
  21. package/features/connector-cards/api/index.d.ts.map +1 -1
  22. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
  23. package/features/connector-cards/components/card-list/CardContent.d.ts +3 -0
  24. package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -1
  25. package/features/connector-cards/components/card-list/ListCards.d.ts.map +1 -1
  26. package/features/connector-cards/components/card-list/email-selection.d.ts +12 -1
  27. package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
  28. package/features/connector-cards/components/card-list/related-records-status.d.ts +7 -0
  29. package/features/connector-cards/components/card-list/related-records-status.d.ts.map +1 -0
  30. package/features/connector-cards/components/card-list/style.d.ts +2 -0
  31. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  32. package/features/connector-cards/constants/api.d.ts +5 -0
  33. package/features/connector-cards/constants/api.d.ts.map +1 -1
  34. package/features/connector-cards/constants/card-content.d.ts +7 -0
  35. package/features/connector-cards/constants/card-content.d.ts.map +1 -1
  36. package/features/connector-cards/context/IdLookupContext.d.ts +14 -0
  37. package/features/connector-cards/context/IdLookupContext.d.ts.map +1 -0
  38. package/features/connector-cards/hooks/useIdLookup.d.ts +28 -0
  39. package/features/connector-cards/hooks/useIdLookup.d.ts.map +1 -0
  40. package/features/connector-cards/hooks/useRelatedRecords.d.ts +35 -0
  41. package/features/connector-cards/hooks/useRelatedRecords.d.ts.map +1 -0
  42. package/features/connector-cards/store/initial-state.d.ts +21 -0
  43. package/features/connector-cards/store/initial-state.d.ts.map +1 -1
  44. package/features/connector-cards/store/selectors.d.ts +9 -0
  45. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  46. package/features/connector-cards/store/slice.d.ts +62 -0
  47. package/features/connector-cards/store/slice.d.ts.map +1 -1
  48. package/features/connector-cards/utils/idLookup.d.ts +41 -0
  49. package/features/connector-cards/utils/idLookup.d.ts.map +1 -0
  50. package/features/connector-cards/utils.d.ts +10 -1
  51. package/features/connector-cards/utils.d.ts.map +1 -1
  52. package/features/customer-identity-mapping/components/CustomerIdentityMappingModal.d.ts.map +1 -1
  53. package/features/customer-identity-mapping/types.d.ts +1 -0
  54. package/features/customer-identity-mapping/types.d.ts.map +1 -1
  55. package/features/email-logger/api/getPerTaskLogStatus.d.ts +20 -0
  56. package/features/email-logger/api/getPerTaskLogStatus.d.ts.map +1 -0
  57. package/features/email-logger/api/getSearch.d.ts +8 -0
  58. package/features/email-logger/api/getSearch.d.ts.map +1 -1
  59. package/features/email-logger/api/postLog.d.ts +5 -0
  60. package/features/email-logger/api/postLog.d.ts.map +1 -1
  61. package/features/email-logger/api/taskLogToggle.d.ts +27 -0
  62. package/features/email-logger/api/taskLogToggle.d.ts.map +1 -0
  63. package/features/email-logger/api/validateEntity.d.ts +11 -0
  64. package/features/email-logger/api/validateEntity.d.ts.map +1 -1
  65. package/features/email-logger/components/log-action/index.d.ts.map +1 -1
  66. package/features/email-logger/components/log-action/tooltip.d.ts +3 -1
  67. package/features/email-logger/components/log-action/tooltip.d.ts.map +1 -1
  68. package/features/email-logger/components/log-email-switch/index.d.ts +3 -0
  69. package/features/email-logger/components/log-email-switch/index.d.ts.map +1 -0
  70. package/features/email-logger/components/log-tooltip/index.d.ts +3 -1
  71. package/features/email-logger/components/log-tooltip/index.d.ts.map +1 -1
  72. package/features/email-logger/components/log-tooltip/styles.d.ts +1 -0
  73. package/features/email-logger/components/log-tooltip/styles.d.ts.map +1 -1
  74. package/features/email-logger/components/select-entity/components/entity-option/index.d.ts.map +1 -1
  75. package/features/email-logger/components/select-entity/components/feedback/index.d.ts +4 -1
  76. package/features/email-logger/components/select-entity/components/feedback/index.d.ts.map +1 -1
  77. package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts +7 -0
  78. package/features/email-logger/components/select-entity/components/monday-task-popover/index.d.ts.map +1 -0
  79. package/features/email-logger/components/select-entity/index.d.ts +6 -1
  80. package/features/email-logger/components/select-entity/index.d.ts.map +1 -1
  81. package/features/email-logger/components/sync-tooltip/index.d.ts +2 -0
  82. package/features/email-logger/components/sync-tooltip/index.d.ts.map +1 -0
  83. package/features/email-logger/constants/index.d.ts +8 -0
  84. package/features/email-logger/constants/index.d.ts.map +1 -1
  85. package/features/email-logger/context/contexts.d.ts +6 -0
  86. package/features/email-logger/context/contexts.d.ts.map +1 -1
  87. package/features/email-logger/context/index.d.ts +1 -1
  88. package/features/email-logger/context/index.d.ts.map +1 -1
  89. package/features/email-logger/index.d.ts.map +1 -1
  90. package/features/email-logger/omni/OmniSyncPanel.d.ts.map +1 -1
  91. package/features/email-logger/omni/components/EntityRow.d.ts.map +1 -1
  92. package/features/email-logger/omni/components/LogEmailPill.d.ts +6 -1
  93. package/features/email-logger/omni/components/LogEmailPill.d.ts.map +1 -1
  94. package/features/email-logger/types/api.d.ts +17 -0
  95. package/features/email-logger/types/api.d.ts.map +1 -1
  96. package/features/email-logger/types/index.d.ts +13 -1
  97. package/features/email-logger/types/index.d.ts.map +1 -1
  98. package/features/email-logger/utils/perTask.d.ts +39 -0
  99. package/features/email-logger/utils/perTask.d.ts.map +1 -0
  100. package/features/email-logger/utils/syncSignals.d.ts +17 -0
  101. package/features/email-logger/utils/syncSignals.d.ts.map +1 -0
  102. package/features/global-search/api/getSearchResults.d.ts +4 -0
  103. package/features/global-search/api/getSearchResults.d.ts.map +1 -1
  104. package/features/global-search/components/preview-and-link/index.d.ts +3 -1
  105. package/features/global-search/components/preview-and-link/index.d.ts.map +1 -1
  106. package/features/global-search/components/search-results/index.d.ts +4 -1
  107. package/features/global-search/components/search-results/index.d.ts.map +1 -1
  108. package/features/global-search/constants/index.d.ts +1 -0
  109. package/features/global-search/constants/index.d.ts.map +1 -1
  110. package/features/slack/components/LinkExistingModal/ChannelPicker.d.ts +1 -1
  111. package/features/slack/components/LinkExistingModal/index.d.ts +6 -4
  112. package/features/slack/components/LinkExistingModal/index.d.ts.map +1 -1
  113. package/features/slack/components/LinkedConversationPanel/index.d.ts.map +1 -1
  114. package/features/slack/components/StartModal/index.d.ts +5 -2
  115. package/features/slack/components/StartModal/index.d.ts.map +1 -1
  116. package/features/write-form/api/getEmailLoggingState.d.ts +12 -0
  117. package/features/write-form/api/getEmailLoggingState.d.ts.map +1 -0
  118. package/features/write-form/components/auto-fill/button.d.ts.map +1 -1
  119. package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
  120. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
  121. package/features/write-form/components/log-emails-toggle/index.d.ts +9 -0
  122. package/features/write-form/components/log-emails-toggle/index.d.ts.map +1 -0
  123. package/features/write-form/components/map-form-defaults/index.d.ts +2 -0
  124. package/features/write-form/components/map-form-defaults/index.d.ts.map +1 -1
  125. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  126. package/features/write-form/constants/index.d.ts +2 -0
  127. package/features/write-form/constants/index.d.ts.map +1 -1
  128. package/features/write-form/store/slice.d.ts +2 -0
  129. package/features/write-form/store/slice.d.ts.map +1 -1
  130. package/features/write-form/utils/logEmails.d.ts +65 -0
  131. package/features/write-form/utils/logEmails.d.ts.map +1 -0
  132. package/hooks/useMappedSmId.d.ts +31 -0
  133. package/hooks/useMappedSmId.d.ts.map +1 -0
  134. package/index.es.js +15666 -13931
  135. package/index.umd.js +1150 -695
  136. package/main-dev.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/store/idLookupKeyStore.d.ts +22 -0
  139. package/store/idLookupKeyStore.d.ts.map +1 -0
  140. package/testing/dev/MondayEmailLogHarness.d.ts +5 -0
  141. package/testing/dev/MondayEmailLogHarness.d.ts.map +1 -0
  142. package/testing/mocks/handlers/customer-identity-mapping.d.ts.map +1 -1
  143. package/testing/mocks/handlers/id-lookup-qa.d.ts +2 -0
  144. package/testing/mocks/handlers/id-lookup-qa.d.ts.map +1 -0
  145. package/testing/mocks/handlers/id-lookup.d.ts +4 -0
  146. package/testing/mocks/handlers/id-lookup.d.ts.map +1 -0
  147. package/testing/mocks/handlers/monday-email-log.d.ts +58 -0
  148. package/testing/mocks/handlers/monday-email-log.d.ts.map +1 -0
  149. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  150. package/testing/mocks/handlers.d.ts.map +1 -1
  151. package/testing/test-utils.d.ts +4 -1
  152. package/testing/test-utils.d.ts.map +1 -1
  153. package/theme/connector-theme-provider.d.ts.map +1 -1
  154. package/types/cards.d.ts +26 -0
  155. package/types/cards.d.ts.map +1 -1
  156. package/types/form.d.ts +2 -0
  157. package/types/form.d.ts.map +1 -1
@@ -38,7 +38,19 @@ export type Entity = {
38
38
  cardId?: string;
39
39
  formId?: string;
40
40
  };
41
- export type SelectedEntity = Pick<Entity, 'displayValue' | 'entityType'> & Partial<Entity>;
41
+ export type SelectedEntity = Pick<Entity, 'displayValue' | 'entityType'> & Partial<Entity> & {
42
+ /**
43
+ * Additive per-entity fields from GET email_log_status. Only per-task
44
+ * connectors (monday.com) act on them; CRM clients ignore them.
45
+ */
46
+ id?: string | null;
47
+ externalResourceId?: string | null;
48
+ logEmailsEnabled?: boolean;
49
+ /** Why the backend switched the task off (e.g. the item was archived); null otherwise. */
50
+ loggingStoppedReason?: string | null;
51
+ /** A task linked to the conversation that was never enrolled (created with the toggle off). */
52
+ linkedOnly?: boolean;
53
+ };
42
54
  export type EntityGroup = {
43
55
  type: string;
44
56
  entities: (Entity | SelectedEntity)[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC,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,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,IAAI,CAAC;AAEvF,MAAM,MAAM,aAAa,GAAG;IAC1B,0BAA0B,CAAC,EAAE,qBAAqB,CAAC;IACnD,wBAAwB,CAAC,EAAE,qBAAqB,CAAC;IACjD,0BAA0B,CAAC,EAAE,qBAAqB,CAAC;CACpD,CAAC;AAEF,MAA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C;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAClD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,UAAU,CAAC;AAErD,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,GAAG,eAAe,EAAE,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,39 @@
1
+ import { SelectedEntity } from '../types';
2
+ import { LogStatusResponse } from '../types/api';
3
+ /**
4
+ * Connector types whose email logging is opted into per linked task rather than
5
+ * per connector. These connectors never carry the admin-level
6
+ * `email_log_settings` flag, so the status response reports
7
+ * `emailLogSettings.enabled: false` for them even while tasks are logging.
8
+ */
9
+ export declare const PER_TASK_LOGGING_CONNECTOR_TYPES: ReadonlySet<string>;
10
+ export declare const isPerTaskConnectorType: (connectorType?: string | null) => boolean;
11
+ /**
12
+ * GET email_log_status answers `[]` when nothing in the workspace logs email,
13
+ * so the payload is not always a status object.
14
+ */
15
+ export declare const isLogStatusResponse: (data: unknown) => data is LogStatusResponse;
16
+ /** The backend resolves an absent flag to enabled; mirror that for older payloads. */
17
+ export declare const isTaskLoggingEnabled: (entity: SelectedEntity) => boolean;
18
+ /**
19
+ * Per-task connectors pause one task at a time while the conversation-wide
20
+ * `autoLogEnabled` stays on. The pill's existing PAUSED state therefore means
21
+ * "no linked task is logging", which is folded into `autoLogEnabled` so
22
+ * getStatusType's precedence is reused unchanged.
23
+ */
24
+ export declare const withPerTaskLogState: (status: LogStatusResponse) => LogStatusResponse;
25
+ /**
26
+ * Tasks enrolled at creation can arrive without a display value; fall back to
27
+ * the monday.com item id so every row still has a readable, unique name.
28
+ */
29
+ export declare const getTaskLabel: (entity: SelectedEntity) => string;
30
+ /** Pending key used while the header switch updates every linked task at once. */
31
+ export declare const ALL_TASKS_KEY = "all";
32
+ export declare const getTaskKey: (entity: SelectedEntity, index: number) => string;
33
+ /** Wire shape for one entry of PATCH log_emails `entities`. */
34
+ export declare const toTaskLogUpdate: (entity: SelectedEntity, logEmailsEnabled: boolean) => {
35
+ logEmailsEnabled: boolean;
36
+ externalResourceId?: string | undefined;
37
+ id?: string | undefined;
38
+ };
39
+ //# sourceMappingURL=perTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perTask.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/utils/perTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,WAAW,CAAC,MAAM,CAAuB,CAAC;AAEzF,eAAO,MAAM,sBAAsB,mBAAoB,MAAM,GAAG,IAAI,YACkB,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,OAAO,KAAG,IAAI,IAAI,iBAC8B,CAAC;AAE3F,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,WAAY,cAAc,YAAsC,CAAC;AAElG;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,WAAY,iBAAiB,KAAG,iBAK9D,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,WAAY,cAAc,WACyD,CAAC;AAE7G,kFAAkF;AAClF,eAAO,MAAM,aAAa,QAAQ,CAAC;AAEnC,eAAO,MAAM,UAAU,WAAY,cAAc,SAAS,MAAM,WACoC,CAAC;AAErG,+DAA+D;AAC/D,eAAO,MAAM,eAAe,WAAY,cAAc,oBAAoB,OAAO;;;;CAI/E,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Cross-mount "the sync status of this conversation changed" signal.
3
+ *
4
+ * The right-panel write form and the sync chip/pill are separate React roots
5
+ * with separate QueryClients (each app mount wraps its own
6
+ * ReactQueryClientProvider), so the form cannot invalidate the chip's query.
7
+ * After Create/Update with "Log email as a comment" on, the backend has queued
8
+ * a backfill and set the in-progress flag, but the chip only learned that on a
9
+ * reopen (BUG-3 / B-03, B-08, B-04). A DOM event on `window` reaches every
10
+ * mount of the same page; the chip refetches, which restarts its poll until
11
+ * the backfill settles.
12
+ */
13
+ export declare const EMAIL_LOG_STATUS_CHANGED_EVENT = "connector-agent-email-log-status-changed";
14
+ export declare const announceEmailLogStatusChanged: (conversationId?: string | number | null) => void;
15
+ /** Calls `onChange` when the signal names this conversation (or no conversation). */
16
+ export declare const useEmailLogStatusChanged: (conversationId: string | number | null | undefined, onChange: () => void) => void;
17
+ //# sourceMappingURL=syncSignals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncSignals.d.ts","sourceRoot":"","sources":["../../../../src/features/email-logger/utils/syncSignals.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B,6CAA6C,CAAC;AAIzF,eAAO,MAAM,6BAA6B,oBAAqB,MAAM,GAAG,MAAM,GAAG,IAAI,SAGpF,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,wBAAwB,mBAAoB,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,YAAY,MAAM,IAAI,SAahH,CAAC"}
@@ -6,6 +6,10 @@ export type SearchResultsProps = {
6
6
  interfaceId: string;
7
7
  args: Record<string, FormArgValue>;
8
8
  connectorName?: string;
9
+ /** Agency installs: bounds the search to the inbox's mapped sub-accounts. */
10
+ smId?: string;
11
+ /** Every inbox the conversation is in; the mapping applies as their union. */
12
+ smIds?: string[];
9
13
  };
10
14
  export declare const useSearchResultsMutation: (onMutate: (searchString: string, connectorName?: string) => void, onSuccess: (searchString: string, data: SearchResultsType | undefined, connectorName?: string) => void) => import('@tanstack/react-query').UseMutationResult<SearchResultsType | undefined, Error, SearchResultsProps, void>;
11
15
  //# sourceMappingURL=getSearchResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSearchResults.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA0BF,eAAO,MAAM,wBAAwB,aACzB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,aACrD,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,sHAWvG,CAAC"}
1
+ {"version":3,"file":"getSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSearchResults.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA0BF,eAAO,MAAM,wBAAwB,aACzB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,aACrD,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,sHAavG,CAAC"}
@@ -3,7 +3,9 @@ interface IProps {
3
3
  meta: PreviewMeta;
4
4
  onBack: () => void;
5
5
  onLink: () => void;
6
+ onLinkAllRelated?: (meta: PreviewMeta) => void;
7
+ onLinkAllRelatedStart?: (meta: PreviewMeta) => (() => void) | undefined;
6
8
  }
7
- export declare const PreviewAndLink: ({ meta: { externalResourceId, formId, searchKeyword, searchResultLabel }, onBack, onLink }: IProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const PreviewAndLink: ({ meta: { externalResourceId, formId, searchKeyword, searchResultLabel }, onBack, onLink, onLinkAllRelated, onLinkAllRelatedStart }: IProps) => import("react/jsx-runtime").JSX.Element;
8
10
  export {};
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/preview-and-link/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEhE,UAAU,MAAM;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,+FAIxB,MAAM,4CAyDR,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;AAmChE,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"}
@@ -1,10 +1,13 @@
1
1
  import { SearchOptionType, SearchResultsType } from '../../types';
2
+ import { PreviewMeta } from '../../../../types/form.ts';
2
3
  interface IProps {
3
4
  searchResults: Exclude<SearchResultsType, null>;
4
5
  selectedObject: SearchOptionType;
5
6
  onReset: () => void;
6
7
  fetchCards: () => void;
8
+ onLinkAllRelated?: (meta: PreviewMeta) => void;
9
+ onLinkAllRelatedStart?: (meta: PreviewMeta) => (() => void) | undefined;
7
10
  }
8
- export declare const SearchResults: ({ searchResults, selectedObject, onReset, fetchCards }: IProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const SearchResults: ({ searchResults, selectedObject, onReset, fetchCards, onLinkAllRelated, onLinkAllRelatedStart }: IProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export {};
10
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/search-results/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGvE,UAAU,MAAM;IACd,aAAa,EAAE,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAChD,cAAc,EAAE,gBAAgB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,2DAA4D,MAAM,4CAsE3F,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/search-results/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,UAAU,MAAM;IACd,aAAa,EAAE,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAChD,cAAc,EAAE,gBAAgB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;IAEvB,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,aAAa,oGAOvB,MAAM,4CAoFR,CAAC"}
@@ -5,4 +5,5 @@ export declare const SUGGESTION_TITLE = "Smart search suggestions";
5
5
  export declare const SEARCH_RESULTS_INFO_TEMPLATE = ":count result:countSuffix found for :searchObject in :connectorName";
6
6
  export declare const BACK_TO_SEARCH_RESULTS = "Back to search results";
7
7
  export declare const NO_SEARCH_RESULTS = "No search results found";
8
+ export declare const LINK_ALL_RELATED_RECORDS = "Link all related records";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,4BAA4B,wEAAwE,CAAC;AAClH,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,iBAAiB,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,4BAA4B,wEAAwE,CAAC;AAClH,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAC3D,eAAO,MAAM,wBAAwB,6BAA6B,CAAC"}
@@ -10,7 +10,7 @@ interface ChannelPickerProps {
10
10
  * list is a FLOATING dropdown that opens only while the input is
11
11
  * focused (it overlays, never pushes, the content below). Picking a
12
12
  * channel closes it and renders the selected-channel box (name +
13
- * "N Members") under the input; focusing the input again reopens the
13
+ * "N members") under the input; focusing the input again reopens the
14
14
  * dropdown; the input's × clears both the query and the selection.
15
15
  *
16
16
  * `memberCount` is optional on the /channels wire — the members line is
@@ -3,16 +3,18 @@ interface LinkExistingModalProps {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  /** Fired on success with the NEW link's id (externalConversationId)
6
- * so the parent can select/open it. */
7
- onLinked?: (linkId: string) => void;
6
+ * so the parent can select/open it, plus the kind that was linked —
7
+ * hosts word their success toast per kind ("Slack thread linked" vs
8
+ * "Slack channel linked"), so they can't infer it from the id alone. */
9
+ onLinked?: (linkId: string, targetKind: 'thread' | 'channel') => void;
8
10
  /** Links currently on the conversation — analytics metadata only
9
11
  * (PRD: linked count 0–3 at the moment of linking). */
10
12
  linkedCount?: number;
11
13
  }
12
14
  /**
13
- * M2 "Link Slack Conversation" modal (Figma M2 1705:92605 / 1719:109242).
15
+ * M2 "Link a Slack thread or channel" modal (Figma M2 1705:92605 / 1719:109242).
14
16
  * Two tabs:
15
- * Thread — paste a Slack thread permalink → Fetch → preview card
17
+ * Thread — paste a Slack thread permalink → Preview → preview card
16
18
  * (first message, channel, member count, type) → link.
17
19
  * Channel — search the workspace channel directory → pick → link.
18
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkExistingModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAwClD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;4CACwC;IACxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;4DACwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2BD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwUxD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkExistingModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAwClD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;6EAGyE;IACzE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IACtE;4DACwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2BD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwUxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8D,MAAM,OAAO,CAAC;AAqCvF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;6EAEyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;mDAC+C;IAC/C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AA8nBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAIpE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA0E,MAAM,OAAO,CAAC;AAqCnG;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;6EAEyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;mDAC+C;IAC/C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AA+oBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAIpE,CAAC"}
@@ -5,8 +5,11 @@ interface StartModalProps {
5
5
  /** Called after a successful start, with the linked channel id so
6
6
  * the parent can transition to the linked-conv view. M2 adds the new
7
7
  * link row's id (`externalConversationId`) as a second arg so the
8
- * multi-link tab can select the exact item without waiting a poll. */
9
- onStarted?: (channelId: string, linkId?: string) => void;
8
+ * multi-link tab can select the exact item without waiting a poll, and
9
+ * the kind that was created as a third — hosts word their success toast
10
+ * per kind, and the Slack-thread tab creates a THREAD in an existing
11
+ * channel while the Slack-channel tab creates a channel. */
12
+ onStarted?: (channelId: string, linkId?: string, targetKind?: 'thread' | 'channel') => void;
10
13
  /** Multi-link (M2): 409 slack_target_already_linked → the parent
11
14
  * switches to the existing item (Figma M2 "switch to that tab").
12
15
  * Absent (flag off) → the M1 silent-adopt behavior is preserved. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/StartModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAuC9E,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;2EAGuE;IACvE,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;yEAEqE;IACrE,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD;;;;qBAIiB;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0R1C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/StartModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAuC9E,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;;iEAM6D;IAC7D,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5F;;yEAEqE;IACrE,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD;;;;qBAIiB;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0R1C,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const getEmailLoggingStateQueryKey: (conversationId?: number | string) => (string | number | undefined)[];
2
+ /**
3
+ * Reads GET email_log_status for the write-form's "log emails as comments"
4
+ * toggle: which other app already logs email (R9) and, on Edit, whether the
5
+ * task being edited is currently logging. Enabled only for forms that carry the
6
+ * toggle, so no other form makes this request.
7
+ */
8
+ export declare const useEmailLoggingStateQuery: ({ conversationId, enabled }: {
9
+ conversationId?: number | string;
10
+ enabled: boolean;
11
+ }) => import('@tanstack/react-query').UseQueryResult<unknown, Error>;
12
+ //# sourceMappingURL=getEmailLoggingState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmailLoggingState.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/api/getEmailLoggingState.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,4BAA4B,oBAAqB,MAAM,GAAG,MAAM,oCAK5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,gCAGnC;IACD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB,mEAaG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/auto-fill/button.tsx"],"names":[],"mappings":"AAKA,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,kEAAmE,mBAAmB,mDAwBhH,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/auto-fill/button.tsx"],"names":[],"mappings":"AAUA,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,kEAAmE,mBAAmB,mDA2BhH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,uDAAwD,MAAM,4CA4KrF,CAAC"}
1
+ {"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAuCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,uDAAwD,MAAM,4CAsLrF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-preview.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-preview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,MAAM;IACd,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,SAAS,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,wDAAyD,MAAM,4CAoEtF,CAAC"}
1
+ {"version":3,"file":"card-preview.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-preview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,MAAM;IACd,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,SAAS,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,wDAAyD,MAAM,4CAiFtF,CAAC"}
@@ -0,0 +1,9 @@
1
+ type LogEmailsToggleRowProps = {
2
+ checked: boolean;
3
+ /** App that already syncs conversations in the workspace (R9); disables the switch. */
4
+ blockedBy?: string | null;
5
+ onChange: (checked: boolean) => void;
6
+ };
7
+ export declare const LogEmailsToggleRow: ({ checked, blockedBy, onChange }: LogEmailsToggleRowProps) => 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/write-form/components/log-emails-toggle/index.tsx"],"names":[],"mappings":"AAsGA,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,qCAAsC,uBAAuB,4CAqC3F,CAAC"}
@@ -10,6 +10,8 @@ export type MapFormDefaultsProps = {
10
10
  customFormArgsEnabled: boolean;
11
11
  customFormArgsMap?: Record<string, unknown>;
12
12
  title?: string;
13
+ /** The form's connector, so R9 can tell "another app" from this one. */
14
+ connectorId?: string;
13
15
  isLoading?: boolean;
14
16
  onSuccess?: (data: PutFormDefaultProps) => void;
15
17
  onClose?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/map-form-defaults/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAA0C,MAAM,eAAe,CAAC;AAGjG,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,+IAazB,oBAAoB,4CAyFtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/map-form-defaults/index.tsx"],"names":[],"mappings":"AAUA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAA0C,MAAM,eAAe,CAAC;AAGjG,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,+IAazB,oBAAoB,4CAsGtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAA+B,UAAU,EAAkB,MAAM,eAAe,CAAC;AAwB7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAA+B,UAAU,EAAc,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,UAAU,cAAc;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1D;AACD,QAAA,MAAM,SAAS,gJAWZ,cAAc,4CA22BhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAA+B,UAAU,EAAkB,MAAM,eAAe,CAAC;AAwB7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAA+B,UAAU,EAAc,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,UAAU,cAAc;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1D;AACD,QAAA,MAAM,SAAS,gJAWZ,cAAc,4CAq9BhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,9 +1,11 @@
1
1
  export declare const CARD_PREVIEW_ERROR_MSG = "Error in previewing the card";
2
+ export declare const CARD_PREVIEW_NOT_FOUND = "Object not found";
2
3
  export declare const CARD_LINKING_FORMAT_ERROR = "Link format isn't recognized. Please check that you've entered a valid URL";
3
4
  export declare const DUPLICATE_CARD_LINKING_ERROR = "Item already linked";
4
5
  export declare const CARD_LINK_SUCCESS_MSG = "Card linked successfully";
5
6
  export declare const CARD_LINK_ERROR_MSG = "Error in linking the card";
6
7
  export declare const NEW_CARD_CREATED = "New card created";
8
+ export declare const CREATED_SUCCESSFULLY = "Created successfully";
7
9
  export declare const CARD_CREATION_FAILED = "Card creation failed";
8
10
  export declare const DEFAULT_AVATAR_URL = "https://avatars.githubusercontent.com/u/62397590";
9
11
  export declare const CREATE_CARD_MESSAGE = "Create and link objects from different apps to this conversation";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,iCAAiC,CAAC;AACrE,eAAO,MAAM,yBAAyB,+EAA+E,CAAC;AACtH,eAAO,MAAM,4BAA4B,wBAAwB,CAAC;AAClE,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,qDAAqD,CAAC;AACrF,eAAO,MAAM,mBAAmB,qEAAqE,CAAC;AACtG,eAAO,MAAM,gCAAgC,wDAAwD,CAAC;AACtG,eAAO,MAAM,sCAAsC,0IAC4E,CAAC;AAChI,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AACvE,eAAO,MAAM,2BAA2B,oIAA0H,CAAC;AACnK,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAI3D,eAAO,MAAM,0BAA0B,8EAAyE,CAAC;AAC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AM,oBAAoB,kGACgE,CAAC"}
@@ -65,6 +65,8 @@ declare const createForm: import('@reduxjs/toolkit').AsyncThunk<undefined, {
65
65
  conversationId: number;
66
66
  interfaceId: string;
67
67
  attachmentIdToName?: Record<string, string>;
68
+ objectName?: string;
69
+ namedToast?: boolean;
68
70
  successCallback?: () => void;
69
71
  failureCallback?: (err: unknown) => void;
70
72
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAarD,OAAO,KAAK,EAAsB,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;;;;;;mIAkH/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGP,MAAM,EAAE;iBACL,MAAM;oBACH,MAAM;2BACC,OAAO;kBAChB,MAAM;;;;;;;;;;EAmHvB,CAAC;AA+CF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE;oBACrB,MAAM;iBACT,MAAM;yBAGE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;sBACzB,MAAM,IAAI;sBACV,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;;;;;;;;;EAkC7C,CAAC;AAEF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE;oBACrB,MAAM;iBACT,MAAM;wBACC,MAAM;kBACZ;QAAE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,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACrB,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { IFormConfig } from '@connector/ui';
2
+ import { FormStateValues, FormArgValue } from '../../../types/form';
3
+ /**
4
+ * The monday.com create/edit task forms declare the `logEmailsAsComments`
5
+ * checkbox in the template (custom-integration-template-library monday.json).
6
+ * Every behaviour here keys off the field's presence, so other forms are
7
+ * untouched. Constants and copy live in @connector/ui (shared with admin).
8
+ */
9
+ export { LOG_EMAILS_FIELD_NAME, LOG_EMAILS_ROW_TITLE, LOG_EMAILS_ROW_DESCRIPTION, LOG_EMAILS_BLOCKED_MESSAGE, getLogEmailsBlockedMessage, hasLogEmailsField } from '@connector/ui';
10
+ type FieldLike = {
11
+ name: string;
12
+ type?: string;
13
+ };
14
+ /**
15
+ * PRD R9: the app (other than this form's connector) that already logs email in
16
+ * the workspace, read from GET email_log_status. When the conversation is not
17
+ * bound to a connector, that endpoint falls back to the first enabled connector
18
+ * with email logging on, which is exactly the "other app". Returns null when
19
+ * nothing blocks.
20
+ */
21
+ export declare const getOtherAppLoggingName: (status: unknown, currentConnectorId?: string | null) => string | null;
22
+ /**
23
+ * The current logging state of an already-linked task, so the Edit form opens
24
+ * with the toggle reflecting it. Undefined when the task is not enrolled.
25
+ * A conversation paused from the popover header (autoLogEnabled false) reads as
26
+ * off even when the task's own flag is on: otherwise the toggle opened ON and
27
+ * saving any field resumed every task on the conversation (review finding 2).
28
+ */
29
+ export declare const getLinkedTaskLogState: (status: unknown, externalResourceId?: string | null) => boolean | undefined;
30
+ /**
31
+ * The monday.com toggle is not rendered by the generic form: it is drawn as
32
+ * the design's "Log email as a comment" row at the bottom of the form (see
33
+ * components/log-emails-toggle). Returns the input unchanged when the form has
34
+ * no such field, so CRM forms keep the exact same configs.
35
+ */
36
+ export declare const withoutLogEmailsField: <T extends IFormConfig>(configs: T[]) => T[];
37
+ /**
38
+ * Ensures the toggle reaches the backend as a real boolean under
39
+ * `logEmailsAsComments`, which custom-integrations reads from the submitted
40
+ * args. The template does not list it in `interfaceDetails.args`, so the
41
+ * generic serializer would otherwise drop it. Forced to false while another
42
+ * app's logging blocks it (R9). No-op for forms without the field.
43
+ */
44
+ export declare const withLogEmailsArg: (args: Record<string, FormArgValue>, values: FormStateValues, fields: FieldLike[] | undefined, blocked: boolean) => Record<string, FormArgValue>;
45
+ /**
46
+ * The create form's toggle never starts from a saved Pre-fill default (BUG-7 /
47
+ * B-16): that default is dropped before it reaches form state; every other
48
+ * default is untouched. Its only starting value is the admin's "Sync
49
+ * conversations" setting (shouldStartLogEmailsOn). Edit reflects the task's
50
+ * live state separately.
51
+ */
52
+ /**
53
+ * Whether a create form starts "Log email as a comment" ON: only when monday.com's
54
+ * admin "Sync conversations" is on (the form's logEmailsDefault), the form offers
55
+ * the toggle, and no other app blocks it (R9). Edit never seeds; it shows the
56
+ * task's own state.
57
+ */
58
+ export declare const shouldStartLogEmailsOn: ({ isEdit, hasToggle, logEmailsDefault, blockedBy }: {
59
+ isEdit: boolean;
60
+ hasToggle: boolean;
61
+ logEmailsDefault?: boolean | null;
62
+ blockedBy?: string | null;
63
+ }) => boolean;
64
+ export declare const withoutLogEmailsDefault: <T extends Record<string, unknown>>(values: T) => T;
65
+ //# sourceMappingURL=logEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logEmails.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/logEmails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD;;;;;GAKG;AACH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAEvB,KAAK,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,WAAY,OAAO,uBAAuB,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAcrG,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,WAAY,OAAO,uBAAuB,MAAM,GAAG,IAAI,KAAG,OAAO,GAAG,SAMrG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,WAAW,WAAW,CAAC,EAAE,KAAG,CAAC,EAS5E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,SACrB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,UAC1B,eAAe,UACf,SAAS,EAAE,GAAG,SAAS,WACtB,OAAO,KACf,MAAM,CAAC,MAAM,EAAE,YAAY,CAG7B,CAAC;AAEF;;;;;;GAMG;AACH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,uDAKhC;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,KAAG,OAAmE,CAAC;AAExE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,KAAG,CAKtF,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The shared inbox to resolve an agency install's sub-account against.
3
+ *
4
+ * Returns a value only when the conversation belongs to exactly one inbox. The
5
+ * sub-account mapping is per inbox, so with several there is no single right
6
+ * answer, and picking one arbitrarily would confine the search to a client
7
+ * business the conversation may have nothing to do with. Undefined falls back
8
+ * to searching every sub-account — the behaviour before mapping existed, and
9
+ * wrong-but-slow beats confidently-wrong.
10
+ *
11
+ * Shared rather than inlined per call site: the card render and the
12
+ * entity-validation calls have to agree, or a record gets validated against one
13
+ * sub-account and rendered from another.
14
+ */
15
+ export declare const useMappedSmId: () => string | undefined;
16
+ /**
17
+ * Every shared inbox the conversation is in, as strings.
18
+ *
19
+ * Agency installs apply the sub-account mapping as the union of these. Sending
20
+ * only the single-inbox case (useMappedSmId) left a conversation in two inboxes
21
+ * with no inbox at all, and the server then searched every sub-account the
22
+ * install holds — showing, and letting an agent sync to, a contact from a client
23
+ * business none of the inboxes is mapped to.
24
+ */
25
+ export declare const useConversationSmIds: () => string[];
26
+ /**
27
+ * Appends the inboxes as the query parameters the backend reads: `smId` for the
28
+ * single-inbox case, and `inbox_ids` for every inbox the conversation is in.
29
+ */
30
+ export declare const withSmId: (url: string, smId?: string, smIds?: string[]) => string;
31
+ //# sourceMappingURL=useMappedSmId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMappedSmId.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappedSmId.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAGzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAO,MAAM,EAG7C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,QAAS,MAAM,SAAS,MAAM,UAAS,MAAM,EAAE,WAMnE,CAAC"}