@inkeep/cxkit-primitives 0.5.15 → 0.5.17
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/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +77 -76
- package/dist/index.d.cts +3695 -11
- package/dist/index.d.ts +3695 -11
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/package.json +4 -4
- package/dist/atoms/api/analytics/conversation.d.cts +0 -3
- package/dist/atoms/api/analytics/conversation.d.ts +0 -3
- package/dist/atoms/api/analytics/events.d.cts +0 -2
- package/dist/atoms/api/analytics/events.d.ts +0 -2
- package/dist/atoms/api/analytics/feedback.d.cts +0 -11
- package/dist/atoms/api/analytics/feedback.d.ts +0 -11
- package/dist/atoms/avatars/ai.d.cts +0 -3
- package/dist/atoms/avatars/ai.d.ts +0 -3
- package/dist/atoms/avatars/user.d.cts +0 -3
- package/dist/atoms/avatars/user.d.ts +0 -3
- package/dist/atoms/cmdk/command-score.d.cts +0 -1
- package/dist/atoms/cmdk/command-score.d.ts +0 -1
- package/dist/atoms/cmdk/index.d.cts +0 -426
- package/dist/atoms/cmdk/index.d.ts +0 -426
- package/dist/atoms/codeblock/index.d.cts +0 -10
- package/dist/atoms/codeblock/index.d.ts +0 -10
- package/dist/atoms/custom-styles.d.cts +0 -5
- package/dist/atoms/custom-styles.d.ts +0 -5
- package/dist/atoms/dialog.d.cts +0 -95
- package/dist/atoms/dialog.d.ts +0 -95
- package/dist/atoms/icons/built-in-icon-renderer.d.cts +0 -6
- package/dist/atoms/icons/built-in-icon-renderer.d.ts +0 -6
- package/dist/atoms/icons/built-in-icons.d.cts +0 -72
- package/dist/atoms/icons/built-in-icons.d.ts +0 -72
- package/dist/atoms/icons/checkbox-icon.d.cts +0 -1
- package/dist/atoms/icons/checkbox-icon.d.ts +0 -1
- package/dist/atoms/icons/custom-icon.d.cts +0 -6
- package/dist/atoms/icons/custom-icon.d.ts +0 -6
- package/dist/atoms/icons/index.d.cts +0 -2
- package/dist/atoms/icons/index.d.ts +0 -2
- package/dist/atoms/icons/inkeep-default-icons.d.cts +0 -2
- package/dist/atoms/icons/inkeep-default-icons.d.ts +0 -2
- package/dist/atoms/link.d.cts +0 -14
- package/dist/atoms/link.d.ts +0 -14
- package/dist/atoms/markdown/components.d.cts +0 -27
- package/dist/atoms/markdown/components.d.ts +0 -27
- package/dist/atoms/markdown/index.d.cts +0 -15
- package/dist/atoms/markdown/index.d.ts +0 -15
- package/dist/atoms/markdown/rehype-inline-code-property.d.cts +0 -1
- package/dist/atoms/markdown/rehype-inline-code-property.d.ts +0 -1
- package/dist/atoms/portal-with-theme.d.cts +0 -2
- package/dist/atoms/portal-with-theme.d.ts +0 -2
- package/dist/atoms/portal.d.cts +0 -8
- package/dist/atoms/portal.d.ts +0 -8
- package/dist/atoms/shadow/context.d.cts +0 -14
- package/dist/atoms/shadow/context.d.ts +0 -14
- package/dist/atoms/shadow/create.d.cts +0 -8
- package/dist/atoms/shadow/create.d.ts +0 -8
- package/dist/atoms/shadow/index.d.cts +0 -1
- package/dist/atoms/shadow/index.d.ts +0 -1
- package/dist/atoms/shadow/root.d.cts +0 -5
- package/dist/atoms/shadow/root.d.ts +0 -5
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.cts +0 -2
- package/dist/atoms/shadow/use-ensured-forwarded-ref.d.ts +0 -2
- package/dist/atoms/shadow/utils.d.cts +0 -9
- package/dist/atoms/shadow/utils.d.ts +0 -9
- package/dist/components/chat-button.d.cts +0 -18
- package/dist/components/chat-button.d.ts +0 -18
- package/dist/components/embedded-chat/chat-provider.d.cts +0 -19
- package/dist/components/embedded-chat/chat-provider.d.ts +0 -19
- package/dist/components/embedded-chat/use-captcha.d.cts +0 -13
- package/dist/components/embedded-chat/use-captcha.d.ts +0 -13
- package/dist/components/embedded-chat/use-chat-action.d.cts +0 -9
- package/dist/components/embedded-chat/use-chat-action.d.ts +0 -9
- package/dist/components/embedded-chat/use-inkeep-chat.d.cts +0 -25
- package/dist/components/embedded-chat/use-inkeep-chat.d.ts +0 -25
- package/dist/components/embedded-chat.d.cts +0 -416
- package/dist/components/embedded-chat.d.ts +0 -416
- package/dist/components/embedded-search/search-provider.d.cts +0 -21
- package/dist/components/embedded-search/search-provider.d.ts +0 -21
- package/dist/components/embedded-search/transform-results.d.cts +0 -3
- package/dist/components/embedded-search/transform-results.d.ts +0 -3
- package/dist/components/embedded-search/use-inkeep-search.d.cts +0 -21
- package/dist/components/embedded-search/use-inkeep-search.d.ts +0 -21
- package/dist/components/embedded-search.d.cts +0 -216
- package/dist/components/embedded-search.d.ts +0 -216
- package/dist/components/factory.d.cts +0 -19
- package/dist/components/factory.d.ts +0 -19
- package/dist/components/index.d.cts +0 -11
- package/dist/components/index.d.ts +0 -11
- package/dist/components/intelligent-form/actions/context-model-response.d.cts +0 -10
- package/dist/components/intelligent-form/actions/context-model-response.d.ts +0 -10
- package/dist/components/intelligent-form/actions/escalation-schema.d.cts +0 -2
- package/dist/components/intelligent-form/actions/escalation-schema.d.ts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-messages.d.cts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-messages.d.ts +0 -2
- package/dist/components/intelligent-form/actions/qa-model-response.d.cts +0 -14
- package/dist/components/intelligent-form/actions/qa-model-response.d.ts +0 -14
- package/dist/components/intelligent-form/intelligent-form-provider.d.cts +0 -29
- package/dist/components/intelligent-form/intelligent-form-provider.d.ts +0 -29
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +0 -30
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +0 -30
- package/dist/components/intelligent-form.d.cts +0 -136
- package/dist/components/intelligent-form.d.ts +0 -136
- package/dist/components/modal/modal-provider.d.cts +0 -13
- package/dist/components/modal/modal-provider.d.ts +0 -13
- package/dist/components/modal/use-inkeep-modal.d.cts +0 -8
- package/dist/components/modal/use-inkeep-modal.d.ts +0 -8
- package/dist/components/modal.d.cts +0 -18
- package/dist/components/modal.d.ts +0 -18
- package/dist/components/searchbar.d.cts +0 -23
- package/dist/components/searchbar.d.ts +0 -23
- package/dist/components/tagline-logo-icon.d.cts +0 -1
- package/dist/components/tagline-logo-icon.d.ts +0 -1
- package/dist/hooks/index.d.cts +0 -12
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/use-boolean.d.cts +0 -10
- package/dist/hooks/use-boolean.d.ts +0 -10
- package/dist/hooks/use-browser-storage.d.cts +0 -17
- package/dist/hooks/use-browser-storage.d.ts +0 -17
- package/dist/hooks/use-component-classnames.d.cts +0 -6
- package/dist/hooks/use-component-classnames.d.ts +0 -6
- package/dist/hooks/use-container-size.d.cts +0 -5
- package/dist/hooks/use-container-size.d.ts +0 -5
- package/dist/hooks/use-copy-to-clipboard.d.cts +0 -3
- package/dist/hooks/use-copy-to-clipboard.d.ts +0 -3
- package/dist/hooks/use-instant-update.d.cts +0 -17
- package/dist/hooks/use-instant-update.d.ts +0 -17
- package/dist/hooks/use-is-mounted.d.cts +0 -1
- package/dist/hooks/use-is-mounted.d.ts +0 -1
- package/dist/hooks/use-media-query.d.cts +0 -1
- package/dist/hooks/use-media-query.d.ts +0 -1
- package/dist/hooks/use-resize-observer.d.cts +0 -12
- package/dist/hooks/use-resize-observer.d.ts +0 -12
- package/dist/hooks/use-scroll-to-bottom.d.cts +0 -13
- package/dist/hooks/use-scroll-to-bottom.d.ts +0 -13
- package/dist/hooks/use-scrolling-fades.d.cts +0 -2
- package/dist/hooks/use-scrolling-fades.d.ts +0 -2
- package/dist/hooks/use-settle-action.d.cts +0 -3
- package/dist/hooks/use-settle-action.d.ts +0 -3
- package/dist/providers/attachment-item-provider.d.cts +0 -9
- package/dist/providers/attachment-item-provider.d.ts +0 -9
- package/dist/providers/attachments-bar-provider.d.cts +0 -30
- package/dist/providers/attachments-bar-provider.d.ts +0 -30
- package/dist/providers/base-events-provider.d.cts +0 -8
- package/dist/providers/base-events-provider.d.ts +0 -8
- package/dist/providers/chat-events-provider.d.cts +0 -20
- package/dist/providers/chat-events-provider.d.ts +0 -20
- package/dist/providers/chat-form-provider.d.cts +0 -23
- package/dist/providers/chat-form-provider.d.ts +0 -23
- package/dist/providers/config-provider.d.cts +0 -24
- package/dist/providers/config-provider.d.ts +0 -24
- package/dist/providers/conversation-provider.d.cts +0 -12
- package/dist/providers/conversation-provider.d.ts +0 -12
- package/dist/providers/feedback-item-provider.d.cts +0 -10
- package/dist/providers/feedback-item-provider.d.ts +0 -10
- package/dist/providers/feedback-provider.d.cts +0 -19
- package/dist/providers/feedback-provider.d.ts +0 -19
- package/dist/providers/form-field-provider.d.cts +0 -15
- package/dist/providers/form-field-provider.d.ts +0 -15
- package/dist/providers/help-menu-provider.d.cts +0 -11
- package/dist/providers/help-menu-provider.d.ts +0 -11
- package/dist/providers/index.d.cts +0 -19
- package/dist/providers/index.d.ts +0 -19
- package/dist/providers/intelligent-form-field-provider.d.cts +0 -15
- package/dist/providers/intelligent-form-field-provider.d.ts +0 -15
- package/dist/providers/markdown-provider.d.cts +0 -9
- package/dist/providers/markdown-provider.d.ts +0 -9
- package/dist/providers/message-attachments-provider.d.cts +0 -13
- package/dist/providers/message-attachments-provider.d.ts +0 -13
- package/dist/providers/message-provider.d.cts +0 -10
- package/dist/providers/message-provider.d.ts +0 -10
- package/dist/providers/root-provider.d.cts +0 -8
- package/dist/providers/root-provider.d.ts +0 -8
- package/dist/providers/search-events-provider.d.cts +0 -11
- package/dist/providers/search-events-provider.d.ts +0 -11
- package/dist/providers/source-item-provider.d.cts +0 -12
- package/dist/providers/source-item-provider.d.ts +0 -12
- package/dist/providers/theme-provider.d.cts +0 -3
- package/dist/providers/theme-provider.d.ts +0 -3
- package/dist/providers/user-provider.d.cts +0 -13
- package/dist/providers/user-provider.d.ts +0 -13
- package/dist/providers/widget-provider.d.cts +0 -9
- package/dist/providers/widget-provider.d.ts +0 -9
- package/dist/utils/component-ids.d.cts +0 -632
- package/dist/utils/component-ids.d.ts +0 -632
- package/dist/utils/compose-event-handlers.d.cts +0 -3
- package/dist/utils/compose-event-handlers.d.ts +0 -3
- package/dist/utils/compose-refs.d.cts +0 -5
- package/dist/utils/compose-refs.d.ts +0 -5
- package/dist/utils/default-settings.d.cts +0 -249
- package/dist/utils/default-settings.d.ts +0 -249
- package/dist/utils/form.d.cts +0 -3
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/generate-uid.d.cts +0 -2
- package/dist/utils/generate-uid.d.ts +0 -2
- package/dist/utils/get-message-metadata.d.cts +0 -8
- package/dist/utils/get-message-metadata.d.ts +0 -8
- package/dist/utils/graphql-client.d.cts +0 -8
- package/dist/utils/graphql-client.d.ts +0 -8
- package/dist/utils/highlight-emphasis.d.cts +0 -4
- package/dist/utils/highlight-emphasis.d.ts +0 -4
- package/dist/utils/merge-props.d.cts +0 -7
- package/dist/utils/merge-props.d.ts +0 -7
- package/dist/utils/misc.d.cts +0 -13
- package/dist/utils/misc.d.ts +0 -13
- package/dist/utils/reset-query-params.d.cts +0 -1
- package/dist/utils/reset-query-params.d.ts +0 -1
- package/dist/utils/tools/links-schema.d.cts +0 -64
- package/dist/utils/tools/links-schema.d.ts +0 -64
- package/dist/utils/transform-source/breadcrumbs.d.cts +0 -2
- package/dist/utils/transform-source/breadcrumbs.d.ts +0 -2
- package/dist/utils/transform-source/common-words/long.d.cts +0 -1
- package/dist/utils/transform-source/common-words/long.d.ts +0 -1
- package/dist/utils/transform-source/common-words/lowercase.d.cts +0 -1
- package/dist/utils/transform-source/common-words/lowercase.d.ts +0 -1
- package/dist/utils/transform-source/common-words/short.d.cts +0 -1
- package/dist/utils/transform-source/common-words/short.d.ts +0 -1
- package/dist/utils/transform-source/description.d.cts +0 -2
- package/dist/utils/transform-source/description.d.ts +0 -2
- package/dist/utils/transform-source/icon.d.cts +0 -2
- package/dist/utils/transform-source/icon.d.ts +0 -2
- package/dist/utils/transform-source/tabs.d.cts +0 -2
- package/dist/utils/transform-source/tabs.d.ts +0 -2
- package/dist/utils/transform-source/title.d.cts +0 -2
- package/dist/utils/transform-source/title.d.ts +0 -2
- package/dist/utils/transform-source/utils/description-without-title.d.cts +0 -11
- package/dist/utils/transform-source/utils/description-without-title.d.ts +0 -11
- package/dist/utils/transform-source/utils/index.d.cts +0 -6
- package/dist/utils/transform-source/utils/index.d.ts +0 -6
- package/dist/utils/transform-source/utils/misc.d.cts +0 -2
- package/dist/utils/transform-source/utils/misc.d.ts +0 -2
- package/dist/utils/transform-source/utils/standardize-common-words.d.cts +0 -1
- package/dist/utils/transform-source/utils/standardize-common-words.d.ts +0 -1
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.cts +0 -8
- package/dist/utils/transform-source/utils/standardize-organization-display-name.d.ts +0 -8
- package/dist/utils/transform-source/utils/standardize-suffixes.d.cts +0 -5
- package/dist/utils/transform-source/utils/standardize-suffixes.d.ts +0 -5
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.cts +0 -17
- package/dist/utils/transform-source/utils/strip-branding-keywords.d.ts +0 -17
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare const linksSchema: {
|
|
2
|
-
type: string;
|
|
3
|
-
properties: {
|
|
4
|
-
links: {
|
|
5
|
-
anyOf: ({
|
|
6
|
-
type: string;
|
|
7
|
-
items: {
|
|
8
|
-
type: string;
|
|
9
|
-
properties: {
|
|
10
|
-
label: {
|
|
11
|
-
type: string[];
|
|
12
|
-
};
|
|
13
|
-
url: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
title: {
|
|
17
|
-
type: string[];
|
|
18
|
-
};
|
|
19
|
-
description: {
|
|
20
|
-
type: string[];
|
|
21
|
-
};
|
|
22
|
-
type: {
|
|
23
|
-
anyOf: ({
|
|
24
|
-
anyOf: ({
|
|
25
|
-
type: string;
|
|
26
|
-
enum: string[];
|
|
27
|
-
} | {
|
|
28
|
-
type: string;
|
|
29
|
-
enum?: undefined;
|
|
30
|
-
})[];
|
|
31
|
-
type?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
type: string;
|
|
34
|
-
anyOf?: undefined;
|
|
35
|
-
})[];
|
|
36
|
-
};
|
|
37
|
-
breadcrumbs: {
|
|
38
|
-
anyOf: ({
|
|
39
|
-
type: string;
|
|
40
|
-
items: {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
|
-
} | {
|
|
44
|
-
type: string;
|
|
45
|
-
items?: undefined;
|
|
46
|
-
})[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
required: string[];
|
|
50
|
-
additionalProperties: boolean;
|
|
51
|
-
};
|
|
52
|
-
} | {
|
|
53
|
-
type: string;
|
|
54
|
-
items?: undefined;
|
|
55
|
-
})[];
|
|
56
|
-
};
|
|
57
|
-
text: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
required: string[];
|
|
62
|
-
additionalProperties: boolean;
|
|
63
|
-
$schema: string;
|
|
64
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare const linksSchema: {
|
|
2
|
-
type: string;
|
|
3
|
-
properties: {
|
|
4
|
-
links: {
|
|
5
|
-
anyOf: ({
|
|
6
|
-
type: string;
|
|
7
|
-
items: {
|
|
8
|
-
type: string;
|
|
9
|
-
properties: {
|
|
10
|
-
label: {
|
|
11
|
-
type: string[];
|
|
12
|
-
};
|
|
13
|
-
url: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
title: {
|
|
17
|
-
type: string[];
|
|
18
|
-
};
|
|
19
|
-
description: {
|
|
20
|
-
type: string[];
|
|
21
|
-
};
|
|
22
|
-
type: {
|
|
23
|
-
anyOf: ({
|
|
24
|
-
anyOf: ({
|
|
25
|
-
type: string;
|
|
26
|
-
enum: string[];
|
|
27
|
-
} | {
|
|
28
|
-
type: string;
|
|
29
|
-
enum?: undefined;
|
|
30
|
-
})[];
|
|
31
|
-
type?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
type: string;
|
|
34
|
-
anyOf?: undefined;
|
|
35
|
-
})[];
|
|
36
|
-
};
|
|
37
|
-
breadcrumbs: {
|
|
38
|
-
anyOf: ({
|
|
39
|
-
type: string;
|
|
40
|
-
items: {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
|
-
} | {
|
|
44
|
-
type: string;
|
|
45
|
-
items?: undefined;
|
|
46
|
-
})[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
required: string[];
|
|
50
|
-
additionalProperties: boolean;
|
|
51
|
-
};
|
|
52
|
-
} | {
|
|
53
|
-
type: string;
|
|
54
|
-
items?: undefined;
|
|
55
|
-
})[];
|
|
56
|
-
};
|
|
57
|
-
text: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
required: string[];
|
|
62
|
-
additionalProperties: boolean;
|
|
63
|
-
$schema: string;
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const long: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const long: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const lowercase: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const lowercase: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const short: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const short: string[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Some sources include the title in the description.
|
|
3
|
-
*
|
|
4
|
-
* This function removes the title from the description.
|
|
5
|
-
* It handles both plain and em-wrapped titles.
|
|
6
|
-
*
|
|
7
|
-
* @param description - The description to remove the title from.
|
|
8
|
-
* @param title - The title to remove from the description.
|
|
9
|
-
* @returns The description without the title.
|
|
10
|
-
*/
|
|
11
|
-
export declare function descriptionWithoutTitle(description: string | undefined, title: string | undefined): string | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Some sources include the title in the description.
|
|
3
|
-
*
|
|
4
|
-
* This function removes the title from the description.
|
|
5
|
-
* It handles both plain and em-wrapped titles.
|
|
6
|
-
*
|
|
7
|
-
* @param description - The description to remove the title from.
|
|
8
|
-
* @param title - The title to remove from the description.
|
|
9
|
-
* @returns The description without the title.
|
|
10
|
-
*/
|
|
11
|
-
export declare function descriptionWithoutTitle(description: string | undefined, title: string | undefined): string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformCommonWords(text: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformCommonWords(text: string): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
/**
|
|
3
|
-
* Standardize the organization display name in the text
|
|
4
|
-
*
|
|
5
|
-
* If someone writes your organization name with different casing (e.g., “InKeep,” “INKEEP”),
|
|
6
|
-
* the rule will enforce a consistent, normalized spelling (e.g., “Inkeep”)
|
|
7
|
-
*/
|
|
8
|
-
export declare function standardizeOrganizationDisplayName(text: string, organization: string): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
/**
|
|
3
|
-
* Standardize the organization display name in the text
|
|
4
|
-
*
|
|
5
|
-
* If someone writes your organization name with different casing (e.g., “InKeep,” “INKEEP”),
|
|
6
|
-
* the rule will enforce a consistent, normalized spelling (e.g., “Inkeep”)
|
|
7
|
-
*/
|
|
8
|
-
export declare function standardizeOrganizationDisplayName(text: string, organization: string): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strip common branding keywords and organization name from the text
|
|
3
|
-
*
|
|
4
|
-
* This function removes branding elements from text in the following formats:
|
|
5
|
-
* - Organization name or keywords at start/end with pipe, hyphen or colon separator
|
|
6
|
-
* - Organization name with optional domain suffix (.com, .ai, etc)
|
|
7
|
-
* - Common documentation keywords like "API", "Docs", etc.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* Given the organizationDisplayName 'inkeep', it would match and replace:
|
|
11
|
-
* 'Inkeep | Some Title' -> 'Some Title'
|
|
12
|
-
* 'Some Title - INKEEP' -> 'Some Title'
|
|
13
|
-
* 'inkeep.ai: Title' -> 'Title'
|
|
14
|
-
* 'Title | Inkeep.com' -> 'Title'
|
|
15
|
-
* 'API Documentation | Title' -> 'Title'
|
|
16
|
-
*/
|
|
17
|
-
export declare function stripBrandingKeywords(text: string, organization: string): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strip common branding keywords and organization name from the text
|
|
3
|
-
*
|
|
4
|
-
* This function removes branding elements from text in the following formats:
|
|
5
|
-
* - Organization name or keywords at start/end with pipe, hyphen or colon separator
|
|
6
|
-
* - Organization name with optional domain suffix (.com, .ai, etc)
|
|
7
|
-
* - Common documentation keywords like "API", "Docs", etc.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* Given the organizationDisplayName 'inkeep', it would match and replace:
|
|
11
|
-
* 'Inkeep | Some Title' -> 'Some Title'
|
|
12
|
-
* 'Some Title - INKEEP' -> 'Some Title'
|
|
13
|
-
* 'inkeep.ai: Title' -> 'Title'
|
|
14
|
-
* 'Title | Inkeep.com' -> 'Title'
|
|
15
|
-
* 'API Documentation | Title' -> 'Title'
|
|
16
|
-
*/
|
|
17
|
-
export declare function stripBrandingKeywords(text: string, organization: string): string;
|