@bikdotai/bik-component-library 0.0.646-beta.3 → 0.0.646-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.
Files changed (75) hide show
  1. package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
  2. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  3. package/dist/cjs/components/bik-layout/MockMenus.d.ts +1 -0
  4. package/dist/cjs/components/dropdown/ChipInput.d.ts +1 -1
  5. package/dist/cjs/components/dropdown/ChipInput.js +1 -1
  6. package/dist/cjs/components/dropdown/Dropdown.d.ts +1 -1
  7. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  8. package/dist/cjs/components/input/Input.d.ts +1 -1
  9. package/dist/cjs/components/input/Input.js +1 -1
  10. package/dist/cjs/components/input/Input.styled.js +1 -1
  11. package/dist/cjs/components/modals/styledModal.d.ts +1 -0
  12. package/dist/cjs/components/modals/styledModal.js +1 -1
  13. package/dist/cjs/components/product-picker-v2/modal.d.ts +5 -1
  14. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  15. package/dist/cjs/components/product-picker-v2/utility.d.ts +13 -1
  16. package/dist/cjs/components/product-picker-v2/utility.js +1 -1
  17. package/dist/cjs/index.d.ts +0 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +1 -1
  20. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  21. package/dist/esm/components/bik-layout/MockMenus.d.ts +1 -0
  22. package/dist/esm/components/dropdown/ChipInput.d.ts +1 -1
  23. package/dist/esm/components/dropdown/ChipInput.js +1 -1
  24. package/dist/esm/components/dropdown/Dropdown.d.ts +1 -1
  25. package/dist/esm/components/dropdown/Dropdown.js +1 -1
  26. package/dist/esm/components/input/Input.d.ts +1 -1
  27. package/dist/esm/components/input/Input.js +1 -1
  28. package/dist/esm/components/input/Input.styled.js +1 -1
  29. package/dist/esm/components/modals/styledModal.d.ts +1 -0
  30. package/dist/esm/components/modals/styledModal.js +1 -1
  31. package/dist/esm/components/product-picker-v2/modal.d.ts +5 -1
  32. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  33. package/dist/esm/components/product-picker-v2/utility.d.ts +13 -1
  34. package/dist/esm/components/product-picker-v2/utility.js +1 -1
  35. package/dist/esm/index.d.ts +0 -1
  36. package/dist/esm/index.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/cjs/assets/icons/boxV2.svg.js +0 -1
  39. package/dist/cjs/assets/icons/help.svg.js +0 -1
  40. package/dist/cjs/assets/icons/openai.svg.js +0 -1
  41. package/dist/cjs/assets/icons/redirect.svg.js +0 -1
  42. package/dist/cjs/assets/icons/text_t9.svg.js +0 -1
  43. package/dist/cjs/assets/icons/website.svg.js +0 -1
  44. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.d.ts +0 -19
  45. package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.js +0 -1
  46. package/dist/cjs/components/data-source-panel/DataSourcePanel.d.ts +0 -23
  47. package/dist/cjs/components/data-source-panel/DataSourcePanel.js +0 -1
  48. package/dist/cjs/components/data-source-panel/DataSourcePanel.style.d.ts +0 -3
  49. package/dist/cjs/components/data-source-panel/DataSourcePanel.style.js +0 -123
  50. package/dist/cjs/components/data-source-panel/index.d.ts +0 -1
  51. package/dist/cjs/components/data-source-panel/model.d.ts +0 -135
  52. package/dist/cjs/components/data-source-panel/model.js +0 -1
  53. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.d.ts +0 -14
  54. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.style.d.ts +0 -1
  55. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.d.ts +0 -14
  56. package/dist/cjs/components/unsatisfactory-response-list/UnsatisfactoryResponseList.style.d.ts +0 -1
  57. package/dist/esm/assets/icons/boxV2.svg.js +0 -1
  58. package/dist/esm/assets/icons/help.svg.js +0 -1
  59. package/dist/esm/assets/icons/openai.svg.js +0 -1
  60. package/dist/esm/assets/icons/redirect.svg.js +0 -1
  61. package/dist/esm/assets/icons/text_t9.svg.js +0 -1
  62. package/dist/esm/assets/icons/website.svg.js +0 -1
  63. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.d.ts +0 -19
  64. package/dist/esm/components/data-source-panel/DataSourceInfoFooter.js +0 -1
  65. package/dist/esm/components/data-source-panel/DataSourcePanel.d.ts +0 -23
  66. package/dist/esm/components/data-source-panel/DataSourcePanel.js +0 -1
  67. package/dist/esm/components/data-source-panel/DataSourcePanel.style.d.ts +0 -3
  68. package/dist/esm/components/data-source-panel/DataSourcePanel.style.js +0 -123
  69. package/dist/esm/components/data-source-panel/index.d.ts +0 -1
  70. package/dist/esm/components/data-source-panel/model.d.ts +0 -135
  71. package/dist/esm/components/data-source-panel/model.js +0 -1
  72. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.d.ts +0 -14
  73. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryCountIntentWiseModal.style.d.ts +0 -1
  74. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.d.ts +0 -14
  75. package/dist/esm/components/unsatisfactory-response-list/UnsatisfactoryResponseList.style.d.ts +0 -1
@@ -1,123 +0,0 @@
1
- import e from"styled-components";import{COLORS as o}from"../../constants/Theme.js";const i=e.div`
2
- display: flex;
3
- margin: 0px 8px 0px 8px;
4
- padding: 20px 0px 20px 0px;
5
- flex-direction: column;
6
- max-height: calc(100vh - 130px);
7
- .info-container {
8
- border-radius: 8px;
9
- }
10
- .pop-up-header {
11
- padding: 6px 8px;
12
- background-color: rgba(255, 255, 255, 0.1);
13
- display: flex;
14
- flex-direction: column;
15
- gap: 24px;
16
- }
17
- .footer {
18
- display: flex;
19
- flex-direction: column;
20
- margin: 24px 8px 0px 8px;
21
- }
22
- .clamp-title {
23
- overflow: hidden;
24
- text-overflow: ellipsis;
25
- display: -webkit-box;
26
- -webkit-line-clamp: 1;
27
- -webkit-box-orient: vertical;
28
- white-space: pre-line;
29
- }
30
- .clamp-description {
31
- overflow: hidden;
32
- text-overflow: ellipsis;
33
- display: -webkit-box;
34
- -webkit-line-clamp: 5;
35
- -webkit-box-orient: vertical;
36
- white-space: pre-line;
37
- }
38
- overflow-y: scroll;
39
- &::-webkit-scrollbar-thumb {
40
- background: ${o.stroke.primary};
41
- border-radius: 78px;
42
- }
43
- &::-webkit-scrollbar {
44
- width: 8px;
45
- display: block;
46
- }
47
- `;e.div`
48
- display: flex;
49
- margin: 16px 0px 0px 0px;
50
- padding: 0px 0px 16px 0px;
51
- flex-direction: column;
52
- border-bottom: 1px solid ${o.stroke.primary};
53
- .info-container {
54
- border-radius: 8px;
55
- background-color: ${o.surface.grey};
56
- max-height: calc(100vh - 380px);
57
- overflow-y: scroll;
58
- &::-webkit-scrollbar-thumb {
59
- background: #888;
60
- border-radius: 8px;
61
- }
62
- &::-webkit-scrollbar {
63
- width: 4px;
64
- display: block;
65
- }
66
- }
67
- .pop-up-header {
68
- padding: 6px 8px;
69
- background-color: rgba(255, 255, 255, 0.1);
70
- display: flex;
71
- flex-direction: column;
72
- gap: 16px;
73
- }
74
- .info-wrapper {
75
- padding: 16px 0;
76
- border-bottom: 1px solid ${o.stroke.primary};
77
- display: flex;
78
- flex-direction: column;
79
- row-gap: 8px;
80
- .info-item {
81
- display: flex;
82
- justify-content: space-between;
83
- align-items: start;
84
- gap: 12px;
85
- }
86
- }
87
- .info-wrapper:last-child {
88
- border-bottom: none;
89
- }
90
- .footer {
91
- display: flex;
92
- flex-direction: column;
93
- margin-top: 16px;
94
- }
95
- .clamp-text {
96
- overflow: hidden;
97
- text-overflow: ellipsis;
98
- display: -webkit-box;
99
- -webkit-line-clamp: 1;
100
- -webkit-box-orient: vertical;
101
- white-space: pre-line;
102
- }
103
- `;const r=e.div`
104
- display: flex;
105
- flex-direction: column;
106
- gap: 8px;
107
-
108
- .source_info_details {
109
- display: flex;
110
- flex-direction: column;
111
- gap: 8px;
112
- padding: 12px;
113
- border-radius: 12px;
114
- background-color: ${o.surface.grey};
115
- }
116
- .no_data_source {
117
- background-color: ${o.background.negative.light};
118
- }
119
- .no_data_source_title {
120
- display: flex;
121
- gap: 8px;
122
- }
123
- `;export{i as SourceInfoDetailsStyle,r as SourceInfoFooterStyle};
@@ -1 +0,0 @@
1
- export * from './DataSourcePanel';
@@ -1,135 +0,0 @@
1
- /// <reference types="react" />
2
- export interface MessageSource {
3
- sources: InfoContent[];
4
- intent: string;
5
- messageId: string;
6
- output_message_id?: string;
7
- isUnsatisfactoryAnswer?: boolean;
8
- isEditable?: boolean;
9
- }
10
- export interface InfoContent {
11
- title: string;
12
- docId?: string;
13
- subTitle?: string;
14
- link?: string | string[];
15
- type?: string;
16
- intent?: string;
17
- productId?: string;
18
- variantId?: string;
19
- imageUrl?: string;
20
- isTrainable?: boolean;
21
- subIntent?: string;
22
- insights?: string;
23
- }
24
- export interface DataSourcePanelZeroState {
25
- title: string;
26
- leadingIcon: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
27
- onClick: () => void;
28
- }
29
- export interface AllSourceInfoDetailsCustomDataModel {
30
- [keys: string]: SourceInfoDetailsCustomDataModel;
31
- }
32
- export interface SourceInfoDetailsCustomDataModel {
33
- storeId: string;
34
- type: CustomDataType;
35
- data: FileMetaData | CustomDataDocument | CustomDataFaqModel;
36
- content?: string;
37
- docId: string;
38
- onEditClick: (item: FileMetaData | CustomDataDocument | CustomDataFaqModel, type: string) => void;
39
- redirect?: (source: InfoContent) => void;
40
- }
41
- export declare enum CustomDataCategories {
42
- PAGE = "page",
43
- POLICY = "policy",
44
- ARTICLE = "article",
45
- UPLOADED = "uploaded",
46
- TEXT = "text"
47
- }
48
- export type CustomDataCategory = keyof typeof CustomDataCategories;
49
- export declare enum CustomDataType {
50
- FAQ = "FAQ",
51
- FILES = "FILES",
52
- WEBSITE_LINKS = "WEBSITE_LINKS",
53
- TEXTS = "TEXTS",
54
- FETCHED_LINKS = "FETCHED_LINKS",
55
- URL = "URL",
56
- TRAINING_TEMPLATE = "TRAINING_TEMPLATE"
57
- }
58
- export interface FileMetaData {
59
- fileId: string;
60
- fileName: string;
61
- fileSize: string;
62
- fileType: string;
63
- fileUrl: string;
64
- uploadType: 'URL' | 'FileUpload';
65
- uploadDate: Date;
66
- characterCount?: number;
67
- intent?: string;
68
- fileContent?: string;
69
- fileContentPath?: string;
70
- fileContentText?: string;
71
- isActive?: boolean;
72
- }
73
- export interface CustomDataDocument {
74
- category: CustomDataCategory;
75
- id: string;
76
- handle?: string;
77
- title?: string;
78
- createdAt?: Date;
79
- updatedAt?: Date;
80
- url?: string;
81
- isActive?: boolean;
82
- characterCount?: number;
83
- intent?: string;
84
- wasManualLinkAdded?: boolean;
85
- fileContent?: string;
86
- fileContentText?: string;
87
- fileId?: string;
88
- fileContentPath?: string;
89
- fileName?: string;
90
- lastEditedAt?: number;
91
- }
92
- export interface CustomDataFaqModel {
93
- id: string;
94
- question: string;
95
- answer: string;
96
- createdAt: Date;
97
- updatedAt?: Date;
98
- questionSpecificProducts?: Array<FaqProductModel>;
99
- products?: Array<FaqProductModel>;
100
- cta?: Array<LiveChatCTA>;
101
- intent?: string;
102
- crmNoteMeta?: CRMNoteMeta;
103
- fromEditResponse?: boolean;
104
- isTemplateFAQ?: boolean;
105
- isSatisfactoryAnswer?: boolean;
106
- }
107
- export interface FaqProductModel {
108
- id: string;
109
- variantId: string;
110
- name: string;
111
- imageUrl: string;
112
- }
113
- export interface CRMNoteMeta {
114
- createdAt: Date;
115
- sessionId: string;
116
- userId: number;
117
- messageId: string;
118
- customerId: string;
119
- updatedAt: Date;
120
- }
121
- export interface LiveChatCTA {
122
- url: string;
123
- cta: string;
124
- buttonType: string;
125
- }
126
- export interface footerButtonOptionModel {
127
- title?: string;
128
- subtitle?: string;
129
- buttonTitle: string;
130
- addFaqProps?: any;
131
- redirectUrl?: string;
132
- hideAddDataButton?: boolean;
133
- navigate?: (pagePathKey: Record<string, string>, params?: object, queryParam?: object, openInNewTab?: boolean) => void;
134
- onClick: () => void;
135
- }
@@ -1 +0,0 @@
1
- var E,T;!function(E){E.PAGE="page",E.POLICY="policy",E.ARTICLE="article",E.UPLOADED="uploaded",E.TEXT="text"}(E||(E={})),function(E){E.FAQ="FAQ",E.FILES="FILES",E.WEBSITE_LINKS="WEBSITE_LINKS",E.TEXTS="TEXTS",E.FETCHED_LINKS="FETCHED_LINKS",E.URL="URL",E.TRAINING_TEMPLATE="TRAINING_TEMPLATE"}(T||(T={}));export{E as CustomDataCategories,T as CustomDataType};
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- export interface UnsatisfactoryCountIntentWiseProps {
3
- storeId?: string;
4
- showUnsatisfactoryResponseModal: boolean;
5
- setShowUnsatisfactoryResponseModal: (value: boolean) => void;
6
- ChecklistType: Record<string, string>;
7
- UnsatisfactoryResponseIntentList: string[];
8
- IntentHeaderTitle: Record<string, string>;
9
- viewIntentWiseUnsatisfactoryResponse: (intent: string) => void;
10
- fetchUnsatisfactoryResponseCountIntentWise: () => Promise<{
11
- [keys in string]?: number;
12
- }>;
13
- }
14
- export declare const UnsatisfactoryCountIntentWiseModal: React.FC<UnsatisfactoryCountIntentWiseProps>;
@@ -1 +0,0 @@
1
- export declare const ModalBody: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export interface UnsatisfactoryResponseListProps {
3
- storeId?: string;
4
- incorrectMessages: any;
5
- onIncorrectMessageBubbleClick: (messageId: string) => void;
6
- setShowIncorrectReplies: (show: boolean) => void;
7
- ChecklistType: Record<string, string>;
8
- IntentHeaderTitle: Record<string, string>;
9
- redirectToUnsatisfactoryResponse: (intent: string) => void;
10
- fetchUnsatisfactoryResponseCountIntentWise: () => Promise<{
11
- [keys in string]?: number;
12
- }>;
13
- }
14
- export declare const UnsatisfactoryResponseList: React.FC<UnsatisfactoryResponseListProps>;
@@ -1 +0,0 @@
1
- export declare const IncorrectRepliesStyle: import("styled-components").StyledComponent<"div", any, {}, never>;