@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.
- package/config/__tests__/webpack5-migration.test.js +442 -0
- package/config/{jest/componentsMock.js → tests/componentsMock.cjs} +4 -1
- package/config/tests/reactEasyCropMock.js +15 -0
- package/config/tests/reactTimezoneMock.js +14 -0
- package/config/tests/setup.ts +41 -0
- package/config/webpack.config.js +183 -189
- package/config/webpackDevServer.config.js +63 -93
- package/config/webpackSchemas.config.js +6 -1
- package/package.json +33 -53
- package/public/img/icons/markdown.svg +6 -0
- package/scripts/build.js +4 -0
- package/scripts/start.js +38 -9
- package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +12 -12
- package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +2 -2
- package/src/__tests__/components/Browser/Browser.test.tsx +17 -25
- package/src/__tests__/components/BulkSelectionOptions/BulkSelectionOptions.test.tsx +3 -3
- package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +3 -2
- package/src/__tests__/components/ConfigPanel/ConfigPanel.test.tsx +4 -4
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/ConnectedField.test.tsx +2 -2
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/NavConnectedField/NavConnectedField.test.tsx +2 -2
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/Field.test.tsx +3 -3
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/PageConnectedField.test.tsx +17 -14
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/TemplateManager.test.tsx +4 -4
- package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +7 -6
- package/src/__tests__/components/ConfigPanel/GlobalPageForm/GlobalPageForm.test.tsx +11 -11
- package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +11 -10
- package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +2 -2
- package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +2 -2
- package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +4 -3
- package/src/__tests__/components/ContextMenu/ContextMenu.test.tsx +24 -24
- package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +6 -5
- package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +1 -1
- package/src/__tests__/components/EmptyState/EmptyState.test.tsx +2 -2
- package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +11 -11
- package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +4 -4
- package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +3 -3
- package/src/__tests__/components/Fields/AnalyticsField/PageAnalytics/PageAnalytics.test.tsx +4 -4
- package/src/__tests__/components/Fields/AnalyticsField/StructuredDataAnalytics/StructuredDataAnalytics.test.tsx +3 -3
- package/src/__tests__/components/Fields/ArrayFieldGroup/ArrayFieldGroup.test.tsx +6 -5
- package/src/__tests__/components/Fields/AsyncCheckGroup/AsyncCheckGroup.test.tsx +19 -18
- package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +4 -3
- package/src/__tests__/components/Fields/Button/Button.test.tsx +4 -3
- package/src/__tests__/components/Fields/CheckField/CheckField.test.tsx +5 -5
- package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +10 -10
- package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +7 -6
- package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +3 -3
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +45 -45
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +7 -6
- package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +7 -7
- package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +55 -55
- package/src/__tests__/components/Fields/ConditionalField/ConditionalField.test.tsx +1 -1
- package/src/__tests__/components/Fields/DateField/DateField.test.tsx +6 -5
- package/src/__tests__/components/Fields/FieldGroup/FieldGroup.test.tsx +2 -2
- package/src/__tests__/components/Fields/FileField/FileField.test.tsx +4 -4
- package/src/__tests__/components/Fields/HeadingField/HeadingField.test.tsx +2 -2
- package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +3 -3
- package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +8 -7
- package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +9 -8
- package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +1 -1
- package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +7 -6
- package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +1 -1
- package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +8 -8
- package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +2 -2
- package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +17 -16
- package/src/__tests__/components/Fields/RichText/RichText.test.tsx +1 -1
- package/src/__tests__/components/Fields/Select/Select.test.tsx +1 -1
- package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +5 -4
- package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +2 -2
- package/src/__tests__/components/Fields/TagField/TagField.test.tsx +9 -9
- package/src/__tests__/components/Fields/TextArea/TextArea.test.tsx +13 -9
- package/src/__tests__/components/Fields/TextField/TextField.test.tsx +8 -8
- package/src/__tests__/components/Fields/TimeField/HourInput/HourInput.test.tsx +7 -6
- package/src/__tests__/components/Fields/TimeField/TimeField.test.tsx +4 -3
- package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +2 -2
- package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +6 -6
- package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +13 -13
- package/src/__tests__/components/Fields/UniqueCheck/UniqueCheck.test.tsx +1 -1
- package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +20 -19
- package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +3 -2
- package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +4 -3
- package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +1 -1
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.atoms.test.tsx +11 -11
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.helpers.test.tsx +13 -14
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +28 -28
- package/src/__tests__/components/FieldsBehavior/FieldsBehavior.test.tsx +15 -14
- package/src/__tests__/components/FloatingMenu/FloatingMenu.test.tsx +36 -35
- package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +10 -10
- package/src/__tests__/components/GuardModal/GuardModal.test.tsx +1 -1
- package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorItem/ErrorItem.test.tsx +11 -11
- package/src/__tests__/components/HeadingsPreviewModal/ErrorsBanner/ErrorsBanner.test.tsx +4 -4
- package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.test.tsx +15 -14
- package/src/__tests__/components/IconAction/IconAction.test.tsx +2 -2
- package/src/__tests__/components/ImageDragAndDrop/CropStep/CropStep.test.tsx +3 -3
- package/src/__tests__/components/ImageDragAndDrop/ImageDragAndDrop.test.tsx +7 -7
- package/src/__tests__/components/KeywordsPreviewModal/KeywordItem/KeywordItem.test.tsx +5 -5
- package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.test.tsx +14 -13
- package/src/__tests__/components/KeywordsPreviewModal/atoms.test.tsx +13 -13
- package/src/__tests__/components/LanguageMenu/LanguageMenu.test.tsx +6 -6
- package/src/__tests__/components/Lists/Lists.test.tsx +1 -1
- package/src/__tests__/components/Loader/Loader.test.tsx +1 -1
- package/src/__tests__/components/Login/Login.test.tsx +32 -32
- package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +10 -9
- package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +21 -21
- package/src/__tests__/components/MenuItem/MenuItem.test.tsx +5 -5
- package/src/__tests__/components/Modal/Modal.test.tsx +20 -20
- package/src/__tests__/components/Nav/Nav.test.tsx +2 -2
- package/src/__tests__/components/Notification/Notification.test.tsx +2 -2
- package/src/__tests__/components/Pagination/Pagination.test.tsx +13 -14
- package/src/__tests__/components/ProfileImage/ProfileImage.test.tsx +6 -7
- package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +4 -3
- package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +10 -11
- package/src/__tests__/components/RestrictionsModal/CurrentAccessList/CurrentAccessList.test.tsx +7 -6
- package/src/__tests__/components/RestrictionsModal/OptionsStep/OptionsStep.test.tsx +12 -11
- package/src/__tests__/components/RestrictionsModal/RestrictionsModal.test.tsx +11 -10
- package/src/__tests__/components/RestrictionsModal/RolesList/RolesList.test.tsx +8 -8
- package/src/__tests__/components/RestrictionsModal/UsersList/UsersList.test.tsx +16 -15
- package/src/__tests__/components/SearchField/SearchField.test.tsx +13 -13
- package/src/__tests__/components/SideModal/SideModal.test.tsx +25 -23
- package/src/__tests__/components/SubNav/SubNav.test.tsx +1 -1
- package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +9 -8
- package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +5 -5
- package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +8 -8
- package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +11 -10
- package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +10 -10
- package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +5 -5
- package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +10 -9
- package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +9 -9
- package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +8 -8
- package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +5 -5
- package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +8 -8
- package/src/__tests__/components/TableList/TableList.test.tsx +4 -4
- package/src/__tests__/components/Tabs/Tabs.test.tsx +8 -9
- package/src/__tests__/components/Tag/Tag.test.tsx +3 -3
- package/src/__tests__/components/Toast/Toast.test.tsx +6 -6
- package/src/__tests__/gainup-trace.test.ts +67 -0
- package/src/__tests__/hooks/modals.test.tsx +4 -4
- package/src/__tests__/hooks/users.test.tsx +6 -5
- package/src/__tests__/modules/FileDrive/MarkdownFormat.test.tsx +58 -0
- package/src/__tests__/modules/FramePreview/FramePreview.test.tsx +40 -39
- package/src/__tests__/modules/FramePreview/HeadingsOverlay/HeadingsOverlay.test.tsx +11 -11
- package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +2 -2
- package/src/__tests__/modules/Settings/Social/Social.test.tsx +4 -3
- package/src/__tests__/modules/Sites/Sites.test.tsx +5 -4
- package/src/__tests__/modules/Sites/SitesList/ListView/BulkHeader/BulkHeader.test.tsx +2 -2
- package/src/__tests__/modules/Sites/SitesList/SitesList.test.tsx +7 -6
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/DataStep/DataStep.test.tsx +6 -6
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/FinalStep/FinalStep.test.tsx +4 -4
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/CropView/CropView.test.tsx +3 -3
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/ImageStep.test.tsx +9 -5
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/UploadView/UploadView.test.tsx +8 -6
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/TimezoneStep/TimezoneStep.test.tsx +7 -7
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/WelcomeModal.test.tsx +1 -1
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/WelcomeStep/WelcomeStep.test.tsx +3 -3
- package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +3 -3
- package/src/__tests__/modules/Users/Roles/Roles.test.tsx +11 -10
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +3 -3
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +3 -3
- package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +3 -3
- package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +6 -5
- package/src/__tests__/modules/Users/UserList/UserItem/UserItem.test.tsx +9 -9
- package/src/__tests__/modules/Users/UserList/UserList.test.tsx +4 -4
- package/src/components/Flag/components/index.ts +30 -0
- package/src/components/Flag/index.tsx +3 -5
- package/src/components/Icon/components/index.ts +229 -0
- package/src/components/Icon/index.tsx +3 -7
- package/src/constants/index.ts +1 -1
- package/src/helpers/files.tsx +2 -0
- package/src/modules/App/Routing/NavMenu/index.tsx +4 -2
- package/src/modules/FileDrive/FileFilters/Type/index.tsx +1 -0
- package/tsconfig.json +1 -1
- package/config/jest/cssTransform.js +0 -14
- package/config/jest/fileMock.js +0 -1
- package/config/jest/fileTransform.js +0 -40
- package/config/jest/reactEasyCropMock.js +0 -15
- package/config/jest/reactTimezoneMock.js +0 -13
- package/config/jest/setup.js +0 -31
- package/config/jest/styleMock.js +0 -1
- package/config/pnpTs.js +0 -15
- package/src/__tests__/aiup-trace.test.ts +0 -23
- /package/config/{jest/test-utils.js → tests/test-utils.jsx} +0 -0
- /package/src/components/Flag/components/{Ca_ES.js → Ca_ES.jsx} +0 -0
- /package/src/components/Flag/components/{De_DE.js → De_DE.jsx} +0 -0
- /package/src/components/Flag/components/{En_GB.js → En_GB.jsx} +0 -0
- /package/src/components/Flag/components/{Es_ES.js → Es_ES.jsx} +0 -0
- /package/src/components/Flag/components/{Eu_ES.js → Eu_ES.jsx} +0 -0
- /package/src/components/Flag/components/{Fr_FR.js → Fr_FR.jsx} +0 -0
- /package/src/components/Flag/components/{It_IT.js → It_IT.jsx} +0 -0
- /package/src/components/Flag/components/{Pt_PT.js → Pt_PT.jsx} +0 -0
- /package/src/components/Icon/components/{Active.js → Active.jsx} +0 -0
- /package/src/components/Icon/components/{Add.js → Add.jsx} +0 -0
- /package/src/components/Icon/components/{AddCircle.js → AddCircle.jsx} +0 -0
- /package/src/components/Icon/components/{Alert.js → Alert.jsx} +0 -0
- /package/src/components/Icon/components/{AlignLeft.js → AlignLeft.jsx} +0 -0
- /package/src/components/Icon/components/{Back.js → Back.jsx} +0 -0
- /package/src/components/Icon/components/{BulletList.js → BulletList.jsx} +0 -0
- /package/src/components/Icon/components/{Button.js → Button.jsx} +0 -0
- /package/src/components/Icon/components/{Calendar.js → Calendar.jsx} +0 -0
- /package/src/components/Icon/components/{CancelEvent.js → CancelEvent.jsx} +0 -0
- /package/src/components/Icon/components/{Category.js → Category.jsx} +0 -0
- /package/src/components/Icon/components/{Change.js → Change.jsx} +0 -0
- /package/src/components/Icon/components/{Close.js → Close.jsx} +0 -0
- /package/src/components/Icon/components/{ClosePanel.js → ClosePanel.jsx} +0 -0
- /package/src/components/Icon/components/{CodeBody.js → CodeBody.jsx} +0 -0
- /package/src/components/Icon/components/{CodeHead.js → CodeHead.jsx} +0 -0
- /package/src/components/Icon/components/{CodeHeadBody.js → CodeHeadBody.jsx} +0 -0
- /package/src/components/Icon/components/{Collapsed.js → Collapsed.jsx} +0 -0
- /package/src/components/Icon/components/{ColorPicker.js → ColorPicker.jsx} +0 -0
- /package/src/components/Icon/components/{Compose.js → Compose.jsx} +0 -0
- /package/src/components/Icon/components/{Copy.js → Copy.jsx} +0 -0
- /package/src/components/Icon/components/{Copy2.js → Copy2.jsx} +0 -0
- /package/src/components/Icon/components/{Data.js → Data.jsx} +0 -0
- /package/src/components/Icon/components/{DataAdd.js → DataAdd.jsx} +0 -0
- /package/src/components/Icon/components/{Deactivate.js → Deactivate.jsx} +0 -0
- /package/src/components/Icon/components/{Delete.js → Delete.jsx} +0 -0
- /package/src/components/Icon/components/{Desktop.js → Desktop.jsx} +0 -0
- /package/src/components/Icon/components/{Disabled.js → Disabled.jsx} +0 -0
- /package/src/components/Icon/components/{Done.js → Done.jsx} +0 -0
- /package/src/components/Icon/components/{DownArrow.js → DownArrow.jsx} +0 -0
- /package/src/components/Icon/components/{Download.js → Download.jsx} +0 -0
- /package/src/components/Icon/components/{Drag.js → Drag.jsx} +0 -0
- /package/src/components/Icon/components/{Duplicate.js → Duplicate.jsx} +0 -0
- /package/src/components/Icon/components/{Edit.js → Edit.jsx} +0 -0
- /package/src/components/Icon/components/{Empty.js → Empty.jsx} +0 -0
- /package/src/components/Icon/components/{EmptyCheck.js → EmptyCheck.jsx} +0 -0
- /package/src/components/Icon/components/{Extend.js → Extend.jsx} +0 -0
- /package/src/components/Icon/components/{File.js → File.jsx} +0 -0
- /package/src/components/Icon/components/{Filter.js → Filter.jsx} +0 -0
- /package/src/components/Icon/components/{Form.js → Form.jsx} +0 -0
- /package/src/components/Icon/components/{FullArrowDown.js → FullArrowDown.jsx} +0 -0
- /package/src/components/Icon/components/{FullArrowLeft.js → FullArrowLeft.jsx} +0 -0
- /package/src/components/Icon/components/{FullArrowRight.js → FullArrowRight.jsx} +0 -0
- /package/src/components/Icon/components/{FullArrowUp.js → FullArrowUp.jsx} +0 -0
- /package/src/components/Icon/components/{Grid.js → Grid.jsx} +0 -0
- /package/src/components/Icon/components/{Grid2.js → Grid2.jsx} +0 -0
- /package/src/components/Icon/components/{GriddoLogo.js → GriddoLogo.jsx} +0 -0
- /package/src/components/Icon/components/{HeroCard.js → HeroCard.jsx} +0 -0
- /package/src/components/Icon/components/{Hide.js → Hide.jsx} +0 -0
- /package/src/components/Icon/components/{History.js → History.jsx} +0 -0
- /package/src/components/Icon/components/{Home.js → Home.jsx} +0 -0
- /package/src/components/Icon/components/{Ia.js → Ia.jsx} +0 -0
- /package/src/components/Icon/components/{Image.js → Image.jsx} +0 -0
- /package/src/components/Icon/components/{Info.js → Info.jsx} +0 -0
- /package/src/components/Icon/components/{Laptop.js → Laptop.jsx} +0 -0
- /package/src/components/Icon/components/{LeftArrow.js → LeftArrow.jsx} +0 -0
- /package/src/components/Icon/components/{Link.js → Link.jsx} +0 -0
- /package/src/components/Icon/components/{Lock.js → Lock.jsx} +0 -0
- /package/src/components/Icon/components/{Log.js → Log.jsx} +0 -0
- /package/src/components/Icon/components/{Map.js → Map.jsx} +0 -0
- /package/src/components/Icon/components/{Menu.js → Menu.jsx} +0 -0
- /package/src/components/Icon/components/{Microsoft.js → Microsoft.jsx} +0 -0
- /package/src/components/Icon/components/{Modified.js → Modified.jsx} +0 -0
- /package/src/components/Icon/components/{Modules.js → Modules.jsx} +0 -0
- /package/src/components/Icon/components/{More.js → More.jsx} +0 -0
- /package/src/components/Icon/components/{NewFolder.js → NewFolder.jsx} +0 -0
- /package/src/components/Icon/components/{Offline.js → Offline.jsx} +0 -0
- /package/src/components/Icon/components/{OfflinePending.js → OfflinePending.jsx} +0 -0
- /package/src/components/Icon/components/{OpenOutside.js → OpenOutside.jsx} +0 -0
- /package/src/components/Icon/components/{OpenPanel.js → OpenPanel.jsx} +0 -0
- /package/src/components/Icon/components/{OutOfSection.js → OutOfSection.jsx} +0 -0
- /package/src/components/Icon/components/{Page.js → Page.jsx} +0 -0
- /package/src/components/Icon/components/{Party.js → Party.jsx} +0 -0
- /package/src/components/Icon/components/{Paste.js → Paste.jsx} +0 -0
- /package/src/components/Icon/components/{Phone.js → Phone.jsx} +0 -0
- /package/src/components/Icon/components/{PhotoLibrary.js → PhotoLibrary.jsx} +0 -0
- /package/src/components/Icon/components/{Power.js → Power.jsx} +0 -0
- /package/src/components/Icon/components/{Preview.js → Preview.jsx} +0 -0
- /package/src/components/Icon/components/{Project.js → Project.jsx} +0 -0
- /package/src/components/Icon/components/{QrCode.js → QrCode.jsx} +0 -0
- /package/src/components/Icon/components/{Question.js → Question.jsx} +0 -0
- /package/src/components/Icon/components/{Refresh.js → Refresh.jsx} +0 -0
- /package/src/components/Icon/components/{Republish.js → Republish.jsx} +0 -0
- /package/src/components/Icon/components/{RightArrow.js → RightArrow.jsx} +0 -0
- /package/src/components/Icon/components/{Scheduled.js → Scheduled.jsx} +0 -0
- /package/src/components/Icon/components/{Search.js → Search.jsx} +0 -0
- /package/src/components/Icon/components/{SendEmail.js → SendEmail.jsx} +0 -0
- /package/src/components/Icon/components/{Settings.js → Settings.jsx} +0 -0
- /package/src/components/Icon/components/{Share.js → Share.jsx} +0 -0
- /package/src/components/Icon/components/{Subsection.js → Subsection.jsx} +0 -0
- /package/src/components/Icon/components/{Success.js → Success.jsx} +0 -0
- /package/src/components/Icon/components/{SuccessSolid.js → SuccessSolid.jsx} +0 -0
- /package/src/components/Icon/components/{Sync.js → Sync.jsx} +0 -0
- /package/src/components/Icon/components/{Tablet.js → Tablet.jsx} +0 -0
- /package/src/components/Icon/components/{Translate.js → Translate.jsx} +0 -0
- /package/src/components/Icon/components/{Unlink.js → Unlink.jsx} +0 -0
- /package/src/components/Icon/components/{UpArrow.js → UpArrow.jsx} +0 -0
- /package/src/components/Icon/components/{UploadFile.js → UploadFile.jsx} +0 -0
- /package/src/components/Icon/components/{UploadPending.js → UploadPending.jsx} +0 -0
- /package/src/components/Icon/components/{UrlLink.js → UrlLink.jsx} +0 -0
- /package/src/components/Icon/components/{User.js → User.jsx} +0 -0
- /package/src/components/Icon/components/{Users.js → Users.jsx} +0 -0
- /package/src/components/Icon/components/{Video.js → Video.jsx} +0 -0
- /package/src/components/Icon/components/{View.js → View.jsx} +0 -0
- /package/src/components/Icon/components/{Warning.js → Warning.jsx} +0 -0
- /package/src/components/Icon/components/{Web.js → Web.jsx} +0 -0
- /package/src/components/Icon/components/{Working.js → Working.jsx} +0 -0
- /package/src/components/Loader/components/{Circle.js → Circle.jsx} +0 -0
- /package/src/components/Loader/components/{Dots.js → Dots.jsx} +0 -0
- /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;
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
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
|
-
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
|
|
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
|
-
//
|
|
123
|
-
//
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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:
|
|
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.
|
|
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": "
|
|
30
|
-
"build:dev": "
|
|
29
|
+
"build": "node ./scripts/build.js",
|
|
30
|
+
"build:dev": "node --env-file=./env/.env.development ./scripts/build.js",
|
|
31
31
|
"// TEST": "",
|
|
32
|
-
"test": "
|
|
33
|
-
"test:watch": "
|
|
34
|
-
"test:ci": "
|
|
35
|
-
"test:coverage": "
|
|
36
|
-
"test:dev": "
|
|
37
|
-
"test:dev:coverage": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
81
|
-
"css-minimizer-webpack-plugin": "
|
|
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": "
|
|
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": "
|
|
104
|
-
"
|
|
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": "
|
|
110
|
-
"postcss-loader": "3.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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
153
|
-
"webpack-dev-server": "
|
|
154
|
-
"webpack-manifest-plugin": "
|
|
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-
|
|
184
|
-
"
|
|
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": "
|
|
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 =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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:
|
|
20
|
+
action: vi.fn(),
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
label: "Option 2",
|
|
24
24
|
icon: "active",
|
|
25
|
-
action:
|
|
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:
|
|
51
|
+
action: vi.fn(),
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
label: "Option 2",
|
|
55
55
|
icon: "active",
|
|
56
|
-
action:
|
|
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:
|
|
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:
|
|
114
|
+
action: vi.fn(),
|
|
115
115
|
color: true,
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
label: "Option 2",
|
|
119
119
|
icon: "active",
|
|
120
|
-
action:
|
|
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:
|
|
149
|
+
action: vi.fn(),
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
label: "Option 2",
|
|
153
153
|
icon: "active",
|
|
154
|
-
action:
|
|
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 =
|
|
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 =
|
|
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:
|
|
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 "
|
|
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 =
|
|
86
|
+
const setSelectedContentMock = vi.fn();
|
|
87
87
|
defaultProps.setSelectedContent = setSelectedContentMock;
|
|
88
88
|
|
|
89
89
|
render(
|