@griddo/ax 12.3.0-beta.0 → 12.4.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 (298) hide show
  1. package/config/__tests__/webpack5-migration.test.js +442 -0
  2. package/config/{jest/componentsMock.js → tests/componentsMock.cjs} +4 -1
  3. package/config/tests/reactEasyCropMock.js +15 -0
  4. package/config/tests/reactTimezoneMock.js +14 -0
  5. package/config/tests/setup.ts +41 -0
  6. package/config/webpack.config.js +183 -189
  7. package/config/webpackDevServer.config.js +63 -93
  8. package/config/webpackSchemas.config.js +6 -1
  9. package/package.json +33 -53
  10. package/public/img/icons/markdown.svg +6 -0
  11. package/scripts/build.js +4 -0
  12. package/scripts/start.js +38 -9
  13. package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +12 -12
  14. package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +2 -2
  15. package/src/__tests__/components/Browser/Browser.test.tsx +17 -25
  16. package/src/__tests__/components/BulkSelectionOptions/BulkSelectionOptions.test.tsx +3 -3
  17. package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +3 -2
  18. package/src/__tests__/components/ConfigPanel/ConfigPanel.test.tsx +4 -4
  19. package/src/__tests__/components/ConfigPanel/Form/ConnectedField/ConnectedField.test.tsx +2 -2
  20. package/src/__tests__/components/ConfigPanel/Form/ConnectedField/NavConnectedField/NavConnectedField.test.tsx +2 -2
  21. package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/Field.test.tsx +3 -3
  22. package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/PageConnectedField.test.tsx +17 -14
  23. package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/TemplateManager.test.tsx +4 -4
  24. package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +7 -6
  25. package/src/__tests__/components/ConfigPanel/GlobalPageForm/GlobalPageForm.test.tsx +11 -11
  26. package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +11 -10
  27. package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +2 -2
  28. package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +2 -2
  29. package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +4 -3
  30. package/src/__tests__/components/ContextMenu/ContextMenu.test.tsx +24 -24
  31. package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +6 -5
  32. package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +1 -1
  33. package/src/__tests__/components/EmptyState/EmptyState.test.tsx +2 -2
  34. package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +11 -11
  35. package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +4 -4
  36. package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +3 -3
  37. package/src/__tests__/components/Fields/AnalyticsField/PageAnalytics/PageAnalytics.test.tsx +4 -4
  38. package/src/__tests__/components/Fields/AnalyticsField/StructuredDataAnalytics/StructuredDataAnalytics.test.tsx +3 -3
  39. package/src/__tests__/components/Fields/ArrayFieldGroup/ArrayFieldGroup.test.tsx +6 -5
  40. package/src/__tests__/components/Fields/AsyncCheckGroup/AsyncCheckGroup.test.tsx +19 -18
  41. package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +4 -3
  42. package/src/__tests__/components/Fields/Button/Button.test.tsx +4 -3
  43. package/src/__tests__/components/Fields/CheckField/CheckField.test.tsx +5 -5
  44. package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +10 -10
  45. package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +7 -6
  46. package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +3 -3
  47. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +45 -45
  48. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +7 -6
  49. package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +7 -7
  50. package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +55 -55
  51. package/src/__tests__/components/Fields/ConditionalField/ConditionalField.test.tsx +1 -1
  52. package/src/__tests__/components/Fields/DateField/DateField.test.tsx +6 -5
  53. package/src/__tests__/components/Fields/FieldGroup/FieldGroup.test.tsx +2 -2
  54. package/src/__tests__/components/Fields/FileField/FileField.test.tsx +4 -4
  55. package/src/__tests__/components/Fields/HeadingField/HeadingField.test.tsx +2 -2
  56. package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +3 -3
  57. package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +8 -7
  58. package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +9 -8
  59. package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +1 -1
  60. package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +7 -6
  61. package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +1 -1
  62. package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +8 -8
  63. package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +2 -2
  64. package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +17 -16
  65. package/src/__tests__/components/Fields/RichText/RichText.test.tsx +1 -1
  66. package/src/__tests__/components/Fields/Select/Select.test.tsx +1 -1
  67. package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +5 -4
  68. package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +2 -2
  69. package/src/__tests__/components/Fields/TagField/TagField.test.tsx +9 -9
  70. package/src/__tests__/components/Fields/TextArea/TextArea.test.tsx +13 -9
  71. package/src/__tests__/components/Fields/TextField/TextField.test.tsx +8 -8
  72. package/src/__tests__/components/Fields/TimeField/HourInput/HourInput.test.tsx +7 -6
  73. package/src/__tests__/components/Fields/TimeField/TimeField.test.tsx +4 -3
  74. package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +2 -2
  75. package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +6 -6
  76. package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +13 -13
  77. package/src/__tests__/components/Fields/UniqueCheck/UniqueCheck.test.tsx +1 -1
  78. package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +20 -19
  79. package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +3 -2
  80. package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +4 -3
  81. package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +1 -1
  82. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.atoms.test.tsx +11 -11
  83. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.helpers.test.tsx +13 -14
  84. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +28 -28
  85. package/src/__tests__/components/FieldsBehavior/FieldsBehavior.test.tsx +15 -14
  86. package/src/__tests__/components/FloatingMenu/FloatingMenu.test.tsx +36 -35
  87. package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +10 -10
  88. package/src/__tests__/components/GuardModal/GuardModal.test.tsx +1 -1
  89. package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorItem/ErrorItem.test.tsx +11 -11
  90. package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorsBanner.test.tsx +4 -4
  91. package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.test.tsx +15 -14
  92. package/src/__tests__/components/IconAction/IconAction.test.tsx +2 -2
  93. package/src/__tests__/components/ImageDragAndDrop/CropStep/CropStep.test.tsx +3 -3
  94. package/src/__tests__/components/ImageDragAndDrop/ImageDragAndDrop.test.tsx +7 -7
  95. package/src/__tests__/components/KeywordsPreviewModal/KeywordItem/KeywordItem.test.tsx +5 -5
  96. package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.test.tsx +14 -13
  97. package/src/__tests__/components/KeywordsPreviewModal/atoms.test.tsx +13 -13
  98. package/src/__tests__/components/LanguageMenu/LanguageMenu.test.tsx +6 -6
  99. package/src/__tests__/components/Lists/Lists.test.tsx +1 -1
  100. package/src/__tests__/components/Loader/Loader.test.tsx +1 -1
  101. package/src/__tests__/components/Login/Login.test.tsx +32 -32
  102. package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +10 -9
  103. package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +21 -21
  104. package/src/__tests__/components/MenuItem/MenuItem.test.tsx +5 -5
  105. package/src/__tests__/components/Modal/Modal.test.tsx +20 -20
  106. package/src/__tests__/components/Nav/Nav.test.tsx +2 -2
  107. package/src/__tests__/components/Notification/Notification.test.tsx +2 -2
  108. package/src/__tests__/components/Pagination/Pagination.test.tsx +13 -14
  109. package/src/__tests__/components/ProfileImage/ProfileImage.test.tsx +6 -7
  110. package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +4 -3
  111. package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +10 -11
  112. package/src/__tests__/components/RestrictionsModal/CurrentAccessList/CurrentAccessList.test.tsx +7 -6
  113. package/src/__tests__/components/RestrictionsModal/OptionsStep/OptionsStep.test.tsx +12 -11
  114. package/src/__tests__/components/RestrictionsModal/RestrictionsModal.test.tsx +11 -10
  115. package/src/__tests__/components/RestrictionsModal/RolesList/RolesList.test.tsx +8 -8
  116. package/src/__tests__/components/RestrictionsModal/UsersList/UsersList.test.tsx +16 -15
  117. package/src/__tests__/components/SearchField/SearchField.test.tsx +13 -13
  118. package/src/__tests__/components/SideModal/SideModal.test.tsx +25 -23
  119. package/src/__tests__/components/SubNav/SubNav.test.tsx +1 -1
  120. package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +9 -8
  121. package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +5 -5
  122. package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +8 -8
  123. package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +11 -10
  124. package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +10 -10
  125. package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +5 -5
  126. package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +10 -9
  127. package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +9 -9
  128. package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +8 -8
  129. package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +5 -5
  130. package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +8 -8
  131. package/src/__tests__/components/TableList/TableList.test.tsx +4 -4
  132. package/src/__tests__/components/Tabs/Tabs.test.tsx +8 -9
  133. package/src/__tests__/components/Tag/Tag.test.tsx +3 -3
  134. package/src/__tests__/components/Toast/Toast.test.tsx +6 -6
  135. package/src/__tests__/gainup-trace.test.ts +67 -0
  136. package/src/__tests__/hooks/modals.test.tsx +4 -4
  137. package/src/__tests__/hooks/users.test.tsx +6 -5
  138. package/src/__tests__/modules/FileDrive/MarkdownFormat.test.tsx +58 -0
  139. package/src/__tests__/modules/FramePreview/FramePreview.test.tsx +40 -39
  140. package/src/__tests__/modules/FramePreview/HeadingsOverlay/HeadingsOverlay.test.tsx +11 -11
  141. package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +2 -2
  142. package/src/__tests__/modules/Settings/Social/Social.test.tsx +4 -3
  143. package/src/__tests__/modules/Sites/Sites.test.tsx +5 -4
  144. package/src/__tests__/modules/Sites/SitesList/ListView/BulkHeader/BulkHeader.test.tsx +2 -2
  145. package/src/__tests__/modules/Sites/SitesList/SitesList.test.tsx +7 -6
  146. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/DataStep/DataStep.test.tsx +6 -6
  147. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/FinalStep/FinalStep.test.tsx +4 -4
  148. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/CropView/CropView.test.tsx +3 -3
  149. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/ImageStep.test.tsx +9 -5
  150. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/UploadView/UploadView.test.tsx +8 -6
  151. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/TimezoneStep/TimezoneStep.test.tsx +7 -7
  152. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/WelcomeModal.test.tsx +1 -1
  153. package/src/__tests__/modules/Sites/SitesList/WelcomeModal/WelcomeStep/WelcomeStep.test.tsx +3 -3
  154. package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +3 -3
  155. package/src/__tests__/modules/Users/Roles/Roles.test.tsx +11 -10
  156. package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +3 -3
  157. package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +3 -3
  158. package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +3 -3
  159. package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +6 -5
  160. package/src/__tests__/modules/Users/UserList/UserItem/UserItem.test.tsx +9 -9
  161. package/src/__tests__/modules/Users/UserList/UserList.test.tsx +4 -4
  162. package/src/components/Flag/components/index.ts +30 -0
  163. package/src/components/Flag/index.tsx +3 -5
  164. package/src/components/Icon/components/index.ts +229 -0
  165. package/src/components/Icon/index.tsx +3 -7
  166. package/src/constants/index.ts +1 -1
  167. package/src/helpers/files.tsx +2 -0
  168. package/src/modules/App/Routing/NavMenu/index.tsx +4 -2
  169. package/src/modules/FileDrive/FileFilters/Type/index.tsx +1 -0
  170. package/tsconfig.json +1 -1
  171. package/config/jest/cssTransform.js +0 -14
  172. package/config/jest/fileMock.js +0 -1
  173. package/config/jest/fileTransform.js +0 -40
  174. package/config/jest/reactEasyCropMock.js +0 -15
  175. package/config/jest/reactTimezoneMock.js +0 -13
  176. package/config/jest/setup.js +0 -31
  177. package/config/jest/styleMock.js +0 -1
  178. package/config/pnpTs.js +0 -15
  179. package/src/__tests__/aiup-trace.test.ts +0 -23
  180. /package/config/{jest/test-utils.js → tests/test-utils.jsx} +0 -0
  181. /package/src/components/Flag/components/{Ca_ES.js → Ca_ES.jsx} +0 -0
  182. /package/src/components/Flag/components/{De_DE.js → De_DE.jsx} +0 -0
  183. /package/src/components/Flag/components/{En_GB.js → En_GB.jsx} +0 -0
  184. /package/src/components/Flag/components/{Es_ES.js → Es_ES.jsx} +0 -0
  185. /package/src/components/Flag/components/{Eu_ES.js → Eu_ES.jsx} +0 -0
  186. /package/src/components/Flag/components/{Fr_FR.js → Fr_FR.jsx} +0 -0
  187. /package/src/components/Flag/components/{It_IT.js → It_IT.jsx} +0 -0
  188. /package/src/components/Flag/components/{Pt_PT.js → Pt_PT.jsx} +0 -0
  189. /package/src/components/Icon/components/{Active.js → Active.jsx} +0 -0
  190. /package/src/components/Icon/components/{Add.js → Add.jsx} +0 -0
  191. /package/src/components/Icon/components/{AddCircle.js → AddCircle.jsx} +0 -0
  192. /package/src/components/Icon/components/{Alert.js → Alert.jsx} +0 -0
  193. /package/src/components/Icon/components/{AlignLeft.js → AlignLeft.jsx} +0 -0
  194. /package/src/components/Icon/components/{Back.js → Back.jsx} +0 -0
  195. /package/src/components/Icon/components/{BulletList.js → BulletList.jsx} +0 -0
  196. /package/src/components/Icon/components/{Button.js → Button.jsx} +0 -0
  197. /package/src/components/Icon/components/{Calendar.js → Calendar.jsx} +0 -0
  198. /package/src/components/Icon/components/{CancelEvent.js → CancelEvent.jsx} +0 -0
  199. /package/src/components/Icon/components/{Category.js → Category.jsx} +0 -0
  200. /package/src/components/Icon/components/{Change.js → Change.jsx} +0 -0
  201. /package/src/components/Icon/components/{Close.js → Close.jsx} +0 -0
  202. /package/src/components/Icon/components/{ClosePanel.js → ClosePanel.jsx} +0 -0
  203. /package/src/components/Icon/components/{CodeBody.js → CodeBody.jsx} +0 -0
  204. /package/src/components/Icon/components/{CodeHead.js → CodeHead.jsx} +0 -0
  205. /package/src/components/Icon/components/{CodeHeadBody.js → CodeHeadBody.jsx} +0 -0
  206. /package/src/components/Icon/components/{Collapsed.js → Collapsed.jsx} +0 -0
  207. /package/src/components/Icon/components/{ColorPicker.js → ColorPicker.jsx} +0 -0
  208. /package/src/components/Icon/components/{Compose.js → Compose.jsx} +0 -0
  209. /package/src/components/Icon/components/{Copy.js → Copy.jsx} +0 -0
  210. /package/src/components/Icon/components/{Copy2.js → Copy2.jsx} +0 -0
  211. /package/src/components/Icon/components/{Data.js → Data.jsx} +0 -0
  212. /package/src/components/Icon/components/{DataAdd.js → DataAdd.jsx} +0 -0
  213. /package/src/components/Icon/components/{Deactivate.js → Deactivate.jsx} +0 -0
  214. /package/src/components/Icon/components/{Delete.js → Delete.jsx} +0 -0
  215. /package/src/components/Icon/components/{Desktop.js → Desktop.jsx} +0 -0
  216. /package/src/components/Icon/components/{Disabled.js → Disabled.jsx} +0 -0
  217. /package/src/components/Icon/components/{Done.js → Done.jsx} +0 -0
  218. /package/src/components/Icon/components/{DownArrow.js → DownArrow.jsx} +0 -0
  219. /package/src/components/Icon/components/{Download.js → Download.jsx} +0 -0
  220. /package/src/components/Icon/components/{Drag.js → Drag.jsx} +0 -0
  221. /package/src/components/Icon/components/{Duplicate.js → Duplicate.jsx} +0 -0
  222. /package/src/components/Icon/components/{Edit.js → Edit.jsx} +0 -0
  223. /package/src/components/Icon/components/{Empty.js → Empty.jsx} +0 -0
  224. /package/src/components/Icon/components/{EmptyCheck.js → EmptyCheck.jsx} +0 -0
  225. /package/src/components/Icon/components/{Extend.js → Extend.jsx} +0 -0
  226. /package/src/components/Icon/components/{File.js → File.jsx} +0 -0
  227. /package/src/components/Icon/components/{Filter.js → Filter.jsx} +0 -0
  228. /package/src/components/Icon/components/{Form.js → Form.jsx} +0 -0
  229. /package/src/components/Icon/components/{FullArrowDown.js → FullArrowDown.jsx} +0 -0
  230. /package/src/components/Icon/components/{FullArrowLeft.js → FullArrowLeft.jsx} +0 -0
  231. /package/src/components/Icon/components/{FullArrowRight.js → FullArrowRight.jsx} +0 -0
  232. /package/src/components/Icon/components/{FullArrowUp.js → FullArrowUp.jsx} +0 -0
  233. /package/src/components/Icon/components/{Grid.js → Grid.jsx} +0 -0
  234. /package/src/components/Icon/components/{Grid2.js → Grid2.jsx} +0 -0
  235. /package/src/components/Icon/components/{GriddoLogo.js → GriddoLogo.jsx} +0 -0
  236. /package/src/components/Icon/components/{HeroCard.js → HeroCard.jsx} +0 -0
  237. /package/src/components/Icon/components/{Hide.js → Hide.jsx} +0 -0
  238. /package/src/components/Icon/components/{History.js → History.jsx} +0 -0
  239. /package/src/components/Icon/components/{Home.js → Home.jsx} +0 -0
  240. /package/src/components/Icon/components/{Ia.js → Ia.jsx} +0 -0
  241. /package/src/components/Icon/components/{Image.js → Image.jsx} +0 -0
  242. /package/src/components/Icon/components/{Info.js → Info.jsx} +0 -0
  243. /package/src/components/Icon/components/{Laptop.js → Laptop.jsx} +0 -0
  244. /package/src/components/Icon/components/{LeftArrow.js → LeftArrow.jsx} +0 -0
  245. /package/src/components/Icon/components/{Link.js → Link.jsx} +0 -0
  246. /package/src/components/Icon/components/{Lock.js → Lock.jsx} +0 -0
  247. /package/src/components/Icon/components/{Log.js → Log.jsx} +0 -0
  248. /package/src/components/Icon/components/{Map.js → Map.jsx} +0 -0
  249. /package/src/components/Icon/components/{Menu.js → Menu.jsx} +0 -0
  250. /package/src/components/Icon/components/{Microsoft.js → Microsoft.jsx} +0 -0
  251. /package/src/components/Icon/components/{Modified.js → Modified.jsx} +0 -0
  252. /package/src/components/Icon/components/{Modules.js → Modules.jsx} +0 -0
  253. /package/src/components/Icon/components/{More.js → More.jsx} +0 -0
  254. /package/src/components/Icon/components/{NewFolder.js → NewFolder.jsx} +0 -0
  255. /package/src/components/Icon/components/{Offline.js → Offline.jsx} +0 -0
  256. /package/src/components/Icon/components/{OfflinePending.js → OfflinePending.jsx} +0 -0
  257. /package/src/components/Icon/components/{OpenOutside.js → OpenOutside.jsx} +0 -0
  258. /package/src/components/Icon/components/{OpenPanel.js → OpenPanel.jsx} +0 -0
  259. /package/src/components/Icon/components/{OutOfSection.js → OutOfSection.jsx} +0 -0
  260. /package/src/components/Icon/components/{Page.js → Page.jsx} +0 -0
  261. /package/src/components/Icon/components/{Party.js → Party.jsx} +0 -0
  262. /package/src/components/Icon/components/{Paste.js → Paste.jsx} +0 -0
  263. /package/src/components/Icon/components/{Phone.js → Phone.jsx} +0 -0
  264. /package/src/components/Icon/components/{PhotoLibrary.js → PhotoLibrary.jsx} +0 -0
  265. /package/src/components/Icon/components/{Power.js → Power.jsx} +0 -0
  266. /package/src/components/Icon/components/{Preview.js → Preview.jsx} +0 -0
  267. /package/src/components/Icon/components/{Project.js → Project.jsx} +0 -0
  268. /package/src/components/Icon/components/{QrCode.js → QrCode.jsx} +0 -0
  269. /package/src/components/Icon/components/{Question.js → Question.jsx} +0 -0
  270. /package/src/components/Icon/components/{Refresh.js → Refresh.jsx} +0 -0
  271. /package/src/components/Icon/components/{Republish.js → Republish.jsx} +0 -0
  272. /package/src/components/Icon/components/{RightArrow.js → RightArrow.jsx} +0 -0
  273. /package/src/components/Icon/components/{Scheduled.js → Scheduled.jsx} +0 -0
  274. /package/src/components/Icon/components/{Search.js → Search.jsx} +0 -0
  275. /package/src/components/Icon/components/{SendEmail.js → SendEmail.jsx} +0 -0
  276. /package/src/components/Icon/components/{Settings.js → Settings.jsx} +0 -0
  277. /package/src/components/Icon/components/{Share.js → Share.jsx} +0 -0
  278. /package/src/components/Icon/components/{Subsection.js → Subsection.jsx} +0 -0
  279. /package/src/components/Icon/components/{Success.js → Success.jsx} +0 -0
  280. /package/src/components/Icon/components/{SuccessSolid.js → SuccessSolid.jsx} +0 -0
  281. /package/src/components/Icon/components/{Sync.js → Sync.jsx} +0 -0
  282. /package/src/components/Icon/components/{Tablet.js → Tablet.jsx} +0 -0
  283. /package/src/components/Icon/components/{Translate.js → Translate.jsx} +0 -0
  284. /package/src/components/Icon/components/{Unlink.js → Unlink.jsx} +0 -0
  285. /package/src/components/Icon/components/{UpArrow.js → UpArrow.jsx} +0 -0
  286. /package/src/components/Icon/components/{UploadFile.js → UploadFile.jsx} +0 -0
  287. /package/src/components/Icon/components/{UploadPending.js → UploadPending.jsx} +0 -0
  288. /package/src/components/Icon/components/{UrlLink.js → UrlLink.jsx} +0 -0
  289. /package/src/components/Icon/components/{User.js → User.jsx} +0 -0
  290. /package/src/components/Icon/components/{Users.js → Users.jsx} +0 -0
  291. /package/src/components/Icon/components/{Video.js → Video.jsx} +0 -0
  292. /package/src/components/Icon/components/{View.js → View.jsx} +0 -0
  293. /package/src/components/Icon/components/{Warning.js → Warning.jsx} +0 -0
  294. /package/src/components/Icon/components/{Web.js → Web.jsx} +0 -0
  295. /package/src/components/Icon/components/{Working.js → Working.jsx} +0 -0
  296. /package/src/components/Loader/components/{Circle.js → Circle.jsx} +0 -0
  297. /package/src/components/Loader/components/{Dots.js → Dots.jsx} +0 -0
  298. /package/src/components/Loader/components/{SmallCircle.js → SmallCircle.jsx} +0 -0
@@ -1,5 +1,4 @@
1
1
  const fs = require("fs");
2
- const errorOverlayMiddleware = require("react-dev-utils/errorOverlayMiddleware");
3
2
  const evalSourceMapMiddleware = require("react-dev-utils/evalSourceMapMiddleware");
4
3
  const noopServiceWorkerMiddleware = require("react-dev-utils/noopServiceWorkerMiddleware");
5
4
  const ignoredFiles = require("react-dev-utils/ignoredFiles");
@@ -9,122 +8,93 @@ const getHttpsConfig = require("./getHttpsConfig");
9
8
 
10
9
  const host = process.env.HOST || "0.0.0.0";
11
10
  const sockHost = process.env.WDS_SOCKET_HOST;
12
- const sockPath = process.env.WDS_SOCKET_PATH; // default: '/sockjs-node'
11
+ const sockPath = process.env.WDS_SOCKET_PATH;
13
12
  const sockPort = process.env.WDS_SOCKET_PORT;
14
13
 
15
14
  module.exports = function (proxy, allowedHost) {
16
15
  // Merge `public` and `static` paths for development
17
16
  paths.prepareAssetsFolders();
18
17
 
18
+ const disableFirewall = !proxy || process.env.DANGEROUSLY_DISABLE_HOST_CHECK === "true";
19
+
20
+ // Wire the WDS_SOCKET_* env vars into WDS4's client. In WDS3 these were read at
21
+ // runtime by CRA's `webpackHotDevClient` (now removed); WDS4 reads them from
22
+ // `client.webSocketURL` instead. Only override the fields that are actually set so
23
+ // WDS4 keeps auto-detecting the rest (host/port behind a proxy still works).
24
+ const webSocketURL = {};
25
+ if (sockHost) webSocketURL.hostname = sockHost;
26
+ if (sockPath) webSocketURL.pathname = sockPath;
27
+ if (sockPort) webSocketURL.port = sockPort;
28
+ const hasWebSocketOverrides = Object.keys(webSocketURL).length > 0;
29
+
19
30
  return {
20
- // WebpackDevServer 2.4.3 introduced a security fix that prevents remote
21
- // websites from potentially accessing local content through DNS rebinding:
22
- // https://github.com/webpack/webpack-dev-server/issues/887
23
- // https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a
24
- // However, it made several existing use cases such as development in cloud
25
- // environment or subdomains in development significantly more complicated:
26
- // https://github.com/facebook/create-react-app/issues/2271
27
- // https://github.com/facebook/create-react-app/issues/2233
28
- // While we're investigating better solutions, for now we will take a
29
- // compromise. Since our WDS configuration only serves files in the `public`
30
- // folder we won't consider accessing them a vulnerability. However, if you
31
- // use the `proxy` feature, it gets more dangerous because it can expose
32
- // remote code execution vulnerabilities in backends like Django and Rails.
33
- // So we will disable the host check normally, but enable it if you have
34
- // specified the `proxy` setting. Finally, we let you override it if you
35
- // really know what you're doing with a special environment variable.
36
- disableHostCheck: !proxy || process.env.DANGEROUSLY_DISABLE_HOST_CHECK === "true",
37
31
  // Enable gzip compression of generated files.
38
32
  compress: true,
39
- // Silence WebpackDevServer's own logs since they're generally not useful.
40
- // It will still show compile warnings and errors with this setting.
41
- clientLogLevel: "none",
42
- // By default WebpackDevServer serves physical files from current directory
43
- // in addition to all the virtual build products that it serves from memory.
44
- // This is confusing because those files won’t automatically be available in
45
- // production build folder unless we copy them. However, copying the whole
46
- // project directory is dangerous because we may expose sensitive files.
47
- // Instead, we establish a convention that only files in `public` directory
48
- // get served. Our build script will copy `public` into the `build` folder.
49
- // In `index.html`, you can get URL of `public` folder with %PUBLIC_URL%:
50
- // <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
51
- // In JavaScript code, you can access it with `process.env.PUBLIC_URL`.
52
- // Note that we only recommend to use `public` folder as an escape hatch
53
- // for files like `favicon.ico`, `manifest.json`, and libraries that are
54
- // for some reason broken when imported through webpack. If you just want to
55
- // use an image, put it in `src` and `import` it from JavaScript instead.
56
- contentBase: paths.appStaticAssetsCache,
57
- contentBasePublicPath: paths.publicUrlOrPath,
58
- // By default files from `contentBase` will not trigger a page reload.
59
- watchContentBase: true,
60
- // Enable hot reloading server. It will provide WDS_SOCKET_PATH endpoint
61
- // for the WebpackDevServer client so it can learn when the files were
62
- // updated. The WebpackDevServer client is included as an entry point
63
- // in the webpack development configuration. Note that only changes
64
- // to CSS are currently hot reloaded. JS changes will refresh the browser.
65
- hot: true,
66
- // Use 'ws' instead of 'sockjs-node' on server since we're using native
67
- // websockets in `webpackHotDevClient`.
68
- transportMode: "ws",
69
- // Prevent a WS client from getting injected as we're already including
70
- // `webpackHotDevClient`.
71
- injectClient: false,
72
- // Enable custom sockjs pathname for websocket connection to hot reloading server.
73
- // Enable custom sockjs hostname, pathname and port for websocket connection
74
- // to hot reloading server.
75
- sockHost,
76
- sockPath,
77
- sockPort,
78
- // It is important to tell WebpackDevServer to use the same "publicPath" path as
79
- // we specified in the webpack config. When homepage is '.', default to serving
80
- // from the root.
81
- // remove last slash so user can land on `/test` instead of `/test/`
82
- publicPath: paths.publicUrlOrPath.slice(0, -1),
83
- // WebpackDevServer is noisy by default so we emit custom message instead
84
- // by listening to the compiler events with `compiler.hooks[...].tap` calls above.
85
- quiet: true,
86
- // Reportedly, this avoids CPU overload on some systems.
87
- // https://github.com/facebook/create-react-app/issues/293
88
- // src/node_modules is not ignored to support absolute imports
89
- // https://github.com/facebook/create-react-app/issues/1065
90
- watchOptions: {
91
- ignored: ignoredFiles(paths.appSrc),
33
+ allowedHosts: disableFirewall ? "all" : [allowedHost],
34
+ static: {
35
+ directory: paths.appStaticAssetsCache,
36
+ publicPath: paths.publicUrlOrPath,
37
+ watch: {
38
+ ignored: ignoredFiles(paths.appSrc),
39
+ },
40
+ },
41
+ client: {
42
+ logging: "none",
43
+ // WDS4's native error overlay is a separate implementation from CRA's
44
+ // `react-error-overlay` (which used to freeze the page/iframe on runtime
45
+ // errors that client is now removed). We keep the compile-error overlay,
46
+ // which is the useful one, and disable the runtime-error overlay to avoid
47
+ // blocking the iframe preview.
48
+ overlay: {
49
+ errors: true,
50
+ warnings: false,
51
+ runtimeErrors: false,
52
+ },
53
+ ...(hasWebSocketOverrides && { webSocketURL }),
54
+ },
55
+ devMiddleware: {
56
+ publicPath: paths.publicUrlOrPath.slice(0, -1),
57
+ // webpack-dev-middleware prints stats.toString() with a raw
58
+ // console.log (not the infrastructure logger), so this is the only
59
+ // switch that silences the per-build stats dump.
60
+ stats: "none",
92
61
  },
93
62
  https: getHttpsConfig(),
94
63
  host,
95
- overlay: false,
64
+ hot: true,
65
+ // Use 'ws' instead of 'sockjs-node' on server since we're using native websockets.
66
+ webSocketServer: "ws",
96
67
  historyApiFallback: {
97
68
  // Paths with dots should still use the history fallback.
98
69
  // See https://github.com/facebook/create-react-app/issues/387.
99
70
  disableDotRule: true,
100
71
  index: paths.publicUrlOrPath,
101
72
  },
102
- public: allowedHost,
103
- // `proxy` is run between `before` and `after` `webpack-dev-server` hooks
104
73
  proxy,
105
- before(app, server) {
106
- // Keep `evalSourceMapMiddleware` and `errorOverlayMiddleware`
107
- // middlewares before `redirectServedPath` otherwise will not have any effect
108
- // This lets us fetch source contents from webpack for the error overlay
109
- app.use(evalSourceMapMiddleware(server));
110
- // This lets us open files from the runtime error overlay.
111
- app.use(errorOverlayMiddleware());
74
+ setupMiddlewares(middlewares, devServer) {
75
+ // `evalSourceMapMiddleware` must run BEFORE `historyApiFallback`, so unshift it.
76
+ // This lets us fetch source contents from webpack for the error overlay.
77
+ middlewares.unshift(evalSourceMapMiddleware(devServer));
112
78
 
113
79
  if (fs.existsSync(paths.proxySetup)) {
114
80
  // This registers user provided middleware for proxy reasons
115
- require(paths.proxySetup)(app);
81
+ require(paths.proxySetup)(devServer.app);
116
82
  }
117
- },
118
- after(app) {
119
- // Redirect to `PUBLIC_URL` or `homepage` from `package.json` if url not match
120
- app.use(redirectServedPath(paths.publicUrlOrPath));
121
83
 
122
- // This service worker file is effectively a 'no-op' that will reset any
123
- // previous service worker registered for the same host:port combination.
124
- // We do this in development to avoid hitting the production cache if
125
- // it used the same host and port.
126
- // https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
127
- app.use(noopServiceWorkerMiddleware(paths.publicUrlOrPath));
84
+ // These must run AFTER `historyApiFallback` (push to end), otherwise SPA routes
85
+ // loaded inside the preview iframe receive the raw JS bundle instead of index.html.
86
+ middlewares.push(
87
+ // Redirect to `PUBLIC_URL` or `homepage` from `package.json` if url not match
88
+ redirectServedPath(paths.publicUrlOrPath),
89
+ // This service worker file is effectively a 'no-op' that will reset any
90
+ // previous service worker registered for the same host:port combination.
91
+ // We do this in development to avoid hitting the production cache if
92
+ // it used the same host and port.
93
+ // https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
94
+ noopServiceWorkerMiddleware(paths.publicUrlOrPath),
95
+ );
96
+
97
+ return middlewares;
128
98
  },
129
99
  };
130
100
  };
@@ -6,7 +6,9 @@ const createConfig = ({ input, output }) => ({
6
6
  entry: input,
7
7
  output: {
8
8
  ...output,
9
- library: "griddo",
9
+ // No library name on purpose: webpack 4 ignored it for commonjs2, but webpack 5
10
+ // appends it to the prefix (module.exports.griddo = ...), which would break the
11
+ // `_griddoConfig.default` read in scripts/griddo-sync-schemas.js.
10
12
  libraryTarget: "commonjs2",
11
13
  },
12
14
  resolve: {
@@ -47,6 +49,9 @@ module.exports = (withExternalConfig) => {
47
49
 
48
50
  return new Promise((resolve, reject) => {
49
51
  compiler.run((err, stats) => {
52
+ // Flush webpack 5's persistent cache before resolving/rejecting.
53
+ compiler.close(() => {});
54
+
50
55
  if (err) {
51
56
  console.log(err);
52
57
  return reject(err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "12.3.0-beta.0",
4
+ "version": "12.4.0",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -26,15 +26,15 @@
26
26
  "start:dev": "node --env-file=./env/.env.development ./scripts/start.js",
27
27
  "start:staging": "node --env-file=./env/.env.staging ./scripts/start.js",
28
28
  "// BUILD": "",
29
- "build": "NODE_OPTIONS=--openssl-legacy-provider node ./scripts/build.js",
30
- "build:dev": "NODE_OPTIONS=--openssl-legacy-provider node --env-file=./env/.env.development ./scripts/build.js",
29
+ "build": "node ./scripts/build.js",
30
+ "build:dev": "node --env-file=./env/.env.development ./scripts/build.js",
31
31
  "// TEST": "",
32
- "test": "jest",
33
- "test:watch": "jest --watch",
34
- "test:ci": "jest --runInBand",
35
- "test:coverage": "jest --coverage ",
36
- "test:dev": "npm run test -- --watch",
37
- "test:dev:coverage": "npm run test:coverage -- --watch",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest",
34
+ "test:ci": "vitest run --no-file-parallelism",
35
+ "test:coverage": "vitest run --coverage",
36
+ "test:dev": "vitest",
37
+ "test:dev:coverage": "vitest --coverage",
38
38
  "// LINT": "",
39
39
  "lint": "biome check",
40
40
  "format:write": "biome format --write"
@@ -46,7 +46,7 @@
46
46
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.16",
47
47
  "@styled-system/prop-types": "5.1.5",
48
48
  "@styled-system/theme-get": "5.1.2",
49
- "@svgr/webpack": "5.5.0",
49
+ "@svgr/webpack": "^8.1.0",
50
50
  "@testing-library/jest-dom": "5.16.5",
51
51
  "@testing-library/react": "13.4.0",
52
52
  "@testing-library/user-event": "14.6.1",
@@ -68,17 +68,16 @@
68
68
  "@types/uuid": "8.3.4",
69
69
  "@types/webpack-env": "1.18.0",
70
70
  "axios": "0.19.0",
71
- "babel-loader": "8.2.2",
71
+ "babel-loader": "^9.2.1",
72
72
  "babel-plugin-named-asset-import": "0.3.8",
73
- "babel-plugin-require-context-hook": "1.0.0",
74
73
  "babel-plugin-root-import": "6.6.0",
75
74
  "babel-plugin-styled-components": "2.1.4",
76
75
  "babel-preset-react-app": "10.1.0",
77
76
  "case-sensitive-paths-webpack-plugin": "2.4.0",
78
77
  "compress.js": "1.2.2",
79
78
  "connected-react-router": "6.9.3",
80
- "css-loader": "4.3.0",
81
- "css-minimizer-webpack-plugin": "3.0.2",
79
+ "css-loader": "^6.11.0",
80
+ "css-minimizer-webpack-plugin": "^5.0.0",
82
81
  "date-fns": "2.30.0",
83
82
  "dotenv": "6.2.0",
84
83
  "dotenv-expand": "5.1.0",
@@ -87,34 +86,30 @@
87
86
  "draftjs-to-html": "0.9.1",
88
87
  "enhanced-resolve": "5.18.1",
89
88
  "env-cmd": "10.1.0",
90
- "file-loader": "6.2.0",
91
89
  "find-up": "5.0.0",
92
90
  "fs-extra": "7.0.1",
93
91
  "html-to-draftjs": "1.5.0",
94
92
  "html-to-image": "1.11.7",
95
- "html-webpack-plugin": "4.5.0",
96
- "identity-obj-proxy": "3.0.0",
93
+ "html-webpack-plugin": "^5.5.0",
97
94
  "ignore-loader": "0.1.2",
98
95
  "is-wsl": "3.1.0",
99
96
  "jsdom": "20.0.3",
100
97
  "jsdom-global": "3.0.2",
101
98
  "lodash.isequal": "4.5.0",
102
99
  "markdown-draft-js": "2.4.0",
103
- "mini-css-extract-plugin": "0.11.3",
104
- "optimize-css-assets-webpack-plugin": "6.0.1",
100
+ "mini-css-extract-plugin": "^2.7.0",
101
+ "node-polyfill-webpack-plugin": "^3.0.0",
105
102
  "pkg-dir": "5.0.0",
106
- "pnp-webpack-plugin": "1.7.0",
107
103
  "polished": "3.4.1",
108
104
  "postcss": "8.5.3",
109
- "postcss-flexbugs-fixes": "4.1.0",
110
- "postcss-loader": "3.0.0",
105
+ "postcss-flexbugs-fixes": "^5.0.2",
106
+ "postcss-loader": "^7.3.0",
111
107
  "postcss-normalize": "7.0.1",
112
108
  "postcss-preset-env": "6.7.0",
113
- "postcss-safe-parser": "6.0.0",
114
109
  "react": "18.2.0",
115
110
  "react-app-polyfill": "1.0.6",
116
111
  "react-datepicker": "4.25.0",
117
- "react-dev-utils": "11.0.4",
112
+ "react-dev-utils": "^12.0.1",
118
113
  "react-dom": "18.2.0",
119
114
  "react-draft-wysiwyg": "1.15.0",
120
115
  "react-easy-crop": "5.5.7",
@@ -135,24 +130,21 @@
135
130
  "resolve": "1.22.10",
136
131
  "resolve-url-loader": "4.0.0",
137
132
  "sass-alias": "1.0.5",
138
- "sass-loader": "10.4.1",
133
+ "sass-loader": "^16.0.7",
139
134
  "semver": "7.6.3",
140
135
  "slick-carousel": "1.8.1",
141
136
  "source-map-loader": "1.1.3",
142
137
  "string-replace-loader": "3.1.0",
143
- "style-loader": "1.3.0",
138
+ "style-loader": "^3.3.0",
144
139
  "styled-components": "5.3.11",
145
140
  "styled-reset": "4.0.1",
146
141
  "styled-system": "5.1.5",
147
- "terser-webpack-plugin": "1.4.1",
148
- "ts-pnp": "1.1.4",
142
+ "terser-webpack-plugin": "^5.3.0",
149
143
  "typescript": "4.9.5",
150
- "url-loader": "4.1.1",
151
144
  "uuid": "8.3.2",
152
- "webpack": "4.47.0",
153
- "webpack-dev-server": "3.11.1",
154
- "webpack-manifest-plugin": "2.2.0",
155
- "workbox-webpack-plugin": "5.1.4"
145
+ "webpack": "^5.88.0",
146
+ "webpack-dev-server": "^4.15.0",
147
+ "webpack-manifest-plugin": "^5.0.0"
156
148
  },
157
149
  "devDependencies": {
158
150
  "@babel/core": "7.26.10",
@@ -165,35 +157,23 @@
165
157
  "@babel/preset-react": "7.26.3",
166
158
  "@babel/preset-typescript": "7.26.0",
167
159
  "@biomejs/biome": "2.3.8",
168
- "@types/jest": "27.5.2",
169
160
  "@types/redux-mock-store": "1.0.3",
161
+ "@vitest/coverage-v8": "4.1.6",
170
162
  "axios-mock-adapter": "1.22.0",
171
- "babel-jest": "27.5.1",
172
- "jest": "27.5.1",
173
- "jest-environment-jsdom": "27.5.1",
174
- "jest-environment-jsdom-fourteen": "0.1.0",
175
- "jest-mock-extended": "2.0.9",
176
- "jest-resolve": "24.9.0",
177
- "jest-styled-components": "7.1.1",
178
- "jest-watch-typeahead": "0.4.0",
179
163
  "prettier": "3.4.2",
180
164
  "react-test-renderer": "18.2.0",
181
165
  "redux-mock-store": "1.5.5",
182
166
  "redux-thunk": "2.4.2",
183
- "ts-jest": "27.1.5",
184
- "ts-node": "10.9.2"
167
+ "ts-node": "10.9.2",
168
+ "vite": "7.0.2",
169
+ "vitest": "4.1.6",
170
+ "vitest-mock-extended": "5.1.1",
171
+ "vitest-styled-components": "1.0.0"
185
172
  },
186
173
  "babel": {
187
174
  "presets": [
188
175
  "react-app"
189
- ],
190
- "env": {
191
- "test": {
192
- "plugins": [
193
- "require-context-hook"
194
- ]
195
- }
196
- }
176
+ ]
197
177
  },
198
178
  "browserslist": {
199
179
  "production": [
@@ -219,5 +199,5 @@
219
199
  "publishConfig": {
220
200
  "access": "public"
221
201
  },
222
- "gitHead": "073925ad301a49b5b44f3d838fb4259cb9681a3c"
202
+ "gitHead": "e78fd612e55753bf9a04aa1e4020b582be9026af"
223
203
  }
@@ -0,0 +1,6 @@
1
+ <svg width="72" height="81" viewBox="0 0 72 81" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 0C8.79086 0 7 1.79086 7 4V77C7 79.2091 8.79086 81 11 81H62C64.2091 81 66 79.2091 66 77V21.5663C66 20.5593 65.6202 19.5894 64.9364 18.8502L48.6875 1.28383C47.9304 0.465349 46.8661 0 45.7511 0H11Z" fill="#9BB320"/>
3
+ <path d="M46.5 20.5V3L62.5 20.5H46.5Z" fill="white"/>
4
+ <rect y="28" width="72" height="33" rx="5" fill="#9BB320"/>
5
+ <path d="M14.7738 34.1364H20.0835L25.6914 47.8182H25.93L31.538 34.1364H36.8477V54.5H32.6715V41.2457H32.5025L27.2326 54.4006H24.3888L19.119 41.196H18.9499V54.5H14.7738V34.1364ZM47.6136 54.5H40.3949V34.1364H47.6733C49.7216 34.1364 51.4848 34.544 52.9631 35.3594C54.4413 36.1681 55.5781 37.3314 56.3736 38.8494C57.1757 40.3674 57.5767 42.1837 57.5767 44.2983C57.5767 46.4195 57.1757 48.2424 56.3736 49.767C55.5781 51.2917 54.4347 52.4616 52.9432 53.277C51.4583 54.0923 49.6818 54.5 47.6136 54.5ZM44.7003 50.8111H47.4347C48.7074 50.8111 49.7779 50.5857 50.6463 50.1349C51.5213 49.6776 52.1776 48.9716 52.6151 48.017C53.0592 47.0559 53.2812 45.8163 53.2812 44.2983C53.2812 42.7936 53.0592 41.5639 52.6151 40.6094C52.1776 39.6548 51.5246 38.9522 50.6562 38.5014C49.7879 38.0507 48.7173 37.8253 47.4446 37.8253H44.7003V50.8111Z" fill="white"/>
6
+ </svg>
package/scripts/build.js CHANGED
@@ -143,6 +143,10 @@ function build(previousFileSizes) {
143
143
  } else {
144
144
  messages = formatWebpackMessages(stats.toJson({ all: false, warnings: true, errors: true }));
145
145
  }
146
+
147
+ // Flush webpack 5's persistent filesystem cache to disk before resolving.
148
+ compiler.close(() => {});
149
+
146
150
  if (messages.errors.length) {
147
151
  // Only keep the first error. Others are often indicative
148
152
  // of the same problem, but confuse the reader with noise.
package/scripts/start.js CHANGED
@@ -62,29 +62,58 @@ checkBrowsers(paths.appPath, isInteractive)
62
62
  const useTypeScript = fs.existsSync(paths.appTsConfig);
63
63
  const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === "true";
64
64
  const urls = prepareUrls(protocol, HOST, port, paths.publicUrlOrPath.slice(0, -1));
65
- const devSocket = {
66
- warnings: (warnings) => devServer.sockWrite(devServer.sockets, "warnings", warnings),
67
- errors: (errors) => devServer.sockWrite(devServer.sockets, "errors", errors),
68
- };
69
65
  // Create a webpack compiler that is configured with custom messages.
70
66
  const compiler = createCompiler({
71
67
  appName,
72
68
  config,
73
- devSocket,
74
69
  urls,
75
70
  useYarn,
76
71
  useTypeScript,
77
72
  tscCompileOnError,
78
73
  webpack,
79
74
  });
75
+ // Replace CRA's "You can now view..." block with the Griddo banner.
76
+ // Registered after createCompiler so it runs after CRA's done-hook:
77
+ // clean builds clear that output, builds with warnings keep it visible.
78
+ const { version } = require(paths.appPackageJson);
79
+ const banner = [
80
+ chalk.cyan(" ██████╗ ██████╗ ██╗██████╗ ██████╗ ██████╗ █████╗ ██╗ ██╗"),
81
+ chalk.cyan("██╔════╝ ██╔══██╗██║██╔══██╗██╔══██╗██╔═══██╗ ██╔══██╗╚██╗██╔╝"),
82
+ chalk.cyan("██║ ███╗██████╔╝██║██║ ██║██║ ██║██║ ██║ ███████║ ╚███╔╝"),
83
+ chalk.cyan("██║ ██║██╔══██╗██║██║ ██║██║ ██║██║ ██║ ██╔══██║ ██╔██╗"),
84
+ chalk.cyan("╚██████╔╝██║ ██║██║██████╔╝██████╔╝╚██████╔╝ ██║ ██║██╔╝ ██╗"),
85
+ chalk.cyan(" ╚═════╝ ╚═╝ ╚═╝╚═╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝"),
86
+ chalk.dim(`v${version}`),
87
+ "",
88
+ chalk.dim("─".repeat(63)),
89
+ "",
90
+ `${chalk.bold("Local:")} ${urls.localUrlForTerminal}`,
91
+ ...(urls.lanUrlForTerminal ? [`${chalk.bold("On Your Network:")} ${urls.lanUrlForTerminal}`] : []),
92
+ ]
93
+ .map((line) => ` ${line}`)
94
+ .join("\n");
95
+ compiler.hooks.done.tap("griddoStartBanner", (stats) => {
96
+ const statsData = stats.toJson({ all: false, errors: true, warnings: true });
97
+ if (statsData.errors.length) {
98
+ return;
99
+ }
100
+ if (isInteractive && !statsData.warnings.length) {
101
+ clearConsole();
102
+ }
103
+ console.log(`\n${banner}\n`);
104
+ });
80
105
  // Load proxy config
81
106
  const proxySetting = require(paths.appPackageJson).proxy;
82
107
  const proxyConfig = prepareProxy(proxySetting, paths.appPublic, paths.publicUrlOrPath);
83
108
  // Serve webpack assets generated by the compiler over a web server.
84
- const serverConfig = createDevServerConfig(proxyConfig, urls.lanUrlForConfig);
85
- const devServer = new WebpackDevServer(compiler, serverConfig);
86
- // Launch WebpackDevServer.
87
- devServer.listen(port, HOST, (err) => {
109
+ const serverConfig = {
110
+ ...createDevServerConfig(proxyConfig, urls.lanUrlForConfig),
111
+ host: HOST,
112
+ port,
113
+ };
114
+ const devServer = new WebpackDevServer(serverConfig, compiler);
115
+ // Launch WebpackDevServer (WDS4 replaces `listen(port, host, cb)` with `startCallback(cb)`).
116
+ devServer.startCallback((err) => {
88
117
  if (err) {
89
118
  return console.log(err);
90
119
  }
@@ -17,12 +17,12 @@ describe("Action menu component rendering", () => {
17
17
  {
18
18
  label: "Option 1",
19
19
  icon: "modified",
20
- action: jest.fn(),
20
+ action: vi.fn(),
21
21
  },
22
22
  {
23
23
  label: "Option 2",
24
24
  icon: "active",
25
- action: jest.fn(),
25
+ action: vi.fn(),
26
26
  },
27
27
  ],
28
28
  };
@@ -48,12 +48,12 @@ describe("Action menu events", () => {
48
48
  {
49
49
  label: "Option 1",
50
50
  icon: "modified",
51
- action: jest.fn(),
51
+ action: vi.fn(),
52
52
  },
53
53
  {
54
54
  label: "Option 2",
55
55
  icon: "active",
56
- action: jest.fn(),
56
+ action: vi.fn(),
57
57
  },
58
58
  ],
59
59
  };
@@ -82,7 +82,7 @@ describe("Action menu events", () => {
82
82
  {
83
83
  label: "Option 1",
84
84
  icon: "modified",
85
- action: jest.fn(),
85
+ action: vi.fn(),
86
86
  helpText,
87
87
  },
88
88
  ],
@@ -111,13 +111,13 @@ describe("Action menu events", () => {
111
111
  {
112
112
  label: "Option 1",
113
113
  icon: "modified",
114
- action: jest.fn(),
114
+ action: vi.fn(),
115
115
  color: true,
116
116
  },
117
117
  {
118
118
  label: "Option 2",
119
119
  icon: "active",
120
- action: jest.fn(),
120
+ action: vi.fn(),
121
121
  },
122
122
  ],
123
123
  };
@@ -146,12 +146,12 @@ describe("Action menu events", () => {
146
146
  {
147
147
  label: "Option 1",
148
148
  icon: "modified",
149
- action: jest.fn(),
149
+ action: vi.fn(),
150
150
  },
151
151
  {
152
152
  label: "Option 2",
153
153
  icon: "active",
154
- action: jest.fn(),
154
+ action: vi.fn(),
155
155
  },
156
156
  ],
157
157
  };
@@ -178,7 +178,7 @@ describe("Action menu events", () => {
178
178
  });
179
179
 
180
180
  it("should call action on item click and hide component", () => {
181
- const actionMock = jest.fn();
181
+ const actionMock = vi.fn();
182
182
  const defaultProps: IActionMenuProps = {
183
183
  icon: "more",
184
184
  options: [
@@ -210,7 +210,7 @@ describe("Action menu events", () => {
210
210
  });
211
211
 
212
212
  it("should show disabled item", () => {
213
- const actionMock = jest.fn();
213
+ const actionMock = vi.fn();
214
214
  const defaultProps: IActionMenuProps = {
215
215
  icon: "more",
216
216
  options: [
@@ -223,7 +223,7 @@ describe("Action menu events", () => {
223
223
  {
224
224
  label: "Option 2",
225
225
  icon: "active",
226
- action: jest.fn(),
226
+ action: vi.fn(),
227
227
  },
228
228
  ],
229
229
  };
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
 
3
3
  import { ThemeProvider } from "styled-components";
4
4
  import { render, cleanup, screen, fireEvent } from "@testing-library/react";
5
- import { mock } from "jest-mock-extended";
5
+ import { mock } from "vitest-mock-extended";
6
6
  import "@testing-library/jest-dom";
7
7
 
8
8
  import { parseTheme } from "@ax/helpers";
@@ -83,7 +83,7 @@ describe("Breadcrumb component rendering", () => {
83
83
  ];
84
84
 
85
85
  defaultProps.breadcrumb = breadcrumbItemMock;
86
- const setSelectedContentMock = jest.fn();
86
+ const setSelectedContentMock = vi.fn();
87
87
  defaultProps.setSelectedContent = setSelectedContentMock;
88
88
 
89
89
  render(