@bigbinary/neeto-molecules 3.9.10 → 3.9.11
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/package.json +3 -1
- package/types/AuditLogs.d.ts +5 -3
- package/types/Breadcrumbs.d.ts +5 -3
- package/types/BrowserSupport.d.ts +5 -3
- package/types/Builder.d.ts +5 -7
- package/types/CalendarView.d.ts +8 -6
- package/types/Codeblock.d.ts +7 -5
- package/types/Columns.d.ts +8 -6
- package/types/ConfigurePageSidebar.d.ts +5 -3
- package/types/ConfirmationModal.d.ts +5 -3
- package/types/Container.d.ts +5 -3
- package/types/CopyToClipboardButton.d.ts +6 -4
- package/types/Currency.d.ts +7 -5
- package/types/CustomDomain.d.ts +6 -4
- package/types/CustomDomainDashboard.d.ts +6 -4
- package/types/DateFormat.d.ts +5 -9
- package/types/DateRangeFilter.d.ts +7 -5
- package/types/DeleteArchiveModal.d.ts +5 -3
- package/types/DeviceIncompatibilityMessage.d.ts +5 -3
- package/types/DocumentEditor.d.ts +6 -4
- package/types/DownloadMobileAppCallout.d.ts +5 -3
- package/types/DynamicVariables.d.ts +6 -4
- package/types/EmailForm.d.ts +7 -5
- package/types/EmailFormProvider.d.ts +3 -2
- package/types/EmailPreview.d.ts +5 -3
- package/types/EmojiPicker.d.ts +6 -4
- package/types/EmojiReactions.d.ts +5 -3
- package/types/ErrorPage.d.ts +6 -4
- package/types/FileUpload.d.ts +8 -6
- package/types/FloatingActionMenu.d.ts +6 -4
- package/types/GoogleFontPicker.d.ts +27 -20
- package/types/Header.d.ts +9 -6
- package/types/HelpPopover.d.ts +7 -5
- package/types/IconPicker.d.ts +5 -3
- package/types/ImageWithFallback.d.ts +5 -3
- package/types/InlineInput.d.ts +9 -7
- package/types/Insights.d.ts +5 -4
- package/types/IntegrationCard.d.ts +7 -5
- package/types/IpRestriction.d.ts +5 -3
- package/types/KeyboardShortcuts.d.ts +6 -4
- package/types/LoginPage.d.ts +5 -3
- package/types/MadeWith.d.ts +5 -3
- package/types/MenuBar.d.ts +7 -5
- package/types/Metadata.d.ts +5 -3
- package/types/MobilePreviewHeader.d.ts +5 -3
- package/types/MoreDropdown.d.ts +6 -4
- package/types/NavigationHeader.d.ts +7 -6
- package/types/NeetoWidget.d.ts +5 -3
- package/types/Onboarding.d.ts +5 -3
- package/types/OptionFields.d.ts +4 -2
- package/types/PageLoader.d.ts +5 -3
- package/types/PhoneNumber.d.ts +15 -13
- package/types/ProductEmbed.d.ts +5 -3
- package/types/PublishBlock.d.ts +6 -4
- package/types/Rename.d.ts +6 -4
- package/types/ResponsiveDevicePicker.d.ts +5 -3
- package/types/Schedule.d.ts +5 -3
- package/types/Scrollable.d.ts +6 -4
- package/types/Search.d.ts +6 -4
- package/types/SendToFields.d.ts +6 -4
- package/types/SessionEnvironment.d.ts +8 -5
- package/types/Settings.d.ts +5 -4
- package/types/ShareRecordingPane.d.ts +4 -2
- package/types/ShareViaEmail.d.ts +5 -3
- package/types/ShareViaLink.d.ts +5 -4
- package/types/Sidebar.d.ts +7 -5
- package/types/StatusDropdown.d.ts +5 -3
- package/types/StickyRibbonsContainer.d.ts +5 -3
- package/types/SubHeader.d.ts +7 -5
- package/types/SuffixedInput.d.ts +5 -3
- package/types/TableWrapper.d.ts +5 -3
- package/types/Taxonomy.d.ts +6 -4
- package/types/TimeFormat.d.ts +5 -9
- package/types/TimezoneMismatchModal.d.ts +5 -3
- package/types/ToggleFeatureCard.d.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.11",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -184,6 +184,7 @@
|
|
|
184
184
|
"rollup-plugin-analyzer": "4.0.0",
|
|
185
185
|
"rollup-plugin-cleaner": "1.0.0",
|
|
186
186
|
"rollup-plugin-copy": "3.5.0",
|
|
187
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
187
188
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
188
189
|
"rollup-plugin-styles": "4.0.0",
|
|
189
190
|
"sass": "^1.54.9",
|
|
@@ -193,6 +194,7 @@
|
|
|
193
194
|
"storybook-dark-mode": "^4.0.2",
|
|
194
195
|
"tailwindcss": "^3.4.1",
|
|
195
196
|
"tippy.js": "6.3.7",
|
|
197
|
+
"typescript": "^5.6.3",
|
|
196
198
|
"yjs": "^13.6.19",
|
|
197
199
|
"yup": "0.32.11",
|
|
198
200
|
"zustand": "4.3.2"
|
package/types/AuditLogs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A full-page component that allows you to track user activities, including
|
|
@@ -14,5 +15,6 @@ import React from "react";
|
|
|
14
15
|
* const AuditLogs = () => <NeetoAuditLogs />;
|
|
15
16
|
* @endexample
|
|
16
17
|
*/
|
|
17
|
-
const AuditLogs: React.FC<{}>;
|
|
18
|
-
|
|
18
|
+
declare const AuditLogs: React.FC<{}>;
|
|
19
|
+
|
|
20
|
+
export { AuditLogs as default };
|
package/types/Breadcrumbs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* Component to show breadcrumbs
|
|
@@ -17,7 +18,7 @@ import React from "react";
|
|
|
17
18
|
* const Page = () => <Breadcrumbs Breadcrumbs={SETTINGS_BREADCRUMBS} />;
|
|
18
19
|
* @endexample
|
|
19
20
|
*/
|
|
20
|
-
const Breadcrumbs: React.FC<{
|
|
21
|
+
declare const Breadcrumbs: React.FC<{
|
|
21
22
|
breadcrumbs?: {
|
|
22
23
|
text: string;
|
|
23
24
|
link: string;
|
|
@@ -25,4 +26,5 @@ const Breadcrumbs: React.FC<{
|
|
|
25
26
|
hasTrailingSeparator?: boolean;
|
|
26
27
|
className?: string;
|
|
27
28
|
}>;
|
|
28
|
-
|
|
29
|
+
|
|
30
|
+
export { Breadcrumbs as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
type VersionLimits = {
|
|
3
4
|
softLimit?: number;
|
|
4
5
|
hardLimit?: number;
|
|
@@ -87,7 +88,7 @@ type VersionLimits = {
|
|
|
87
88
|
* and a corresponding callout will be shown.
|
|
88
89
|
*
|
|
89
90
|
*/
|
|
90
|
-
const BrowserSupport: React.FC<{
|
|
91
|
+
declare const BrowserSupport: React.FC<{
|
|
91
92
|
overrides?: {
|
|
92
93
|
Chrome?: VersionLimits;
|
|
93
94
|
MicrosoftEdge?: VersionLimits;
|
|
@@ -105,4 +106,5 @@ const BrowserSupport: React.FC<{
|
|
|
105
106
|
unsupportedBrowsers?: string[];
|
|
106
107
|
children?: React.ReactNode | React.ReactNode[];
|
|
107
108
|
}>;
|
|
108
|
-
|
|
109
|
+
|
|
110
|
+
export { BrowserSupport as default };
|
package/types/Builder.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ type ElementSection = {
|
|
|
10
10
|
isCreatable: (element: Element) => boolean;
|
|
11
11
|
disabledElementTooltip?: (label: string) => string;
|
|
12
12
|
};
|
|
13
|
-
type dragResult = {
|
|
14
|
-
index: number;
|
|
15
|
-
};
|
|
16
13
|
type SelectedElementAction = {
|
|
17
14
|
label: string;
|
|
18
15
|
key: string;
|
|
@@ -28,7 +25,6 @@ type SelectedElement = {
|
|
|
28
25
|
isPending: boolean;
|
|
29
26
|
actions: SelectedElementAction[] | ((element: Element) => SelectedElementAction[]);
|
|
30
27
|
};
|
|
31
|
-
export
|
|
32
28
|
/**
|
|
33
29
|
*
|
|
34
30
|
* @example
|
|
@@ -76,7 +72,7 @@ export
|
|
|
76
72
|
* );
|
|
77
73
|
* @endexample
|
|
78
74
|
*/
|
|
79
|
-
const ElementsPanel: React.FC<{
|
|
75
|
+
declare const ElementsPanel: React.FC<{
|
|
80
76
|
elementSections: ElementSection[];
|
|
81
77
|
selectedElements: SelectedElement[];
|
|
82
78
|
handleAddElement: (element: Element) => void;
|
|
@@ -94,8 +90,10 @@ const ElementsPanel: React.FC<{
|
|
|
94
90
|
isAddingNewElement?: boolean;
|
|
95
91
|
primaryPanel?: "summary" | "elements";
|
|
96
92
|
}>;
|
|
97
|
-
|
|
93
|
+
declare const PropertiesPanel: React.FC<{
|
|
98
94
|
children: React.ReactNode;
|
|
99
95
|
id: string;
|
|
100
96
|
onClose?: (id: string) => void;
|
|
101
|
-
}>;
|
|
97
|
+
}>;
|
|
98
|
+
|
|
99
|
+
export { ElementsPanel, PropertiesPanel };
|
package/types/CalendarView.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DateClickArg, EventClickArg } from
|
|
3
|
-
import { Dayjs } from
|
|
4
|
-
import { EventContentArg } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DateClickArg, EventClickArg } from '@fullcalendar/react';
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
|
+
import { EventContentArg } from '@fullcalendar/core';
|
|
5
|
+
|
|
5
6
|
type ViewOption = {
|
|
6
7
|
label: string;
|
|
7
8
|
fullCalendarView: string;
|
|
@@ -76,7 +77,7 @@ interface EventObject {
|
|
|
76
77
|
* />;
|
|
77
78
|
* @endexample
|
|
78
79
|
*/
|
|
79
|
-
const CalendarView: React.FC<{
|
|
80
|
+
declare const CalendarView: React.FC<{
|
|
80
81
|
viewOptions: ViewOptionsType;
|
|
81
82
|
events: EventObject[];
|
|
82
83
|
handleDateClick: (info: DateClickArg) => void;
|
|
@@ -93,4 +94,5 @@ const CalendarView: React.FC<{
|
|
|
93
94
|
};
|
|
94
95
|
hideHeader?: boolean;
|
|
95
96
|
}>;
|
|
96
|
-
|
|
97
|
+
|
|
98
|
+
export { CalendarView as default };
|
package/types/Codeblock.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { SyntaxHighlighterProps } from
|
|
3
|
-
import { CopyToClipboardButtonProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
3
|
+
import { CopyToClipboardButtonProps } from './CopyToClipboardButton.js';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* Codeblock can be used to render a block of code, with appropriate syntax
|
|
@@ -26,10 +27,11 @@ import { CopyToClipboardButtonProps } from "./CopyToClipboardButton";
|
|
|
26
27
|
* );
|
|
27
28
|
* @endexample
|
|
28
29
|
*/
|
|
29
|
-
const Codeblock: React.FC<{
|
|
30
|
+
declare const Codeblock: React.FC<{
|
|
30
31
|
code: string;
|
|
31
32
|
showCopyButton?: boolean;
|
|
32
33
|
codeblockProps?: Partial<SyntaxHighlighterProps>;
|
|
33
34
|
copyButtonProps?: Partial<CopyToClipboardButtonProps>;
|
|
34
35
|
}>;
|
|
35
|
-
|
|
36
|
+
|
|
37
|
+
export { Codeblock as default };
|
package/types/Columns.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { CheckboxProps,
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CheckboxProps, InputProps, DropdownProps } from '@bigbinary/neetoui';
|
|
3
|
+
|
|
3
4
|
type Column = {
|
|
4
5
|
title: string;
|
|
5
6
|
dataIndex: string;
|
|
@@ -128,7 +129,7 @@ type useColumnsType = {
|
|
|
128
129
|
* };
|
|
129
130
|
* @endexample
|
|
130
131
|
*/
|
|
131
|
-
const Columns: React.FC<{
|
|
132
|
+
declare const Columns: React.FC<{
|
|
132
133
|
actionBlock?: React.ReactNode;
|
|
133
134
|
checkboxProps?: CheckboxProps;
|
|
134
135
|
columnData: Column[];
|
|
@@ -138,14 +139,14 @@ const Columns: React.FC<{
|
|
|
138
139
|
onChange: (columns: Column[], hiddenColumns: string[]) => any[];
|
|
139
140
|
searchProps?: InputProps;
|
|
140
141
|
} & DropdownProps>;
|
|
141
|
-
|
|
142
|
+
declare function useHiddenColumns(localStorageKey: string, initialValue?: string[]): {
|
|
142
143
|
hiddenColumns: string[];
|
|
143
144
|
hideColumn: (dataIndex: string) => void;
|
|
144
145
|
showColumn: (dataIndex: string) => void;
|
|
145
146
|
getVisibleColumnData: (columnData: any[]) => any[];
|
|
146
147
|
onColumnDataChange: (columnData: any[]) => void;
|
|
147
148
|
};
|
|
148
|
-
|
|
149
|
+
declare function useColumns({
|
|
149
150
|
localStorageKey,
|
|
150
151
|
initialHiddenColumns,
|
|
151
152
|
initialOrder
|
|
@@ -163,4 +164,5 @@ export function useColumns({
|
|
|
163
164
|
}: getColumnDataType) => any[];
|
|
164
165
|
setColumnOrder: (columns: string[]) => void;
|
|
165
166
|
};
|
|
166
|
-
|
|
167
|
+
|
|
168
|
+
export { Columns as default, useColumns, useHiddenColumns };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
type NavLinkItemType = {
|
|
3
4
|
to: string;
|
|
4
5
|
label?: React.ReactNode;
|
|
@@ -35,9 +36,10 @@ type NavLinkItemType = {
|
|
|
35
36
|
* };
|
|
36
37
|
* @endexample
|
|
37
38
|
*/
|
|
38
|
-
const ConfigurePageSidebar: React.FC<{
|
|
39
|
+
declare const ConfigurePageSidebar: React.FC<{
|
|
39
40
|
label: React.ReactNode;
|
|
40
41
|
navLinks: NavLinkItemType[];
|
|
41
42
|
configurePageRoute: string;
|
|
42
43
|
}>;
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
export { ConfigurePageSidebar as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* When users have to delete an entity that is integral to the app, it is
|
|
@@ -49,7 +50,7 @@ import React from "react";
|
|
|
49
50
|
* };
|
|
50
51
|
* @endexample
|
|
51
52
|
*/
|
|
52
|
-
const ConfirmationModal: React.FC<{
|
|
53
|
+
declare const ConfirmationModal: React.FC<{
|
|
53
54
|
buttonLabel: string;
|
|
54
55
|
confirmationText: string;
|
|
55
56
|
description?: React.ReactNode | React.ReactNode[] | string;
|
|
@@ -60,4 +61,5 @@ const ConfirmationModal: React.FC<{
|
|
|
60
61
|
onSubmit: Function;
|
|
61
62
|
deleteConfirmationMessage?: string;
|
|
62
63
|
}>;
|
|
63
|
-
|
|
64
|
+
|
|
65
|
+
export { ConfirmationModal as default };
|
package/types/Container.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A container component to be used as a wrapper for the page content.
|
|
@@ -29,8 +30,9 @@ import React from "react";
|
|
|
29
30
|
* );
|
|
30
31
|
* @endexample
|
|
31
32
|
*/
|
|
32
|
-
const Container: React.FC<{
|
|
33
|
+
declare const Container: React.FC<{
|
|
33
34
|
isHeaderFixed?: boolean;
|
|
34
35
|
className?: string;
|
|
35
36
|
}>;
|
|
36
|
-
|
|
37
|
+
|
|
38
|
+
export { Container as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CopyToClipboardButtonProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
icon?: string | any;
|
|
5
6
|
label?: string;
|
|
@@ -22,5 +23,6 @@ export interface CopyToClipboardButtonProps {
|
|
|
22
23
|
* );
|
|
23
24
|
* @endexample
|
|
24
25
|
*/
|
|
25
|
-
const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps>;
|
|
26
|
-
|
|
26
|
+
declare const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps>;
|
|
27
|
+
|
|
28
|
+
export { type CopyToClipboardButtonProps, CopyToClipboardButton as default };
|
package/types/Currency.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { SelectProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectProps } from '@bigbinary/neetoui';
|
|
3
|
+
|
|
3
4
|
type CurrencyProps = {
|
|
4
5
|
allowedCurrencies?: string[];
|
|
5
6
|
} & SelectProps;
|
|
@@ -43,6 +44,7 @@ type CurrencyProps = {
|
|
|
43
44
|
* };
|
|
44
45
|
* @endexample
|
|
45
46
|
*/
|
|
46
|
-
const Currency: React.FC<CurrencyProps>;
|
|
47
|
-
const FormikCurrency: React.FC<CurrencyProps>;
|
|
48
|
-
|
|
47
|
+
declare const Currency: React.FC<CurrencyProps>;
|
|
48
|
+
declare const FormikCurrency: React.FC<CurrencyProps>;
|
|
49
|
+
|
|
50
|
+
export { Currency, FormikCurrency };
|
package/types/CustomDomain.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { onCreateCustomDomainCallback } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { onCreateCustomDomainCallback } from './CustomDomainDashboard.js';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* A common component for managing custom domain. This component can be used when
|
|
@@ -13,9 +14,10 @@ import { onCreateCustomDomainCallback } from "./CustomDomainDashboard";
|
|
|
13
14
|
* <CustomDomain url="api/v1/admin/custom_domain" iconOnly />;
|
|
14
15
|
* @endexample
|
|
15
16
|
*/
|
|
16
|
-
const CustomDomain: React.FC<{
|
|
17
|
+
declare const CustomDomain: React.FC<{
|
|
17
18
|
url: string;
|
|
18
19
|
iconOnly: boolean;
|
|
19
20
|
onCreate?: onCreateCustomDomainCallback;
|
|
20
21
|
}>;
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
export { CustomDomain as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
type customDomainFields = {
|
|
3
4
|
addedCnameAt: string;
|
|
4
5
|
cnameValidationParams: {
|
|
@@ -11,7 +12,7 @@ type customDomainFields = {
|
|
|
11
12
|
notice: string;
|
|
12
13
|
status: string;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
type onCreateCustomDomainCallback = (values: customDomainFields) => void;
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* A full page common component for managing custom domains. This component can be
|
|
@@ -37,11 +38,12 @@ export type onCreateCustomDomainCallback = (values: customDomainFields) => void;
|
|
|
37
38
|
* 
|
|
38
39
|
*
|
|
39
40
|
*/
|
|
40
|
-
const CustomDomainDashboard: React.FC<{
|
|
41
|
+
declare const CustomDomainDashboard: React.FC<{
|
|
41
42
|
headerProps: {
|
|
42
43
|
[key: string]: any;
|
|
43
44
|
};
|
|
44
45
|
url: string;
|
|
45
46
|
onCreate: onCreateCustomDomainCallback;
|
|
46
47
|
}>;
|
|
47
|
-
|
|
48
|
+
|
|
49
|
+
export { CustomDomainDashboard as default, type onCreateCustomDomainCallback };
|
package/types/DateFormat.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps, TooltipProps } from '@bigbinary/neetoui';
|
|
3
|
+
import { timeFormat, DateTimeType } from '@bigbinary/neeto-commons-frontend/utils';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
timeFormat,
|
|
6
|
-
DateTimeType,
|
|
7
|
-
} from "@bigbinary/neeto-commons-frontend/utils";
|
|
8
|
-
|
|
9
|
-
const DateFormat: {
|
|
5
|
+
declare const DateFormat: {
|
|
10
6
|
[key in Capitalize<keyof typeof timeFormat>]: React.FC<{
|
|
11
7
|
date: DateTimeType;
|
|
12
8
|
timerInterval?: number;
|
|
@@ -16,4 +12,4 @@ const DateFormat: {
|
|
|
16
12
|
}>;
|
|
17
13
|
};
|
|
18
14
|
|
|
19
|
-
export default
|
|
15
|
+
export { DateFormat as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Dayjs } from
|
|
3
|
-
import { DatePickerProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import { DatePickerProps } from '@bigbinary/neetoui';
|
|
4
|
+
|
|
4
5
|
interface TimePeriodType {
|
|
5
6
|
startDate: Dayjs;
|
|
6
7
|
endDate: Dayjs;
|
|
@@ -45,10 +46,11 @@ interface TimePeriodType {
|
|
|
45
46
|
* your API.
|
|
46
47
|
*
|
|
47
48
|
*/
|
|
48
|
-
const DateRangeFilter: React.FC<{
|
|
49
|
+
declare const DateRangeFilter: React.FC<{
|
|
49
50
|
timePeriod: TimePeriodType;
|
|
50
51
|
setTimePeriod: React.Dispatch<React.SetStateAction<TimePeriodType>>;
|
|
51
52
|
timePeriodOptions?: TimePeriodType[];
|
|
52
53
|
datePickerProps?: DatePickerProps;
|
|
53
54
|
}>;
|
|
54
|
-
|
|
55
|
+
|
|
56
|
+
export { DateRangeFilter as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* The DeleteArchiveModal component is designed to facilitate the deletion of an
|
|
@@ -48,7 +49,7 @@ import React from "react";
|
|
|
48
49
|
* };
|
|
49
50
|
* @endexample
|
|
50
51
|
*/
|
|
51
|
-
const DeleteArchiveModal: React.FC<{
|
|
52
|
+
declare const DeleteArchiveModal: React.FC<{
|
|
52
53
|
checkboxLabel: string;
|
|
53
54
|
className: string;
|
|
54
55
|
description: string;
|
|
@@ -60,4 +61,5 @@ const DeleteArchiveModal: React.FC<{
|
|
|
60
61
|
onDelete: Function;
|
|
61
62
|
title: string;
|
|
62
63
|
}>;
|
|
63
|
-
|
|
64
|
+
|
|
65
|
+
export { DeleteArchiveModal as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* Used to indicate screen incompatibility on smaller devices.
|
|
@@ -10,8 +11,9 @@ import React from "react";
|
|
|
10
11
|
* const App = () => <DeviceIncompatibilityMessage />;
|
|
11
12
|
* @endexample
|
|
12
13
|
*/
|
|
13
|
-
const DeviceIncompatibilityMessage: React.FC<{
|
|
14
|
+
declare const DeviceIncompatibilityMessage: React.FC<{
|
|
14
15
|
description?: React.ReactNode;
|
|
15
16
|
className?: string;
|
|
16
17
|
}>;
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
export { DeviceIncompatibilityMessage as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TextareaProps } from
|
|
1
|
+
import { attachment, FormikEditorProps } from '@bigbinary/neeto-editor';
|
|
2
|
+
import { TextareaProps } from '@bigbinary/neetoui';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* NeetoEditor with a better writing experience.
|
|
@@ -42,7 +43,7 @@ import { TextareaProps } from "@bigbinary/neetoui";
|
|
|
42
43
|
* );
|
|
43
44
|
* @endexample
|
|
44
45
|
*/
|
|
45
|
-
const DocumentEditor: React.FC<{
|
|
46
|
+
declare const DocumentEditor: React.FC<{
|
|
46
47
|
attachments: attachment[];
|
|
47
48
|
onContentChange?: (content: string) => void;
|
|
48
49
|
onAttachmentChange?: (attachments: attachment[]) => void;
|
|
@@ -55,4 +56,5 @@ const DocumentEditor: React.FC<{
|
|
|
55
56
|
titleProps?: TextareaProps;
|
|
56
57
|
menuClassName?: string;
|
|
57
58
|
}>;
|
|
58
|
-
|
|
59
|
+
|
|
60
|
+
export { DocumentEditor as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A component to render warning callout when the application is accessed from a
|
|
@@ -27,7 +28,8 @@ import React from "react";
|
|
|
27
28
|
* for any path that starts with "/public".
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
|
-
const DownloadMobileAppCallout: React.FC<{
|
|
31
|
+
declare const DownloadMobileAppCallout: React.FC<{
|
|
31
32
|
excludePathRegex?: RegExp;
|
|
32
33
|
}>;
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
export { DownloadMobileAppCallout as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DropdownProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from '@bigbinary/neetoui';
|
|
3
|
+
|
|
3
4
|
interface Variable {
|
|
4
5
|
label?: string;
|
|
5
6
|
key?: string;
|
|
@@ -37,10 +38,11 @@ interface Variable {
|
|
|
37
38
|
* };
|
|
38
39
|
* @endexample
|
|
39
40
|
*/
|
|
40
|
-
const DynamicVariables: React.FC<{
|
|
41
|
+
declare const DynamicVariables: React.FC<{
|
|
41
42
|
onVariableClick?: (variable: Variable & {
|
|
42
43
|
categoryLabel?: string;
|
|
43
44
|
}) => void;
|
|
44
45
|
variables: Variable[];
|
|
45
46
|
} & DropdownProps>;
|
|
46
|
-
|
|
47
|
+
|
|
48
|
+
export { DynamicVariables as default };
|
package/types/EmailForm.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HelpPopoverProps } from './HelpPopover.js';
|
|
3
|
+
import '@bigbinary/neetoui';
|
|
4
|
+
|
|
4
5
|
type ContentVariables = {
|
|
5
6
|
label: string;
|
|
6
7
|
key: string;
|
|
@@ -67,7 +68,7 @@ type SendToFieldProps = {
|
|
|
67
68
|
* export default EmailComposer;
|
|
68
69
|
* @endexample
|
|
69
70
|
*/
|
|
70
|
-
const EmailForm: React.FC<{
|
|
71
|
+
declare const EmailForm: React.FC<{
|
|
71
72
|
messageVariables?: ContentVariables[];
|
|
72
73
|
subjectVariables?: ContentVariables[];
|
|
73
74
|
handleCancel: () => void;
|
|
@@ -80,4 +81,5 @@ const EmailForm: React.FC<{
|
|
|
80
81
|
replyToFieldProps?: ReplyToFieldProps;
|
|
81
82
|
sendToFieldProps?: SendToFieldProps;
|
|
82
83
|
}>;
|
|
83
|
-
|
|
84
|
+
|
|
85
|
+
export { EmailForm as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import * as yup from 'yup';
|
|
2
|
+
|
|
3
3
|
type ValidationMap = {
|
|
4
4
|
[key: string]: yup.AnySchema;
|
|
5
5
|
};
|
|
@@ -44,4 +44,5 @@ declare const EmailFormProvider: <T extends {}>(props: {
|
|
|
44
44
|
showCcField?: boolean;
|
|
45
45
|
showBccField?: boolean;
|
|
46
46
|
}) => JSX.Element;
|
|
47
|
-
|
|
47
|
+
|
|
48
|
+
export { EmailFormProvider as default };
|
package/types/EmailPreview.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A common component to preview emails.
|
|
@@ -27,7 +28,7 @@ import React from "react";
|
|
|
27
28
|
* export default EmailShare;
|
|
28
29
|
* @endexample
|
|
29
30
|
*/
|
|
30
|
-
const EmailPreview: React.FC<{
|
|
31
|
+
declare const EmailPreview: React.FC<{
|
|
31
32
|
to?: string[];
|
|
32
33
|
subject?: string;
|
|
33
34
|
body?: string;
|
|
@@ -37,4 +38,5 @@ const EmailPreview: React.FC<{
|
|
|
37
38
|
className?: string;
|
|
38
39
|
customContent?: React.ReactNode;
|
|
39
40
|
}>;
|
|
40
|
-
|
|
41
|
+
|
|
42
|
+
export { EmailPreview as default };
|
package/types/EmojiPicker.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DropdownProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from 'neetoui';
|
|
3
|
+
|
|
3
4
|
type Emoji = {
|
|
4
5
|
native: string;
|
|
5
6
|
unified: string;
|
|
@@ -25,9 +26,10 @@ type Emoji = {
|
|
|
25
26
|
* };
|
|
26
27
|
* @endexample
|
|
27
28
|
*/
|
|
28
|
-
const EmojiPicker: React.FC<{
|
|
29
|
+
declare const EmojiPicker: React.FC<{
|
|
29
30
|
onSelect?: (emoji: Emoji) => void;
|
|
30
31
|
open?: boolean;
|
|
31
32
|
dropdownProps?: DropdownProps;
|
|
32
33
|
}>;
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
export { EmojiPicker as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
2
3
|
type Emoji = {
|
|
3
4
|
native: string;
|
|
4
5
|
unified: string;
|
|
@@ -50,11 +51,12 @@ type Reaction = {
|
|
|
50
51
|
* };
|
|
51
52
|
* @endexample
|
|
52
53
|
*/
|
|
53
|
-
const EmojiReactions: React.FC<{
|
|
54
|
+
declare const EmojiReactions: React.FC<{
|
|
54
55
|
reactions: Reaction[];
|
|
55
56
|
onReactionClick?: (emoji: Emoji) => void;
|
|
56
57
|
emojiSize?: string;
|
|
57
58
|
emojiBoxStyle?: string;
|
|
58
59
|
isUpdating?: boolean;
|
|
59
60
|
}>;
|
|
60
|
-
|
|
61
|
+
|
|
62
|
+
export { EmojiReactions as default };
|
package/types/ErrorPage.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ButtonProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '@bigbinary/neetoui';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* A fallback page for handling 404, 403 and 500 errors.
|
|
@@ -9,11 +10,12 @@ import { ButtonProps } from "@bigbinary/neetoui";
|
|
|
9
10
|
* further communication.
|
|
10
11
|
*
|
|
11
12
|
*/
|
|
12
|
-
const ErrorPage: React.FC<{
|
|
13
|
+
declare const ErrorPage: React.FC<{
|
|
13
14
|
homeUrl?: string;
|
|
14
15
|
status?: number;
|
|
15
16
|
backToHomeButtonProps?: Partial<ButtonProps>;
|
|
16
17
|
children?: React.ReactNode | React.ReactNode[];
|
|
17
18
|
showNeetoChatWidget?: boolean;
|
|
18
19
|
}>;
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
export { ErrorPage as default };
|