@activecollab/components 2.0.491 → 2.0.493

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.
Files changed (40) hide show
  1. package/dist/cjs/components/Icons/collection/Printer.js +62 -0
  2. package/dist/cjs/components/Icons/collection/Printer.js.map +1 -0
  3. package/dist/cjs/components/Icons/collection/index.js +7 -0
  4. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  5. package/dist/cjs/presentation/selfHostedRedesign/parts.js +1646 -0
  6. package/dist/cjs/presentation/selfHostedRedesign/parts.js.map +1 -0
  7. package/dist/cjs/presentation/shared/TaskOptionsMenu.js +5 -1
  8. package/dist/cjs/presentation/shared/TaskOptionsMenu.js.map +1 -1
  9. package/dist/cjs/presentation/shared/index.js +14 -0
  10. package/dist/cjs/presentation/shared/index.js.map +1 -1
  11. package/dist/cjs/presentation/shared/selfHostedSettings.js +7 -2
  12. package/dist/cjs/presentation/shared/selfHostedSettings.js.map +1 -1
  13. package/dist/esm/components/Icons/collection/Printer.d.ts +32 -0
  14. package/dist/esm/components/Icons/collection/Printer.d.ts.map +1 -0
  15. package/dist/esm/components/Icons/collection/Printer.js +55 -0
  16. package/dist/esm/components/Icons/collection/Printer.js.map +1 -0
  17. package/dist/esm/components/Icons/collection/index.d.ts +1 -0
  18. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  19. package/dist/esm/components/Icons/collection/index.js +1 -0
  20. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  21. package/dist/esm/presentation/selfHostedRedesign/parts.d.ts +205 -0
  22. package/dist/esm/presentation/selfHostedRedesign/parts.d.ts.map +1 -0
  23. package/dist/esm/presentation/selfHostedRedesign/parts.js +1453 -0
  24. package/dist/esm/presentation/selfHostedRedesign/parts.js.map +1 -0
  25. package/dist/esm/presentation/shared/TaskOptionsMenu.d.ts.map +1 -1
  26. package/dist/esm/presentation/shared/TaskOptionsMenu.js +5 -1
  27. package/dist/esm/presentation/shared/TaskOptionsMenu.js.map +1 -1
  28. package/dist/esm/presentation/shared/index.d.ts +1 -1
  29. package/dist/esm/presentation/shared/index.d.ts.map +1 -1
  30. package/dist/esm/presentation/shared/index.js +1 -1
  31. package/dist/esm/presentation/shared/index.js.map +1 -1
  32. package/dist/esm/presentation/shared/selfHostedSettings.d.ts +4 -0
  33. package/dist/esm/presentation/shared/selfHostedSettings.d.ts.map +1 -1
  34. package/dist/esm/presentation/shared/selfHostedSettings.js +4 -1
  35. package/dist/esm/presentation/shared/selfHostedSettings.js.map +1 -1
  36. package/dist/index.js +454 -402
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.min.js +1 -1
  39. package/dist/index.min.js.map +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,205 @@
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
+ /** mirrors: no payload yet (task #462024, PNG and PDF export). */
43
+ rasterizer_is_ok: boolean;
44
+ rasterizer_errors: string[];
45
+ imap_is_available: boolean;
46
+ headers: {
47
+ "x-angie-applicationversion": string;
48
+ };
49
+ }
50
+ /**
51
+ * mirrors: backend `lang()` strings in the `on_system_status` handlers and the
52
+ * integrations' `isOk()` (EmailIntegration, SearchIntegration,
53
+ * PusherIntegration, CronIntegration).
54
+ */
55
+ export declare const SEARCH_NOT_CONFIGURED_ERROR = "Search server is not configured";
56
+ export declare const PUSHER_NOT_CONFIGURED_ERROR = "Server for exchange of real-time updates is not configured.";
57
+ /** mirrors: no payload yet (task #462024). */
58
+ export declare const RASTERIZER_NOT_CONFIGURED_ERROR = "Path to rsvg-convert is not configured. Timeline and whiteboard export offer SVG only.";
59
+ export declare const rasterizerPathError: (path: string) => string;
60
+ export declare const STATUS_ERRORS: {
61
+ noImapCheck: string;
62
+ noEmailSent: string;
63
+ searchJobsFailed: string;
64
+ cronFrequently: string;
65
+ cronImap: string;
66
+ cronHourly: string;
67
+ };
68
+ export declare const SYSTEM_STATUS: SystemStatus;
69
+ /** mirrors: GET /system-status/check-for-updates (useCheckForUpdates). */
70
+ export interface CheckForUpdates {
71
+ current_version: string;
72
+ latest_available_version: string;
73
+ new_version_available: boolean;
74
+ support_expires_on: number;
75
+ support_renewal_url: string;
76
+ }
77
+ export declare const CHECK_FOR_UPDATES: CheckForUpdates;
78
+ /** mirrors: GET /system/versions/old-versions (repository/useOldVersions.js). */
79
+ export interface OldVersions {
80
+ versions_is_ok: boolean;
81
+ versions_errors: string[];
82
+ }
83
+ export declare const OLD_VERSIONS: OldVersions;
84
+ export type MailSecurity = "auto" | "tls" | "ssl" | "off";
85
+ /** mirrors: GET /integrations/email `single` (useIntegration("email")). */
86
+ export interface EmailIntegration {
87
+ sender_name: string;
88
+ sender_email: string;
89
+ smtp_host: string;
90
+ smtp_port: number;
91
+ smtp_security: MailSecurity;
92
+ smtp_username: string;
93
+ has_smtp_password: boolean;
94
+ smtp_verify_certificate: boolean;
95
+ imap_host: string;
96
+ imap_port: number;
97
+ imap_security: MailSecurity;
98
+ imap_username: string;
99
+ has_imap_password: boolean;
100
+ imap_mailbox: string;
101
+ imap_verify_certificate: boolean;
102
+ imap_subaddress_separator: "+" | "-";
103
+ imap_once_processed_action: "move" | "delete";
104
+ imap_once_processed_folder: string;
105
+ }
106
+ export declare const EMAIL_INTEGRATION: EmailIntegration;
107
+ /** mirrors: GET /integrations/search `single` (useIntegration("search")). */
108
+ export interface SearchIntegration {
109
+ hosts: string;
110
+ user: string;
111
+ password: string;
112
+ path_to_certificate: string;
113
+ shards: number;
114
+ replicas: number;
115
+ is_index_created: boolean;
116
+ is_index_rebuilded: boolean;
117
+ }
118
+ export declare const SEARCH_NOT_CONFIGURED: SearchIntegration;
119
+ /** mirrors: GET /integrations/pusher `single` (useIntegration("pusher")). */
120
+ export interface PusherIntegration {
121
+ app_id: string;
122
+ app_key: string;
123
+ app_cluster: string;
124
+ app_secret: string;
125
+ ws_host: string;
126
+ is_connection_tested: boolean;
127
+ }
128
+ export declare const PUSHER_INTEGRATION: PusherIntegration;
129
+ /** mirrors: GET /integrations/cron `single.instructions` (useIntegration("cron")). */
130
+ export interface CronInstructions {
131
+ platform: "unix" | "windows";
132
+ hourly_last_run: number | null;
133
+ frequently_last_run: number | null;
134
+ check_imap_last_run: number | null;
135
+ setup_frequently: string;
136
+ setup_check_imap: string;
137
+ setup_hourly: string;
138
+ frequently: string;
139
+ imap_check: string;
140
+ hourly: string;
141
+ }
142
+ export declare const CRON_INSTRUCTIONS: CronInstructions;
143
+ /**
144
+ * Where the path to rsvg-convert came from. The environment variable wins over
145
+ * the config.php constant, which wins over the value saved in this section.
146
+ * mirrors: no payload yet (task #462024).
147
+ */
148
+ export type RasterizerPathSource = "env" | "config" | "db";
149
+ /** mirrors: no payload yet (GET /integrations/rasterizer, task #462024). */
150
+ export interface RasterizerIntegration {
151
+ librsvg_path: string | null;
152
+ librsvg_path_source: RasterizerPathSource | null;
153
+ }
154
+ export declare const RASTERIZER_NOT_CONFIGURED: RasterizerIntegration;
155
+ export declare const RASTERIZER_CONFIGURED: RasterizerIntegration;
156
+ /**
157
+ * mirrors: no payload yet (POST /integrations/rasterizer/test, task #462024).
158
+ * The server runs `<path> --version` and passes when the output starts with
159
+ * "rsvg-convert version".
160
+ */
161
+ export interface RasterizerTestResult {
162
+ is_ok: boolean;
163
+ version: string | null;
164
+ exit_code: number | null;
165
+ output: string;
166
+ error: string | null;
167
+ }
168
+ export declare const rasterizerTestResponse: (path: string) => RasterizerTestResult;
169
+ export type RasterizerTestState = {
170
+ state: "idle";
171
+ } | {
172
+ state: "testing";
173
+ } | {
174
+ state: "failed";
175
+ result: RasterizerTestResult;
176
+ };
177
+ export type SectionId = "upgrade" | "email" | "search" | "pusher" | "cron" | "image-export" | "clean-up";
178
+ export type OpenDialog = "smtp" | "imap" | "search" | "pusher" | "cron" | "rasterizer" | null;
179
+ /** The starting state of one story. Every field defaults to the base mocks. */
180
+ export interface SelfHostedRedesignScreenProps {
181
+ /** The row that starts expanded (the section the story is about). */
182
+ expanded?: SectionId;
183
+ /** A sub-dialog that starts open. */
184
+ dialog?: OpenDialog;
185
+ /** Start with the Disconnect confirmation open (Search or Pusher dialog). */
186
+ confirmDisconnect?: boolean;
187
+ status?: SystemStatus;
188
+ check?: CheckForUpdates;
189
+ email?: EmailIntegration;
190
+ search?: SearchIntegration;
191
+ pusher?: PusherIntegration;
192
+ cron?: CronInstructions;
193
+ rasterizer?: RasterizerIntegration;
194
+ /** Starting path in the rasterizer dialog field. */
195
+ rasterizerPath?: string;
196
+ /** Starting test state of the rasterizer dialog. */
197
+ rasterizerTest?: RasterizerTestState;
198
+ /** A success toast that starts visible and stays until dismissed. */
199
+ toast?: string;
200
+ oldVersions?: OldVersions;
201
+ /** Start in the "Processing..." state of Remove; it does not finish. */
202
+ removing?: boolean;
203
+ }
204
+ export declare const SelfHostedRedesignScreen: ({ expanded, dialog: initialDialog, confirmDisconnect, status: initialStatus, check, email: initialEmail, search: initialSearch, pusher: initialPusher, cron, rasterizer: initialRasterizer, rasterizerPath, rasterizerTest, toast: initialToast, oldVersions: initialOldVersions, removing: initialRemoving, }: SelfHostedRedesignScreenProps) => ReactElement;
205
+ //# 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;AAwC5E;;;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,kEAAkE;IAClE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE;QAAE,4BAA4B,EAAE,MAAM,CAAA;KAAE,CAAC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