@hiver/connector-agent 4.20.0-cs5-beta.0 → 4.20.0-darktheme2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/email-logger/index.d.ts +2 -0
- package/app/email-logger/index.d.ts.map +1 -1
- package/app/email-logger/provider.d.ts +3 -1
- package/app/email-logger/provider.d.ts.map +1 -1
- package/app/hig-slack/HigSlackSection.d.ts +2 -0
- package/app/hig-slack/HigSlackSection.d.ts.map +1 -1
- package/app/hig-slack/index.d.ts +4 -1
- package/app/hig-slack/index.d.ts.map +1 -1
- package/app/hig-slack/provider.d.ts +2 -0
- package/app/hig-slack/provider.d.ts.map +1 -1
- package/app/index.d.ts +2 -0
- package/app/index.d.ts.map +1 -1
- package/app/integration-sense/index.d.ts +2 -0
- package/app/integration-sense/index.d.ts.map +1 -1
- package/app/integration-sense/provider.d.ts +3 -1
- package/app/integration-sense/provider.d.ts.map +1 -1
- package/app/omni-email-logger/index.d.ts +2 -0
- package/app/omni-email-logger/index.d.ts.map +1 -1
- package/app/omni-slack/SlackConnectModalIsland.d.ts +3 -0
- package/app/omni-slack/SlackConnectModalIsland.d.ts.map +1 -1
- package/app/omni-slack/index.d.ts +4 -1
- package/app/omni-slack/index.d.ts.map +1 -1
- package/app/omni-slack/provider.d.ts +2 -0
- package/app/omni-slack/provider.d.ts.map +1 -1
- package/app/provider.d.ts +3 -1
- package/app/provider.d.ts.map +1 -1
- package/app/split-apps-nudge/index.d.ts +6 -2
- package/app/split-apps-nudge/index.d.ts.map +1 -1
- package/app/split-apps-nudge/provider.d.ts +3 -1
- package/app/split-apps-nudge/provider.d.ts.map +1 -1
- package/components/test-email/index.d.ts.map +1 -1
- package/components/ui/layover/index.d.ts.map +1 -1
- package/components/ui/layover/styles.d.ts +3 -1
- package/components/ui/layover/styles.d.ts.map +1 -1
- package/components/ui/layover/view.d.ts.map +1 -1
- package/components/ui/loader-button/index.d.ts.map +1 -1
- package/components/ui/modal/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/attachment/styles.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/card-actions.d.ts +2 -1
- package/features/connector-cards/components/card-list/card-actions.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/loading-skeleton.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts +2 -0
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/connector-cards/components/connection-in-progress-modal/index.d.ts.map +1 -1
- package/features/connector-cards/components/connector-header/help-dropdown.d.ts.map +1 -1
- package/features/connector-cards/components/connector-header/index.d.ts.map +1 -1
- package/features/connector-cards/components/connector-header/style.d.ts.map +1 -1
- package/features/connector-cards/components/no-connectors/index.d.ts.map +1 -1
- package/features/connector-cards/components/no-connectors/style.d.ts +1 -0
- package/features/connector-cards/components/no-connectors/style.d.ts.map +1 -1
- package/features/connector-highlight/components/custom-tooltip/index.d.ts.map +1 -1
- package/features/connector-highlight/components/data-card/styles.d.ts.map +1 -1
- package/features/connector-highlight/utils/highlighter.d.ts.map +1 -1
- package/features/customer-identity-mapping/components/CustomerIdentityMappingModal.d.ts.map +1 -1
- package/features/email-logger/components/log-tooltip/styles.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/loader/index.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/search-options/option.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/search-results/result.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/search-results/styles.d.ts.map +1 -1
- package/features/email-logger/omni/components/LogEmailPill.d.ts.map +1 -1
- package/features/email-logger/omni/styles.d.ts.map +1 -1
- package/features/feedback/styles.d.ts.map +1 -1
- package/features/global-search/components/preview-and-link/styles.d.ts.map +1 -1
- package/features/global-search/components/search-option/styles.d.ts.map +1 -1
- package/features/global-search/components/search-results/index.d.ts.map +1 -1
- package/features/global-search/components/search-results/styles.d.ts.map +1 -1
- package/features/global-search/components/search-select/components/select-option/styles.d.ts.map +1 -1
- package/features/global-search/components/search-select/styles.d.ts.map +1 -1
- package/features/global-search/components/search-suggestions/styles.d.ts.map +1 -1
- package/features/schedule-call/style.d.ts.map +1 -1
- package/features/slack/components/HeroIllustration.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/MentionPicker.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/NotMemberTooltip.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/style.d.ts.map +1 -1
- package/features/slack/components/StartModal/SelectField.d.ts.map +1 -1
- package/features/slack/components/StartModal/SlackThreadTab.d.ts.map +1 -1
- package/features/slack/components/StartModal/dropdownOmni.d.ts +72 -26
- package/features/slack/components/StartModal/dropdownOmni.d.ts.map +1 -1
- package/features/slack/components/StartModal/style.d.ts.map +1 -1
- package/features/slack/components/figma-tokens.d.ts +28 -24
- package/features/slack/components/figma-tokens.d.ts.map +1 -1
- package/features/slack/components/style.d.ts.map +1 -1
- package/features/split-apps/components/nudge/styles.d.ts.map +1 -1
- package/features/split-apps/components/nudge/tooltip.d.ts.map +1 -1
- package/features/toast-message/ToastRoot.d.ts.map +1 -1
- package/features/write-form/api/getFieldCustomFields.d.ts +30 -0
- package/features/write-form/api/getFieldCustomFields.d.ts.map +1 -0
- package/features/write-form/components/auto-fill/prompt.d.ts +2 -1
- package/features/write-form/components/auto-fill/prompt.d.ts.map +1 -1
- package/features/write-form/components/auto-fill/styles.d.ts +1 -0
- package/features/write-form/components/auto-fill/styles.d.ts.map +1 -1
- package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
- package/features/write-form/components/card-linking/style.d.ts.map +1 -1
- package/features/write-form/components/create-task-banner/styles.d.ts.map +1 -1
- package/features/write-form/components/write-form/__tests__/table-validations.test.d.ts +2 -0
- package/features/write-form/components/write-form/__tests__/table-validations.test.d.ts.map +1 -0
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/styles.d.ts +3 -2
- package/features/write-form/components/write-form/styles.d.ts.map +1 -1
- package/features/write-form/constants/api.d.ts +1 -1
- package/features/write-form/constants/api.d.ts.map +1 -1
- package/features/write-form/utils/index.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +15980 -14582
- package/index.umd.js +1435 -1151
- package/main-dev.d.ts.map +1 -1
- package/package.json +3 -2
- package/testing/mocks/handlers/analyse.d.ts.map +1 -1
- package/testing/mocks/handlers/bifrost-token.d.ts.map +1 -1
- package/testing/mocks/handlers/common.d.ts.map +1 -1
- package/testing/mocks/handlers/customer-identity-mapping.d.ts.map +1 -1
- package/testing/mocks/handlers/email-logger.d.ts.map +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts +2 -2
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/testing/mocks/handlers/global-search.d.ts.map +1 -1
- package/testing/mocks/handlers/slack.d.ts.map +1 -1
- package/testing/mocks/handlers/user-auth.d.ts.map +1 -1
- package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
- package/testing/mocks/utils/mockDelay.d.ts +2 -0
- package/testing/mocks/utils/mockDelay.d.ts.map +1 -0
- package/theme/connector-theme-provider.d.ts +10 -0
- package/theme/connector-theme-provider.d.ts.map +1 -0
- package/theme/connector-theme-provider.test.d.ts +2 -0
- package/theme/connector-theme-provider.test.d.ts.map +1 -0
- package/theme/connector-theme.d.ts +72 -0
- package/theme/connector-theme.d.ts.map +1 -0
- package/theme/connector-theme.test.d.ts +2 -0
- package/theme/connector-theme.test.d.ts.map +1 -0
- package/types/form.d.ts +2 -0
- package/types/form.d.ts.map +1 -1
- package/features/write-form/api/__tests__/getConversationSummary.test.d.ts +0 -2
- package/features/write-form/api/__tests__/getConversationSummary.test.d.ts.map +0 -1
- package/features/write-form/api/getConversationSummary.d.ts +0 -17
- package/features/write-form/api/getConversationSummary.d.ts.map +0 -1
- package/features/write-form/utils/__tests__/conversationSummary.test.d.ts +0 -2
- package/features/write-form/utils/__tests__/conversationSummary.test.d.ts.map +0 -1
- package/features/write-form/utils/conversationSummary.d.ts +0 -26
- package/features/write-form/utils/conversationSummary.d.ts.map +0 -1
package/main-dev.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-dev.d.ts","sourceRoot":"","sources":["../src/main-dev.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main-dev.d.ts","sourceRoot":"","sources":["../src/main-dev.tsx"],"names":[],"mappings":"AA8mBA,eAAO,MAAM,OAAO,+CAInB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiver/connector-agent",
|
|
3
|
-
"version": "4.20.0-
|
|
3
|
+
"version": "4.20.0-darktheme2-beta.0",
|
|
4
4
|
"main": "index.es.js",
|
|
5
5
|
"module": "index.es.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"msw": "^2.4.4",
|
|
13
13
|
"react": "^18.3.1",
|
|
14
|
-
"react-dom": "^18.3.1"
|
|
14
|
+
"react-dom": "^18.3.1",
|
|
15
|
+
"react-router-dom": "^6.2.1"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
18
|
"@hiver/hiver-ui-kit": "4.7.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyse.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/analyse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"analyse.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/analyse.ts"],"names":[],"mappings":"AAqKA,eAAO,MAAM,QAAQ,6BAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bifrost-token.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/bifrost-token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bifrost-token.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/bifrost-token.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,QAAQ,6BAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/common.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,QAAQ,6BAAqD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-identity-mapping.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/customer-identity-mapping.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer-identity-mapping.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/customer-identity-mapping.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-logger.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/email-logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-logger.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/email-logger.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,6BAA6B,EAC7B,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAc3C,eAAO,MAAM,iBAAiB,QAAO,iBAgCpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,6BAarC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,sBAWpC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAM9B,CAAC;AAsCF,eAAO,MAAM,QAAQ,6BAQpB,CAAC"}
|
|
@@ -26,7 +26,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
26
26
|
readonly label: string;
|
|
27
27
|
readonly value: string | string[] | null;
|
|
28
28
|
readonly errorMessage: "" | null;
|
|
29
|
-
readonly statusCode: 500 | 404 |
|
|
29
|
+
readonly statusCode: 500 | 404 | 200 | 400;
|
|
30
30
|
readonly priority: number;
|
|
31
31
|
readonly deepLink: string | null;
|
|
32
32
|
readonly key: string;
|
|
@@ -50,7 +50,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
50
50
|
readonly label: string;
|
|
51
51
|
readonly value: string | string[] | null;
|
|
52
52
|
readonly errorMessage: "" | null;
|
|
53
|
-
readonly statusCode: 500 | 404 |
|
|
53
|
+
readonly statusCode: 500 | 404 | 200 | 400;
|
|
54
54
|
readonly priority: number;
|
|
55
55
|
readonly deepLink: string | null;
|
|
56
56
|
readonly key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAcpE,eAAO,MAAM,aAAa,UAAuD,CAAC;AAIlF,eAAO,MAAM,kBAAkB,UAA0E,CAAC;AAE1G,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAC;AAsFF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;;cAkEjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-search.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/global-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global-search.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/global-search.ts"],"names":[],"mappings":"AAsDA,eAAO,MAAM,QAAQ,6BAAmD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/slack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/slack.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAIV,aAAa,EACb,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AAMrC;;;;;;;;;;;;;GAaG;AAEH,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B;mEAC+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAsVD,eAAO,MAAM,QAAQ,6BAWpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAEjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,MAAM,QAAQ,YAAY,SAG5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-auth.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/user-auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-auth.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/user-auth.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;GAeG;AAEH,UAAU,SAAS;IACjB,KAAK,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0FD,eAAO,MAAM,QAAQ,6BAAqE,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YAEpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBAAiB,MAAM,SAAS,SAAS,SAE3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAuC,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AA62B9B,eAAO,MAAM,eAAe,2BAQ1B,CAAC;AAEH,eAAO,MAAM,QAAQ,6BAcpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockDelay.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/utils/mockDelay.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAGnD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConnectorColorScheme, ConnectorThemeConfig, ConnectorThemeTokens } from './connector-theme';
|
|
2
|
+
export declare const useConnectorTheme: () => {
|
|
3
|
+
mode: ConnectorColorScheme;
|
|
4
|
+
tokens: ConnectorThemeTokens;
|
|
5
|
+
};
|
|
6
|
+
export declare const ConnectorThemeProvider: ({ config, children }: {
|
|
7
|
+
config?: ConnectorThemeConfig;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=connector-theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-theme-provider.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme-provider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAa1G,eAAO,MAAM,iBAAiB;UAVtB,oBAAoB;YAClB,oBAAoB;CAS0C,CAAC;AAEzE,eAAO,MAAM,sBAAsB,yBAGhC;IACD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAyIA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-theme-provider.test.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme-provider.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type ConnectorColorScheme = 'light' | 'dark';
|
|
3
|
+
export declare const CONNECTOR_DARK_SWITCH_DISABLED_TRACK = "#5B5D60";
|
|
4
|
+
/**
|
|
5
|
+
* Marker for tooltip poppers that render a rich panel (their own surface,
|
|
6
|
+
* border and spacing) instead of a compact text bubble. The dark theme's
|
|
7
|
+
* portal fallback skips poppers carrying this class so it can win the
|
|
8
|
+
* specificity fight against hiver-ui-kit's popper styleOverrides for every
|
|
9
|
+
* plain tooltip without stomping the rich ones.
|
|
10
|
+
*/
|
|
11
|
+
export declare const CONNECTOR_RICH_TOOLTIP_CLASS = "connector-rich-tooltip";
|
|
12
|
+
/**
|
|
13
|
+
* Host-facing semantic tokens. Hosts should pass their design-system aliases
|
|
14
|
+
* (CSS variables are supported) instead of connector components depending on
|
|
15
|
+
* host-specific token names.
|
|
16
|
+
*/
|
|
17
|
+
export interface ConnectorThemeTokens {
|
|
18
|
+
canvas: string;
|
|
19
|
+
surface: string;
|
|
20
|
+
surfaceSubtle: string;
|
|
21
|
+
surfaceElevated: string;
|
|
22
|
+
surfaceHover: string;
|
|
23
|
+
surfaceActive: string;
|
|
24
|
+
previewHeader: string;
|
|
25
|
+
tooltipSurface: string;
|
|
26
|
+
tooltipText: string;
|
|
27
|
+
border: string;
|
|
28
|
+
borderStrong: string;
|
|
29
|
+
textPrimary: string;
|
|
30
|
+
textSecondary: string;
|
|
31
|
+
textTertiary: string;
|
|
32
|
+
textMuted: string;
|
|
33
|
+
textDisabled: string;
|
|
34
|
+
iconPrimary: string;
|
|
35
|
+
iconSecondary: string;
|
|
36
|
+
iconTertiary: string;
|
|
37
|
+
iconDisabled: string;
|
|
38
|
+
iconAccent: string;
|
|
39
|
+
accent: string;
|
|
40
|
+
accentHover: string;
|
|
41
|
+
accentSubtle: string;
|
|
42
|
+
primaryAction: string;
|
|
43
|
+
primaryActionHover: string;
|
|
44
|
+
primaryActionActive: string;
|
|
45
|
+
inputBackground: string;
|
|
46
|
+
inputFilledBackground: string;
|
|
47
|
+
inputDisabledBackground: string;
|
|
48
|
+
inputBorder: string;
|
|
49
|
+
inputBorderHover: string;
|
|
50
|
+
inputBorderFocus: string;
|
|
51
|
+
inputBorderInvalid: string;
|
|
52
|
+
inputText: string;
|
|
53
|
+
inputDisabledText: string;
|
|
54
|
+
inputPlaceholder: string;
|
|
55
|
+
inputShadow: string;
|
|
56
|
+
shadowSubtle: string;
|
|
57
|
+
shadowStrong: string;
|
|
58
|
+
dropdownShadow: string;
|
|
59
|
+
overlayBackdrop: string;
|
|
60
|
+
negative: string;
|
|
61
|
+
success: string;
|
|
62
|
+
onAccent: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ConnectorThemeConfig {
|
|
65
|
+
mode: ConnectorColorScheme;
|
|
66
|
+
tokens?: Partial<ConnectorThemeTokens>;
|
|
67
|
+
}
|
|
68
|
+
export declare const connectorThemeDefaults: Record<ConnectorColorScheme, ConnectorThemeTokens>;
|
|
69
|
+
export declare const resolveConnectorThemeTokens: ({ mode, tokens }: ConnectorThemeConfig) => ConnectorThemeTokens;
|
|
70
|
+
export declare const connectorThemeCssVariables: (mode: ConnectorColorScheme, tokens: ConnectorThemeTokens) => CSSProperties;
|
|
71
|
+
export declare const createConnectorMuiTheme: (mode: ConnectorColorScheme, tokens: ConnectorThemeTokens) => import('@hiver/hiver-ui-kit').Theme;
|
|
72
|
+
//# sourceMappingURL=connector-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-theme.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD,eAAO,MAAM,oCAAoC,YAAY,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAErE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB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AAC,oBAAoB,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CA+FrF,CAAC;AAEF,eAAO,MAAM,2BAA2B,qBAAsB,oBAAoB,KAAG,oBAGnF,CAAC;AAEH,eAAO,MAAM,0BAA0B,SAAU,oBAAoB,UAAU,oBAAoB,KA4F3F,aAAa,CAAC;AAsDtB,eAAO,MAAM,uBAAuB,SAAU,oBAAoB,UAAU,oBAAoB,wCAqX/F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-theme.test.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme.test.ts"],"names":[],"mappings":""}
|
package/types/form.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export interface FieldListResponse {
|
|
|
86
86
|
isClearable?: boolean;
|
|
87
87
|
isFieldCustom?: boolean;
|
|
88
88
|
fieldAccessMode?: string;
|
|
89
|
+
hasCustomFields?: boolean;
|
|
90
|
+
customFieldsArgs?: Record<string, unknown>;
|
|
89
91
|
}
|
|
90
92
|
export interface FormFields extends FieldListResponse {
|
|
91
93
|
type: FIELD_TYPES;
|
package/types/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,EAAE,GAAG,UAAU,GAAG,cAAc,EAAE,CAAC;AAEtH,MAAM,MAAM,eAAe,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;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getConversationSummary.test.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/api/__tests__/getConversationSummary.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ConversationSummaryResponse {
|
|
2
|
-
summary: string;
|
|
3
|
-
retryable?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const getConversationSummaryQueryKey: (conversationId?: number, smId?: string, maxChars?: number) => (string | number | undefined)[];
|
|
6
|
-
/**
|
|
7
|
-
* Fetches the AI-generated conversation summary for a field mapped to
|
|
8
|
-
* `{{conversation_summary}}`. The backend resolves freshness itself (no
|
|
9
|
-
* fingerprint params), so we only pass the conversation, the shared mailbox and
|
|
10
|
-
* the field's character cap. Returns `{ summary }` — may be an empty string,
|
|
11
|
-
* in which case the caller leaves the field empty (never an error).
|
|
12
|
-
*
|
|
13
|
-
* Same `/v1/api/connectors/...` namespace as the form default-values endpoint,
|
|
14
|
-
* so the connector bifrost reaches it identically.
|
|
15
|
-
*/
|
|
16
|
-
export declare function useConversationSummaryQuery(conversationId?: number, smId?: string, maxChars?: number, enabled?: boolean): import('@tanstack/react-query').UseQueryResult<ConversationSummaryResponse, Error>;
|
|
17
|
-
//# sourceMappingURL=getConversationSummary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getConversationSummary.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/api/getConversationSummary.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,8BAA8B,oBAAqB,MAAM,SAAS,MAAM,aAAa,MAAM,oCAOvG,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,CAAC,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,GAAE,OAAc,sFA8BxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversationSummary.test.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/utils/__tests__/conversationSummary.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const CONVERSATION_SUMMARY_TOKEN = "{{conversation_summary}}";
|
|
2
|
-
export declare const SUMMARY_GENERATING_PLACEHOLDER = "Generating summary\u2026";
|
|
3
|
-
/**
|
|
4
|
-
* Scans the resolved form defaults (per-field, mapped 1:1 from the
|
|
5
|
-
* `/default-values` response) for field(s) still awaiting the summary.
|
|
6
|
-
*
|
|
7
|
-
* The token may be the entire value (`{{conversation_summary}}`) or embedded in
|
|
8
|
-
* admin-authored text (`test - {{conversation_summary}}`), so this matches on
|
|
9
|
-
* containment — an exact-equality check silently skipped the embedded case and
|
|
10
|
-
* no summary was ever requested for it.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getConversationSummaryFieldNames: (defaults?: Record<string, unknown> | null) => string[];
|
|
13
|
-
/**
|
|
14
|
-
* Substitutes the fetched summary into a field value, preserving whatever the
|
|
15
|
-
* admin configured around the token. An empty `summary` (feature off, over
|
|
16
|
-
* quota, generation failed) drops the token instead, so the literal token can
|
|
17
|
-
* never reach the third-party system.
|
|
18
|
-
*/
|
|
19
|
-
export declare const applySummaryToValue: (value: string, summary: string) => string;
|
|
20
|
-
/**
|
|
21
|
-
* Clears any token still sitting in the summary-mapped fields. Used on submit:
|
|
22
|
-
* the summary takes seconds to generate and the form can be submitted before it
|
|
23
|
-
* lands, and the literal token must never reach the third-party system.
|
|
24
|
-
*/
|
|
25
|
-
export declare const withSummaryTokensCleared: <T extends Record<string, unknown>>(values: T, fieldNames: string[]) => T;
|
|
26
|
-
//# sourceMappingURL=conversationSummary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversationSummary.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/conversationSummary.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AAGrE,eAAO,MAAM,8BAA8B,6BAAwB,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,cAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KAAG,MAAM,EAUlG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,UAAW,MAAM,WAAW,MAAM,KAAG,MACd,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc,MAAM,EAAE,KAAG,CAQ7G,CAAC"}
|