@trii/components 3.1.9 → 3.1.12
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/cjs/index.js +199 -43
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme.js +13 -0
- package/dist/cjs/theme.js.map +1 -1
- package/dist/esm/index.js +200 -44
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme.js +13 -0
- package/dist/esm/theme.js.map +1 -1
- package/dist/index.d.ts +30 -2
- package/dist/integration-button-icons-build.log +36 -0
- package/dist/integration-button-icons-bundle.log +24 -0
- package/dist/integration-button-icons-types.log +29 -0
- package/dist/sidebar-fixes-all-tests.log +261 -0
- package/dist/sidebar-fixes-baseline.log +29 -0
- package/dist/sidebar-fixes-build.log +32 -0
- package/dist/sidebar-fixes-tests.log +57 -0
- package/dist/sidebar-fixes-types.log +4 -0
- package/dist/sidebar-panel-tests.log +356 -0
- package/dist/tab-scroll-build.log +32 -0
- package/dist/tab-scroll-tests.log +58 -0
- package/dist/tabs-all-tests.log +330 -0
- package/dist/tabs-build.log +32 -0
- package/dist/tabs-format.log +24 -0
- package/dist/tabs-tests.log +85 -0
- package/dist/tabs-types.log +4 -0
- package/dist/tabs-ui-tests.log +84 -0
- package/dist/types/components/ContactSidebar/SidebarContent.d.ts +2 -2
- package/dist/types/components/ContactSidebar/components/MediaViewer/MediaViewer.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/PanelView.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/BotsInfo/BotsInfo.d.ts +2 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/BotsInfo/components/DataItem/DataItem.d.ts +3 -3
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/ButtonsListItem/ButtonsListItem.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/TemplateRenderer/TemplateRenderer.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/AddressCard.d.ts +19 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/Contact.d.ts +3 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Contact/CopyAddress.d.ts +3 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Properties/Properties.d.ts +2 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.d.ts +1 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/AddEvent/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/ContactMedia.d.ts +2 -3
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/AudioMessage/AudioMessage.d.ts +5 -7
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/AudioMessage/utils/getNewWaveSurfer.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/components/Image/Image.d.ts +5 -10
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/mediaEntries.d.ts +10 -0
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/components/AddTask/styles.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/IntegrationButtonSearch/IntegrationButtonSearch.d.ts +4 -0
- package/dist/types/components/ContactSidebar/components/SidebarLoadError.d.ts +3 -0
- package/dist/types/components/ContactSidebar/components/referencePanelStyles.d.ts +4 -0
- package/dist/types/components/ContactSidebar/components/verticalTabsStyles.d.ts +11 -0
- package/dist/types/components/ContactSidebar/context/MediaViewerContext.d.ts +1 -1
- package/dist/types/components/ContactSidebar/context/SidebarDataContext.d.ts +6 -15
- package/dist/types/components/ContactSidebar/context/SidebarPropsContext.d.ts +2 -0
- package/dist/types/components/ContactSidebar/hooks/useConversationHistory.d.ts +16 -0
- package/dist/types/components/ContactSidebar/hooks/useSidebarScope.d.ts +5 -0
- package/dist/types/components/ContactSidebar/i18n/useMediaText.d.ts +2 -0
- package/dist/types/components/ContactSidebar/i18n/useReferenceText.d.ts +3 -0
- package/dist/types/components/ContactSidebar/services/buttonsApi.d.ts +1 -1
- package/dist/types/components/ContactSidebar/utils/contactChannels.d.ts +52 -0
- package/dist/types/components/ContactSidebar/utils/conversationPresentation.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +2 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +5 -8
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/SubscriptionDialog.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +4 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +6 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -3
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +5 -5
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +3 -6
- package/dist/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +6 -6
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +8 -0
- package/dist/types/components/EditContactModal/layout/EditorSections.d.ts +16 -0
- package/dist/types/components/EditContactModal/layout/EditorViewPane.d.ts +8 -0
- package/dist/types/components/EditContactModal/services/api.d.ts +2 -0
- package/dist/types/components/IntegrationButtonIcon/IntegrationButtonIcon.d.ts +8 -0
- package/dist/types/components/IntegrationButtonIcon/catalog.d.ts +14 -0
- package/dist/types/components/IntegrationButtonIcon/colors.d.ts +5 -0
- package/dist/types/components/IntegrationButtonIcon/index.d.ts +6 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/utils/contactOwner.d.ts +3 -0
- package/package.json +4 -3
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 test
|
|
3
|
+
> jest
|
|
4
|
+
|
|
5
|
+
(node:35212) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
6
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
7
|
+
PASS src/components/ContactSidebar/services/__tests__/ticketsApi.test.ts (9.55 s)
|
|
8
|
+
(node:38800) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
9
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
10
|
+
(node:18592) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
11
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
12
|
+
PASS src/components/ContactSidebar/utils/__tests__/formatRelativeTime.test.ts
|
|
13
|
+
PASS src/asyncState/__tests__/useAsyncData.test.tsx (10.232 s)
|
|
14
|
+
● Console
|
|
15
|
+
|
|
16
|
+
console.error
|
|
17
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
18
|
+
|
|
19
|
+
18 | const fetcher = jest.fn(() => request.promise);
|
|
20
|
+
19 |
|
|
21
|
+
> 20 | const { result } = renderHook(() => useAsyncData(fetcher));
|
|
22
|
+
| ^
|
|
23
|
+
21 |
|
|
24
|
+
22 | // Carga inicial sin datos: bloqueante.
|
|
25
|
+
23 | expect(result.current.status).toBe('loading');
|
|
26
|
+
|
|
27
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
28
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
29
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
30
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
31
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
32
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
33
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
34
|
+
at Object.<anonymous> (src/asyncState/__tests__/useAsyncData.test.tsx:20:34)
|
|
35
|
+
|
|
36
|
+
PASS src/components/ContactSidebar/hooks/__tests__/useContactTickets.test.tsx (10.508 s)
|
|
37
|
+
● Console
|
|
38
|
+
|
|
39
|
+
console.error
|
|
40
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
41
|
+
|
|
42
|
+
24 |
|
|
43
|
+
25 | it('stays idle and fetches nothing while disabled', () => {
|
|
44
|
+
> 26 | const { result } = renderHook(() =>
|
|
45
|
+
| ^
|
|
46
|
+
27 | useContactTickets({ api, contactId: 'c1', stages: STAGES, enabled: false })
|
|
47
|
+
28 | );
|
|
48
|
+
29 |
|
|
49
|
+
|
|
50
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
51
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
52
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
53
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
54
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
55
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
56
|
+
at renderHook (node_modules/@testing-library/react/dist/pure.js:318:7)
|
|
57
|
+
at Object.<anonymous> (src/components/ContactSidebar/hooks/__tests__/useContactTickets.test.tsx:26:34)
|
|
58
|
+
|
|
59
|
+
(node:47356) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
60
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
61
|
+
PASS src/asyncState/__tests__/asyncState.test.ts
|
|
62
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx (11.363 s)
|
|
63
|
+
● Console
|
|
64
|
+
|
|
65
|
+
console.error
|
|
66
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
67
|
+
|
|
68
|
+
46 | });
|
|
69
|
+
47 | it('ignores an old mutation after A → B → A', async () => {
|
|
70
|
+
> 48 | const { rerender } = render(view());
|
|
71
|
+
| ^
|
|
72
|
+
49 | await waitFor(() => expect(context.status).toBe('succeeded'));
|
|
73
|
+
50 | const oldSetter = context.setEntity;
|
|
74
|
+
51 | mockProps = { ...mockProps, contactId: 'B' };
|
|
75
|
+
|
|
76
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
77
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
78
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
79
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
80
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
81
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
82
|
+
at Object.<anonymous> (src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx:48:30)
|
|
83
|
+
|
|
84
|
+
PASS src/components/ContactSidebar/utils/__tests__/contactChannels.test.ts
|
|
85
|
+
PASS src/components/ContactSidebar/utils/__tests__/conversationPresentation.test.ts
|
|
86
|
+
(node:23904) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
87
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
88
|
+
PASS src/theme/themeProvider.test.ts (14.236 s)
|
|
89
|
+
(node:64292) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
90
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
91
|
+
PASS src/theme/selectThemeComponents.test.ts (14.674 s)
|
|
92
|
+
(node:56904) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
93
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
94
|
+
PASS src/theme/themePreference.test.ts (14.708 s)
|
|
95
|
+
(node:42304) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
96
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
97
|
+
PASS src/components/PanelErrorBoundary/__tests__/PanelErrorBoundary.test.tsx (15.138 s)
|
|
98
|
+
(node:18348) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
99
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
100
|
+
PASS src/theme/MuiComponentsConfig.test.ts (14.773 s)
|
|
101
|
+
(node:48464) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
102
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
103
|
+
PASS src/components/AsyncContent/__tests__/AsyncContent.test.tsx (15.24 s)
|
|
104
|
+
● Console
|
|
105
|
+
|
|
106
|
+
console.error
|
|
107
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
108
|
+
|
|
109
|
+
24 | });
|
|
110
|
+
25 |
|
|
111
|
+
> 26 | render(<AsyncContent state={state}>{renderData}</AsyncContent>);
|
|
112
|
+
| ^
|
|
113
|
+
27 |
|
|
114
|
+
28 | expect(screen.getByRole('progressbar')).toBeInTheDocument();
|
|
115
|
+
29 | });
|
|
116
|
+
|
|
117
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
118
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
119
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
120
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
121
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
122
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
123
|
+
at Object.<anonymous> (src/components/AsyncContent/__tests__/AsyncContent.test.tsx:26:11)
|
|
124
|
+
|
|
125
|
+
(node:23432) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
126
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
127
|
+
PASS src/components/ContactSidebar/__tests__/SidebarContent.test.tsx (15.093 s)
|
|
128
|
+
● Console
|
|
129
|
+
|
|
130
|
+
console.error
|
|
131
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
132
|
+
|
|
133
|
+
23 | });
|
|
134
|
+
24 | it('leaves retry accessible when initial loading fails', () => {
|
|
135
|
+
> 25 | render(<SidebarContent conversation={null} active />);
|
|
136
|
+
| ^
|
|
137
|
+
26 | expect(screen.getByRole('button', { name: 'retry' })).toBeVisible();
|
|
138
|
+
27 | expect(screen.queryByRole('progressbar')).not.toBeInTheDocument();
|
|
139
|
+
28 | });
|
|
140
|
+
|
|
141
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
142
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
143
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
144
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
145
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
146
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
147
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/SidebarContent.test.tsx:25:9)
|
|
148
|
+
|
|
149
|
+
(node:61016) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
150
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
151
|
+
PASS src/components/AsyncContent/__tests__/AsyncContentI18n.test.tsx (14.95 s)
|
|
152
|
+
● Console
|
|
153
|
+
|
|
154
|
+
console.info
|
|
155
|
+
🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙
|
|
156
|
+
|
|
157
|
+
at I18n.init (node_modules/i18next/dist/cjs/i18next.js:1789:90)
|
|
158
|
+
|
|
159
|
+
console.error
|
|
160
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
161
|
+
|
|
162
|
+
30 | describe('AsyncContent — i18n real del paquete', () => {
|
|
163
|
+
31 | it('usa los textos del paquete según el idioma pedido', () => {
|
|
164
|
+
> 32 | const { unmount } = render(
|
|
165
|
+
| ^
|
|
166
|
+
33 | <ErrorState language="es" onRetry={() => undefined} />
|
|
167
|
+
34 | );
|
|
168
|
+
35 | expect(
|
|
169
|
+
|
|
170
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
171
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
172
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
173
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
174
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
175
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
176
|
+
at Object.<anonymous> (src/components/AsyncContent/__tests__/AsyncContentI18n.test.tsx:32:31)
|
|
177
|
+
|
|
178
|
+
(node:52308) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
179
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
180
|
+
(node:9256) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
181
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
182
|
+
PASS src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx (15.491 s)
|
|
183
|
+
● Console
|
|
184
|
+
|
|
185
|
+
console.error
|
|
186
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
187
|
+
|
|
188
|
+
40 |
|
|
189
|
+
41 | it.each(['light', 'dark'] as const)('uses the custom %s color for a configured Lucide icon', mode => {
|
|
190
|
+
> 42 | const { container } = render(preview(colors, mode));
|
|
191
|
+
| ^
|
|
192
|
+
43 | const svg = container.querySelector('svg');
|
|
193
|
+
44 | expect(svg).toHaveClass('lucide-receipt');
|
|
194
|
+
45 | expect(svg).toHaveAttribute('stroke', mode === 'light' ? '#2563eb' : '#fbbf24');
|
|
195
|
+
|
|
196
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
197
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
198
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
199
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
200
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
201
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
202
|
+
at src/components/IntegrationButtonIcon/__tests__/IntegrationButtonIcon.test.tsx:42:31
|
|
203
|
+
|
|
204
|
+
(node:59116) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
205
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
206
|
+
PASS src/components/ContactSidebar/__tests__/contactPanels.test.tsx (15.913 s)
|
|
207
|
+
● Console
|
|
208
|
+
|
|
209
|
+
console.error
|
|
210
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
211
|
+
|
|
212
|
+
102 | (isBusiness) => {
|
|
213
|
+
103 | mockEntity = { ...mockEntity, isBusiness, name: 'Example Business' };
|
|
214
|
+
> 104 | render(<PremiumContactHeader activeTab={0} />);
|
|
215
|
+
| ^
|
|
216
|
+
105 | fireEvent.click(screen.getByLabelText('global.edit').querySelector('button')!);
|
|
217
|
+
106 | expect(mockEditorProps.open).toBe(true);
|
|
218
|
+
107 | expect(mockEditorProps.entityId).toBe('A');
|
|
219
|
+
|
|
220
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
221
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
222
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
223
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
224
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
225
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
226
|
+
at src/components/ContactSidebar/__tests__/contactPanels.test.tsx:104:11
|
|
227
|
+
|
|
228
|
+
PASS src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx (17.392 s)
|
|
229
|
+
● Console
|
|
230
|
+
|
|
231
|
+
console.info
|
|
232
|
+
🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙
|
|
233
|
+
|
|
234
|
+
at I18n.init (node_modules/i18next/dist/cjs/i18next.js:1789:90)
|
|
235
|
+
|
|
236
|
+
console.error
|
|
237
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
238
|
+
|
|
239
|
+
51 | } as unknown as SidebarProps;
|
|
240
|
+
52 |
|
|
241
|
+
> 53 | render(
|
|
242
|
+
| ^
|
|
243
|
+
54 | <SidebarI18nProvider language="en">
|
|
244
|
+
55 | <SidebarPropsProvider value={props}>
|
|
245
|
+
56 | <ContactTickets />
|
|
246
|
+
|
|
247
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
248
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
249
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
250
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
251
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
252
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
253
|
+
at renderPanel (src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx:53:9)
|
|
254
|
+
at Object.renderPanel (src/components/ContactSidebar/components/PanelView/components/ContactTickets/__tests__/ContactTickets.test.tsx:83:5)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
Test Suites: 19 passed, 19 total
|
|
258
|
+
Tests: 204 passed, 204 total
|
|
259
|
+
Snapshots: 0 total
|
|
260
|
+
Time: 27.87 s
|
|
261
|
+
Ran all test suites.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 build:types
|
|
3
|
+
> tsc --project tsconfig.build.json --emitDeclarationOnly
|
|
4
|
+
|
|
5
|
+
src/components/ContactSidebar/components/PanelView/components/BotsInfo/BotsInfo.tsx(11,10): error TS2724: '"@trii/types/dist/Conversations"' has no exported member named 'ConversationBotVar'. Did you mean 'IConversation'?
|
|
6
|
+
src/components/ContactSidebar/components/PanelView/components/BotsInfo/components/DataItem/DataItem.tsx(4,10): error TS2724: '"@trii/types/dist/Conversations"' has no exported member named 'ConversationBotVar'. Did you mean 'IConversation'?
|
|
7
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/ActiveConversation/ActiveConversation.tsx(48,38): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
8
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/ActiveConversation/ActiveConversation.tsx(49,39): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
9
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(46,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
10
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(47,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
11
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(48,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
12
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(51,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
13
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(52,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
14
|
+
src/components/ContactSidebar/components/PanelView/components/ContactConversation/components/EndedConversation/EndedConversationItem.tsx(53,19): error TS2551: Property 'assignedTo' does not exist on type 'IConversation'. Did you mean 'assignment'?
|
|
15
|
+
src/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.tsx(31,10): error TS2724: '"@trii/types/dist/Conversations"' has no exported member named 'ConversationBotVar'. Did you mean 'IConversation'?
|
|
16
|
+
src/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.tsx(145,65): error TS2339: Property 'botVars' does not exist on type 'IConversation'.
|
|
17
|
+
src/components/ContactSidebar/components/PanelView/PanelView.tsx(47,47): error TS2339: Property 'botVars' does not exist on type 'IConversation'.
|
|
18
|
+
src/components/ContactSidebar/components/PanelView/PanelView.tsx(51,29): error TS2339: Property 'botVars' does not exist on type 'IConversation'.
|
|
19
|
+
src/components/EditContactModal/components/Section/General/components/BusinessGeneral.tsx(78,47): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
20
|
+
src/components/EditContactModal/components/Section/General/components/BusinessGeneral.tsx(79,21): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
21
|
+
src/components/EditContactModal/components/Section/General/components/BusinessGeneral.tsx(79,61): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
22
|
+
src/components/EditContactModal/components/Section/General/components/BusinessGeneral.tsx(108,29): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
23
|
+
src/components/EditContactModal/components/Section/General/components/ContactGeneral.tsx(85,47): error TS2339: Property 'owner' does not exist on type 'IContact'.
|
|
24
|
+
src/components/EditContactModal/components/Section/General/components/ContactGeneral.tsx(86,21): error TS2339: Property 'owner' does not exist on type 'IContact'.
|
|
25
|
+
src/components/EditContactModal/components/Section/General/components/ContactGeneral.tsx(86,61): error TS2339: Property 'owner' does not exist on type 'IContact'.
|
|
26
|
+
src/components/EditContactModal/components/Section/General/components/ContactGeneral.tsx(132,29): error TS2339: Property 'owner' does not exist on type 'IContact'.
|
|
27
|
+
src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.ts(55,49): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
28
|
+
src/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.ts(135,43): error TS2339: Property 'owner' does not exist on type 'IBusiness'.
|
|
29
|
+
src/components/EditContactModal/hooks/useEditContact/useEditContact.ts(94,48): error TS2339: Property 'owner' does not exist on type 'IContact'.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
> @trii/components@3.1.10 build
|
|
3
|
+
> npm-run-all --serial build:types build:js
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @trii/components@3.1.10 build:types
|
|
7
|
+
> tsc --project tsconfig.build.json --emitDeclarationOnly
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
> @trii/components@3.1.10 build:js
|
|
11
|
+
> rollup -c
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
src/index.ts → dist/cjs/index.js, dist/esm/index.js...
|
|
15
|
+
(!) Circular dependency
|
|
16
|
+
src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.ts -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.ts -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.tsx -> src/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.ts
|
|
17
|
+
created dist/cjs/index.js, dist/esm/index.js in 10.8s
|
|
18
|
+
|
|
19
|
+
src/asyncState/index.ts → dist/cjs/async-state.js, dist/esm/async-state.js...
|
|
20
|
+
created dist/cjs/async-state.js, dist/esm/async-state.js in 122ms
|
|
21
|
+
|
|
22
|
+
src/theme/index.ts → dist/cjs/theme.js, dist/esm/theme.js...
|
|
23
|
+
created dist/cjs/theme.js, dist/esm/theme.js in 168ms
|
|
24
|
+
|
|
25
|
+
dist/types/index.d.ts → dist/index.d.ts...
|
|
26
|
+
created dist/index.d.ts in 622ms
|
|
27
|
+
|
|
28
|
+
dist/types/asyncState/index.d.ts → dist/async-state.d.ts...
|
|
29
|
+
created dist/async-state.d.ts in 44ms
|
|
30
|
+
|
|
31
|
+
dist/types/theme/index.d.ts → dist/theme.d.ts...
|
|
32
|
+
created dist/theme.d.ts in 94ms
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
(node:41988) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
2
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
3
|
+
PASS src/components/ContactSidebar/utils/__tests__/contactChannels.test.ts (7.188 s)
|
|
4
|
+
(node:33928) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
5
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
6
|
+
PASS src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx (7.626 s)
|
|
7
|
+
● Console
|
|
8
|
+
|
|
9
|
+
console.error
|
|
10
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
11
|
+
|
|
12
|
+
26 | });
|
|
13
|
+
27 | it('ignores an old mutation after A → B → A', async () => {
|
|
14
|
+
> 28 | const { rerender } = render(view());
|
|
15
|
+
| ^
|
|
16
|
+
29 | await waitFor(() => expect(context.status).toBe('succeeded'));
|
|
17
|
+
30 | const oldSetter = context.setEntity;
|
|
18
|
+
31 | mockProps = {...mockProps, contactId:'B'}; rerender(view());
|
|
19
|
+
|
|
20
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
21
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
22
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
23
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
24
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
25
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
26
|
+
at Object.<anonymous> (src/components/ContactSidebar/context/__tests__/SidebarEntityContext.test.tsx:28:30)
|
|
27
|
+
|
|
28
|
+
(node:29228) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
|
|
29
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
30
|
+
PASS src/components/ContactSidebar/__tests__/SidebarContent.test.tsx (10.379 s)
|
|
31
|
+
● Console
|
|
32
|
+
|
|
33
|
+
console.error
|
|
34
|
+
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
|
|
35
|
+
|
|
36
|
+
8 | beforeEach(() => {mockEntity = {entity:null,isInitialLoading:false,error:'network failure'};});
|
|
37
|
+
9 | it('leaves retry accessible when initial loading fails', () => {
|
|
38
|
+
> 10 | render(<SidebarContent conversation={null} active />);
|
|
39
|
+
| ^
|
|
40
|
+
11 | expect(screen.getByRole('button', {name:'retry'})).toBeVisible();
|
|
41
|
+
12 | expect(screen.queryByRole('progressbar')).not.toBeInTheDocument();
|
|
42
|
+
13 | });
|
|
43
|
+
|
|
44
|
+
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
|
|
45
|
+
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
|
|
46
|
+
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
|
|
47
|
+
at node_modules/@testing-library/react/dist/act-compat.js:47:25
|
|
48
|
+
at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26)
|
|
49
|
+
at render (node_modules/@testing-library/react/dist/pure.js:271:10)
|
|
50
|
+
at Object.<anonymous> (src/components/ContactSidebar/__tests__/SidebarContent.test.tsx:10:9)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Test Suites: 3 passed, 3 total
|
|
54
|
+
Tests: 15 passed, 15 total
|
|
55
|
+
Snapshots: 0 total
|
|
56
|
+
Time: 14.317 s
|
|
57
|
+
Ran all test suites matching /src\\components\\ContactSidebar\\context\\__tests__\\SidebarEntityContext.test.tsx|src\\components\\ContactSidebar\\__tests__\\SidebarContent.test.tsx|src\\components\\ContactSidebar\\utils\\__tests__\\contactChannels.test.ts/i.
|