@activecollab/components 2.0.491 → 2.0.492
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/components/Icons/collection/Printer.js +62 -0
- package/dist/cjs/components/Icons/collection/Printer.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +7 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/presentation/selfHostedRedesign/parts.js +1386 -0
- package/dist/cjs/presentation/selfHostedRedesign/parts.js.map +1 -0
- package/dist/cjs/presentation/shared/TaskOptionsMenu.js +5 -1
- package/dist/cjs/presentation/shared/TaskOptionsMenu.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +14 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedSettings.js +7 -2
- package/dist/cjs/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/esm/components/Icons/collection/Printer.d.ts +32 -0
- package/dist/esm/components/Icons/collection/Printer.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Printer.js +55 -0
- package/dist/esm/components/Icons/collection/Printer.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +1 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/presentation/selfHostedRedesign/parts.d.ts +158 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.d.ts.map +1 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.js +1208 -0
- package/dist/esm/presentation/selfHostedRedesign/parts.js.map +1 -0
- package/dist/esm/presentation/shared/TaskOptionsMenu.d.ts.map +1 -1
- package/dist/esm/presentation/shared/TaskOptionsMenu.js +5 -1
- package/dist/esm/presentation/shared/TaskOptionsMenu.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +1 -1
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.d.ts +4 -0
- package/dist/esm/presentation/shared/selfHostedSettings.d.ts.map +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js +4 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/index.js +454 -402
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared parts of the Self-Hosted Redesign stories
|
|
3
|
+
* (`Presentation/Self-Hosted Redesign/*`): one file per section (Upgrade,
|
|
4
|
+
* Email, Search, Pusher, Cron, Clean Up) renders the same screen with its own
|
|
5
|
+
* section expanded and its own starting state.
|
|
6
|
+
*
|
|
7
|
+
* Grounded in the app:
|
|
8
|
+
* - components/Settings/SelfHostedSettingsDialog.jsx
|
|
9
|
+
* - components/SelfHostedSettings/SelfHostedSettingsContent.jsx (row stack,
|
|
10
|
+
* Old Versions body + Remove)
|
|
11
|
+
* - components/SelfHostedSettings/SelfHostedVersion.js (version sentence,
|
|
12
|
+
* SSH steps, renew block)
|
|
13
|
+
* - components/SelfHostedSettings/EmailConfiguration.js (summary text)
|
|
14
|
+
* - components/SelfHostedSettings/OutgoingEmailFormDialog.js
|
|
15
|
+
* - components/SelfHostedSettings/InboundEmailFormDialog.js
|
|
16
|
+
* - components/SelfHostedSettings/StoredPasswordField.jsx
|
|
17
|
+
* - components/SelfHostedSettings/SearchConfiguration.js
|
|
18
|
+
* - components/SelfHostedSettings/PusherConfiguration.js
|
|
19
|
+
* - components/SelfHostedSettings/CronConfiguration.js (unix branch)
|
|
20
|
+
* Error strings come from the backend `on_system_status` handlers and the
|
|
21
|
+
* `isOk()` methods of the Email, Search, Pusher and Cron integrations.
|
|
22
|
+
*
|
|
23
|
+
* Where the app hand-builds a layout, these stories use the standard DS piece
|
|
24
|
+
* instead (Stack / Row for spacing, TitledText for headed sections, InfoBox for
|
|
25
|
+
* the inbound warning, RadioGroup for the radio sets, Dialog.Title onClose for
|
|
26
|
+
* the close button, the shared CommandBlock for commands).
|
|
27
|
+
*/
|
|
28
|
+
import { ReactElement } from "react";
|
|
29
|
+
/**
|
|
30
|
+
* mirrors: GET /system-status (repository/useSystemStatus.js) — the
|
|
31
|
+
* per-section flags and errors plus the running version header.
|
|
32
|
+
*/
|
|
33
|
+
export interface SystemStatus {
|
|
34
|
+
cron_is_ok: boolean;
|
|
35
|
+
cron_errors: string[];
|
|
36
|
+
email_is_ok: boolean;
|
|
37
|
+
email_errors: string[];
|
|
38
|
+
search_is_ok: boolean;
|
|
39
|
+
search_errors: string[];
|
|
40
|
+
pusher_is_ok: boolean;
|
|
41
|
+
pusher_errors: string[];
|
|
42
|
+
imap_is_available: boolean;
|
|
43
|
+
headers: {
|
|
44
|
+
"x-angie-applicationversion": string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* mirrors: backend `lang()` strings in the `on_system_status` handlers and the
|
|
49
|
+
* integrations' `isOk()` (EmailIntegration, SearchIntegration,
|
|
50
|
+
* PusherIntegration, CronIntegration).
|
|
51
|
+
*/
|
|
52
|
+
export declare const SEARCH_NOT_CONFIGURED_ERROR = "Search server is not configured";
|
|
53
|
+
export declare const PUSHER_NOT_CONFIGURED_ERROR = "Server for exchange of real-time updates is not configured.";
|
|
54
|
+
export declare const STATUS_ERRORS: {
|
|
55
|
+
noImapCheck: string;
|
|
56
|
+
noEmailSent: string;
|
|
57
|
+
searchJobsFailed: string;
|
|
58
|
+
cronFrequently: string;
|
|
59
|
+
cronImap: string;
|
|
60
|
+
cronHourly: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const SYSTEM_STATUS: SystemStatus;
|
|
63
|
+
/** mirrors: GET /system-status/check-for-updates (useCheckForUpdates). */
|
|
64
|
+
export interface CheckForUpdates {
|
|
65
|
+
current_version: string;
|
|
66
|
+
latest_available_version: string;
|
|
67
|
+
new_version_available: boolean;
|
|
68
|
+
support_expires_on: number;
|
|
69
|
+
support_renewal_url: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const CHECK_FOR_UPDATES: CheckForUpdates;
|
|
72
|
+
/** mirrors: GET /system/versions/old-versions (repository/useOldVersions.js). */
|
|
73
|
+
export interface OldVersions {
|
|
74
|
+
versions_is_ok: boolean;
|
|
75
|
+
versions_errors: string[];
|
|
76
|
+
}
|
|
77
|
+
export declare const OLD_VERSIONS: OldVersions;
|
|
78
|
+
export type MailSecurity = "auto" | "tls" | "ssl" | "off";
|
|
79
|
+
/** mirrors: GET /integrations/email `single` (useIntegration("email")). */
|
|
80
|
+
export interface EmailIntegration {
|
|
81
|
+
sender_name: string;
|
|
82
|
+
sender_email: string;
|
|
83
|
+
smtp_host: string;
|
|
84
|
+
smtp_port: number;
|
|
85
|
+
smtp_security: MailSecurity;
|
|
86
|
+
smtp_username: string;
|
|
87
|
+
has_smtp_password: boolean;
|
|
88
|
+
smtp_verify_certificate: boolean;
|
|
89
|
+
imap_host: string;
|
|
90
|
+
imap_port: number;
|
|
91
|
+
imap_security: MailSecurity;
|
|
92
|
+
imap_username: string;
|
|
93
|
+
has_imap_password: boolean;
|
|
94
|
+
imap_mailbox: string;
|
|
95
|
+
imap_verify_certificate: boolean;
|
|
96
|
+
imap_subaddress_separator: "+" | "-";
|
|
97
|
+
imap_once_processed_action: "move" | "delete";
|
|
98
|
+
imap_once_processed_folder: string;
|
|
99
|
+
}
|
|
100
|
+
export declare const EMAIL_INTEGRATION: EmailIntegration;
|
|
101
|
+
/** mirrors: GET /integrations/search `single` (useIntegration("search")). */
|
|
102
|
+
export interface SearchIntegration {
|
|
103
|
+
hosts: string;
|
|
104
|
+
user: string;
|
|
105
|
+
password: string;
|
|
106
|
+
path_to_certificate: string;
|
|
107
|
+
shards: number;
|
|
108
|
+
replicas: number;
|
|
109
|
+
is_index_created: boolean;
|
|
110
|
+
is_index_rebuilded: boolean;
|
|
111
|
+
}
|
|
112
|
+
export declare const SEARCH_NOT_CONFIGURED: SearchIntegration;
|
|
113
|
+
/** mirrors: GET /integrations/pusher `single` (useIntegration("pusher")). */
|
|
114
|
+
export interface PusherIntegration {
|
|
115
|
+
app_id: string;
|
|
116
|
+
app_key: string;
|
|
117
|
+
app_cluster: string;
|
|
118
|
+
app_secret: string;
|
|
119
|
+
ws_host: string;
|
|
120
|
+
is_connection_tested: boolean;
|
|
121
|
+
}
|
|
122
|
+
export declare const PUSHER_INTEGRATION: PusherIntegration;
|
|
123
|
+
/** mirrors: GET /integrations/cron `single.instructions` (useIntegration("cron")). */
|
|
124
|
+
export interface CronInstructions {
|
|
125
|
+
platform: "unix" | "windows";
|
|
126
|
+
hourly_last_run: number | null;
|
|
127
|
+
frequently_last_run: number | null;
|
|
128
|
+
check_imap_last_run: number | null;
|
|
129
|
+
setup_frequently: string;
|
|
130
|
+
setup_check_imap: string;
|
|
131
|
+
setup_hourly: string;
|
|
132
|
+
frequently: string;
|
|
133
|
+
imap_check: string;
|
|
134
|
+
hourly: string;
|
|
135
|
+
}
|
|
136
|
+
export declare const CRON_INSTRUCTIONS: CronInstructions;
|
|
137
|
+
export type SectionId = "upgrade" | "email" | "search" | "pusher" | "cron" | "clean-up";
|
|
138
|
+
export type OpenDialog = "smtp" | "imap" | "search" | "pusher" | "cron" | null;
|
|
139
|
+
/** The starting state of one story. Every field defaults to the base mocks. */
|
|
140
|
+
export interface SelfHostedRedesignScreenProps {
|
|
141
|
+
/** The row that starts expanded (the section the story is about). */
|
|
142
|
+
expanded?: SectionId;
|
|
143
|
+
/** A sub-dialog that starts open. */
|
|
144
|
+
dialog?: OpenDialog;
|
|
145
|
+
/** Start with the Disconnect confirmation open (Search or Pusher dialog). */
|
|
146
|
+
confirmDisconnect?: boolean;
|
|
147
|
+
status?: SystemStatus;
|
|
148
|
+
check?: CheckForUpdates;
|
|
149
|
+
email?: EmailIntegration;
|
|
150
|
+
search?: SearchIntegration;
|
|
151
|
+
pusher?: PusherIntegration;
|
|
152
|
+
cron?: CronInstructions;
|
|
153
|
+
oldVersions?: OldVersions;
|
|
154
|
+
/** Start in the "Processing..." state of Remove; it does not finish. */
|
|
155
|
+
removing?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export declare const SelfHostedRedesignScreen: ({ expanded, dialog: initialDialog, confirmDisconnect, status: initialStatus, check, email: initialEmail, search: initialSearch, pusher: initialPusher, cron, oldVersions: initialOldVersions, removing: initialRemoving, }: SelfHostedRedesignScreenProps) => ReactElement;
|
|
158
|
+
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../../src/presentation/selfHostedRedesign/parts.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAc,EAAE,YAAY,EAAkC,MAAM,OAAO,CAAC;AAsC5E;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE;QAAE,4BAA4B,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,2BAA2B,gEACuB,CAAC;AAChE,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,YAW3B,CAAC;AAEF,0EAA0E;AAC1E,MA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