@putkoff/abstract-securefiles 0.0.25 → 0.0.27
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/css.d.ts +0 -0
- package/dist/index.cjs +3 -933
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -8
- package/dist/index.js +5 -884
- package/dist/index.js.map +1 -1
- package/dist/{App/SecureFiles.d.ts → secure_files.d.ts} +1 -1
- package/index.ts +0 -0
- package/package.json +4 -4
- package/postcss.config.cjs +0 -0
- package/rollup.config.mjs +0 -0
- package/src/index.ts +1 -8
- package/src/{App/SecureFiles.tsx → secure_files.tsx} +4 -3
- package/tailwind.config.cjs +0 -0
- package/tsconfig.json +0 -0
- package/dist/App/index.d.ts +0 -1
- package/dist/FileHandlers/FileRow/imports.d.ts +0 -2
- package/dist/FileHandlers/FileRow/index.d.ts +0 -1
- package/dist/FileHandlers/FileRow/src/index.d.ts +0 -1
- package/dist/FileHandlers/FileRow/src/row_utils.d.ts +0 -2
- package/dist/FileHandlers/FileTable/imports.d.ts +0 -4
- package/dist/FileHandlers/FileTable/index.d.ts +0 -1
- package/dist/FileHandlers/FileTable/src/index.d.ts +0 -1
- package/dist/FileHandlers/FileTable/src/table_utils.d.ts +0 -2
- package/dist/FileHandlers/ShareModal/imports.d.ts +0 -2
- package/dist/FileHandlers/ShareModal/index.d.ts +0 -1
- package/dist/FileHandlers/ShareModal/src/index.d.ts +0 -1
- package/dist/FileHandlers/ShareModal/src/share_utils.d.ts +0 -2
- package/dist/FileHandlers/Upload/imports.d.ts +0 -2
- package/dist/FileHandlers/Upload/index.d.ts +0 -1
- package/dist/FileHandlers/Upload/src/index.d.ts +0 -2
- package/dist/FileHandlers/Upload/src/upload_utils.d.ts +0 -2
- package/dist/FileHandlers/imports.d.ts +0 -4
- package/dist/FileHandlers/index.d.ts +0 -4
- package/dist/UI/index.d.ts +0 -19
- package/dist/file_utils/imports.d.ts +0 -2
- package/dist/file_utils/index.d.ts +0 -1
- package/dist/file_utils/src/delete_utils/imports.d.ts +0 -1
- package/dist/file_utils/src/delete_utils/index.d.ts +0 -1
- package/dist/file_utils/src/delete_utils/src/delete_row.d.ts +0 -2
- package/dist/file_utils/src/delete_utils/src/delete_select.d.ts +0 -1
- package/dist/file_utils/src/delete_utils/src/delete_selected.d.ts +0 -2
- package/dist/file_utils/src/delete_utils/src/index.d.ts +0 -3
- package/dist/file_utils/src/download_utils/imports.d.ts +0 -2
- package/dist/file_utils/src/download_utils/index.d.ts +0 -1
- package/dist/file_utils/src/download_utils/src/direct_download.d.ts +0 -3
- package/dist/file_utils/src/download_utils/src/download_file.d.ts +0 -2
- package/dist/file_utils/src/download_utils/src/download_select.d.ts +0 -2
- package/dist/file_utils/src/download_utils/src/index.d.ts +0 -5
- package/dist/file_utils/src/download_utils/src/target_downloads.d.ts +0 -4
- package/dist/file_utils/src/download_utils/src/trigger_download.d.ts +0 -2
- package/dist/file_utils/src/imports.d.ts +0 -2
- package/dist/file_utils/src/index.d.ts +0 -6
- package/dist/file_utils/src/list_utils/imports.d.ts +0 -2
- package/dist/file_utils/src/list_utils/index.d.ts +0 -1
- package/dist/file_utils/src/list_utils/src/index.d.ts +0 -1
- package/dist/file_utils/src/list_utils/src/list_utils.d.ts +0 -2
- package/dist/file_utils/src/select_utils/index.d.ts +0 -1
- package/dist/file_utils/src/select_utils/src/index.d.ts +0 -3
- package/dist/file_utils/src/select_utils/src/init_select_all.d.ts +0 -2
- package/dist/file_utils/src/select_utils/src/sync_header_checkbox.d.ts +0 -5
- package/dist/file_utils/src/select_utils/src/toggle_checkboxes.d.ts +0 -2
- package/dist/file_utils/src/share_utils/imports.d.ts +0 -2
- package/dist/file_utils/src/share_utils/index.d.ts +0 -1
- package/dist/file_utils/src/share_utils/src/index.d.ts +0 -1
- package/dist/file_utils/src/share_utils/src/share_utils.d.ts +0 -7
- package/dist/file_utils/src/upload_utils/imports.d.ts +0 -1
- package/dist/file_utils/src/upload_utils/index.d.ts +0 -1
- package/dist/file_utils/src/upload_utils/src/index.d.ts +0 -3
- package/dist/file_utils/src/upload_utils/src/patch_file_settings.d.ts +0 -2
- package/dist/file_utils/src/upload_utils/src/upload_file.d.ts +0 -2
- package/dist/file_utils/src/upload_utils/src/upload_files.d.ts +0 -5
- package/dist/hooks/imports.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useFiles/imports.d.ts +0 -2
- package/dist/hooks/useFiles/index.d.ts +0 -1
- package/dist/hooks/useFiles/src/deleteFile.d.ts +0 -6
- package/dist/hooks/useFiles/src/index.d.ts +0 -6
- package/dist/hooks/useFiles/src/load.d.ts +0 -6
- package/dist/hooks/useFiles/src/patchShareSettings.d.ts +0 -7
- package/dist/hooks/useFiles/src/toggleShare.d.ts +0 -6
- package/dist/hooks/useFiles/src/useFiles.d.ts +0 -13
- package/dist/hooks/useFiles/src/useSaveShareSettings.d.ts +0 -3
- package/dist/imports.d.ts +0 -5
- package/dist/styles/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/types.d.ts +0 -75
- package/src/App/index.ts +0 -1
- package/src/FileHandlers/FileRow/imports.ts +0 -2
- package/src/FileHandlers/FileRow/index.ts +0 -1
- package/src/FileHandlers/FileRow/src/index.ts +0 -1
- package/src/FileHandlers/FileRow/src/row_utils.tsx +0 -143
- package/src/FileHandlers/FileTable/imports.ts +0 -16
- package/src/FileHandlers/FileTable/index.ts +0 -1
- package/src/FileHandlers/FileTable/src/index.ts +0 -1
- package/src/FileHandlers/FileTable/src/table_utils.tsx +0 -251
- package/src/FileHandlers/ShareModal/imports.ts +0 -2
- package/src/FileHandlers/ShareModal/index.ts +0 -1
- package/src/FileHandlers/ShareModal/src/index.ts +0 -1
- package/src/FileHandlers/ShareModal/src/share_utils.tsx +0 -158
- package/src/FileHandlers/Upload/imports.ts +0 -3
- package/src/FileHandlers/Upload/index.ts +0 -1
- package/src/FileHandlers/Upload/src/index.ts +0 -2
- package/src/FileHandlers/Upload/src/upload_utils.tsx +0 -267
- package/src/FileHandlers/imports.ts +0 -20
- package/src/FileHandlers/index.ts +0 -4
- package/src/UI/index.tsx +0 -113
- package/src/custom.d.ts +0 -7
- package/src/file_utils/imports.ts +0 -2
- package/src/file_utils/index.ts +0 -1
- package/src/file_utils/src/delete_utils/imports.ts +0 -1
- package/src/file_utils/src/delete_utils/index.ts +0 -1
- package/src/file_utils/src/delete_utils/src/delete_row.ts +0 -11
- package/src/file_utils/src/delete_utils/src/delete_select.ts +0 -9
- package/src/file_utils/src/delete_utils/src/delete_selected.ts +0 -15
- package/src/file_utils/src/delete_utils/src/index.ts +0 -3
- package/src/file_utils/src/download_utils/imports.ts +0 -3
- package/src/file_utils/src/download_utils/index.ts +0 -1
- package/src/file_utils/src/download_utils/src/direct_download.ts +0 -22
- package/src/file_utils/src/download_utils/src/download_file.ts +0 -24
- package/src/file_utils/src/download_utils/src/download_select.ts +0 -20
- package/src/file_utils/src/download_utils/src/index.ts +0 -5
- package/src/file_utils/src/download_utils/src/target_downloads.ts +0 -21
- package/src/file_utils/src/download_utils/src/trigger_download.ts +0 -14
- package/src/file_utils/src/imports.ts +0 -3
- package/src/file_utils/src/index.ts +0 -6
- package/src/file_utils/src/list_utils/imports.ts +0 -2
- package/src/file_utils/src/list_utils/index.ts +0 -1
- package/src/file_utils/src/list_utils/src/index.ts +0 -1
- package/src/file_utils/src/list_utils/src/list_utils.ts +0 -24
- package/src/file_utils/src/select_utils/index.ts +0 -1
- package/src/file_utils/src/select_utils/src/index.ts +0 -3
- package/src/file_utils/src/select_utils/src/init_select_all.ts +0 -37
- package/src/file_utils/src/select_utils/src/sync_header_checkbox.ts +0 -18
- package/src/file_utils/src/select_utils/src/toggle_checkboxes.ts +0 -11
- package/src/file_utils/src/share_utils/imports.ts +0 -2
- package/src/file_utils/src/share_utils/index.ts +0 -1
- package/src/file_utils/src/share_utils/src/index.ts +0 -1
- package/src/file_utils/src/share_utils/src/share_utils.ts +0 -29
- package/src/file_utils/src/upload_utils/imports.ts +0 -1
- package/src/file_utils/src/upload_utils/index.ts +0 -1
- package/src/file_utils/src/upload_utils/src/index.ts +0 -3
- package/src/file_utils/src/upload_utils/src/patch_file_settings.ts +0 -18
- package/src/file_utils/src/upload_utils/src/upload_file.ts +0 -28
- package/src/file_utils/src/upload_utils/src/upload_files.ts +0 -34
- package/src/global.d.ts +0 -1
- package/src/hooks/imports.ts +0 -3
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useFiles/imports.ts +0 -3
- package/src/hooks/useFiles/index.ts +0 -1
- package/src/hooks/useFiles/src/deleteFile.ts +0 -22
- package/src/hooks/useFiles/src/index.ts +0 -6
- package/src/hooks/useFiles/src/load.ts +0 -52
- package/src/hooks/useFiles/src/logs/routes_bp.log +0 -0
- package/src/hooks/useFiles/src/patchShareSettings.ts +0 -37
- package/src/hooks/useFiles/src/toggleShare.ts +0 -28
- package/src/hooks/useFiles/src/useFiles.ts +0 -35
- package/src/hooks/useFiles/src/useSaveShareSettings.ts +0 -25
- package/src/imports.ts +0 -20
- package/src/styles/SecureFiles/logs/clipit_logs.log +0 -0
- package/src/styles/SecureFiles/logs/routes_bp.log +0 -0
- package/src/styles/SecureFilesStyles.module.css +0 -287
- package/src/styles/index.ts +0 -1
- package/src/types/index.ts +0 -1
- package/src/types/src/index.ts +0 -1
- package/src/types/src/types.ts +0 -88
- package/test/package-lock.json +0 -979
- package/test/package.json +0 -23
- package/test/test_entry.ts +0 -8
- package/test/tsconfig.json +0 -12
- /package/{src/hooks/useFiles/src/logs/clipit_logs.log → package.tmp.json} +0 -0
- /package/src/styles/{SecureFiles/App.css → App.css} +0 -0
- /package/src/styles/{SecureFiles/index.css → index.css} +0 -0
- /package/src/styles/{SecureFiles/tailwind.css → tailwind.css} +0 -0
- /package/src/styles/{SecureFiles/window-manager.css → window-manager.css} +0 -0
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
/* SecureFilesStyles.module.css */
|
|
2
|
-
|
|
3
|
-
/* Scope all styles under .secure-files */
|
|
4
|
-
.secure-files {
|
|
5
|
-
/* Pull in Tailwind utilities if needed (but skip @base to avoid global resets) */
|
|
6
|
-
@tailwind utilities;
|
|
7
|
-
|
|
8
|
-
/* window-manager.css styles (prefixed where needed) */
|
|
9
|
-
.wm-table {
|
|
10
|
-
width: 100%;
|
|
11
|
-
font-size: 13px;
|
|
12
|
-
table-layout: fixed;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.wm-thead th {
|
|
16
|
-
background-color: #e5e7eb;
|
|
17
|
-
border-bottom: 1px solid #9ca3af;
|
|
18
|
-
padding: 5px 8px;
|
|
19
|
-
text-align: left;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.wm-row {
|
|
24
|
-
border-bottom: 1px solid #d1d5db;
|
|
25
|
-
background-color: #f9fafb;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.wm-row:hover {
|
|
29
|
-
background-color: #eff6ff;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.wm-cell {
|
|
33
|
-
padding: 5px 8px;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
text-overflow: ellipsis;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.wm-checkbox {
|
|
40
|
-
height: 14px;
|
|
41
|
-
width: 14px;
|
|
42
|
-
color: #2563eb;
|
|
43
|
-
border: 1px solid #9ca3af;
|
|
44
|
-
border-radius: 4px;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.wm-btn-link {
|
|
49
|
-
color: #2563eb;
|
|
50
|
-
text-decoration: underline;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.wm-btn-link:hover {
|
|
54
|
-
color: #1e40af;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.wm-btn-link:disabled {
|
|
58
|
-
color: #9ca3af;
|
|
59
|
-
cursor: not-allowed;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.wm-btn-icon {
|
|
63
|
-
color: #4b5563;
|
|
64
|
-
padding: 2px;
|
|
65
|
-
border-radius: 4px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.wm-btn-icon:hover {
|
|
69
|
-
color: #111827;
|
|
70
|
-
background-color: #e5e7eb;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.wm-btn-icon:disabled {
|
|
74
|
-
color: #9ca3af;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* file-table styles */
|
|
78
|
-
.file-table {
|
|
79
|
-
width: 100%;
|
|
80
|
-
border: 1px solid #9ca3af;
|
|
81
|
-
font-size: 13px;
|
|
82
|
-
line-height: 1.15rem;
|
|
83
|
-
border-collapse: collapse;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.file-table thead th {
|
|
87
|
-
background-color: #e5e7eb;
|
|
88
|
-
color: #1f2937;
|
|
89
|
-
font-weight: 600;
|
|
90
|
-
padding: 6px 12px;
|
|
91
|
-
user-select: none;
|
|
92
|
-
border-bottom: 1px solid #9ca3af;
|
|
93
|
-
border-right: 1px solid #d1d5db;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.file-table thead th:last-child {
|
|
97
|
-
border-right: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.file-table tbody tr {
|
|
101
|
-
border-bottom: 1px solid #d1d5db;
|
|
102
|
-
transition: background-color 0.2s;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.file-table tbody tr:hover {
|
|
106
|
-
background-color: #f3f4f6;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.file-table tbody tr:nth-child(even) {
|
|
110
|
-
background-color: #f9fafb;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.file-table td {
|
|
114
|
-
padding: 6px 12px;
|
|
115
|
-
vertical-align: middle;
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
border-right: 1px solid #d1d5db;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.file-table td:last-child {
|
|
121
|
-
border-right: none;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.file-table .unsaved {
|
|
125
|
-
color: #dc2626;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/* Modals */
|
|
129
|
-
.modal-backdrop {
|
|
130
|
-
position: fixed;
|
|
131
|
-
top: 0;
|
|
132
|
-
right: 0;
|
|
133
|
-
bottom: 0;
|
|
134
|
-
left: 0;
|
|
135
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.modal-wrapper {
|
|
139
|
-
position: fixed;
|
|
140
|
-
top: 0;
|
|
141
|
-
right: 0;
|
|
142
|
-
bottom: 0;
|
|
143
|
-
left: 0;
|
|
144
|
-
display: flex;
|
|
145
|
-
align-items: center;
|
|
146
|
-
justify-content: center;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.modal-panel {
|
|
150
|
-
background-color: #ffffff;
|
|
151
|
-
border-radius: 12px;
|
|
152
|
-
padding: 24px;
|
|
153
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
154
|
-
outline: none;
|
|
155
|
-
max-width: 28rem;
|
|
156
|
-
max-height: 90vh;
|
|
157
|
-
overflow-y: auto;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Forms & Inputs */
|
|
161
|
-
.form-container {
|
|
162
|
-
background-color: #ffffff;
|
|
163
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
164
|
-
border-radius: 8px;
|
|
165
|
-
padding: 24px;
|
|
166
|
-
display: flex;
|
|
167
|
-
flex-direction: column;
|
|
168
|
-
gap: 16px;
|
|
169
|
-
max-width: 28rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.form-title {
|
|
173
|
-
font-size: 20px;
|
|
174
|
-
font-weight: 600;
|
|
175
|
-
text-align: center;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.form-input {
|
|
179
|
-
display: block;
|
|
180
|
-
width: 100%;
|
|
181
|
-
border-radius: 4px;
|
|
182
|
-
border: 1px solid #d1d5db;
|
|
183
|
-
padding: 4px 8px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.form-input:disabled {
|
|
187
|
-
background-color: #f3f4f6;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.form-group {
|
|
191
|
-
margin-bottom: 16px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.form-label {
|
|
195
|
-
display: block;
|
|
196
|
-
font-size: 14px;
|
|
197
|
-
font-weight: 500;
|
|
198
|
-
margin-bottom: 4px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.form-error {
|
|
202
|
-
font-size: 14px;
|
|
203
|
-
color: #dc2626;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* Buttons */
|
|
207
|
-
.btn {
|
|
208
|
-
border-radius: 8px;
|
|
209
|
-
padding: 4px 12px;
|
|
210
|
-
font-size: 14px;
|
|
211
|
-
font-weight: 500;
|
|
212
|
-
transition: background-color 0.15s, color 0.15s;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.btn:focus {
|
|
216
|
-
outline: none;
|
|
217
|
-
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 0, 0, 0.1);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.btn-primary {
|
|
221
|
-
background-color: #2563eb;
|
|
222
|
-
color: #ffffff;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.btn-primary:hover {
|
|
226
|
-
background-color: #1d4ed8;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.btn-primary:focus {
|
|
230
|
-
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(59, 130, 246, 0.5);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.btn-secondary {
|
|
234
|
-
background-color: #e5e7eb;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.btn-secondary:hover {
|
|
238
|
-
background-color: #d1d5db;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.btn-secondary:focus {
|
|
242
|
-
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(156, 163, 175, 0.5);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.btn-success {
|
|
246
|
-
background-color: #16a34a;
|
|
247
|
-
color: #ffffff;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.btn-success:hover {
|
|
251
|
-
background-color: #15803d;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.btn-success:focus {
|
|
255
|
-
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(34, 197, 94, 0.5);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.btn-danger {
|
|
259
|
-
background-color: #dc2626;
|
|
260
|
-
color: #ffffff;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.btn-danger:hover {
|
|
264
|
-
background-color: #b91c1c;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.btn-danger:focus {
|
|
268
|
-
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(239, 68, 68, 0.5);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.btn-icon {
|
|
272
|
-
padding: 4px;
|
|
273
|
-
background-color: transparent;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.btn-icon:hover {
|
|
277
|
-
background-color: #f3f4f6;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/* Checkbox */
|
|
281
|
-
.checkbox {
|
|
282
|
-
display: flex;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
margin-bottom: 16px;
|
|
286
|
-
}
|
|
287
|
-
}
|
package/src/styles/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SecureFiles/index.css';
|
package/src/types/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { QueuedFile, FileItem, FileTableProps, UploadProps, ShareModalProps, FileRowProps, ApiRow, EnhancedInputProps } from './src/types';
|
package/src/types/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { QueuedFile, FileItem, FileTableProps, UploadProps, ShareModalProps, FileRowProps, ApiRow, EnhancedInputProps } from './types';
|
package/src/types/src/types.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export interface FileItem {
|
|
3
|
-
id: number | string;
|
|
4
|
-
filename: string;
|
|
5
|
-
uploader_id: string;
|
|
6
|
-
filepath: string;
|
|
7
|
-
created_at: string;
|
|
8
|
-
download_count: number;
|
|
9
|
-
download_limit: number | null;
|
|
10
|
-
shareable: boolean;
|
|
11
|
-
needsPassword: boolean;
|
|
12
|
-
share_password: string | null;
|
|
13
|
-
password_str: string | null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ApiRow {
|
|
17
|
-
id: number | string;
|
|
18
|
-
filename: string;
|
|
19
|
-
uploader_id: string;
|
|
20
|
-
filepath: string;
|
|
21
|
-
created_at: string;
|
|
22
|
-
download_count: number;
|
|
23
|
-
download_limit: number | null;
|
|
24
|
-
shareable: boolean;
|
|
25
|
-
needsPassword: boolean;
|
|
26
|
-
share_password: string;
|
|
27
|
-
password_str: string | null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface FileListResponse {
|
|
31
|
-
files?: ApiRow[];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface FileTableProps {
|
|
35
|
-
files: FileItem[];
|
|
36
|
-
loading: boolean;
|
|
37
|
-
error: Error | null;
|
|
38
|
-
onDownload(id: any): Promise<void>;
|
|
39
|
-
onToggleShare(id: any): Promise<void>;
|
|
40
|
-
onPatchShare(id: any): Promise<void>;
|
|
41
|
-
onDelete(id: any): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export interface ShareModalProps {
|
|
46
|
-
file: FileItem | null;
|
|
47
|
-
onClose(): void;
|
|
48
|
-
onSave(patch: Partial<FileItem>): Promise<void>;
|
|
49
|
-
}
|
|
50
|
-
export interface UploadProps {
|
|
51
|
-
/** Called *after* a successful upload */
|
|
52
|
-
onUploaded: () => Promise<void>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export interface FileRowProps {
|
|
58
|
-
file: FileItem;
|
|
59
|
-
onDownload: () => Promise<void>;
|
|
60
|
-
onSettings: () => void;
|
|
61
|
-
onToggleShare: () => Promise<void>;
|
|
62
|
-
onDelete: () => any;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface QueuedFile {
|
|
66
|
-
file: File;
|
|
67
|
-
relPath: string;
|
|
68
|
-
progress: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface InputProps {
|
|
72
|
-
label?: any;
|
|
73
|
-
type?: any;
|
|
74
|
-
value?: any;
|
|
75
|
-
onChange?: any;
|
|
76
|
-
disabled?: any;
|
|
77
|
-
placeholder?: any;
|
|
78
|
-
error?: string;
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface FileInputExtra {
|
|
83
|
-
directory?: boolean; // true → allow folder selection
|
|
84
|
-
multiple?: boolean; // true → allow multiple files
|
|
85
|
-
accept?: string; // optional MIME filter
|
|
86
|
-
}
|
|
87
|
-
/** keep other InputProps fields … */
|
|
88
|
-
export type EnhancedInputProps = InputProps & FileInputExtra;
|