@servicetitan/titan-chatbot-ui-anvil2 4.4.4 → 5.0.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/CHANGELOG.md +12 -0
- package/dist/components/chatbot/filters/chatbot-filters.d.ts.map +1 -1
- package/dist/components/chatbot/filters/chatbot-filters.js +3 -1
- package/dist/components/chatbot/filters/chatbot-filters.js.map +1 -1
- package/dist/components/chatbot/filters/chatbot-filters.module.less +3 -0
- package/package.json +6 -6
- package/src/components/chatbot/filters/chatbot-filters.module.less +3 -0
- package/src/components/chatbot/filters/chatbot-filters.module.less.d.ts +3 -0
- package/src/components/chatbot/filters/chatbot-filters.tsx +8 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v4.4.5 (Thu Oct 30 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- SPA-7194: Fixed filter popover style for A2 [#72](https://github.com/servicetitan/titan-chatbot-client/pull/72) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v4.4.3 (Fri Oct 24 2025)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-filters.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/filters/chatbot-filters.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chatbot-filters.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/filters/chatbot-filters.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAcjD,CAAC"}
|
|
@@ -2,10 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Flex } from '@servicetitan/anvil2';
|
|
3
3
|
import { useDependencies } from '@servicetitan/react-ioc';
|
|
4
4
|
import { CHATBOT_UI_STORE_TOKEN } from '@servicetitan/titan-chatbot-api';
|
|
5
|
+
import classNames from 'classnames';
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
7
|
import { ChatFilter } from './chatbot-filter';
|
|
8
|
+
import * as Styles from './chatbot-filters.module.less';
|
|
7
9
|
export const ChatFilters = observer(({ className }) => {
|
|
8
10
|
const [{ filterStore }] = useDependencies(CHATBOT_UI_STORE_TOKEN);
|
|
9
|
-
return filterStore.filters.length > 0 ? (_jsx(Flex, { className: className, wrap: "wrap", gap: "2", "data-cy": "titan-chatbot-filters", children: filterStore.filters.map(filter => (_jsx(ChatFilter, { filter: filter }, filter.uid))) })) : null;
|
|
11
|
+
return filterStore.filters.length > 0 ? (_jsx(Flex, { className: classNames(Styles.filters, className), wrap: "wrap", gap: "2", "data-cy": "titan-chatbot-filters", children: filterStore.filters.map(filter => (_jsx(ChatFilter, { filter: filter }, filter.uid))) })) : null;
|
|
10
12
|
});
|
|
11
13
|
//# sourceMappingURL=chatbot-filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-filters.js","sourceRoot":"","sources":["../../../../src/components/chatbot/filters/chatbot-filters.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chatbot-filters.js","sourceRoot":"","sources":["../../../../src/components/chatbot/filters/chatbot-filters.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,WAAW,GAA+B,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAC9E,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAClE,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACpC,KAAC,IAAI,IACD,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,EAChD,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,GAAG,aACC,uBAAuB,YAE9B,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAC/B,KAAC,UAAU,IAAkB,MAAM,EAAE,MAAM,IAA1B,MAAM,CAAC,GAAG,CAAoB,CAClD,CAAC,GACC,CACV,CAAC,CAAC,CAAC,IAAI,CAAC;AACb,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/titan-chatbot-ui-anvil2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Chatbot experience UI package (Anvil2 version)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"push:local": "yalc push"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@servicetitan/titan-chat-ui-anvil2": "^
|
|
21
|
-
"@servicetitan/titan-chat-ui-common": "^
|
|
22
|
-
"@servicetitan/titan-chatbot-api": "^
|
|
20
|
+
"@servicetitan/titan-chat-ui-anvil2": "^5.0.0",
|
|
21
|
+
"@servicetitan/titan-chat-ui-common": "^5.0.0",
|
|
22
|
+
"@servicetitan/titan-chatbot-api": "^5.0.0",
|
|
23
23
|
"nanoid": "^5.1.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-dom": ">=18"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@servicetitan/cypress-shared": "^
|
|
39
|
+
"@servicetitan/cypress-shared": "^5.0.0",
|
|
40
40
|
"cypress": "^15.2.0"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"cli": {
|
|
50
50
|
"webpack": false
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "bfe252258427c7d79321dac8b4a6df45575a7040"
|
|
53
53
|
}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { Flex } from '@servicetitan/anvil2';
|
|
2
2
|
import { useDependencies } from '@servicetitan/react-ioc';
|
|
3
3
|
import { CHATBOT_UI_STORE_TOKEN } from '@servicetitan/titan-chatbot-api';
|
|
4
|
+
import classNames from 'classnames';
|
|
4
5
|
import { observer } from 'mobx-react';
|
|
5
6
|
import { FC } from 'react';
|
|
6
7
|
import { ChatFilter } from './chatbot-filter';
|
|
8
|
+
import * as Styles from './chatbot-filters.module.less';
|
|
7
9
|
|
|
8
10
|
export const ChatFilters: FC<{ className?: string }> = observer(({ className }) => {
|
|
9
11
|
const [{ filterStore }] = useDependencies(CHATBOT_UI_STORE_TOKEN);
|
|
10
12
|
return filterStore.filters.length > 0 ? (
|
|
11
|
-
<Flex
|
|
13
|
+
<Flex
|
|
14
|
+
className={classNames(Styles.filters, className)}
|
|
15
|
+
wrap="wrap"
|
|
16
|
+
gap="2"
|
|
17
|
+
data-cy="titan-chatbot-filters"
|
|
18
|
+
>
|
|
12
19
|
{filterStore.filters.map(filter => (
|
|
13
20
|
<ChatFilter key={filter.uid} filter={filter} />
|
|
14
21
|
))}
|