@griddo/ax 12.5.0 → 12.5.2-rc.0

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 (353) hide show
  1. package/README.md +1 -2
  2. package/config/__tests__/ModulePathInMessagesPlugin.test.js +93 -0
  3. package/config/__tests__/webpack5-migration.test.js +2 -2
  4. package/config/webpack/ModulePathInMessagesPlugin.js +47 -0
  5. package/config/webpack.config.js +5 -0
  6. package/package.json +21 -19
  7. package/src/GlobalStore.tsx +3 -3
  8. package/src/__mocks__/reducers/structuredData.tsx +1 -1
  9. package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +1 -1
  10. package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +1 -1
  11. package/src/__tests__/components/Browser/Browser.test.tsx +4 -0
  12. package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +1 -1
  13. package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +5 -5
  14. package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +2 -2
  15. package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +5 -1
  16. package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +1 -1
  17. package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +1 -1
  18. package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +1 -1
  19. package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +1 -1
  20. package/src/__tests__/components/EmptyState/EmptyState.test.tsx +1 -1
  21. package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +2 -2
  22. package/src/__tests__/components/ErrorToast/ErrorToast.test.tsx +1 -1
  23. package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +1 -1
  24. package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +2 -2
  25. package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +1 -1
  26. package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +3 -3
  27. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +2 -2
  28. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +2 -2
  29. package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +4 -2
  30. package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +1 -1
  31. package/src/__tests__/components/Fields/DateField/DateField.test.tsx +1 -1
  32. package/src/__tests__/components/Fields/FileField/FileField.test.tsx +1 -1
  33. package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +1 -1
  34. package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +1 -1
  35. package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +1 -1
  36. package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +1 -1
  37. package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +1 -1
  38. package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +1 -1
  39. package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +1 -1
  40. package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +1 -1
  41. package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +1 -1
  42. package/src/__tests__/components/Fields/RichText/RichText.test.tsx +1 -1
  43. package/src/__tests__/components/Fields/Select/Select.test.tsx +1 -1
  44. package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +1 -1
  45. package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +1 -1
  46. package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +1 -1
  47. package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +1 -1
  48. package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +1 -1
  49. package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +1 -1
  50. package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +1 -1
  51. package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +1 -1
  52. package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +2 -2
  53. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.atoms.test.tsx +1 -5
  54. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +7 -31
  55. package/src/__tests__/components/Flag/Flag.test.tsx +1 -1
  56. package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +1 -1
  57. package/src/__tests__/components/GuardModal/GuardModal.test.tsx +1 -1
  58. package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.test.tsx +1 -1
  59. package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.utils.test.tsx +5 -1
  60. package/src/__tests__/components/Icon/Icon.test.tsx +1 -1
  61. package/src/__tests__/components/IconAction/IconAction.test.tsx +1 -1
  62. package/src/__tests__/components/InformativeMenu/InformativeMenu.test.tsx +1 -1
  63. package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.test.tsx +1 -1
  64. package/src/__tests__/components/KeywordsPreviewModal/atoms.test.tsx +1 -1
  65. package/src/__tests__/components/Lists/Lists.test.tsx +1 -1
  66. package/src/__tests__/components/Loader/Loader.test.tsx +1 -1
  67. package/src/__tests__/components/Login/Login.test.tsx +1 -1
  68. package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +1 -1
  69. package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +1 -1
  70. package/src/__tests__/components/MainWrapper/MainWrapper.test.tsx +1 -1
  71. package/src/__tests__/components/MenuItem/MenuItem.test.tsx +1 -1
  72. package/src/__tests__/components/Modal/Modal.test.tsx +1 -1
  73. package/src/__tests__/components/Nav/Nav.test.tsx +1 -1
  74. package/src/__tests__/components/Notification/Notification.test.tsx +1 -1
  75. package/src/__tests__/components/Notification/SubNotification/Subnotification.test.tsx +1 -1
  76. package/src/__tests__/components/Pagination/Pagination.test.tsx +0 -1
  77. package/src/__tests__/components/ProgressBar/ProgressBar.test.tsx +1 -1
  78. package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +1 -1
  79. package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +1 -0
  80. package/src/__tests__/components/RestrictionsModal/UsersList/UsersList.test.tsx +96 -9
  81. package/src/__tests__/components/SearchField/SearchField.test.tsx +1 -1
  82. package/src/__tests__/components/SubNav/SubNav.test.tsx +1 -1
  83. package/src/__tests__/components/TableCounter/TableCounter.test.tsx +1 -1
  84. package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +3 -3
  85. package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +2 -2
  86. package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +3 -3
  87. package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +3 -3
  88. package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +3 -3
  89. package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +3 -3
  90. package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +3 -3
  91. package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +3 -3
  92. package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +3 -3
  93. package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +3 -3
  94. package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +3 -3
  95. package/src/__tests__/components/TableList/TableList.test.tsx +1 -1
  96. package/src/__tests__/components/Tabs/Tabs.test.tsx +1 -1
  97. package/src/__tests__/components/Tag/Tag.test.tsx +1 -1
  98. package/src/__tests__/components/Toast/Toast.test.tsx +1 -1
  99. package/src/__tests__/hooks/users.test.tsx +12 -4
  100. package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +1 -1
  101. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/FinalStep/FinalStep.test.tsx +9 -1
  102. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/ImageStep.test.tsx +2 -0
  103. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/UploadView/UploadView.test.tsx +1 -0
  104. package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +2 -2
  105. package/src/__tests__/modules/Users/Roles/Roles.test.tsx +3 -3
  106. package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +3 -1
  107. package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +1 -1
  108. package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +1 -1
  109. package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +2 -2
  110. package/src/api/analytics.tsx +3 -3
  111. package/src/api/dataPack.tsx +1 -1
  112. package/src/api/domains.tsx +2 -2
  113. package/src/api/files.tsx +2 -2
  114. package/src/api/folders.tsx +1 -1
  115. package/src/api/forms.tsx +2 -2
  116. package/src/api/global.tsx +2 -2
  117. package/src/api/images.tsx +2 -2
  118. package/src/api/integrations.tsx +3 -3
  119. package/src/api/languages.tsx +1 -1
  120. package/src/api/logs.tsx +3 -3
  121. package/src/api/menus.tsx +1 -1
  122. package/src/api/navigation.tsx +1 -1
  123. package/src/api/redirects.tsx +1 -1
  124. package/src/api/roles.tsx +3 -3
  125. package/src/api/social.tsx +1 -1
  126. package/src/api/users.tsx +1 -1
  127. package/src/api/utils.tsx +1 -1
  128. package/src/components/Avatar/index.tsx +1 -1
  129. package/src/components/Breadcrumb/index.tsx +1 -1
  130. package/src/components/Button/index.tsx +1 -1
  131. package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/index.tsx +1 -1
  132. package/src/components/ConfigPanel/NavigationForm/Field/index.tsx +1 -1
  133. package/src/components/ConfigPanel/NavigationForm/index.tsx +1 -1
  134. package/src/components/ConfigPanel/PreviewForm/index.tsx +1 -1
  135. package/src/components/DragAndDrop/index.tsx +2 -1
  136. package/src/components/EmptyState/index.tsx +1 -1
  137. package/src/components/ErrorCenter/index.tsx +1 -1
  138. package/src/components/FieldContainer/index.tsx +1 -1
  139. package/src/components/Fields/AIReferenceField/AIConfigPanel/index.tsx +1 -1
  140. package/src/components/Fields/AIReferenceField/index.tsx +1 -1
  141. package/src/components/Fields/ArrayFieldGroup/helpers.ts +1 -7
  142. package/src/components/Fields/CheckGroup/index.tsx +2 -2
  143. package/src/components/Fields/ColorPicker/Picker/index.tsx +2 -1
  144. package/src/components/Fields/ColorPicker/index.tsx +2 -1
  145. package/src/components/Fields/ComponentContainer/style.tsx +1 -1
  146. package/src/components/Fields/ConditionalField/index.tsx +1 -3
  147. package/src/components/Fields/FormCategorySelect/index.tsx +2 -2
  148. package/src/components/Fields/FormContainer/FormModal/index.tsx +2 -2
  149. package/src/components/Fields/FormContainer/index.tsx +1 -1
  150. package/src/components/Fields/FormFieldArray/index.tsx +1 -1
  151. package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/index.tsx +1 -1
  152. package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/helpers.ts +1 -1
  153. package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/index.tsx +1 -1
  154. package/src/components/Fields/IntegrationsField/SideModal/SideModalOption/index.tsx +1 -1
  155. package/src/components/Fields/LinkField/index.tsx +1 -1
  156. package/src/components/Fields/RadioGroup/index.tsx +2 -2
  157. package/src/components/Fields/SliderField/index.tsx +2 -1
  158. package/src/components/Fields/TimeField/HourInput/index.tsx +2 -1
  159. package/src/components/Fields/UrlField/utils.tsx +1 -1
  160. package/src/components/Fields/VisualOption/index.tsx +1 -1
  161. package/src/components/Fields/Wysiwyg/atoms.tsx +13 -2
  162. package/src/components/Fields/Wysiwyg/helpers.tsx +10 -2
  163. package/src/components/FileGallery/FolderItem/index.tsx +1 -1
  164. package/src/components/FileGallery/GridItem/index.tsx +1 -1
  165. package/src/components/FloatingButton/index.tsx +1 -1
  166. package/src/components/Gallery/FolderItem/index.tsx +1 -1
  167. package/src/components/HeadingsPreviewModal/index.tsx +11 -2
  168. package/src/components/HeadingsPreviewModal/utils.tsx +8 -1
  169. package/src/components/Icon/components/Party.jsx +6 -12
  170. package/src/components/Icon/components/Republish.jsx +12 -18
  171. package/src/components/Icon/components/Sync.jsx +6 -12
  172. package/src/components/KeywordsPreviewModal/index.tsx +7 -1
  173. package/src/components/Lists/index.tsx +1 -1
  174. package/src/components/Nav/index.tsx +1 -1
  175. package/src/components/TableFilters/CustomizeFilters/index.tsx +1 -1
  176. package/src/components/TableFilters/DateFilter/index.tsx +1 -1
  177. package/src/components/TableFilters/LastAccessFilter/index.tsx +1 -1
  178. package/src/components/TableFilters/NameFilter/index.tsx +1 -1
  179. package/src/components/TableFilters/PermissionsFilter/index.tsx +1 -1
  180. package/src/components/TableFilters/StateFilter/index.tsx +1 -1
  181. package/src/components/TableFilters/StatusFilter/index.tsx +1 -1
  182. package/src/components/TableFilters/TypeFilter/index.tsx +1 -1
  183. package/src/components/TableFilters/UsersFilter/index.tsx +1 -1
  184. package/src/components/Tag/index.tsx +15 -2
  185. package/src/containers/ActivityLog/actions.tsx +4 -5
  186. package/src/containers/ActivityLog/interfaces.tsx +2 -2
  187. package/src/containers/ActivityLog/reducer.tsx +1 -2
  188. package/src/containers/Analytics/actions.tsx +3 -3
  189. package/src/containers/Analytics/interfaces.tsx +2 -2
  190. package/src/containers/Analytics/reducer.tsx +2 -2
  191. package/src/containers/Domains/actions.tsx +2 -2
  192. package/src/containers/Domains/interfaces.tsx +2 -2
  193. package/src/containers/Domains/reducer.tsx +2 -2
  194. package/src/containers/FileDrive/actions.tsx +3 -3
  195. package/src/containers/FileDrive/interfaces.tsx +2 -2
  196. package/src/containers/FileDrive/reducer.tsx +1 -1
  197. package/src/containers/Gallery/interfaces.tsx +3 -3
  198. package/src/containers/Gallery/reducer.tsx +2 -2
  199. package/src/containers/Integrations/actions.tsx +3 -3
  200. package/src/containers/Integrations/interfaces.tsx +2 -2
  201. package/src/containers/Integrations/reducer.tsx +2 -2
  202. package/src/containers/Navigation/Defaults/actions.tsx +3 -3
  203. package/src/containers/Navigation/Defaults/interfaces.tsx +2 -2
  204. package/src/containers/Navigation/Menu/actions.tsx +3 -3
  205. package/src/containers/Navigation/Menu/interfaces.tsx +3 -3
  206. package/src/containers/Navigation/Menu/reducer.tsx +2 -2
  207. package/src/containers/PageEditor/utils.tsx +2 -2
  208. package/src/containers/Redirects/actions.tsx +1 -1
  209. package/src/containers/Redirects/interfaces.tsx +1 -1
  210. package/src/containers/Redirects/reducer.tsx +2 -2
  211. package/src/containers/Settings/DataPacks/interfaces.tsx +1 -1
  212. package/src/containers/Settings/DataPacks/reducer.tsx +1 -1
  213. package/src/containers/Settings/Languages/actions.tsx +2 -2
  214. package/src/containers/Settings/Social/actions.tsx +2 -2
  215. package/src/containers/Settings/Social/interfaces.tsx +2 -2
  216. package/src/containers/Settings/Social/reducer.tsx +2 -2
  217. package/src/containers/Sites/interfaces.tsx +2 -2
  218. package/src/containers/Users/interfaces.tsx +2 -2
  219. package/src/forms/validators.tsx +1 -1
  220. package/src/guards/error/index.tsx +1 -1
  221. package/src/helpers/customColumns.tsx +1 -1
  222. package/src/helpers/dates.tsx +3 -3
  223. package/src/helpers/files.tsx +1 -1
  224. package/src/helpers/parseTheme.js +2 -2
  225. package/src/helpers/strings.tsx +1 -1
  226. package/src/hooks/content.tsx +1 -1
  227. package/src/hooks/index.tsx +7 -1
  228. package/src/hooks/users.tsx +1 -3
  229. package/src/modules/ActivityLog/DetailModal/index.tsx +3 -3
  230. package/src/modules/ActivityLog/DownloadModal/index.tsx +3 -3
  231. package/src/modules/ActivityLog/ItemLog/index.tsx +1 -1
  232. package/src/modules/ActivityLog/LogFilters/ContentFilter/index.tsx +1 -1
  233. package/src/modules/ActivityLog/LogFilters/EventFilter/index.tsx +1 -1
  234. package/src/modules/ActivityLog/TableHeader/index.tsx +1 -1
  235. package/src/modules/ActivityLog/hooks.tsx +1 -1
  236. package/src/modules/ActivityLog/index.tsx +2 -2
  237. package/src/modules/ActivityLog/utils.tsx +1 -1
  238. package/src/modules/Analytics/DimensionPanel/index.tsx +1 -1
  239. package/src/modules/Analytics/index.tsx +1 -1
  240. package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/index.tsx +1 -1
  241. package/src/modules/App/Routing/PrivateRoute/index.tsx +1 -1
  242. package/src/modules/App/index.tsx +1 -1
  243. package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/index.tsx +1 -1
  244. package/src/modules/Categories/CategoriesList/CategoryNav/index.tsx +1 -1
  245. package/src/modules/Categories/CategoriesList/CategoryPanel/Form/index.tsx +1 -1
  246. package/src/modules/Categories/CategoriesList/atoms.tsx +1 -8
  247. package/src/modules/Categories/CategoriesList/helpers.tsx +1 -1
  248. package/src/modules/Categories/CategoriesList/hooks.tsx +1 -1
  249. package/src/modules/Content/BulkHeader/TableHeader/index.tsx +1 -1
  250. package/src/modules/Content/ContentFilters/utils.tsx +1 -1
  251. package/src/modules/Content/hooks.tsx +1 -1
  252. package/src/modules/FileDrive/Breadcrumb/index.tsx +1 -1
  253. package/src/modules/FileDrive/FileFilters/SortBy/index.tsx +1 -1
  254. package/src/modules/FileDrive/FileFilters/Type/index.tsx +1 -1
  255. package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/ItemGroup/index.tsx +3 -2
  256. package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/index.tsx +2 -2
  257. package/src/modules/FileDrive/FolderTree/MenuItem/index.tsx +3 -2
  258. package/src/modules/FileDrive/FolderTree/MenuList/index.tsx +1 -1
  259. package/src/modules/FileDrive/FolderTree/index.tsx +1 -1
  260. package/src/modules/FileDrive/hooks.tsx +1 -1
  261. package/src/modules/Forms/FormCategoriesList/CategoryItem/style.tsx +1 -1
  262. package/src/modules/Forms/FormCategoriesList/CategoryPanel/Form/index.tsx +1 -1
  263. package/src/modules/Forms/FormCategoriesList/CategoryPanel/index.tsx +1 -1
  264. package/src/modules/Forms/FormCategoriesList/hooks.tsx +1 -1
  265. package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/Field/index.tsx +1 -1
  266. package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/TemplateManager/index.tsx +1 -1
  267. package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Header/index.tsx +3 -2
  268. package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/index.tsx +1 -1
  269. package/src/modules/Forms/FormEditor/Editor/index.tsx +3 -2
  270. package/src/modules/Forms/FormList/BulkHeader/TableHeader/index.tsx +1 -1
  271. package/src/modules/Forms/FormList/FormItem/index.tsx +7 -1
  272. package/src/modules/Forms/FormList/Summary/index.tsx +1 -1
  273. package/src/modules/Forms/FormList/TemplateModal/index.tsx +3 -2
  274. package/src/modules/Forms/FormList/hooks.tsx +1 -1
  275. package/src/modules/Forms/FormUseModal/utils.tsx +1 -1
  276. package/src/modules/Forms/FormsMenu/index.tsx +1 -1
  277. package/src/modules/Forms/atoms.tsx +5 -1
  278. package/src/modules/Forms/utils.tsx +1 -1
  279. package/src/modules/FramePreview/HeadingsOverlay/index.tsx +3 -4
  280. package/src/modules/GlobalSettings/Robots/Item/index.tsx +1 -1
  281. package/src/modules/MediaGallery/Breadcrumb/index.tsx +1 -1
  282. package/src/modules/MediaGallery/FolderTree/MenuItem/index.tsx +3 -2
  283. package/src/modules/MediaGallery/FolderTree/MenuList/index.tsx +1 -1
  284. package/src/modules/MediaGallery/FolderTree/index.tsx +1 -1
  285. package/src/modules/MediaGallery/GridItem/index.tsx +6 -1
  286. package/src/modules/MediaGallery/ImageFilters/Orientation/index.tsx +1 -1
  287. package/src/modules/MediaGallery/ImageFilters/SortBy/index.tsx +1 -1
  288. package/src/modules/MediaGallery/ImageFilters/Type/index.tsx +1 -1
  289. package/src/modules/MediaGallery/ImageFilters/Usage/index.tsx +1 -1
  290. package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/ItemGroup/index.tsx +3 -2
  291. package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/index.tsx +2 -2
  292. package/src/modules/MediaGallery/hooks.tsx +1 -1
  293. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +2 -2
  294. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +2 -2
  295. package/src/modules/Navigation/Defaults/ReplaceNavModal/index.tsx +1 -1
  296. package/src/modules/Navigation/Menus/List/Nav/index.tsx +1 -1
  297. package/src/modules/Navigation/Menus/List/Table/Header/index.tsx +1 -1
  298. package/src/modules/Navigation/Menus/List/Table/Item/index.tsx +6 -1
  299. package/src/modules/Navigation/Menus/List/Table/Item/style.tsx +1 -1
  300. package/src/modules/Navigation/Menus/List/Table/helpers.tsx +1 -1
  301. package/src/modules/PublicPreview/index.tsx +5 -13
  302. package/src/modules/Redirects/BulkHeader/TableHeader/index.tsx +1 -1
  303. package/src/modules/Redirects/BulkHeader/index.tsx +1 -1
  304. package/src/modules/Redirects/RedirectPanel/index.tsx +1 -1
  305. package/src/modules/Redirects/hooks.tsx +1 -1
  306. package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/index.tsx +1 -1
  307. package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/index.tsx +1 -1
  308. package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/index.tsx +1 -1
  309. package/src/modules/Settings/ContentTypes/DataPacks/AddModal/index.tsx +1 -1
  310. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/IntegrationsField/index.tsx +1 -1
  311. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/index.tsx +1 -1
  312. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/TemplateBrowser/index.tsx +1 -1
  313. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/index.tsx +1 -1
  314. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/index.tsx +2 -2
  315. package/src/modules/Settings/ContentTypes/DataPacks/Item/index.tsx +3 -2
  316. package/src/modules/Settings/ContentTypes/DataPacks/List/index.tsx +2 -2
  317. package/src/modules/Settings/ContentTypes/DataPacks/Nav/index.tsx +1 -1
  318. package/src/modules/Settings/Globals/NavigationModules/SideModal/index.tsx +1 -1
  319. package/src/modules/Settings/Globals/NavigationModules/index.tsx +1 -1
  320. package/src/modules/Settings/Globals/constants.tsx +1 -1
  321. package/src/modules/Settings/Integrations/BulkHeader/TableHeader/index.tsx +1 -1
  322. package/src/modules/Settings/Integrations/IntegrationForm/VariableItem/index.tsx +1 -1
  323. package/src/modules/Settings/Integrations/IntegrationForm/VariablePanel/index.tsx +1 -1
  324. package/src/modules/Settings/Integrations/IntegrationForm/index.tsx +2 -2
  325. package/src/modules/Settings/Integrations/IntegrationItem/style.tsx +1 -1
  326. package/src/modules/Settings/Integrations/hooks.tsx +1 -1
  327. package/src/modules/Settings/Integrations/index.tsx +0 -1
  328. package/src/modules/Settings/Integrations/utils.tsx +1 -1
  329. package/src/modules/Settings/Languages/LanguagePanel/Form/ConnectedField/index.tsx +1 -1
  330. package/src/modules/Settings/Languages/LanguagePanel/Form/index.tsx +1 -1
  331. package/src/modules/Settings/Languages/LanguagePanel/index.tsx +1 -1
  332. package/src/modules/Settings/Languages/Table/Header/index.tsx +1 -1
  333. package/src/modules/Settings/Languages/Table/Item/index.tsx +1 -1
  334. package/src/modules/Settings/Languages/Table/index.tsx +1 -1
  335. package/src/modules/Settings/Languages/index.tsx +1 -1
  336. package/src/modules/Settings/SeoAnalyticsSettings/Analytics/atoms.tsx +2 -2
  337. package/src/modules/Settings/index.tsx +1 -1
  338. package/src/modules/Sites/SitesList/ListView/ListSiteItem/index.tsx +7 -1
  339. package/src/modules/StructuredData/StructuredDataList/ContentFilters/utils.tsx +1 -1
  340. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +6 -1
  341. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/utils.tsx +1 -1
  342. package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/index.tsx +16 -2
  343. package/src/modules/StructuredData/StructuredDataList/hooks.tsx +1 -1
  344. package/src/modules/Users/Roles/BulkHeader/TableHeader/index.tsx +1 -1
  345. package/src/modules/Users/Roles/SideModal/index.tsx +1 -1
  346. package/src/modules/Users/Roles/hooks.tsx +1 -1
  347. package/src/modules/Users/UserCreate/OptionItem/index.tsx +1 -1
  348. package/src/modules/Users/UserCreate/SiteItem/RolesModal/index.tsx +1 -1
  349. package/src/modules/Users/UserCreate/SiteItem/style.tsx +13 -1
  350. package/src/modules/Users/UserList/UserItem/index.tsx +10 -1
  351. package/src/modules/Users/UserList/hooks.tsx +1 -1
  352. package/tsconfig.json +11 -4
  353. package/tsconfig.paths.json +19 -20
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendRequest } from "./utils";
2
+ import { type IServiceConfig, sendRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  CREATE_FOLDER: {
package/src/api/forms.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  FormCategoriesOrderParams,
3
3
  FormContent,
4
4
  FormState,
@@ -7,7 +7,7 @@ import {
7
7
  PutFormCategoryParams,
8
8
  } from "@ax/types";
9
9
  import { template } from "./config";
10
- import { IServiceConfig, sendRequest } from "./utils";
10
+ import { type IServiceConfig, sendRequest } from "./utils";
11
11
 
12
12
  const SERVICES: { [key: string]: IServiceConfig } = {
13
13
  GET_FORMS: {
@@ -1,6 +1,6 @@
1
- import { ICreatePasswordParams } from "@ax/types";
1
+ import type { ICreatePasswordParams } from "@ax/types";
2
2
  import { template } from "./config";
3
- import { IServiceConfig, sendRequest } from "./utils";
3
+ import { type IServiceConfig, sendRequest } from "./utils";
4
4
 
5
5
  const SERVICES: { [key: string]: IServiceConfig } = {
6
6
  LOGIN: {
@@ -1,7 +1,7 @@
1
1
  import { encodeData } from "@ax/helpers";
2
2
  import { template } from "./config";
3
- import { IServiceConfig, sendRequest, sendUploadRequest } from "./utils";
4
- import { IGetFolderParams } from "@ax/types";
3
+ import { type IServiceConfig, sendRequest, sendUploadRequest } from "./utils";
4
+ import type { IGetFolderParams } from "@ax/types";
5
5
 
6
6
  const SERVICES: { [key: string]: IServiceConfig } = {
7
7
  CREATE_IMAGE: {
@@ -1,7 +1,7 @@
1
- import { AxiosResponse } from "axios";
2
- import { IIntegration } from "@ax/types";
1
+ import type { AxiosResponse } from "axios";
2
+ import type { IIntegration } from "@ax/types";
3
3
  import { template } from "./config";
4
- import { IServiceConfig, sendRequest } from "./utils";
4
+ import { type IServiceConfig, sendRequest } from "./utils";
5
5
 
6
6
  const SERVICES: { [key: string]: IServiceConfig } = {
7
7
  GET_INTEGRATIONS: {
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { sendRequest, sendInitialRequest, IServiceConfig } from "./utils";
2
+ import { sendRequest, sendInitialRequest, type IServiceConfig } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_LANGUAGES: {
package/src/api/logs.tsx CHANGED
@@ -1,7 +1,7 @@
1
- import { AxiosResponse } from "axios";
1
+ import type { AxiosResponse } from "axios";
2
2
  import { template } from "./config";
3
- import { IServiceConfig, sendRequest } from "./utils";
4
- import { LogActivityExportRequest, LogActivityPaginationRequest } from "@griddo/api-types";
3
+ import { type IServiceConfig, sendRequest } from "./utils";
4
+ import type { LogActivityExportRequest, LogActivityPaginationRequest } from "@griddo/api-types";
5
5
 
6
6
  const SERVICES: { [key: string]: IServiceConfig } = {
7
7
  GET_LOG_ACTIVITY: {
package/src/api/menus.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendRequest } from "./utils";
2
+ import { type IServiceConfig, sendRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_MENU: {
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendRequest, sendUploadRequest } from "./utils";
2
+ import { type IServiceConfig, sendRequest, sendUploadRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_NAVIGATION: {
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendRequest } from "./utils";
2
+ import { type IServiceConfig, sendRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_REDIRECTS: {
package/src/api/roles.tsx CHANGED
@@ -1,7 +1,7 @@
1
- import { IGetRoles, IActivateRole } from "@ax/types";
2
- import { AxiosResponse } from "axios";
1
+ import type { IGetRoles, IActivateRole } from "@ax/types";
2
+ import type { AxiosResponse } from "axios";
3
3
  import { template } from "./config";
4
- import { IServiceConfig, sendInitialRequest, sendRequest } from "./utils";
4
+ import { type IServiceConfig, sendInitialRequest, sendRequest } from "./utils";
5
5
 
6
6
  const SERVICES: { [key: string]: IServiceConfig } = {
7
7
  GET_ROLES: {
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendRequest } from "./utils";
2
+ import { type IServiceConfig, sendRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_SOCIAL: {
package/src/api/users.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { template } from "./config";
2
- import { IServiceConfig, sendInitialRequest, sendRequest } from "./utils";
2
+ import { type IServiceConfig, sendInitialRequest, sendRequest } from "./utils";
3
3
 
4
4
  const SERVICES: { [key: string]: IServiceConfig } = {
5
5
  GET_USERS: {
package/src/api/utils.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import axios, { AxiosRequestConfig, AxiosResponse, Method, ResponseType } from "axios";
1
+ import axios, { type AxiosRequestConfig, type AxiosResponse, type Method, type ResponseType } from "axios";
2
2
  import { SET_ERROR } from "./../containers/App/constants";
3
3
 
4
4
  export interface IServiceConfig {
@@ -9,7 +9,7 @@ const getAvatarColor = (name?: string): string => {
9
9
  let hash = 0;
10
10
  const normalized = name.toLowerCase();
11
11
  for (let i = 0; i < normalized.length; i++) {
12
- hash = ((hash << 5) - hash) + normalized.charCodeAt(i);
12
+ hash = (hash << 5) - hash + normalized.charCodeAt(i);
13
13
  hash = hash & hash; // Convert to 32bit integer
14
14
  }
15
15
  return AVATAR_COLORS[Math.abs(hash) % AVATAR_COLORS.length];
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IBreadcrumbItem } from "@ax/types";
3
+ import type { IBreadcrumbItem } from "@ax/types";
4
4
  import { Icon } from "@ax/components";
5
5
 
6
6
  import * as S from "./style";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import Icon from "../Icon";
3
3
  import Loader from "../Loader";
4
4
 
@@ -38,7 +38,7 @@ export const TemplateManager = (props: IProps): JSX.Element => {
38
38
  const isConfig = selectedTab === "config";
39
39
  const templateFields = template[selectedTab];
40
40
  const templateContent = selectedContent.template;
41
- const modulesDataPacks = activatedPacks.map((pack: IDataPack) => pack.modules).flat();
41
+ const modulesDataPacks = activatedPacks.flatMap((pack: IDataPack) => pack.modules);
42
42
 
43
43
  const getFieldProps = (field: ISchemaField) => {
44
44
  const { key, type, whiteList = [], slugTo, readonly, disabled } = field;
@@ -3,7 +3,7 @@ import { connect } from "react-redux";
3
3
  import { SideModal, ActionMenu } from "@ax/components";
4
4
  import { useModal } from "@ax/hooks";
5
5
  import { pageEditorActions } from "@ax/containers/PageEditor";
6
- import { IRootState } from "@ax/types";
6
+ import type { IRootState } from "@ax/types";
7
7
 
8
8
  import * as S from "./style";
9
9
 
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
3
  import { NoteField } from "@ax/components";
4
- import { ISchema } from "@ax/types";
4
+ import type { ISchema } from "@ax/types";
5
5
  import Field from "./Field";
6
6
 
7
7
  import * as S from "./style";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
3
  import { NoteField, Tabs } from "@ax/components";
4
- import { IUserEditing } from "@ax/types";
4
+ import type { IUserEditing } from "@ax/types";
5
5
 
6
6
  import * as S from "./style";
7
7
 
@@ -1,4 +1,5 @@
1
- import React, { memo } from "react";
1
+ import type React from "react";
2
+ import { memo } from "react";
2
3
  import * as S from "./style";
3
4
 
4
5
  const DragAndDrop = (props: any) => {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Button, Icon } from "@ax/components";
3
- import { IEmptyStateProps } from "@ax/types";
3
+ import type { IEmptyStateProps } from "@ax/types";
4
4
 
5
5
  import * as S from "./style";
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IErrorItem } from "@ax/types";
2
+ import type { IErrorItem } from "@ax/types";
3
3
  import { Icon } from "@ax/components";
4
4
 
5
5
  import * as S from "./style";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IPage, ISite, ILanguage } from "@ax/types";
3
+ import type { IPage, ISite, ILanguage } from "@ax/types";
4
4
  import { getNullValue, getDefaultSchema, getDefaultTemplate, findObjectValue } from "@ax/helpers";
5
5
 
6
6
  import { FieldsBehavior, HiddenField } from "@ax/components";
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
2
2
  import { Button, FieldsBehavior, Icon } from "@ax/components";
3
3
  import { sites, structuredData } from "@ax/api";
4
4
  import { isReqOk } from "@ax/helpers";
5
- import { IState } from "..";
5
+ import type { IState } from "..";
6
6
 
7
7
  import * as S from "./style";
8
8
 
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { FloatingPanel, Icon } from "@ax/components";
3
3
  import { useModal } from "@ax/hooks";
4
- import { ISchemaField, ISite } from "@ax/types";
4
+ import type { ISchemaField, ISite } from "@ax/types";
5
5
  import AIConfigPanel from "./AIConfigPanel";
6
6
 
7
7
  import * as S from "./style";
@@ -9,13 +9,7 @@ interface IGetArrayFieldsParams {
9
9
  site: ISite | null;
10
10
  actions: any;
11
11
  onChange: (value: Record<string, unknown>, index: number) => void;
12
- addComponentInArray: (
13
- type: string,
14
- key: string,
15
- parentKey: string,
16
- index: number,
17
- isMultiple: boolean,
18
- ) => void;
12
+ addComponentInArray: (type: string, key: string, parentKey: string, index: number, isMultiple: boolean) => void;
19
13
  replaceModuleInArray: (module: string, parent: any, key: string, parentKey: string, index: number) => void;
20
14
  /** Each array variant resolves the field key differently (props.objKey vs field.key). */
21
15
  getKey: (field: any) => string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import { ICheck } from "@ax/types";
4
- import CheckField, { ICheckFieldProps } from "../CheckField";
3
+ import type { ICheck } from "@ax/types";
4
+ import CheckField, { type ICheckFieldProps } from "../CheckField";
5
5
 
6
6
  import * as S from "./style";
7
7
 
@@ -1,4 +1,5 @@
1
- import React, { useState } from "react";
1
+ import type React from "react";
2
+ import { useState } from "react";
2
3
  import { hex3to6, defaultColors } from "./../helpers";
3
4
 
4
5
  import * as S from "./style";
@@ -1,4 +1,5 @@
1
- import React, { useRef, useState, memo, useReducer, useCallback } from "react";
1
+ import type React from "react";
2
+ import { useRef, useState, memo, useReducer, useCallback } from "react";
2
3
 
3
4
  import { useHandleClickOutside } from "@ax/hooks";
4
5
  import { IconAction } from "@ax/components";
@@ -1,5 +1,5 @@
1
1
  import styled from "styled-components";
2
- import { CSS, Transform } from "@dnd-kit/utilities";
2
+ import { CSS, type Transform } from "@dnd-kit/utilities";
3
3
 
4
4
  const IconWrapper = styled.div`
5
5
  background-color: ${(p) => p.theme.color.uiBackground03};
@@ -17,9 +17,7 @@ const ConditionalField = (props: IConditionalFieldProps) => {
17
17
  return (
18
18
  <S.Wrapper>
19
19
  <RadioGroup name="radio" value={safeValue} options={options} onChange={handleChange} disabled={disabled} />
20
- <S.Content data-testid="conditionalFieldContent">
21
- {visibleFields}
22
- </S.Content>
20
+ <S.Content data-testid="conditionalFieldContent">{visibleFields}</S.Content>
23
21
  </S.Wrapper>
24
22
  );
25
23
  };
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { getSchemaFormCategories } from "@ax/helpers";
3
- import { ILanguage } from "@ax/types";
3
+ import type { ILanguage } from "@ax/types";
4
4
 
5
- import MultiCheckSelectGroup, { IMultiCheckSelectGroupProps } from "../MultiCheckSelectGroup";
5
+ import MultiCheckSelectGroup, { type IMultiCheckSelectGroupProps } from "../MultiCheckSelectGroup";
6
6
 
7
7
  const FormCategorySelect = (props: IFormCategorySelectProps): JSX.Element => {
8
8
  const { categories } = props;
@@ -1,7 +1,7 @@
1
- import React, { Dispatch, SetStateAction, useCallback, useEffect, useState } from "react";
1
+ import React, { type Dispatch, type SetStateAction, useCallback, useEffect, useState } from "react";
2
2
  import { connect } from "react-redux";
3
3
 
4
- import { FormContent, GetFormsParams, IModal, IQueryValue, IRootState } from "@ax/types";
4
+ import type { FormContent, GetFormsParams, IModal, IQueryValue, IRootState } from "@ax/types";
5
5
  import {
6
6
  Button,
7
7
  CategoryFilter,
@@ -2,7 +2,7 @@ import React, { useState } from "react";
2
2
  import { useModal, usePermission } from "@ax/hooks";
3
3
  import { trimText } from "@ax/helpers";
4
4
  import { ActionMenu, HiddenField, Icon } from "@ax/components";
5
- import { FormContent, ISite } from "@ax/types";
5
+ import type { FormContent, ISite } from "@ax/types";
6
6
 
7
7
  import FormModal from "./FormModal";
8
8
 
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import MixableComponentArray, { IMixableComponentArrayProps } from "../ComponentArray/MixableComponentArray";
3
+ import MixableComponentArray, { type IMixableComponentArrayProps } from "../ComponentArray/MixableComponentArray";
4
4
 
5
5
  const FormFieldArray = (props: IMixableComponentArrayProps): JSX.Element => {
6
6
  const formFieldArrayProps: IMixableComponentArrayProps = {
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
 
3
- import { IIntegration } from "@ax/types";
3
+ import type { IIntegration } from "@ax/types";
4
4
  import { FloatingPanel, Button, FieldsBehavior, NoteField } from "@ax/components";
5
5
 
6
6
  import * as S from "./style";
@@ -1,4 +1,4 @@
1
- import { IIntegrationVariable } from "@ax/types";
1
+ import type { IIntegrationVariable } from "@ax/types";
2
2
 
3
3
  const modifyVariableValue = (
4
4
  variables: IIntegrationVariable[] | undefined,
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useRef, useState } from "react";
2
2
 
3
- import { IIntegration, IIntegrationVariable, ILanguage } from "@ax/types";
3
+ import type { IIntegration, IIntegrationVariable, ILanguage } from "@ax/types";
4
4
  import { FloatingPanel, Button, FieldsBehavior, NoteField } from "@ax/components";
5
5
 
6
6
  import * as S from "./style";
@@ -1,7 +1,7 @@
1
1
  import React, { memo } from "react";
2
2
 
3
3
  import Icon from "@ax/components/Icon";
4
- import { IIntegration } from "@ax/types";
4
+ import type { IIntegration } from "@ax/types";
5
5
 
6
6
  import * as S from "./style";
7
7
 
@@ -1,7 +1,7 @@
1
1
  import React, { memo } from "react";
2
2
 
3
3
  import { FieldsBehavior } from "@ax/components";
4
- import { ILinkField, IUrlField } from "@ax/types";
4
+ import type { ILinkField, IUrlField } from "@ax/types";
5
5
  import { getNullValue } from "@ax/helpers";
6
6
 
7
7
  const LinkField = (props: ILinkFieldProps): JSX.Element => {
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import RadioField, { IRadioFieldProps } from "../RadioField";
1
+ import type React from "react";
2
+ import RadioField, { type IRadioFieldProps } from "../RadioField";
3
3
 
4
4
  import * as S from "./style";
5
5
 
@@ -1,4 +1,5 @@
1
- import React, { memo, useEffect, useRef } from "react";
1
+ import type React from "react";
2
+ import { memo, useEffect, useRef } from "react";
2
3
 
3
4
  import * as S from "./style";
4
5
 
@@ -1,4 +1,5 @@
1
- import React, { memo, useEffect, useRef, useState } from "react";
1
+ import type React from "react";
2
+ import { memo, useEffect, useRef, useState } from "react";
2
3
  import { isNumber } from "@ax/helpers";
3
4
  import { validateTimeAndCursor } from "./utils";
4
5
 
@@ -1,5 +1,5 @@
1
1
  import { getSchema } from "@ax/helpers";
2
- import { IPage, ISelectOption } from "@ax/types";
2
+ import type { IPage, ISelectOption } from "@ax/types";
3
3
 
4
4
  const findSchemaComponentArrays = (component: string) => {
5
5
  const keys: string[] = [];
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
 
3
3
  import * as S from "./style";
4
4
 
@@ -132,8 +132,19 @@ interface ILinkPopoverProps {
132
132
  x: number;
133
133
  y: number;
134
134
  selectedText?: string;
135
- linkData?: { url: string; newTab: boolean; noFollow: boolean; isEditing: boolean; linkPageId?: number | null; isImageLink?: boolean } | null;
136
- onInsert: (url: string, text: string, options?: { newTab: boolean; noFollow: boolean; linkTo?: number | null }) => void;
135
+ linkData?: {
136
+ url: string;
137
+ newTab: boolean;
138
+ noFollow: boolean;
139
+ isEditing: boolean;
140
+ linkPageId?: number | null;
141
+ isImageLink?: boolean;
142
+ } | null;
143
+ onInsert: (
144
+ url: string,
145
+ text: string,
146
+ options?: { newTab: boolean; noFollow: boolean; linkTo?: number | null },
147
+ ) => void;
137
148
  onClose: () => void;
138
149
  }
139
150
 
@@ -90,7 +90,7 @@ const getLanguageMenuHtml = (languages: { name: string; iso: string; featured?:
90
90
  const setLinkAttributes = (
91
91
  element: HTMLElement | null,
92
92
  url: string,
93
- options?: { newTab?: boolean; noFollow?: boolean; linkTo?: number | null }
93
+ options?: { newTab?: boolean; noFollow?: boolean; linkTo?: number | null },
94
94
  ) => {
95
95
  if (!element) return;
96
96
  element.setAttribute("href", url);
@@ -140,4 +140,12 @@ const createPopupFunctions = (editor: any, editorEl: HTMLElement) => {
140
140
  return { showPopup, showErrorPopup };
141
141
  };
142
142
 
143
- export { getRichTextConfig, parseClassNames, getLanguageMenuHtml, setLinkAttributes, getPopupPosition, createPopupFunctions, type IRichTextConfig };
143
+ export {
144
+ getRichTextConfig,
145
+ parseClassNames,
146
+ getLanguageMenuHtml,
147
+ setLinkAttributes,
148
+ getPopupPosition,
149
+ createPopupFunctions,
150
+ type IRichTextConfig,
151
+ };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IFolder } from "@ax/types";
3
+ import type { IFolder } from "@ax/types";
4
4
  import { Icon, Tooltip } from "@ax/components";
5
5
  import { trimText } from "@ax/helpers";
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IFile } from "@ax/types";
2
+ import type { IFile } from "@ax/types";
3
3
  import { getFileIcon, getFormattedDateWithTimezone, trimText } from "@ax/helpers";
4
4
  import { Tooltip } from "@ax/components";
5
5
 
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import { Icon } from "@ax/components";
3
3
 
4
4
  import * as S from "./style";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IFolder } from "@ax/types";
3
+ import type { IFolder } from "@ax/types";
4
4
  import { Icon, Tooltip } from "@ax/components";
5
5
  import { trimText } from "@ax/helpers";
6
6
 
@@ -5,7 +5,13 @@ import type { HeadingFilter, HeadingNode } from "@ax/types";
5
5
 
6
6
  import ErrorsBanner from "./ErrorsBanner";
7
7
  import HeadingItem from "./HeadingItem";
8
- import { analyzeHeadings, extractUniqueHeadingTypes, filterHeadings, hasHiddenHeadings, parseHeadingsTree } from "./utils";
8
+ import {
9
+ analyzeHeadings,
10
+ extractUniqueHeadingTypes,
11
+ filterHeadings,
12
+ hasHiddenHeadings,
13
+ parseHeadingsTree,
14
+ } from "./utils";
9
15
 
10
16
  import * as S from "./style";
11
17
 
@@ -23,7 +29,10 @@ const HeadingsPreviewModal = (props: IHeadingsPreviewProps) => {
23
29
  const listRef = useRef<HTMLDivElement>(null);
24
30
 
25
31
  const filters = useMemo<HeadingFilter[]>(() => ["all", ...extractUniqueHeadingTypes(headings)], [headings]);
26
- const filteredHeadings = useMemo(() => filterHeadings(headings, headingsFilter, toggleStatus), [headings, headingsFilter, toggleStatus]);
32
+ const filteredHeadings = useMemo(
33
+ () => filterHeadings(headings, headingsFilter, toggleStatus),
34
+ [headings, headingsFilter, toggleStatus],
35
+ );
27
36
  const showToggleWrapper = useMemo(() => hasHiddenHeadings(headings, headingsFilter), [headings, headingsFilter]);
28
37
  const errors = useMemo(() => analyzeHeadings(filteredHeadings, isFiltering), [filteredHeadings, isFiltering]);
29
38
 
@@ -332,5 +332,12 @@ interface IFlatHeading {
332
332
  isHidden: boolean;
333
333
  }
334
334
 
335
- export { parseHeadingsTree, extractUniqueHeadingTypes, filterHeadings, analyzeHeadings, getHeadColor, hasHiddenHeadings };
335
+ export {
336
+ parseHeadingsTree,
337
+ extractUniqueHeadingTypes,
338
+ filterHeadings,
339
+ analyzeHeadings,
340
+ getHeadColor,
341
+ hasHiddenHeadings,
342
+ };
336
343
  export type { IHeadingError };
@@ -1,16 +1,10 @@
1
1
  import * as React from "react";
2
2
  const SvgParty = (props) => (
3
- <svg
4
- xmlns="http://www.w3.org/2000/svg"
5
- width={24}
6
- height={24}
7
- fill="none"
8
- {...props}
9
- >
10
- <path
11
- fill="#5057FF"
12
- d="M2 22 7 8l9 9-14 5Zm3.3-3.3 7.05-2.5-4.55-4.55-2.5 7.05Zm9.25-6.15L13.5 11.5l5.6-5.6a2.624 2.624 0 0 1 1.925-.8c.75 0 1.392.267 1.925.8l.6.6-1.05 1.05-.6-.6a1.187 1.187 0 0 0-.875-.35c-.35 0-.642.117-.875.35l-5.6 5.6Zm-4-4L9.5 7.5l.6-.6c.233-.233.35-.517.35-.85 0-.333-.117-.617-.35-.85l-.65-.65L10.5 3.5l.65.65c.533.533.8 1.167.8 1.9 0 .733-.267 1.367-.8 1.9l-.6.6Zm2 2L11.5 9.5l3.6-3.6c.233-.233.35-.525.35-.875s-.117-.642-.35-.875l-1.6-1.6 1.05-1.05 1.6 1.6c.533.533.8 1.175.8 1.925s-.267 1.392-.8 1.925l-3.6 3.6Zm4 4L15.5 13.5l1.6-1.6a2.624 2.624 0 0 1 1.925-.8c.75 0 1.392.267 1.925.8l1.6 1.6-1.05 1.05-1.6-1.6a1.187 1.187 0 0 0-.875-.35c-.35 0-.642.117-.875.35l-1.6 1.6Z"
13
- />
14
- </svg>
3
+ <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} fill="none" {...props}>
4
+ <path
5
+ fill="#5057FF"
6
+ d="M2 22 7 8l9 9-14 5Zm3.3-3.3 7.05-2.5-4.55-4.55-2.5 7.05Zm9.25-6.15L13.5 11.5l5.6-5.6a2.624 2.624 0 0 1 1.925-.8c.75 0 1.392.267 1.925.8l.6.6-1.05 1.05-.6-.6a1.187 1.187 0 0 0-.875-.35c-.35 0-.642.117-.875.35l-5.6 5.6Zm-4-4L9.5 7.5l.6-.6c.233-.233.35-.517.35-.85 0-.333-.117-.617-.35-.85l-.65-.65L10.5 3.5l.65.65c.533.533.8 1.167.8 1.9 0 .733-.267 1.367-.8 1.9l-.6.6Zm2 2L11.5 9.5l3.6-3.6c.233-.233.35-.525.35-.875s-.117-.642-.35-.875l-1.6-1.6 1.05-1.05 1.6 1.6c.533.533.8 1.175.8 1.925s-.267 1.392-.8 1.925l-3.6 3.6Zm4 4L15.5 13.5l1.6-1.6a2.624 2.624 0 0 1 1.925-.8c.75 0 1.392.267 1.925.8l1.6 1.6-1.05 1.05-1.6-1.6a1.187 1.187 0 0 0-.875-.35c-.35 0-.642.117-.875.35l-1.6 1.6Z"
7
+ />
8
+ </svg>
15
9
  );
16
10
  export default SvgParty;