@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
|
@@ -175,6 +175,8 @@ type UpdateContactAddressBoundArgs = WithSignal & {
|
|
|
175
175
|
data: UpdateContactAddressData;
|
|
176
176
|
};
|
|
177
177
|
export declare const createEditContactApi: (baseUrl: string, spaceId: string) => {
|
|
178
|
+
fetchSubscriptions: ({ signal }?: WithSignal) => Promise<unknown[]>;
|
|
179
|
+
unsubscribeAddress: (contactAddressId: string, subscriptionId: string, signal?: AbortSignal) => Promise<unknown>;
|
|
178
180
|
fetchLabels: ({ signal }?: WithSignal) => Promise<ILabel[]>;
|
|
179
181
|
createLabel: ({ name, signal }: CreateLabelBoundArgs) => Promise<ILabel>;
|
|
180
182
|
fetchContact: ({ contactId, signal }: FetchContactBoundArgs) => Promise<IContact | IBusiness>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IIntegrationButton } from '@trii/types/dist/Contacts';
|
|
2
|
+
export type IntegrationButtonIconProps = {
|
|
3
|
+
button: Pick<IIntegrationButton, 'icon_class' | 'icon_color_mode' | 'icon_color_light' | 'icon_color_dark'>;
|
|
4
|
+
size?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Decorative icon: its accessible name comes from the surrounding button/tab. */
|
|
8
|
+
export default function IntegrationButtonIcon({ button, size, className }: IntegrationButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
export type ButtonIconCategory = "general" | "people" | "documents" | "finance" | "communication" | "operations" | "technology";
|
|
3
|
+
export type ButtonIconDefinition = {
|
|
4
|
+
id: `lucide:${string}`;
|
|
5
|
+
name: string;
|
|
6
|
+
category: ButtonIconCategory;
|
|
7
|
+
Component: LucideIcon;
|
|
8
|
+
keywords: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const BUTTON_ICON_CATEGORIES: ButtonIconCategory[];
|
|
11
|
+
export declare const BUTTON_ICONS: ButtonIconDefinition[];
|
|
12
|
+
export declare const DEFAULT_BUTTON_ICON = "lucide:mouse-pointer-click";
|
|
13
|
+
export declare const findButtonIcon: (id: string | null | undefined) => ButtonIconDefinition;
|
|
14
|
+
export declare const normalizeIconSearch: (value: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IIntegrationButton } from "@trii/types/dist/Contacts";
|
|
2
|
+
export type ButtonIconColors = Pick<IIntegrationButton, "icon_color_mode" | "icon_color_light" | "icon_color_dark">;
|
|
3
|
+
export declare const DEFAULT_LIGHT_ICON_COLOR = "#334155";
|
|
4
|
+
export declare const DEFAULT_DARK_ICON_COLOR = "#e2e8f0";
|
|
5
|
+
export declare function resolveButtonIconColor(colors: ButtonIconColors, mode: "light" | "dark"): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as IntegrationButtonIcon } from './IntegrationButtonIcon';
|
|
2
|
+
export type { IntegrationButtonIconProps } from './IntegrationButtonIcon';
|
|
3
|
+
export { BUTTON_ICONS, BUTTON_ICON_CATEGORIES, DEFAULT_BUTTON_ICON, findButtonIcon, normalizeIconSearch } from './catalog';
|
|
4
|
+
export type { ButtonIconDefinition, ButtonIconCategory } from './catalog';
|
|
5
|
+
export { resolveButtonIconColor, DEFAULT_LIGHT_ICON_COLOR, DEFAULT_DARK_ICON_COLOR } from './colors';
|
|
6
|
+
export type { ButtonIconColors } from './colors';
|
|
@@ -14,3 +14,4 @@ export { default as PanelErrorBoundary } from './PanelErrorBoundary';
|
|
|
14
14
|
export type { PanelErrorBoundaryProps } from './PanelErrorBoundary';
|
|
15
15
|
export { default as ContactSidebar } from './ContactSidebar';
|
|
16
16
|
export type { ContactSidebarProps, SidebarChatIntegration, StartConversationTarget, } from './ContactSidebar';
|
|
17
|
+
export * from './IntegrationButtonIcon';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trii/components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "Trii components package",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -180,9 +180,10 @@
|
|
|
180
180
|
"dependencies": {
|
|
181
181
|
"@mdi/js": "^7.4.47",
|
|
182
182
|
"@mdi/react": "^1.6.1",
|
|
183
|
-
"@trii/types": "^2.10.
|
|
183
|
+
"@trii/types": "^2.10.790",
|
|
184
184
|
"date-fns": "^2.30.0",
|
|
185
185
|
"dompurify": "^2.5.8",
|
|
186
|
+
"lucide-react": "^1.61.0",
|
|
186
187
|
"markdown-it": "^14.1.0",
|
|
187
188
|
"markdown-it-emoji": "^3.0.0",
|
|
188
189
|
"react-file-icon": "^1.6.0",
|
|
@@ -191,4 +192,4 @@
|
|
|
191
192
|
"uuid": "^10.0.0",
|
|
192
193
|
"wavesurfer.js": "^6.6.3"
|
|
193
194
|
}
|
|
194
|
-
}
|
|
195
|
+
}
|