@hiver/connector-agent 4.25.0-prefillAuto-beta.2 → 4.25.0-prefillAuto-beta.4
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/constants/endpoints.d.ts +1 -0
- package/constants/endpoints.d.ts.map +1 -1
- package/constants/global-constants.d.ts +1 -0
- package/constants/global-constants.d.ts.map +1 -1
- package/constants/tracking-events.d.ts +6 -0
- package/constants/tracking-events.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/write-form/api/getFormDefaultValues.d.ts +14 -14
- package/features/write-form/api/getFormDefaultValues.d.ts.map +1 -1
- package/features/write-form/api/getFormDefaults.d.ts +23 -16
- package/features/write-form/api/getFormDefaults.d.ts.map +1 -1
- package/features/write-form/api/linkSearch.d.ts +13 -0
- package/features/write-form/api/linkSearch.d.ts.map +1 -0
- 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 +38 -0
- package/features/write-form/components/link-search/constants.d.ts.map +1 -0
- package/features/write-form/components/link-search/index.d.ts +23 -0
- package/features/write-form/components/link-search/index.d.ts.map +1 -0
- package/features/write-form/components/link-search/kit.d.ts +85 -0
- package/features/write-form/components/link-search/kit.d.ts.map +1 -0
- package/features/write-form/components/link-search/level-fields.d.ts +18 -0
- package/features/write-form/components/link-search/level-fields.d.ts.map +1 -0
- package/features/write-form/components/link-search/link-menu.d.ts +30 -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 +26 -0
- package/features/write-form/components/link-search/link-select.d.ts.map +1 -0
- package/features/write-form/components/link-search/parts.d.ts +7 -0
- package/features/write-form/components/link-search/parts.d.ts.map +1 -0
- package/features/write-form/components/link-search/styles.d.ts +12 -0
- package/features/write-form/components/link-search/styles.d.ts.map +1 -0
- package/features/write-form/components/link-search/task-search.d.ts +24 -0
- package/features/write-form/components/link-search/task-search.d.ts.map +1 -0
- package/features/write-form/components/link-search/use-link-search.d.ts +23 -0
- package/features/write-form/components/link-search/use-link-search.d.ts.map +1 -0
- 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 +13 -0
- package/features/write-form/components/link-search/utils.d.ts.map +1 -0
- package/features/write-form/components/link-search/v2-theme.d.ts +10 -0
- package/features/write-form/components/link-search/v2-theme.d.ts.map +1 -0
- package/features/write-form/components/map-form-defaults/index.d.ts +5 -1
- package/features/write-form/components/map-form-defaults/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/hooks/usePrefillPlacement.d.ts +5 -4
- package/features/write-form/hooks/usePrefillPlacement.d.ts.map +1 -1
- package/features/write-form/utils/prefillTaskProperties.d.ts +3 -3
- package/features/write-form/utils/prefillTaskProperties.d.ts.map +1 -1
- package/features/write-form/utils/prefillTracking.d.ts +2 -2
- package/features/write-form/utils/prefillTracking.d.ts.map +1 -1
- package/features/write-form/utils/prefillTruncation.d.ts +8 -8
- package/features/write-form/utils/prefillTruncation.d.ts.map +1 -1
- package/features/write-form/utils/summaryMaxChars.d.ts +6 -2
- package/features/write-form/utils/summaryMaxChars.d.ts.map +1 -1
- package/index.es.js +13211 -12167
- package/index.umd.js +778 -706
- package/main-dev.d.ts.map +1 -1
- package/package.json +4 -2
- package/store/slice.d.ts +3 -1
- package/store/slice.d.ts.map +1 -1
- package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
- package/testing/test-utils.d.ts +4 -2
- package/testing/test-utils.d.ts.map +1 -1
- package/types/form.d.ts +25 -0
- package/types/form.d.ts.map +1 -1
- package/features/write-form/utils/charLimit.d.ts +0 -11
- package/features/write-form/utils/charLimit.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface IPrefillTrackingContext {
|
|
2
2
|
tenant?: string;
|
|
3
3
|
UG_Id?: string;
|
|
4
4
|
SM_id?: string[];
|
|
@@ -14,5 +14,5 @@ export interface PrefillTrackingContext {
|
|
|
14
14
|
export declare const getPrefillTrackingContext: ({ conversationId, smIds }: {
|
|
15
15
|
conversationId?: number;
|
|
16
16
|
smIds?: (string | number)[];
|
|
17
|
-
}) =>
|
|
17
|
+
}) => IPrefillTrackingContext;
|
|
18
18
|
//# sourceMappingURL=prefillTracking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefillTracking.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/prefillTracking.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"prefillTracking.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/prefillTracking.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,8BAGnC;IACD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC7B,KAAG,uBASH,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const PREFILL_TRUNCATION_ELLIPSIS = "\u2026";
|
|
|
3
3
|
* The slice of a form field the truncation needs. Structural on purpose, so both
|
|
4
4
|
* the raw `FieldListResponse` and the `@connector/ui` field configs satisfy it.
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface IPrefillLimitField {
|
|
7
7
|
name: string;
|
|
8
8
|
type?: string;
|
|
9
9
|
multiline?: boolean;
|
|
@@ -14,23 +14,23 @@ export interface PrefillLimitField {
|
|
|
14
14
|
isEmail?: unknown;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface IPrefillTruncation {
|
|
18
18
|
field: string;
|
|
19
19
|
originalLength: number;
|
|
20
20
|
limit: number;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The field's character limit: `field.limit
|
|
24
|
-
*
|
|
23
|
+
* The field's character limit (the shared `resolveFieldCharLimit`): `field.limit`
|
|
24
|
+
* when it is a limit, else `validations.maxCharacters`. Numeric strings parse.
|
|
25
25
|
*/
|
|
26
|
-
export declare const getPrefillFieldLimit: (field:
|
|
26
|
+
export declare const getPrefillFieldLimit: (field: IPrefillLimitField) => number | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Title-like = a single-line text input. Multiline (description) fields are not
|
|
29
29
|
* cut here; their summary is sized to fit instead. URL / email inputs are left
|
|
30
30
|
* alone too: a cut value would fail their format validation anyway, and a
|
|
31
31
|
* silently broken link is worse than the visible length error.
|
|
32
32
|
*/
|
|
33
|
-
export declare const isTitleLikeField: (field:
|
|
33
|
+
export declare const isTitleLikeField: (field: IPrefillLimitField) => boolean;
|
|
34
34
|
/**
|
|
35
35
|
* Cuts `value` to exactly `limit` characters ending in "…" when it is longer
|
|
36
36
|
* than `limit`; returns it untouched otherwise. Never splits a surrogate pair
|
|
@@ -47,8 +47,8 @@ export declare const truncateToLimit: (value: string, limit: number) => string;
|
|
|
47
47
|
* Returns a new values object (the input is not mutated) and one entry per
|
|
48
48
|
* field that was shortened.
|
|
49
49
|
*/
|
|
50
|
-
export declare const truncatePrefillValues: <T extends Record<string, unknown>>(values: T, fields: readonly
|
|
50
|
+
export declare const truncatePrefillValues: <T extends Record<string, unknown>>(values: T, fields: readonly IPrefillLimitField[]) => {
|
|
51
51
|
values: T;
|
|
52
|
-
truncations:
|
|
52
|
+
truncations: IPrefillTruncation[];
|
|
53
53
|
};
|
|
54
54
|
//# sourceMappingURL=prefillTruncation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefillTruncation.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/prefillTruncation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefillTruncation.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/prefillTruncation.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,2BAA2B,WAAM,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE;QACZ,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAChC,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UAAW,kBAAkB,KAAG,MAAM,GAAG,SAAyC,CAAC;AAEpH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,UAAW,kBAAkB,KAAG,OAC0C,CAAC;AAExG;;;;GAIG;AACH,eAAO,MAAM,eAAe,UAAW,MAAM,SAAS,MAAM,KAAG,MAM9D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAC7D,CAAC,UACD,SAAS,kBAAkB,EAAE,KACpC;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,WAAW,EAAE,kBAAkB,EAAE,CAAA;CAehD,CAAC"}
|
|
@@ -37,8 +37,12 @@ export declare const hasAppendPermalink: (field?: ISummaryFieldConfig) => boolea
|
|
|
37
37
|
* `getPermalinkUrlAllowance`, reserved for the URL). If the token appears more than once, the
|
|
38
38
|
* remaining budget is split between the copies.
|
|
39
39
|
*
|
|
40
|
-
* Returns `undefined` when the field has no limit (no cap, as before)
|
|
41
|
-
*
|
|
40
|
+
* Returns `undefined` when the field has no limit (no cap, as before).
|
|
41
|
+
*
|
|
42
|
+
* `MIN_SUMMARY_MAX_CHARS` keeps a readable summary only when the field has no
|
|
43
|
+
* `appendPermalink`. With a permalink the budget is a hard cap, so the value
|
|
44
|
+
* plus the permalink line always fits the limit and the PM tool never clips the
|
|
45
|
+
* link; a budget of 0 or less returns 0, meaning "no room for a summary".
|
|
42
46
|
*/
|
|
43
47
|
export declare const getSummaryMaxCharsForField: (field: ISummaryFieldConfig | undefined, value: string, permalinkUrlAllowance?: number) => number | undefined;
|
|
44
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summaryMaxChars.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/utils/summaryMaxChars.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AAMrE,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAO3C,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAI3C,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACzC;AAOD;;;G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