@firecms/core 3.1.0 → 3.2.0-canary.9c3d298

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 (191) hide show
  1. package/dist/components/EntityCollectionView/CollectionDataErrorBanner.d.ts +4 -0
  2. package/dist/components/ErrorBoundary.d.ts +3 -1
  3. package/dist/components/HomePage/DefaultHomePage.d.ts +0 -1
  4. package/dist/components/LanguageToggle.d.ts +1 -0
  5. package/dist/components/UnsavedChangesDialog.d.ts +1 -0
  6. package/dist/components/index.d.ts +1 -0
  7. package/dist/core/DrawerNavigationGroup.d.ts +2 -2
  8. package/dist/editor/components/SlashCommandMenu.d.ts +6 -0
  9. package/dist/editor/components/editor-bubble-item.d.ts +8 -0
  10. package/dist/editor/components/editor-bubble.d.ts +8 -0
  11. package/dist/editor/components/image-bubble.d.ts +5 -0
  12. package/dist/editor/components/index.d.ts +16 -0
  13. package/dist/editor/components/table-bubble.d.ts +5 -0
  14. package/dist/editor/editor.d.ts +30 -0
  15. package/dist/editor/extensions/HighlightDecorationExtension.d.ts +24 -0
  16. package/dist/editor/extensions/Image/index.d.ts +6 -0
  17. package/dist/editor/extensions/Image.d.ts +6 -0
  18. package/dist/editor/extensions/TextLoadingDecorationExtension.d.ts +16 -0
  19. package/dist/editor/extensions/clipboard.d.ts +7 -0
  20. package/dist/editor/extensions/custom-keymap.d.ts +1 -0
  21. package/dist/editor/extensions/drag-and-drop.d.ts +9 -0
  22. package/dist/editor/hooks/useProseMirror.d.ts +13 -0
  23. package/dist/editor/hooks/useProseMirrorContext.d.ts +9 -0
  24. package/dist/editor/index.d.ts +2 -0
  25. package/dist/editor/markdown.d.ts +5 -0
  26. package/dist/editor/nodeViews/ImageComponent.d.ts +3 -0
  27. package/dist/editor/nodeViews/ReactNodeView.d.ts +29 -0
  28. package/dist/editor/nodeViews/TaskItemComponent.d.ts +3 -0
  29. package/dist/editor/nodeViews/index.d.ts +6 -0
  30. package/dist/editor/plugins/index.d.ts +2 -0
  31. package/dist/editor/plugins/inputrules.d.ts +6 -0
  32. package/dist/editor/plugins/placeholderPlugin.d.ts +3 -0
  33. package/dist/editor/plugins/slashCommandPlugin.d.ts +12 -0
  34. package/dist/editor/schema.d.ts +2 -0
  35. package/dist/editor/selectors/ai-selector.d.ts +0 -0
  36. package/dist/editor/selectors/color-selector.d.ts +10 -0
  37. package/dist/editor/selectors/link-selector.d.ts +8 -0
  38. package/dist/editor/selectors/node-selector.d.ts +15 -0
  39. package/dist/editor/selectors/text-buttons.d.ts +1 -0
  40. package/dist/editor/types.d.ts +5 -0
  41. package/dist/editor/useProseMirror.d.ts +16 -0
  42. package/dist/editor/utils/prosemirror-utils.d.ts +6 -0
  43. package/dist/editor/utils/remove_classes.d.ts +1 -0
  44. package/dist/editor/utils/useDebouncedCallback.d.ts +1 -0
  45. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +1 -1
  46. package/dist/hooks/index.d.ts +1 -0
  47. package/dist/hooks/useBuildNavigationController.d.ts +0 -1
  48. package/dist/hooks/useCollapsedGroups.d.ts +3 -3
  49. package/dist/hooks/useTranslation.d.ts +17 -0
  50. package/dist/i18n/FireCMSi18nProvider.d.ts +33 -0
  51. package/dist/index.d.ts +4 -0
  52. package/dist/index.es.js +12898 -2265
  53. package/dist/index.es.js.map +1 -1
  54. package/dist/index.umd.js +12877 -2264
  55. package/dist/index.umd.js.map +1 -1
  56. package/dist/locales/de.d.ts +2 -0
  57. package/dist/locales/en.d.ts +10 -0
  58. package/dist/locales/es.d.ts +10 -0
  59. package/dist/locales/fr.d.ts +2 -0
  60. package/dist/locales/hi.d.ts +2 -0
  61. package/dist/locales/it.d.ts +2 -0
  62. package/dist/locales/pt.d.ts +7 -0
  63. package/dist/types/customization_controller.d.ts +2 -1
  64. package/dist/types/firecms.d.ts +2 -1
  65. package/dist/types/index.d.ts +1 -0
  66. package/dist/types/navigation.d.ts +2 -2
  67. package/dist/types/plugins.d.ts +7 -0
  68. package/dist/types/storage.d.ts +1 -0
  69. package/dist/types/translations.d.ts +646 -0
  70. package/dist/util/useStorageUploadController.d.ts +10 -1
  71. package/package.json +45 -9
  72. package/src/app/Scaffold.tsx +7 -5
  73. package/src/components/AIIcon.tsx +3 -1
  74. package/src/components/ArrayContainer.tsx +6 -4
  75. package/src/components/ClearFilterSortButton.tsx +6 -3
  76. package/src/components/ConfirmationDialog.tsx +4 -2
  77. package/src/components/DeleteEntityDialog.tsx +10 -7
  78. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +6 -3
  79. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +3 -1
  80. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +3 -2
  81. package/src/components/EntityCollectionView/BoardSortableList.tsx +3 -1
  82. package/src/components/EntityCollectionView/CollectionDataErrorBanner.tsx +43 -0
  83. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +16 -43
  84. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +17 -25
  85. package/src/components/EntityCollectionView/EntityCollectionView.tsx +26 -18
  86. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +4 -3
  87. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +4 -2
  88. package/src/components/EntityCollectionView/FiltersDialog.tsx +8 -5
  89. package/src/components/EntityCollectionView/ViewModeToggle.tsx +11 -8
  90. package/src/components/EntityView.tsx +3 -2
  91. package/src/components/ErrorBoundary.tsx +27 -15
  92. package/src/components/HomePage/DefaultHomePage.tsx +19 -13
  93. package/src/components/HomePage/HomePageDnD.tsx +3 -1
  94. package/src/components/HomePage/NavigationGroup.tsx +3 -1
  95. package/src/components/HomePage/RenameGroupDialog.tsx +15 -13
  96. package/src/components/LanguageToggle.tsx +66 -0
  97. package/src/components/NotFoundPage.tsx +5 -3
  98. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +9 -7
  99. package/src/components/ReferenceWidget.tsx +3 -2
  100. package/src/components/SearchIconsView.tsx +3 -1
  101. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +11 -0
  102. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +15 -2
  103. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +11 -0
  104. package/src/components/UnsavedChangesDialog.tsx +6 -4
  105. package/src/components/VirtualTable/VirtualTable.performance.test.tsx +1 -0
  106. package/src/components/VirtualTable/VirtualTableHeader.tsx +12 -10
  107. package/src/components/common/default_entity_actions.tsx +4 -0
  108. package/src/components/common/useDataSourceTableController.tsx +12 -4
  109. package/src/components/index.tsx +1 -0
  110. package/src/core/DefaultAppBar.tsx +14 -10
  111. package/src/core/DefaultDrawer.tsx +8 -2
  112. package/src/core/DrawerNavigationGroup.tsx +5 -3
  113. package/src/core/EntityEditView.tsx +4 -3
  114. package/src/core/EntityEditViewFormActions.tsx +24 -17
  115. package/src/core/EntitySidePanel.tsx +6 -5
  116. package/src/core/FireCMS.tsx +33 -6
  117. package/src/editor/components/SlashCommandMenu.tsx +516 -0
  118. package/src/editor/components/editor-bubble-item.tsx +32 -0
  119. package/src/editor/components/editor-bubble.tsx +118 -0
  120. package/src/editor/components/image-bubble.tsx +156 -0
  121. package/src/editor/components/index.ts +14 -0
  122. package/src/editor/components/table-bubble.tsx +165 -0
  123. package/src/editor/editor.tsx +455 -0
  124. package/src/editor/extensions/HighlightDecorationExtension.ts +114 -0
  125. package/src/editor/extensions/Image/index.ts +133 -0
  126. package/src/editor/extensions/Image.ts +159 -0
  127. package/src/editor/extensions/TextLoadingDecorationExtension.tsx +107 -0
  128. package/src/editor/extensions/clipboard.ts +72 -0
  129. package/src/editor/extensions/custom-keymap.ts +24 -0
  130. package/src/editor/extensions/drag-and-drop.tsx +480 -0
  131. package/src/editor/hooks/useProseMirror.ts +124 -0
  132. package/src/editor/hooks/useProseMirrorContext.ts +15 -0
  133. package/src/editor/index.ts +2 -0
  134. package/src/editor/markdown.ts +172 -0
  135. package/src/editor/nodeViews/ImageComponent.tsx +20 -0
  136. package/src/editor/nodeViews/ReactNodeView.tsx +89 -0
  137. package/src/editor/nodeViews/TaskItemComponent.tsx +29 -0
  138. package/src/editor/nodeViews/index.ts +35 -0
  139. package/src/editor/plugins/index.ts +58 -0
  140. package/src/editor/plugins/inputrules.ts +82 -0
  141. package/src/editor/plugins/placeholderPlugin.ts +55 -0
  142. package/src/editor/plugins/slashCommandPlugin.ts +61 -0
  143. package/src/editor/schema.ts +240 -0
  144. package/src/editor/selectors/ai-selector.tsx +111 -0
  145. package/src/editor/selectors/color-selector.tsx +200 -0
  146. package/src/editor/selectors/link-selector.tsx +118 -0
  147. package/src/editor/selectors/node-selector.tsx +157 -0
  148. package/src/editor/selectors/text-buttons.tsx +86 -0
  149. package/src/editor/types.ts +6 -0
  150. package/src/editor/useProseMirror.ts +126 -0
  151. package/src/editor/utils/prosemirror-utils.ts +108 -0
  152. package/src/editor/utils/remove_classes.ts +17 -0
  153. package/src/editor/utils/useDebouncedCallback.ts +25 -0
  154. package/src/form/EntityForm.tsx +16 -3
  155. package/src/form/EntityFormActions.tsx +19 -12
  156. package/src/form/PropertyFieldBinding.tsx +3 -2
  157. package/src/form/components/LocalChangesMenu.tsx +13 -13
  158. package/src/form/components/StorageItemPreview.tsx +3 -2
  159. package/src/form/components/StorageUploadProgress.tsx +18 -3
  160. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +4 -4
  161. package/src/form/field_bindings/BlockFieldBinding.tsx +5 -2
  162. package/src/form/field_bindings/KeyValueFieldBinding.tsx +23 -18
  163. package/src/form/field_bindings/MapFieldBinding.tsx +4 -3
  164. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +33 -19
  165. package/src/form/field_bindings/RepeatFieldBinding.tsx +3 -1
  166. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +4 -3
  167. package/src/hooks/index.tsx +1 -0
  168. package/src/hooks/useBuildNavigationController.tsx +45 -18
  169. package/src/hooks/useCollapsedGroups.ts +7 -6
  170. package/src/hooks/useTranslation.ts +31 -0
  171. package/src/i18n/FireCMSi18nProvider.tsx +160 -0
  172. package/src/index.ts +4 -0
  173. package/src/internal/useBuildSideEntityController.tsx +22 -20
  174. package/src/locales/de.ts +691 -0
  175. package/src/locales/en.ts +703 -0
  176. package/src/locales/es.ts +703 -0
  177. package/src/locales/fr.ts +691 -0
  178. package/src/locales/hi.ts +691 -0
  179. package/src/locales/it.ts +691 -0
  180. package/src/locales/pt.ts +700 -0
  181. package/src/preview/components/UrlComponentPreview.tsx +4 -2
  182. package/src/preview/components/UserPreview.tsx +3 -1
  183. package/src/types/customization_controller.tsx +2 -1
  184. package/src/types/firecms.tsx +2 -1
  185. package/src/types/index.ts +1 -0
  186. package/src/types/navigation.ts +2 -2
  187. package/src/types/plugins.tsx +8 -0
  188. package/src/types/properties.ts +1 -0
  189. package/src/types/storage.ts +2 -1
  190. package/src/types/translations.ts +725 -0
  191. package/src/util/useStorageUploadController.tsx +23 -29
@@ -0,0 +1,646 @@
1
+ /**
2
+ * Recursively makes all properties optional.
3
+ * Used to type partial translation overrides.
4
+ */
5
+ export type DeepPartial<T> = T extends object ? {
6
+ [K in keyof T]?: DeepPartial<T[K]>;
7
+ } : T;
8
+ /**
9
+ * All user-visible strings used internally by @firecms/core.
10
+ * Pass a `DeepPartial<FireCMSTranslations>` via the `translations` prop
11
+ * on your FireCMS entry-point component to override any key, or to add
12
+ * a new locale.
13
+ *
14
+ * @group Core
15
+ */
16
+ export interface FireCMSTranslations {
17
+ save: string;
18
+ create: string;
19
+ /** Used when duplicating an existing entity */
20
+ create_copy: string;
21
+ save_and_close: string;
22
+ create_copy_and_close: string;
23
+ create_and_close: string;
24
+ /** Discard changes on an existing entity */
25
+ discard: string;
26
+ /** Clear a new/copy form (not yet persisted) */
27
+ clear: string;
28
+ cancel: string;
29
+ edit: string;
30
+ copy: string;
31
+ delete: string;
32
+ delete_confirmation_title: string;
33
+ delete_confirmation_body: string;
34
+ delete_multiple_confirmation_body: string;
35
+ unsaved_changes_title: string;
36
+ unsaved_changes_body: string;
37
+ discard_changes: string;
38
+ keep_editing: string;
39
+ search: string;
40
+ find_by_id: string;
41
+ find_entity_by_id: string;
42
+ filter: string;
43
+ clear_filter: string;
44
+ clear_filter_sort: string;
45
+ clear_sort: string;
46
+ no_items: string;
47
+ no_entries_found: string;
48
+ all_entries_loaded: string;
49
+ create_your_first_entry: string;
50
+ no_results_filter_sort: string;
51
+ add: string;
52
+ remove: string;
53
+ copy_id: string;
54
+ add_specific: string;
55
+ select_specific: string;
56
+ select_from: string;
57
+ done: string;
58
+ log_out: string;
59
+ license_needed: string;
60
+ license_description: string;
61
+ column_cannot_be_edited: string;
62
+ close: string;
63
+ unsaved_local_changes: string;
64
+ unsaved_local_changes_description: string;
65
+ preview_changes: string;
66
+ apply_changes: string;
67
+ discard_local_changes: string;
68
+ preview_local_changes: string;
69
+ preview_local_changes_description: string;
70
+ type: string;
71
+ string: string;
72
+ number: string;
73
+ boolean: string;
74
+ date: string;
75
+ map: string;
76
+ array: string;
77
+ arrays_of_arrays_not_supported: string;
78
+ data_type_not_supported: string;
79
+ browser_does_not_support_audio: string;
80
+ user_not_found: string;
81
+ /** "Delete" action on collections, may require permissions check */
82
+ delete_selected: string;
83
+ cannot_delete_selected: string;
84
+ /** Label for buttons that add a new item to a list */
85
+ add_entry: string;
86
+ add_on_top: string;
87
+ add_below: string;
88
+ /** Label when a fieldName is provided — "Add to {fieldName}" */
89
+ add_to_field: string;
90
+ /** Placeholder for the 'value' input in a KeyValue field */
91
+ value: string;
92
+ /** Placeholder for the 'key' input in a KeyValue field */
93
+ key: string;
94
+ /** Drag and drop help text for multiple files */
95
+ drag_drop_multiple: string;
96
+ /** Drag and drop help text for a single file */
97
+ drag_drop_single: string;
98
+ open_menu: string;
99
+ close_drawer: string;
100
+ navigation_drawer: string;
101
+ error: string;
102
+ error_uploading_file: string;
103
+ error_deleting: string;
104
+ error_before_delete: string;
105
+ error_firestore_index: string;
106
+ create_index: string;
107
+ value_is_not_reference: string;
108
+ click_to_edit: string;
109
+ data_is_not_array_of_references: string;
110
+ collection_does_not_exist: string;
111
+ loading: string;
112
+ local_changes_applied: string;
113
+ local_changes_discarded: string;
114
+ open_in_console: string;
115
+ see_console_details: string;
116
+ drop_here_create_group: string;
117
+ filter_for_null_values: string;
118
+ value_updated_elsewhere: string;
119
+ add_property: string;
120
+ edit_name: string;
121
+ this_entity_not_exist: string;
122
+ internal_error: string;
123
+ /** Shown in unsaved-changes dialogs */
124
+ are_you_sure_leave: string;
125
+ passkey_error_unsupported: string;
126
+ admin: string;
127
+ home: string;
128
+ this_form_has_errors: string;
129
+ error_loading_navigation: string;
130
+ error_loading_auth: string;
131
+ this_form_has_been_modified: string;
132
+ current_form_in_sync: string;
133
+ unexpected_value: string;
134
+ unexpected_value_click_to_edit: string;
135
+ unexpected_reference_value: string;
136
+ copy_url_to_clipboard: string;
137
+ open_image_in_new_tab: string;
138
+ reference_not_set: string;
139
+ reference_does_not_exist: string;
140
+ entity_not_found: string;
141
+ file_not_found: string;
142
+ unsaved_changes_in_entity: string;
143
+ delete_this_role: string;
144
+ no_roles_yet: string;
145
+ create_default_roles: string;
146
+ delete_role_confirmation: string;
147
+ delete_this_user: string;
148
+ no_users_yet: string;
149
+ add_logged_user_as_admin: string;
150
+ add_current_user_as_admin: string;
151
+ create_default_roles_and_add_admin: string;
152
+ delete_user_confirmation: string;
153
+ create_your_users_and_roles: string;
154
+ no_users_or_roles_defined: string;
155
+ save_before_changing_schema: string;
156
+ edit_schema_for_this_form: string;
157
+ no_permissions_to_edit_collection: string;
158
+ rename_group: string;
159
+ group_name_label: string;
160
+ group_name_empty_error: string;
161
+ group_name_exists_error: string;
162
+ search_collections: string;
163
+ /** Default group name shown when collections/views have no explicit group */
164
+ views_group: string;
165
+ youd_need_to_save_before_additional_collections: string;
166
+ page_not_found: string;
167
+ page_not_found_body: string;
168
+ back_to_home: string;
169
+ default_collection_view: string;
170
+ table_view: string;
171
+ cards_view: string;
172
+ kanban_view: string;
173
+ choose_how_entities_displayed_default: string;
174
+ document_view: string;
175
+ side_panel: string;
176
+ full_screen: string;
177
+ should_documents_opened_full_screen: string;
178
+ select_custom_view: string;
179
+ no_custom_views_defined: string;
180
+ select_custom_action: string;
181
+ no_custom_actions_defined: string;
182
+ no_collections_found: string;
183
+ start_building_collections: string;
184
+ create_first_collection: string;
185
+ define_collections_programmatically: string;
186
+ edit_collection: string;
187
+ no_permissions_edit_collection: string;
188
+ no_permissions_create_collection: string;
189
+ create_collection: string;
190
+ update_collection: string;
191
+ new_collection: string;
192
+ add_new_collection: string;
193
+ collection_with_name: string;
194
+ change_icon: string;
195
+ is_subcollection_of: string;
196
+ name: string;
197
+ collection_name_description: string;
198
+ path: string;
199
+ relative_path_to_parent: string;
200
+ path_in_database: string;
201
+ singular_name: string;
202
+ singular_name_description: string;
203
+ description: string;
204
+ description_of_collection: string;
205
+ collection_id: string;
206
+ collection_id_description: string;
207
+ collection_group: string;
208
+ collection_group_description: string;
209
+ advanced_settings: string;
210
+ doc_history_global: string;
211
+ doc_history_enabled: string;
212
+ doc_history_not_enabled: string;
213
+ doc_history_description: string;
214
+ document_id_generation: string;
215
+ code_defined: string;
216
+ users_must_define_id: string;
217
+ users_can_define_id: string;
218
+ doc_id_auto_generated: string;
219
+ config_doc_id_generation: string;
220
+ enable_text_search: string;
221
+ text_search_description: string;
222
+ database_id: string;
223
+ default_text: string;
224
+ custom_actions: string;
225
+ more_info: string;
226
+ define_custom_actions_cli: string;
227
+ action_defined_in_code: string;
228
+ add_custom_entity_action: string;
229
+ remove_this_action: string;
230
+ remove_action_warning: string;
231
+ subcollections_of: string;
232
+ add_subcollection: string;
233
+ custom_views: string;
234
+ define_custom_views_cli: string;
235
+ view_defined_in_code: string;
236
+ add_custom_entity_view: string;
237
+ delete_this_subcollection: string;
238
+ remove_collection_warning: string;
239
+ remove_this_view: string;
240
+ remove_view_warning: string;
241
+ no_collection_selected: string;
242
+ code_for_collection: string;
243
+ use_config_define_json: string;
244
+ customise_collection_code: string;
245
+ copied: string;
246
+ property_cant_be_edited: string;
247
+ property_not_editable_description: string;
248
+ delete_this_property: string;
249
+ delete_property_warning: string;
250
+ error_must_specify_id: string;
251
+ error_id_format: string;
252
+ error_id_already_exists: string;
253
+ error_must_specify_title: string;
254
+ custom_or_other: string;
255
+ select_property_widget: string;
256
+ error_changing_data_type: string;
257
+ required: string;
258
+ enum_form_dialog: string;
259
+ imported_data_preview: string;
260
+ entities_with_same_id_overwritten: string;
261
+ collection_editor: string;
262
+ properties_in_this_group: string;
263
+ data_property_mapping: string;
264
+ property_edit_view: string;
265
+ all_of_these: string;
266
+ any_of_these: string;
267
+ only_admins_edit_roles: string;
268
+ error_user_not_found: string;
269
+ role: string;
270
+ name_of_this_role: string;
271
+ id_of_this_role: string;
272
+ create_entities: string;
273
+ read_entities: string;
274
+ update_entities: string;
275
+ delete_entities: string;
276
+ all_collections: string;
277
+ create_entities_in_collections: string;
278
+ access_all_data_in_every_collection: string;
279
+ update_data_in_any_collection: string;
280
+ delete_data_in_any_collection: string;
281
+ allow_all_permissions_in_this_collections: string;
282
+ all: string;
283
+ customise_permissions_description: string;
284
+ create_collections: string;
285
+ yes: string;
286
+ no: string;
287
+ can_user_create_collections: string;
288
+ edit_collections: string;
289
+ only_own_collections: string;
290
+ own: string;
291
+ can_user_edit_collections: string;
292
+ delete_collections: string;
293
+ can_user_delete_collections: string;
294
+ error_saving_role: string;
295
+ create_role: string;
296
+ update: string;
297
+ only_admins_change_roles: string;
298
+ must_be_at_least_one_admin: string;
299
+ logged_user_not_found: string;
300
+ user: string;
301
+ user_id: string;
302
+ error_updating_asset: string;
303
+ error_deleting_asset: string;
304
+ name_of_this_user: string;
305
+ email_of_this_user: string;
306
+ roles: string;
307
+ create_user: string;
308
+ filters: string;
309
+ multiple_entities: string;
310
+ unsaved_changes: string;
311
+ so_empty: string;
312
+ no_results: string;
313
+ refresh_data: string;
314
+ dark_mode: string;
315
+ light_mode: string;
316
+ system_mode: string;
317
+ ok: string;
318
+ save_collection_config: string;
319
+ search_for_more_icons: string;
320
+ ai_modified: string;
321
+ size_label: string;
322
+ group_by: string;
323
+ initialize_kanban_order: string;
324
+ users: string;
325
+ add_user: string;
326
+ add_role: string;
327
+ is_admin: string;
328
+ default_permissions: string;
329
+ created_on: string;
330
+ email: string;
331
+ id: string;
332
+ read: string;
333
+ column_in_file: string;
334
+ map_to_property: string;
335
+ default_values: string;
336
+ default_values_description: string;
337
+ property: string;
338
+ default_value: string;
339
+ autogenerate_id: string;
340
+ id_column_description: string;
341
+ do_not_set_value: string;
342
+ set_value_to_true: string;
343
+ set_value_to_false: string;
344
+ drag_and_drop_file: string;
345
+ error_saving_data: string;
346
+ retry: string;
347
+ saving_data: string;
348
+ entities_saved: string;
349
+ do_not_close_tab: string;
350
+ import: string;
351
+ import_data: string;
352
+ upload_file_description: string;
353
+ back: string;
354
+ next: string;
355
+ save_data: string;
356
+ use_column_as_id: string;
357
+ do_not_import_property: string;
358
+ entities_will_be_overwritten: string;
359
+ data_imported_successfully: string;
360
+ export: string;
361
+ export_data: string;
362
+ download_table_csv: string;
363
+ csv: string;
364
+ json: string;
365
+ dates_as_timestamps: string;
366
+ dates_as_strings: string;
367
+ flatten_arrays: string;
368
+ download: string;
369
+ large_number_of_documents: string;
370
+ include_undefined_values: string;
371
+ submit: string;
372
+ no_filterable_properties: string;
373
+ apply_filters: string;
374
+ list: string;
375
+ cards: string;
376
+ board: string;
377
+ initialize_kanban_order_desc: string;
378
+ kanban_view_not_available: string;
379
+ kanban_view_requires_enum: string;
380
+ no_enum_values_configured: string;
381
+ items_need_backfill: string;
382
+ initialize: string;
383
+ confirm_multiple_delete: string;
384
+ delete_entity_confirm_title: string;
385
+ /** AI Collection Generator Popover */
386
+ generate_collection_with_ai: string;
387
+ modify_collection_with_ai: string;
388
+ describe_collection_to_create: string;
389
+ describe_changes_to_make: string;
390
+ ai_placeholder_create: string;
391
+ ai_placeholder_modify: string;
392
+ ai_assist: string;
393
+ generating: string;
394
+ /** Recently extracted strings for collection editor */
395
+ this_is_subcollection_of: string;
396
+ use_existing_paths_database: string;
397
+ describe_collection_ai: string;
398
+ generate_with_ai: string;
399
+ create_from_json_config: string;
400
+ paste_json_config: string;
401
+ create_collection_from_file_formats: string;
402
+ select_template: string;
403
+ products: string;
404
+ collection_products_subtitle: string;
405
+ collection_users_subtitle: string;
406
+ blog_posts: string;
407
+ collection_blog_posts_subtitle: string;
408
+ pages: string;
409
+ collection_pages_subtitle: string;
410
+ continue_from_scratch: string;
411
+ /** Admin views config */
412
+ cms_users: string;
413
+ roles_menu: string;
414
+ project_settings: string;
415
+ build_admin_panel_in_minutes: string;
416
+ go_live_instantly: string;
417
+ create_production_ready_back_offices: string;
418
+ without_the_frontend_hassle: string;
419
+ automatic_setup: string;
420
+ from_your_existing_firestore_data: string;
421
+ seamless_real_time_firebase_integration: string;
422
+ intuitive_spreadsheet_like_ui: string;
423
+ your_whole_team_can_use: string;
424
+ focus_on_your_app: string;
425
+ not_the_admin_panel: string;
426
+ join_our_newsletter: string;
427
+ by_signing_in_you_agree_to_our: string;
428
+ terms_and_conditions: string;
429
+ and_our: string;
430
+ privacy_policy: string;
431
+ firecms_cloud_google_disclosure: string;
432
+ google_api_services_user_data_policy: string;
433
+ including_the_limited_use_requirements: string;
434
+ email_password: string;
435
+ sign_in_with_google: string;
436
+ auth_user_not_found: string;
437
+ auth_wrong_password: string;
438
+ auth_user_disabled: string;
439
+ auth_account_exists_with_different_credential: string;
440
+ auth_email_already_in_use: string;
441
+ auth_google_permissions_required: string;
442
+ auth_invalid_email_password: string;
443
+ auth_enter_email_first: string;
444
+ auth_password_reset_sent: string;
445
+ auth_sign_in_account: string;
446
+ auth_create_new_account: string;
447
+ auth_password: string;
448
+ auth_reset_password: string;
449
+ auth_new_user: string;
450
+ auth_have_account: string;
451
+ auth_sign_in: string;
452
+ auth_sign_up: string;
453
+ subscriptions: string;
454
+ manage_your_subscriptions_in_stripe: string;
455
+ go_to_your_stripe_portal: string;
456
+ your_pro_licenses: string;
457
+ create_new_license: string;
458
+ create_subscriptions_in_this_section: string;
459
+ if_you_are_an_agency: string;
460
+ if_you_have_any_questions: string;
461
+ you_have_not_created_any_pro_licenses: string;
462
+ archive: string;
463
+ licensed_projects_lowercase: string;
464
+ manage: string;
465
+ update_payment_method: string;
466
+ your_firecms_cloud_projects: string;
467
+ status_active: string;
468
+ status_trialing: string;
469
+ status_past_due: string;
470
+ status_canceled: string;
471
+ status_unpaid: string;
472
+ status_incomplete: string;
473
+ status_incomplete_expired: string;
474
+ status_unknown: string;
475
+ plan_free: string;
476
+ plan_cloud_plus: string;
477
+ plan_pro: string;
478
+ plan_unknown: string;
479
+ auto_setup_collections_button: string;
480
+ auto_setup_collections_title: string;
481
+ auto_setup_collections_desc: string;
482
+ this_can_take_a_minute: string;
483
+ no_collections_found_to_setup: string;
484
+ collections_have_been_setup: string;
485
+ error_setting_up_collections: string;
486
+ add_your: string;
487
+ database_collections: string;
488
+ to_firecms: string;
489
+ no_unmapped_collections: string;
490
+ query_and_update_with_datatalk: string;
491
+ welcome_to_firecms: string;
492
+ admin_panel_ready_bring_data: string;
493
+ admin_panel_ready_get_started: string;
494
+ auto_detect_collections: string;
495
+ auto_detect_collections_desc: string;
496
+ create_a_collection: string;
497
+ create_collection_desc: string;
498
+ read_the_docs: string;
499
+ read_the_docs_desc: string;
500
+ explore_docs: string;
501
+ want_to_customize_with_code: string;
502
+ to_scaffold_a_local_project: string;
503
+ validation: string;
504
+ unique: string;
505
+ required_message: string;
506
+ required_tooltip: string;
507
+ unique_tooltip: string;
508
+ lowercase: string;
509
+ uppercase: string;
510
+ trim: string;
511
+ exact_length: string;
512
+ min_length: string;
513
+ max_length: string;
514
+ matches_regex: string;
515
+ not_valid_regexp: string;
516
+ regex_helper: string;
517
+ min_value: string;
518
+ max_value: string;
519
+ less_than: string;
520
+ more_than: string;
521
+ positive_value: string;
522
+ negative_value: string;
523
+ integer_value: string;
524
+ invalid_regular_expression: string;
525
+ must_specify_target_collection: string;
526
+ need_specify_repeat_field: string;
527
+ need_specify_block_properties: string;
528
+ incomplete_condition: string;
529
+ field_name: string;
530
+ kanban_column_property: string;
531
+ select_a_property: string;
532
+ kanban_property_not_found: string;
533
+ no_enum_string_properties: string;
534
+ kanban_column_description: string;
535
+ create_property: string;
536
+ order_property: string;
537
+ order_property_not_found: string;
538
+ no_number_properties: string;
539
+ order_property_description: string;
540
+ display_settings: string;
541
+ default_row_size: string;
542
+ side_dialog_width: string;
543
+ side_dialog_width_description: string;
544
+ inline_editing_enabled: string;
545
+ inline_editing_disabled: string;
546
+ inline_editing_description: string;
547
+ include_json_view: string;
548
+ no_json_view: string;
549
+ json_view_description: string;
550
+ not_found_suffix: string;
551
+ editor_text: string;
552
+ editor_text_description: string;
553
+ editor_heading_1: string;
554
+ editor_heading_1_description: string;
555
+ editor_heading_2: string;
556
+ editor_heading_2_description: string;
557
+ editor_heading_3: string;
558
+ editor_heading_3_description: string;
559
+ editor_todo_list: string;
560
+ editor_todo_list_description: string;
561
+ editor_bullet_list: string;
562
+ editor_bullet_list_description: string;
563
+ editor_numbered_list: string;
564
+ editor_numbered_list_description: string;
565
+ editor_quote: string;
566
+ editor_quote_description: string;
567
+ editor_code: string;
568
+ editor_code_description: string;
569
+ editor_image: string;
570
+ editor_image_description: string;
571
+ editor_multiple: string;
572
+ editor_link: string;
573
+ editor_save: string;
574
+ editor_cancel: string;
575
+ editor_remove_link: string;
576
+ editor_paste_or_type_link: string;
577
+ editor_open_in_new_window: string;
578
+ editor_bold: string;
579
+ editor_italic: string;
580
+ editor_underline: string;
581
+ editor_strikethrough: string;
582
+ editor_autocomplete: string;
583
+ editor_autocomplete_description: string;
584
+ text_search_dialog_title: string;
585
+ text_search_local_not_recommended: string;
586
+ text_search_local_fetch_warning: string;
587
+ text_search_external_suggestion: string;
588
+ text_search_local_description: string;
589
+ text_search_own_implementation: string;
590
+ text_search_enable_for_collection: string;
591
+ text_search_enable_for_project: string;
592
+ text_search_enabled_snackbar: string;
593
+ settings_subscription_plan: string;
594
+ settings_subscribed_to: string;
595
+ settings_no_active_subscription: string;
596
+ settings_trial_valid_until: string;
597
+ settings_features_intro: string;
598
+ settings_feature_managed_service: string;
599
+ settings_feature_local_text_search: string;
600
+ settings_feature_unlimited_users_roles: string;
601
+ settings_feature_theme_logo: string;
602
+ settings_feature_custom_fields_views: string;
603
+ settings_feature_secondary_databases: string;
604
+ settings_feature_ai_content: string;
605
+ settings_feature_unlimited_export: string;
606
+ settings_feature_appcheck: string;
607
+ settings_heading: string;
608
+ settings_project_name: string;
609
+ settings_default_language: string;
610
+ settings_default_language_caption: string;
611
+ settings_enable_local_text_search: string;
612
+ settings_local_text_search_caption: string;
613
+ settings_doc_history_all_collections: string;
614
+ settings_doc_history_caption: string;
615
+ settings_theme: string;
616
+ settings_primary_color: string;
617
+ settings_secondary_color: string;
618
+ settings_sample_theme_components: string;
619
+ settings_drag_drop_logo: string;
620
+ settings_create_subscription: string;
621
+ settings_stripe_disclaimer: string;
622
+ settings_subscription_is: string;
623
+ settings_next_payment_on: string;
624
+ settings_seats_count: string;
625
+ settings_seat: string;
626
+ settings_seats: string;
627
+ settings_per_seat: string;
628
+ settings_current_price: string;
629
+ settings_per_user_usage: string;
630
+ settings_cancelled_active_until: string;
631
+ settings_no_additional_charges: string;
632
+ settings_manage_subscription: string;
633
+ settings_security_rules: string;
634
+ settings_security_rules_description: string;
635
+ settings_security_rules_add_domain: string;
636
+ settings_security_rules_caption: string;
637
+ settings_appcheck: string;
638
+ settings_appcheck_description: string;
639
+ settings_appcheck_add_domain: string;
640
+ settings_appcheck_enable: string;
641
+ settings_appcheck_site_key: string;
642
+ settings_appcheck_update: string;
643
+ settings_appcheck_refresh_note: string;
644
+ settings_appcheck_updated: string;
645
+ settings_appcheck_error: string;
646
+ }
@@ -1,4 +1,4 @@
1
- import { ArrayProperty, EntityValues, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig, StorageSource, StringProperty } from "../types";
1
+ import { ArrayProperty, EntityValues, ImageResize, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig, StorageSource, StringProperty } from "../types";
2
2
  import { PreviewSize } from "../preview";
3
3
  /**
4
4
  * Internal representation of an item in the storage
@@ -35,3 +35,12 @@ export declare function useStorageUploadController<M extends object>({ entityId,
35
35
  onFilesAdded: (acceptedFiles: File[]) => Promise<void>;
36
36
  multipleFilesSupported: boolean;
37
37
  };
38
+ /**
39
+ * Check if a file is an image type supported for resizing
40
+ */
41
+ export declare function isImageFile(file: File): boolean;
42
+ /**
43
+ * Resize and compress an image using compressorjs.
44
+ * Supports both the new imageResize API and legacy imageCompression for backward compatibility.
45
+ */
46
+ export declare function resizeImage(file: File, imageResize?: StorageConfig["imageResize"], legacyCompression?: ImageResize): Promise<File>;