@griddo/ax 12.5.0 → 12.5.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/config/__tests__/ModulePathInMessagesPlugin.test.js +93 -0
- package/config/__tests__/webpack5-migration.test.js +2 -2
- package/config/webpack/ModulePathInMessagesPlugin.js +47 -0
- package/config/webpack.config.js +5 -0
- package/package.json +21 -19
- package/src/GlobalStore.tsx +3 -3
- package/src/__mocks__/reducers/structuredData.tsx +1 -1
- package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +1 -1
- package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +1 -1
- package/src/__tests__/components/Browser/Browser.test.tsx +4 -0
- package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +1 -1
- package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +5 -5
- package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +2 -2
- package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +5 -1
- package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +1 -1
- package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +1 -1
- package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +1 -1
- package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +1 -1
- package/src/__tests__/components/EmptyState/EmptyState.test.tsx +1 -1
- package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +2 -2
- package/src/__tests__/components/ErrorToast/ErrorToast.test.tsx +1 -1
- package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +1 -1
- package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +2 -2
- package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +1 -1
- package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +3 -3
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +2 -2
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +2 -2
- package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +4 -2
- package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +1 -1
- package/src/__tests__/components/Fields/DateField/DateField.test.tsx +1 -1
- package/src/__tests__/components/Fields/FileField/FileField.test.tsx +1 -1
- package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +1 -1
- package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +1 -1
- package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +1 -1
- package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +1 -1
- package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +1 -1
- package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +1 -1
- package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +1 -1
- package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +1 -1
- package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +1 -1
- 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 +1 -1
- package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +1 -1
- package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +1 -1
- package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +1 -1
- package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +1 -1
- package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +1 -1
- package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +1 -1
- package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +1 -1
- package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +2 -2
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.atoms.test.tsx +1 -5
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +7 -31
- package/src/__tests__/components/Flag/Flag.test.tsx +1 -1
- package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +1 -1
- package/src/__tests__/components/GuardModal/GuardModal.test.tsx +1 -1
- package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.test.tsx +1 -1
- package/src/__tests__/components/HeadingsPreviewModal/HeadingsPreviewModal.utils.test.tsx +5 -1
- package/src/__tests__/components/Icon/Icon.test.tsx +1 -1
- package/src/__tests__/components/IconAction/IconAction.test.tsx +1 -1
- package/src/__tests__/components/InformativeMenu/InformativeMenu.test.tsx +1 -1
- package/src/__tests__/components/KeywordsPreviewModal/KeywordsPreviewModal.test.tsx +1 -1
- package/src/__tests__/components/KeywordsPreviewModal/atoms.test.tsx +1 -1
- 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 +1 -1
- package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +1 -1
- package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +1 -1
- package/src/__tests__/components/MainWrapper/MainWrapper.test.tsx +1 -1
- package/src/__tests__/components/MenuItem/MenuItem.test.tsx +1 -1
- package/src/__tests__/components/Modal/Modal.test.tsx +1 -1
- package/src/__tests__/components/Nav/Nav.test.tsx +1 -1
- package/src/__tests__/components/Notification/Notification.test.tsx +1 -1
- package/src/__tests__/components/Notification/SubNotification/Subnotification.test.tsx +1 -1
- package/src/__tests__/components/Pagination/Pagination.test.tsx +0 -1
- package/src/__tests__/components/ProgressBar/ProgressBar.test.tsx +1 -1
- package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +1 -1
- package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +1 -0
- package/src/__tests__/components/RestrictionsModal/UsersList/UsersList.test.tsx +96 -9
- package/src/__tests__/components/SearchField/SearchField.test.tsx +1 -1
- package/src/__tests__/components/SubNav/SubNav.test.tsx +1 -1
- package/src/__tests__/components/TableCounter/TableCounter.test.tsx +1 -1
- package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +2 -2
- package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +3 -3
- package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +3 -3
- package/src/__tests__/components/TableList/TableList.test.tsx +1 -1
- package/src/__tests__/components/Tabs/Tabs.test.tsx +1 -1
- package/src/__tests__/components/Tag/Tag.test.tsx +1 -1
- package/src/__tests__/components/Toast/Toast.test.tsx +1 -1
- package/src/__tests__/hooks/users.test.tsx +12 -4
- package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +1 -1
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/FinalStep/FinalStep.test.tsx +9 -1
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/ImageStep.test.tsx +2 -0
- package/src/__tests__/modules/Sites/SitesList/WelcomeModal/ImageStep/UploadView/UploadView.test.tsx +1 -0
- package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +2 -2
- package/src/__tests__/modules/Users/Roles/Roles.test.tsx +3 -3
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +3 -1
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +1 -1
- package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +1 -1
- package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +2 -2
- package/src/api/analytics.tsx +3 -3
- package/src/api/dataPack.tsx +1 -1
- package/src/api/domains.tsx +2 -2
- package/src/api/files.tsx +2 -2
- package/src/api/folders.tsx +1 -1
- package/src/api/forms.tsx +2 -2
- package/src/api/global.tsx +2 -2
- package/src/api/images.tsx +2 -2
- package/src/api/integrations.tsx +3 -3
- package/src/api/languages.tsx +1 -1
- package/src/api/logs.tsx +3 -3
- package/src/api/menus.tsx +1 -1
- package/src/api/navigation.tsx +1 -1
- package/src/api/redirects.tsx +1 -1
- package/src/api/roles.tsx +3 -3
- package/src/api/social.tsx +1 -1
- package/src/api/users.tsx +1 -1
- package/src/api/utils.tsx +1 -1
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Breadcrumb/index.tsx +1 -1
- package/src/components/Button/index.tsx +1 -1
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/index.tsx +1 -1
- package/src/components/ConfigPanel/NavigationForm/Field/index.tsx +1 -1
- package/src/components/ConfigPanel/NavigationForm/index.tsx +1 -1
- package/src/components/ConfigPanel/PreviewForm/index.tsx +1 -1
- package/src/components/DragAndDrop/index.tsx +2 -1
- package/src/components/EmptyState/index.tsx +1 -1
- package/src/components/ErrorCenter/index.tsx +1 -1
- package/src/components/FieldContainer/index.tsx +1 -1
- package/src/components/Fields/AIReferenceField/AIConfigPanel/index.tsx +1 -1
- package/src/components/Fields/AIReferenceField/index.tsx +1 -1
- package/src/components/Fields/ArrayFieldGroup/helpers.ts +1 -7
- package/src/components/Fields/CheckGroup/index.tsx +2 -2
- package/src/components/Fields/ColorPicker/Picker/index.tsx +2 -1
- package/src/components/Fields/ColorPicker/index.tsx +2 -1
- package/src/components/Fields/ComponentContainer/style.tsx +1 -1
- package/src/components/Fields/ConditionalField/index.tsx +1 -3
- package/src/components/Fields/FormCategorySelect/index.tsx +2 -2
- package/src/components/Fields/FormContainer/FormModal/index.tsx +2 -2
- package/src/components/Fields/FormContainer/index.tsx +1 -1
- package/src/components/Fields/FormFieldArray/index.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/index.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/helpers.ts +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/index.tsx +1 -1
- package/src/components/Fields/IntegrationsField/SideModal/SideModalOption/index.tsx +1 -1
- package/src/components/Fields/LinkField/index.tsx +1 -1
- package/src/components/Fields/RadioGroup/index.tsx +2 -2
- package/src/components/Fields/SliderField/index.tsx +2 -1
- package/src/components/Fields/TimeField/HourInput/index.tsx +2 -1
- package/src/components/Fields/UrlField/utils.tsx +1 -1
- package/src/components/Fields/VisualOption/index.tsx +1 -1
- package/src/components/Fields/Wysiwyg/atoms.tsx +13 -2
- package/src/components/Fields/Wysiwyg/helpers.tsx +10 -2
- package/src/components/FileGallery/FolderItem/index.tsx +1 -1
- package/src/components/FileGallery/GridItem/index.tsx +1 -1
- package/src/components/FloatingButton/index.tsx +1 -1
- package/src/components/Gallery/FolderItem/index.tsx +1 -1
- package/src/components/HeadingsPreviewModal/index.tsx +11 -2
- package/src/components/HeadingsPreviewModal/utils.tsx +8 -1
- package/src/components/Icon/components/Party.jsx +6 -12
- package/src/components/Icon/components/Republish.jsx +12 -18
- package/src/components/Icon/components/Sync.jsx +6 -12
- package/src/components/KeywordsPreviewModal/index.tsx +7 -1
- package/src/components/Lists/index.tsx +1 -1
- package/src/components/Nav/index.tsx +1 -1
- package/src/components/TableFilters/CustomizeFilters/index.tsx +1 -1
- package/src/components/TableFilters/DateFilter/index.tsx +1 -1
- package/src/components/TableFilters/LastAccessFilter/index.tsx +1 -1
- package/src/components/TableFilters/NameFilter/index.tsx +1 -1
- package/src/components/TableFilters/PermissionsFilter/index.tsx +1 -1
- package/src/components/TableFilters/StateFilter/index.tsx +1 -1
- package/src/components/TableFilters/StatusFilter/index.tsx +1 -1
- package/src/components/TableFilters/TypeFilter/index.tsx +1 -1
- package/src/components/TableFilters/UsersFilter/index.tsx +1 -1
- package/src/components/Tag/index.tsx +15 -2
- package/src/containers/ActivityLog/actions.tsx +4 -5
- package/src/containers/ActivityLog/interfaces.tsx +2 -2
- package/src/containers/ActivityLog/reducer.tsx +1 -2
- package/src/containers/Analytics/actions.tsx +3 -3
- package/src/containers/Analytics/interfaces.tsx +2 -2
- package/src/containers/Analytics/reducer.tsx +2 -2
- package/src/containers/Domains/actions.tsx +2 -2
- package/src/containers/Domains/interfaces.tsx +2 -2
- package/src/containers/Domains/reducer.tsx +2 -2
- package/src/containers/FileDrive/actions.tsx +3 -3
- package/src/containers/FileDrive/interfaces.tsx +2 -2
- package/src/containers/FileDrive/reducer.tsx +1 -1
- package/src/containers/Gallery/interfaces.tsx +3 -3
- package/src/containers/Gallery/reducer.tsx +2 -2
- package/src/containers/Integrations/actions.tsx +3 -3
- package/src/containers/Integrations/interfaces.tsx +2 -2
- package/src/containers/Integrations/reducer.tsx +2 -2
- package/src/containers/Navigation/Defaults/actions.tsx +3 -3
- package/src/containers/Navigation/Defaults/interfaces.tsx +2 -2
- package/src/containers/Navigation/Menu/actions.tsx +3 -3
- package/src/containers/Navigation/Menu/interfaces.tsx +3 -3
- package/src/containers/Navigation/Menu/reducer.tsx +2 -2
- package/src/containers/PageEditor/utils.tsx +2 -2
- package/src/containers/Redirects/actions.tsx +1 -1
- package/src/containers/Redirects/interfaces.tsx +1 -1
- package/src/containers/Redirects/reducer.tsx +2 -2
- package/src/containers/Settings/DataPacks/interfaces.tsx +1 -1
- package/src/containers/Settings/DataPacks/reducer.tsx +1 -1
- package/src/containers/Settings/Languages/actions.tsx +2 -2
- package/src/containers/Settings/Social/actions.tsx +2 -2
- package/src/containers/Settings/Social/interfaces.tsx +2 -2
- package/src/containers/Settings/Social/reducer.tsx +2 -2
- package/src/containers/Sites/interfaces.tsx +2 -2
- package/src/containers/Users/interfaces.tsx +2 -2
- package/src/forms/validators.tsx +1 -1
- package/src/guards/error/index.tsx +1 -1
- package/src/helpers/customColumns.tsx +1 -1
- package/src/helpers/dates.tsx +3 -3
- package/src/helpers/files.tsx +1 -1
- package/src/helpers/parseTheme.js +2 -2
- package/src/helpers/strings.tsx +1 -1
- package/src/hooks/content.tsx +1 -1
- package/src/hooks/index.tsx +7 -1
- package/src/hooks/users.tsx +1 -3
- package/src/modules/ActivityLog/DetailModal/index.tsx +3 -3
- package/src/modules/ActivityLog/DownloadModal/index.tsx +3 -3
- package/src/modules/ActivityLog/ItemLog/index.tsx +1 -1
- package/src/modules/ActivityLog/LogFilters/ContentFilter/index.tsx +1 -1
- package/src/modules/ActivityLog/LogFilters/EventFilter/index.tsx +1 -1
- package/src/modules/ActivityLog/TableHeader/index.tsx +1 -1
- package/src/modules/ActivityLog/hooks.tsx +1 -1
- package/src/modules/ActivityLog/index.tsx +2 -2
- package/src/modules/ActivityLog/utils.tsx +1 -1
- package/src/modules/Analytics/DimensionPanel/index.tsx +1 -1
- package/src/modules/Analytics/index.tsx +1 -1
- package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/index.tsx +1 -1
- package/src/modules/App/Routing/PrivateRoute/index.tsx +1 -1
- package/src/modules/App/index.tsx +1 -1
- package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/index.tsx +1 -1
- package/src/modules/Categories/CategoriesList/CategoryNav/index.tsx +1 -1
- package/src/modules/Categories/CategoriesList/CategoryPanel/Form/index.tsx +1 -1
- package/src/modules/Categories/CategoriesList/atoms.tsx +1 -8
- package/src/modules/Categories/CategoriesList/helpers.tsx +1 -1
- package/src/modules/Categories/CategoriesList/hooks.tsx +1 -1
- package/src/modules/Content/BulkHeader/TableHeader/index.tsx +1 -1
- package/src/modules/Content/ContentFilters/utils.tsx +1 -1
- package/src/modules/Content/hooks.tsx +1 -1
- package/src/modules/FileDrive/Breadcrumb/index.tsx +1 -1
- package/src/modules/FileDrive/FileFilters/SortBy/index.tsx +1 -1
- package/src/modules/FileDrive/FileFilters/Type/index.tsx +1 -1
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/ItemGroup/index.tsx +3 -2
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/index.tsx +2 -2
- package/src/modules/FileDrive/FolderTree/MenuItem/index.tsx +3 -2
- package/src/modules/FileDrive/FolderTree/MenuList/index.tsx +1 -1
- package/src/modules/FileDrive/FolderTree/index.tsx +1 -1
- package/src/modules/FileDrive/hooks.tsx +1 -1
- package/src/modules/Forms/FormCategoriesList/CategoryItem/style.tsx +1 -1
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/Form/index.tsx +1 -1
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/index.tsx +1 -1
- package/src/modules/Forms/FormCategoriesList/hooks.tsx +1 -1
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/Field/index.tsx +1 -1
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/TemplateManager/index.tsx +1 -1
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Header/index.tsx +3 -2
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/index.tsx +1 -1
- package/src/modules/Forms/FormEditor/Editor/index.tsx +3 -2
- package/src/modules/Forms/FormList/BulkHeader/TableHeader/index.tsx +1 -1
- package/src/modules/Forms/FormList/FormItem/index.tsx +7 -1
- package/src/modules/Forms/FormList/Summary/index.tsx +1 -1
- package/src/modules/Forms/FormList/TemplateModal/index.tsx +3 -2
- package/src/modules/Forms/FormList/hooks.tsx +1 -1
- package/src/modules/Forms/FormUseModal/utils.tsx +1 -1
- package/src/modules/Forms/FormsMenu/index.tsx +1 -1
- package/src/modules/Forms/atoms.tsx +5 -1
- package/src/modules/Forms/utils.tsx +1 -1
- package/src/modules/FramePreview/HeadingsOverlay/index.tsx +3 -4
- package/src/modules/GlobalSettings/Robots/Item/index.tsx +1 -1
- package/src/modules/MediaGallery/Breadcrumb/index.tsx +1 -1
- package/src/modules/MediaGallery/FolderTree/MenuItem/index.tsx +3 -2
- package/src/modules/MediaGallery/FolderTree/MenuList/index.tsx +1 -1
- package/src/modules/MediaGallery/FolderTree/index.tsx +1 -1
- package/src/modules/MediaGallery/GridItem/index.tsx +6 -1
- package/src/modules/MediaGallery/ImageFilters/Orientation/index.tsx +1 -1
- package/src/modules/MediaGallery/ImageFilters/SortBy/index.tsx +1 -1
- package/src/modules/MediaGallery/ImageFilters/Type/index.tsx +1 -1
- package/src/modules/MediaGallery/ImageFilters/Usage/index.tsx +1 -1
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/ItemGroup/index.tsx +3 -2
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/index.tsx +2 -2
- package/src/modules/MediaGallery/hooks.tsx +1 -1
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +2 -2
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +2 -2
- package/src/modules/Navigation/Defaults/ReplaceNavModal/index.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Nav/index.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Table/Header/index.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Table/Item/index.tsx +6 -1
- package/src/modules/Navigation/Menus/List/Table/Item/style.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Table/helpers.tsx +1 -1
- package/src/modules/PublicPreview/index.tsx +5 -13
- package/src/modules/Redirects/BulkHeader/TableHeader/index.tsx +1 -1
- package/src/modules/Redirects/BulkHeader/index.tsx +1 -1
- package/src/modules/Redirects/RedirectPanel/index.tsx +1 -1
- package/src/modules/Redirects/hooks.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/IntegrationsField/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/TemplateBrowser/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/index.tsx +1 -1
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/index.tsx +2 -2
- package/src/modules/Settings/ContentTypes/DataPacks/Item/index.tsx +3 -2
- package/src/modules/Settings/ContentTypes/DataPacks/List/index.tsx +2 -2
- package/src/modules/Settings/ContentTypes/DataPacks/Nav/index.tsx +1 -1
- package/src/modules/Settings/Globals/NavigationModules/SideModal/index.tsx +1 -1
- package/src/modules/Settings/Globals/NavigationModules/index.tsx +1 -1
- package/src/modules/Settings/Globals/constants.tsx +1 -1
- package/src/modules/Settings/Integrations/BulkHeader/TableHeader/index.tsx +1 -1
- package/src/modules/Settings/Integrations/IntegrationForm/VariableItem/index.tsx +1 -1
- package/src/modules/Settings/Integrations/IntegrationForm/VariablePanel/index.tsx +1 -1
- package/src/modules/Settings/Integrations/IntegrationForm/index.tsx +2 -2
- package/src/modules/Settings/Integrations/IntegrationItem/style.tsx +1 -1
- package/src/modules/Settings/Integrations/hooks.tsx +1 -1
- package/src/modules/Settings/Integrations/index.tsx +0 -1
- package/src/modules/Settings/Integrations/utils.tsx +1 -1
- package/src/modules/Settings/Languages/LanguagePanel/Form/ConnectedField/index.tsx +1 -1
- package/src/modules/Settings/Languages/LanguagePanel/Form/index.tsx +1 -1
- package/src/modules/Settings/Languages/LanguagePanel/index.tsx +1 -1
- package/src/modules/Settings/Languages/Table/Header/index.tsx +1 -1
- package/src/modules/Settings/Languages/Table/Item/index.tsx +1 -1
- package/src/modules/Settings/Languages/Table/index.tsx +1 -1
- package/src/modules/Settings/Languages/index.tsx +1 -1
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/atoms.tsx +2 -2
- package/src/modules/Settings/index.tsx +1 -1
- package/src/modules/Sites/SitesList/ListView/ListSiteItem/index.tsx +7 -1
- package/src/modules/StructuredData/StructuredDataList/ContentFilters/utils.tsx +1 -1
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +6 -1
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/utils.tsx +1 -1
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/index.tsx +16 -2
- package/src/modules/StructuredData/StructuredDataList/hooks.tsx +1 -1
- package/src/modules/Users/Roles/BulkHeader/TableHeader/index.tsx +1 -1
- package/src/modules/Users/Roles/SideModal/index.tsx +1 -1
- package/src/modules/Users/Roles/hooks.tsx +1 -1
- package/src/modules/Users/UserCreate/OptionItem/index.tsx +1 -1
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/index.tsx +1 -1
- package/src/modules/Users/UserCreate/SiteItem/style.tsx +13 -1
- package/src/modules/Users/UserList/UserItem/index.tsx +10 -1
- package/src/modules/Users/UserList/hooks.tsx +1 -1
- package/tsconfig.json +11 -4
- package/tsconfig.paths.json +19 -20
package/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Griddo AX
|
|
2
2
|
|
|
3
3
|
- [Arquitectura del proyecto](docs/PROJECT-ARCHITECTURE.md)
|
|
4
|
-
- [Estándares de commits](docs/
|
|
4
|
+
- [Estándares de commits](../../docs/commits.md)
|
|
5
5
|
- [Comandos de npm](#comandos-de-npm)
|
|
6
|
-
- [AGENTS.md](#agentsmd)
|
|
7
6
|
- [Centralización de textos de UI](docs/LOCALE-UI-TEXTS.md)
|
|
8
7
|
|
|
9
8
|
## Comandos de npm
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guards the fix for webpack 5 dropping the file name from module warnings.
|
|
3
|
+
*
|
|
4
|
+
* webpack 4 gave CRA warnings as strings carrying their own `./src/Foo.tsx` header;
|
|
5
|
+
* webpack 5 moves it to a `moduleName` field that `formatWebpackMessages` ignores,
|
|
6
|
+
* which left "Attempted import error: 'x' is not exported from './styles.module.css'"
|
|
7
|
+
* pointing at no file in particular.
|
|
8
|
+
*/
|
|
9
|
+
const formatWebpackMessages = require("react-dev-utils/formatWebpackMessages");
|
|
10
|
+
|
|
11
|
+
const ModulePathInMessagesPlugin = require("../webpack/ModulePathInMessagesPlugin");
|
|
12
|
+
|
|
13
|
+
/** Minimal stand-in for the two tapable hooks the plugin uses. */
|
|
14
|
+
const runPlugin = ({ warnings = [], errors = [] } = {}) => {
|
|
15
|
+
const compilation = {
|
|
16
|
+
warnings,
|
|
17
|
+
errors,
|
|
18
|
+
requestShortener: {},
|
|
19
|
+
hooks: { afterSeal: { tap: (_name, fn) => fn() } },
|
|
20
|
+
};
|
|
21
|
+
const compiler = { hooks: { compilation: { tap: (_name, fn) => fn(compilation) } } };
|
|
22
|
+
|
|
23
|
+
new ModulePathInMessagesPlugin().apply(compiler);
|
|
24
|
+
|
|
25
|
+
return compilation;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const makeWarning = (message, { module = true, loc = { start: { line: 2, column: 12 } } } = {}) => ({
|
|
29
|
+
message,
|
|
30
|
+
loc,
|
|
31
|
+
module: module ? { readableIdentifier: () => "./src/ui/modules/Wysiwyg/index.tsx" } : undefined,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
describe("ModulePathInMessagesPlugin", () => {
|
|
35
|
+
test("prefixes the warning with the module path and location", () => {
|
|
36
|
+
const warning = makeWarning("export 'intro' was not found in './styles.module.css'");
|
|
37
|
+
|
|
38
|
+
runPlugin({ warnings: [warning] });
|
|
39
|
+
|
|
40
|
+
expect(warning.message).toBe(
|
|
41
|
+
"./src/ui/modules/Wysiwyg/index.tsx:2:12\nexport 'intro' was not found in './styles.module.css'",
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test("decorates errors too", () => {
|
|
46
|
+
const error = makeWarning("Module not found");
|
|
47
|
+
|
|
48
|
+
runPlugin({ errors: [error] });
|
|
49
|
+
|
|
50
|
+
expect(error.message).toBe("./src/ui/modules/Wysiwyg/index.tsx:2:12\nModule not found");
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test("omits the location when the warning has none", () => {
|
|
54
|
+
const warning = makeWarning("boom", { loc: null });
|
|
55
|
+
|
|
56
|
+
runPlugin({ warnings: [warning] });
|
|
57
|
+
|
|
58
|
+
expect(warning.message).toBe("./src/ui/modules/Wysiwyg/index.tsx\nboom");
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
test("leaves warnings that are not attached to a module alone", () => {
|
|
62
|
+
const warning = makeWarning("something global", { module: false });
|
|
63
|
+
|
|
64
|
+
runPlugin({ warnings: [warning] });
|
|
65
|
+
|
|
66
|
+
expect(warning.message).toBe("something global");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
test("does not prefix twice across watch-mode rebuilds", () => {
|
|
70
|
+
const warning = makeWarning("export 'intro' was not found in './styles.module.css'");
|
|
71
|
+
|
|
72
|
+
runPlugin({ warnings: [warning] });
|
|
73
|
+
const afterFirstBuild = warning.message;
|
|
74
|
+
runPlugin({ warnings: [warning] });
|
|
75
|
+
|
|
76
|
+
expect(warning.message).toBe(afterFirstBuild);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// The contract that makes the whole thing worthwhile: formatWebpackMessages
|
|
80
|
+
// rewrites the export line wholesale and strips a trailing `2:12-24` off line 0,
|
|
81
|
+
// so the header has to survive both to reach the terminal.
|
|
82
|
+
test("the path survives formatWebpackMessages", () => {
|
|
83
|
+
const warning = makeWarning("export 'intro' (imported as 'styles') was not found in './styles.module.css'");
|
|
84
|
+
|
|
85
|
+
runPlugin({ warnings: [warning] });
|
|
86
|
+
const [formatted] = formatWebpackMessages({ errors: [], warnings: [{ message: warning.message }] }).warnings;
|
|
87
|
+
|
|
88
|
+
expect(formatted).toBe(
|
|
89
|
+
"./src/ui/modules/Wysiwyg/index.tsx:2:12\n" +
|
|
90
|
+
"Attempted import error: 'intro' is not exported from './styles.module.css' (imported as 'styles').",
|
|
91
|
+
);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
@@ -400,8 +400,8 @@ describe("package.json — wp5 dependencies", () => {
|
|
|
400
400
|
expect(allDeps).toHaveProperty("postcss-normalize");
|
|
401
401
|
});
|
|
402
402
|
|
|
403
|
-
test("keeps typescript at
|
|
404
|
-
expect(allDeps.typescript).toMatch(/^\^?
|
|
403
|
+
test("keeps typescript at 6.0.x (TS 7 drops the JS API fork-ts-checker needs)", () => {
|
|
404
|
+
expect(allDeps.typescript).toMatch(/^\^?6\.0/);
|
|
405
405
|
});
|
|
406
406
|
|
|
407
407
|
test("removed wp4-only dependencies are not present", () => {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const NAME = "GriddoModulePathInMessages";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Prefixes every module-attached warning/error with the file that caused it.
|
|
5
|
+
*
|
|
6
|
+
* webpack 4 handed CRA its warnings as plain strings that already carried the
|
|
7
|
+
* `./src/Foo.tsx 2:12-24` header. webpack 5 hands them over as objects
|
|
8
|
+
* (`{ message, moduleName, loc }`), and `react-dev-utils`'s `formatWebpackMessages`
|
|
9
|
+
* only reads `.message` — so the file and location are dropped on the floor.
|
|
10
|
+
* That leaves messages like "Attempted import error: 'intro' is not exported
|
|
11
|
+
* from './styles.module.css'" with no way to tell which of the many
|
|
12
|
+
* `styles.module.css` files is at fault.
|
|
13
|
+
*
|
|
14
|
+
* Folding the location back into `.message` restores the webpack 4 shape that
|
|
15
|
+
* `formatWebpackMessages` expects (line 0 = file, line 1 = message), and it fixes
|
|
16
|
+
* both paths at once: `griddo build` (which calls the formatter directly) and
|
|
17
|
+
* `griddo start` (where `createCompiler` calls it internally, out of our reach).
|
|
18
|
+
*/
|
|
19
|
+
class ModulePathInMessagesPlugin {
|
|
20
|
+
apply(compiler) {
|
|
21
|
+
compiler.hooks.compilation.tap(NAME, (compilation) => {
|
|
22
|
+
// `afterSeal` runs once dependency warnings have been collected and before
|
|
23
|
+
// anything can call `stats.toJson()`.
|
|
24
|
+
compilation.hooks.afterSeal.tap(NAME, () => {
|
|
25
|
+
const decorate = (err) => {
|
|
26
|
+
const module = err.module;
|
|
27
|
+
if (!module || typeof module.readableIdentifier !== "function") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const name = module.readableIdentifier(compilation.requestShortener);
|
|
31
|
+
const loc = err.loc?.start ? `:${err.loc.start.line}:${err.loc.start.column}` : "";
|
|
32
|
+
const header = `${name}${loc}`;
|
|
33
|
+
// Guard against double-prefixing on watch-mode rebuilds that reuse errors.
|
|
34
|
+
if (typeof err.message !== "string" || err.message.startsWith(header)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
err.message = `${header}\n${err.message}`;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
compilation.warnings.forEach(decorate);
|
|
41
|
+
compilation.errors.forEach(decorate);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = ModulePathInMessagesPlugin;
|
package/config/webpack.config.js
CHANGED
|
@@ -18,6 +18,7 @@ const ModuleNotFoundPlugin = require("react-dev-utils/ModuleNotFoundPlugin");
|
|
|
18
18
|
const ForkTsCheckerWebpackPlugin = require("react-dev-utils/ForkTsCheckerWebpackPlugin");
|
|
19
19
|
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
|
20
20
|
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
21
|
+
const ModulePathInMessagesPlugin = require("./webpack/ModulePathInMessagesPlugin");
|
|
21
22
|
const createEnvironmentHash = require("./webpack/persistentCache/createEnvironmentHash");
|
|
22
23
|
|
|
23
24
|
const postcssNormalize = require("postcss-normalize");
|
|
@@ -548,6 +549,10 @@ module.exports = function (webpackEnv) {
|
|
|
548
549
|
],
|
|
549
550
|
},
|
|
550
551
|
plugins: [
|
|
552
|
+
// webpack 5 moves the offending file out of the warning text and into a
|
|
553
|
+
// separate `moduleName` field that react-dev-utils' formatter ignores. This
|
|
554
|
+
// folds it back in so messages point at a file again.
|
|
555
|
+
new ModulePathInMessagesPlugin(),
|
|
551
556
|
// Restore webpack 4's Node core-module handling for browser bundles. Clients run
|
|
552
557
|
// `griddo build` (this config) against their own instance, so this guards legacy
|
|
553
558
|
// instances against "Module not found" for Node builtins that webpack 5 no longer
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "12.5.0",
|
|
4
|
+
"version": "12.5.2-rc.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
"test:coverage": "vitest run --coverage",
|
|
36
36
|
"test:dev": "vitest",
|
|
37
37
|
"test:dev:coverage": "vitest --coverage",
|
|
38
|
+
"// TYPES": "",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
38
40
|
"// LINT": "",
|
|
39
41
|
"lint": "biome check",
|
|
40
42
|
"format:write": "biome format --write"
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.16",
|
|
47
49
|
"@styled-system/prop-types": "5.1.5",
|
|
48
50
|
"@styled-system/theme-get": "5.1.2",
|
|
49
|
-
"@svgr/webpack": "
|
|
51
|
+
"@svgr/webpack": "8.1.0",
|
|
50
52
|
"@testing-library/jest-dom": "5.16.5",
|
|
51
53
|
"@testing-library/react": "13.4.0",
|
|
52
54
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -68,7 +70,7 @@
|
|
|
68
70
|
"@types/uuid": "8.3.4",
|
|
69
71
|
"@types/webpack-env": "1.18.0",
|
|
70
72
|
"axios": "0.19.0",
|
|
71
|
-
"babel-loader": "
|
|
73
|
+
"babel-loader": "9.2.1",
|
|
72
74
|
"babel-plugin-named-asset-import": "0.3.8",
|
|
73
75
|
"babel-plugin-root-import": "6.6.0",
|
|
74
76
|
"babel-plugin-styled-components": "2.1.4",
|
|
@@ -76,8 +78,8 @@
|
|
|
76
78
|
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
|
77
79
|
"compress.js": "1.2.2",
|
|
78
80
|
"connected-react-router": "6.9.3",
|
|
79
|
-
"css-loader": "
|
|
80
|
-
"css-minimizer-webpack-plugin": "
|
|
81
|
+
"css-loader": "6.11.0",
|
|
82
|
+
"css-minimizer-webpack-plugin": "5.0.1",
|
|
81
83
|
"date-fns": "2.30.0",
|
|
82
84
|
"dotenv": "6.2.0",
|
|
83
85
|
"dotenv-expand": "5.1.0",
|
|
@@ -90,26 +92,26 @@
|
|
|
90
92
|
"fs-extra": "7.0.1",
|
|
91
93
|
"html-to-draftjs": "1.5.0",
|
|
92
94
|
"html-to-image": "1.11.7",
|
|
93
|
-
"html-webpack-plugin": "
|
|
95
|
+
"html-webpack-plugin": "5.6.8",
|
|
94
96
|
"ignore-loader": "0.1.2",
|
|
95
97
|
"is-wsl": "3.1.0",
|
|
96
98
|
"jsdom": "20.0.3",
|
|
97
99
|
"jsdom-global": "3.0.2",
|
|
98
100
|
"lodash.isequal": "4.5.0",
|
|
99
101
|
"markdown-draft-js": "2.4.0",
|
|
100
|
-
"mini-css-extract-plugin": "
|
|
101
|
-
"node-polyfill-webpack-plugin": "
|
|
102
|
+
"mini-css-extract-plugin": "2.10.2",
|
|
103
|
+
"node-polyfill-webpack-plugin": "3.0.0",
|
|
102
104
|
"pkg-dir": "5.0.0",
|
|
103
105
|
"polished": "3.4.1",
|
|
104
106
|
"postcss": "8.5.3",
|
|
105
|
-
"postcss-flexbugs-fixes": "
|
|
106
|
-
"postcss-loader": "
|
|
107
|
+
"postcss-flexbugs-fixes": "5.0.2",
|
|
108
|
+
"postcss-loader": "7.3.4",
|
|
107
109
|
"postcss-normalize": "7.0.1",
|
|
108
110
|
"postcss-preset-env": "6.7.0",
|
|
109
111
|
"react": "18.2.0",
|
|
110
112
|
"react-app-polyfill": "1.0.6",
|
|
111
113
|
"react-datepicker": "4.25.0",
|
|
112
|
-
"react-dev-utils": "
|
|
114
|
+
"react-dev-utils": "12.0.1",
|
|
113
115
|
"react-dom": "18.2.0",
|
|
114
116
|
"react-draft-wysiwyg": "1.15.0",
|
|
115
117
|
"react-easy-crop": "5.5.7",
|
|
@@ -130,21 +132,21 @@
|
|
|
130
132
|
"resolve": "1.22.10",
|
|
131
133
|
"resolve-url-loader": "4.0.0",
|
|
132
134
|
"sass-alias": "1.0.5",
|
|
133
|
-
"sass-loader": "
|
|
135
|
+
"sass-loader": "16.0.8",
|
|
134
136
|
"semver": "7.6.3",
|
|
135
137
|
"slick-carousel": "1.8.1",
|
|
136
138
|
"source-map-loader": "1.1.3",
|
|
137
139
|
"string-replace-loader": "3.1.0",
|
|
138
|
-
"style-loader": "
|
|
140
|
+
"style-loader": "3.3.4",
|
|
139
141
|
"styled-components": "5.3.11",
|
|
140
142
|
"styled-reset": "4.0.1",
|
|
141
143
|
"styled-system": "5.1.5",
|
|
142
|
-
"terser-webpack-plugin": "
|
|
143
|
-
"typescript": "
|
|
144
|
+
"terser-webpack-plugin": "5.6.1",
|
|
145
|
+
"typescript": "6.0.3",
|
|
144
146
|
"uuid": "8.3.2",
|
|
145
|
-
"webpack": "
|
|
146
|
-
"webpack-dev-server": "
|
|
147
|
-
"webpack-manifest-plugin": "
|
|
147
|
+
"webpack": "5.109.2",
|
|
148
|
+
"webpack-dev-server": "4.15.2",
|
|
149
|
+
"webpack-manifest-plugin": "5.0.1"
|
|
148
150
|
},
|
|
149
151
|
"devDependencies": {
|
|
150
152
|
"@babel/core": "7.26.10",
|
|
@@ -199,5 +201,5 @@
|
|
|
199
201
|
"publishConfig": {
|
|
200
202
|
"access": "public"
|
|
201
203
|
},
|
|
202
|
-
"gitHead": "
|
|
204
|
+
"gitHead": "30ed89e8b4a3a958be775b1c1708f8604e4b6863"
|
|
203
205
|
}
|
package/src/GlobalStore.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createStore, Reducer, combineReducers, applyMiddleware, Action, StoreEnhancer } from "redux";
|
|
2
|
-
import { persistReducer, persistStore, PersistConfig, Persistor } from "redux-persist";
|
|
1
|
+
import { createStore, type Reducer, combineReducers, applyMiddleware, type Action, type StoreEnhancer } from "redux";
|
|
2
|
+
import { persistReducer, persistStore, type PersistConfig, type Persistor } from "redux-persist";
|
|
3
3
|
import storage from "redux-persist/lib/storage"; // defaults to localStorage for web
|
|
4
4
|
import { connectRouter, routerMiddleware } from "connected-react-router";
|
|
5
5
|
import { composeWithDevTools } from "redux-devtools-extension";
|
|
@@ -25,7 +25,7 @@ import { formsReducer, formsInitialState } from "./containers/Forms/reducer";
|
|
|
25
25
|
import { activityLogReducer, activityLogInitialState } from "./containers/ActivityLog/reducer";
|
|
26
26
|
import { LOGOUT } from "./containers/App/constants";
|
|
27
27
|
|
|
28
|
-
import { IRootState } from "@ax/types";
|
|
28
|
+
import type { IRootState } from "@ax/types";
|
|
29
29
|
|
|
30
30
|
const blacklist = ["router", "menu", "app", "languages"];
|
|
31
31
|
export class GlobalStore {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initialState } from "@ax/containers/StructuredData/reducer";
|
|
2
|
-
import { StructuredDataActionsCreators } from "@ax/containers/StructuredData/interfaces";
|
|
2
|
+
import type { StructuredDataActionsCreators } from "@ax/containers/StructuredData/interfaces";
|
|
3
3
|
|
|
4
4
|
export default (state = initialState, action: { type: StructuredDataActionsCreators }) => {
|
|
5
5
|
switch (action.type) {
|
|
@@ -4,7 +4,7 @@ import { render, cleanup, screen, fireEvent } from "@testing-library/react";
|
|
|
4
4
|
import "@testing-library/jest-dom";
|
|
5
5
|
|
|
6
6
|
import { parseTheme } from "@ax/helpers";
|
|
7
|
-
import ActionMenu, { IActionMenuProps } from "@ax/components/ActionMenu";
|
|
7
|
+
import ActionMenu, { type IActionMenuProps } from "@ax/components/ActionMenu";
|
|
8
8
|
import globalTheme from "@ax/themes/theme.json";
|
|
9
9
|
|
|
10
10
|
afterEach(cleanup);
|
|
@@ -6,7 +6,7 @@ import { mock } from "vitest-mock-extended";
|
|
|
6
6
|
import "@testing-library/jest-dom";
|
|
7
7
|
|
|
8
8
|
import { parseTheme } from "@ax/helpers";
|
|
9
|
-
import Breadcrumb, { IBreadcrumbProps } from "@ax/components/Breadcrumb";
|
|
9
|
+
import Breadcrumb, { type IBreadcrumbProps } from "@ax/components/Breadcrumb";
|
|
10
10
|
import globalTheme from "@ax/themes/theme.json";
|
|
11
11
|
|
|
12
12
|
afterEach(cleanup);
|
|
@@ -22,6 +22,7 @@ const renderBrowser = (props: IBrowserProps) =>
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
beforeEach(() => {
|
|
25
|
+
// biome-ignore lint/complexity/useArrowFunction: mock is invoked with `new`; an arrow function is not a constructor
|
|
25
26
|
global.ResizeObserver = vi.fn().mockImplementation(function () {
|
|
26
27
|
return { observe: vi.fn(), unobserve: vi.fn(), disconnect: vi.fn() };
|
|
27
28
|
});
|
|
@@ -294,6 +295,7 @@ describe("Browser iframe URL construction", () => {
|
|
|
294
295
|
describe("Browser ResizeObserver lifecycle", () => {
|
|
295
296
|
it("should update dimensions based on containerWidth when ResizeObserver fires", () => {
|
|
296
297
|
// Verify ResizeObserver is created and observe is called
|
|
298
|
+
// biome-ignore lint/complexity/useArrowFunction: mock is invoked with `new`; an arrow function is not a constructor
|
|
297
299
|
const ResizeObserverConstructor = vi.fn().mockImplementation(function () {
|
|
298
300
|
return { observe: vi.fn(), unobserve: vi.fn(), disconnect: vi.fn() };
|
|
299
301
|
});
|
|
@@ -311,6 +313,7 @@ describe("Browser ResizeObserver lifecycle", () => {
|
|
|
311
313
|
|
|
312
314
|
it("should disconnect ResizeObserver on unmount", () => {
|
|
313
315
|
const disconnectMock = vi.fn();
|
|
316
|
+
// biome-ignore lint/complexity/useArrowFunction: mock is invoked with `new`; an arrow function is not a constructor
|
|
314
317
|
global.ResizeObserver = vi.fn().mockImplementation(function () {
|
|
315
318
|
return { observe: vi.fn(), unobserve: vi.fn(), disconnect: disconnectMock };
|
|
316
319
|
});
|
|
@@ -325,6 +328,7 @@ describe("Browser ResizeObserver lifecycle", () => {
|
|
|
325
328
|
|
|
326
329
|
it("should not update dimensions when ResizeObserver fires with zero width", () => {
|
|
327
330
|
// Verify ResizeObserver is created
|
|
331
|
+
// biome-ignore lint/complexity/useArrowFunction: mock is invoked with `new`; an arrow function is not a constructor
|
|
328
332
|
const ResizeObserverConstructor = vi.fn().mockImplementation(function () {
|
|
329
333
|
return { observe: vi.fn(), unobserve: vi.fn(), disconnect: vi.fn() };
|
|
330
334
|
});
|
|
@@ -6,7 +6,7 @@ import { mock } from "vitest-mock-extended";
|
|
|
6
6
|
import "@testing-library/jest-dom";
|
|
7
7
|
|
|
8
8
|
import { parseTheme } from "@ax/helpers";
|
|
9
|
-
import CategoryCell, { ICategoryCellProps } from "@ax/components/CategoryCell";
|
|
9
|
+
import CategoryCell, { type ICategoryCellProps } from "@ax/components/CategoryCell";
|
|
10
10
|
import globalTheme from "@ax/themes/theme.json";
|
|
11
11
|
|
|
12
12
|
afterEach(cleanup);
|
|
@@ -7,7 +7,7 @@ import configureStore from "redux-mock-store";
|
|
|
7
7
|
import "@testing-library/jest-dom";
|
|
8
8
|
|
|
9
9
|
import { parseTheme } from "@ax/helpers";
|
|
10
|
-
import Form, { IFormProps } from "@ax/components/ConfigPanel/Form";
|
|
10
|
+
import Form, { type IFormProps } from "@ax/components/ConfigPanel/Form";
|
|
11
11
|
import globalTheme from "@ax/themes/theme.json";
|
|
12
12
|
import { defaultStore } from "./../../../../__mocks__/store/GenericStore";
|
|
13
13
|
|
|
@@ -168,7 +168,7 @@ describe("Form component rendering", () => {
|
|
|
168
168
|
</ThemeProvider>,
|
|
169
169
|
{ store },
|
|
170
170
|
);
|
|
171
|
-
expect(screen.getByText(/This page doesn
|
|
171
|
+
expect(screen.getByText(/This page doesn't have a header. Click/i)).toBeInTheDocument();
|
|
172
172
|
expect(screen.getByTestId("form-section")).toBeTruthy();
|
|
173
173
|
});
|
|
174
174
|
|
|
@@ -182,7 +182,7 @@ describe("Form component rendering", () => {
|
|
|
182
182
|
{ store },
|
|
183
183
|
);
|
|
184
184
|
|
|
185
|
-
expect(screen.getByText(/This page doesn
|
|
185
|
+
expect(screen.getByText(/This page doesn't have a header. Click/i)).toBeInTheDocument();
|
|
186
186
|
const headerLink = screen.getByTestId("header-link");
|
|
187
187
|
fireEvent.click(headerLink);
|
|
188
188
|
expect(restorePageNavigationAction).toBeCalled();
|
|
@@ -196,7 +196,7 @@ describe("Form component rendering", () => {
|
|
|
196
196
|
</ThemeProvider>,
|
|
197
197
|
{ store },
|
|
198
198
|
);
|
|
199
|
-
expect(screen.getByText(/This page doesn
|
|
199
|
+
expect(screen.getByText(/This page doesn't have a footer. Click/i)).toBeInTheDocument();
|
|
200
200
|
expect(screen.getByTestId("form-section")).toBeTruthy();
|
|
201
201
|
});
|
|
202
202
|
|
|
@@ -210,7 +210,7 @@ describe("Form component rendering", () => {
|
|
|
210
210
|
{ store },
|
|
211
211
|
);
|
|
212
212
|
|
|
213
|
-
expect(screen.getByText(/This page doesn
|
|
213
|
+
expect(screen.getByText(/This page doesn't have a header. Click/i)).toBeInTheDocument();
|
|
214
214
|
const footerLink = screen.getByTestId("footer-link");
|
|
215
215
|
fireEvent.click(footerLink);
|
|
216
216
|
expect(restorePageNavigationAction).toBeCalled();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
|
|
3
3
|
import { ThemeProvider } from "styled-components";
|
|
4
4
|
import { render, cleanup, screen, fireEvent } from "../../../../../config/tests/test-utils";
|
|
@@ -7,7 +7,7 @@ import configureStore from "redux-mock-store";
|
|
|
7
7
|
import "@testing-library/jest-dom";
|
|
8
8
|
|
|
9
9
|
import { parseTheme } from "@ax/helpers";
|
|
10
|
-
import Header, { IHeaderProps } from "@ax/components/ConfigPanel/Header";
|
|
10
|
+
import Header, { type IHeaderProps } from "@ax/components/ConfigPanel/Header";
|
|
11
11
|
import globalTheme from "@ax/themes/theme.json";
|
|
12
12
|
|
|
13
13
|
window.scrollTo = vi.fn();
|
|
@@ -8,7 +8,11 @@ import "@testing-library/jest-dom";
|
|
|
8
8
|
import thunk from "redux-thunk";
|
|
9
9
|
|
|
10
10
|
import { parseTheme } from "@ax/helpers";
|
|
11
|
-
import Field, {
|
|
11
|
+
import Field, {
|
|
12
|
+
type IField,
|
|
13
|
+
type IStateProps,
|
|
14
|
+
type IDispatchProps,
|
|
15
|
+
} from "@ax/components/ConfigPanel/NavigationForm/Field";
|
|
12
16
|
import globalTheme from "@ax/themes/theme.json";
|
|
13
17
|
|
|
14
18
|
beforeEach(() => {
|
|
@@ -8,7 +8,7 @@ import "@testing-library/jest-dom";
|
|
|
8
8
|
import thunk from "redux-thunk";
|
|
9
9
|
|
|
10
10
|
import { parseTheme } from "@ax/helpers";
|
|
11
|
-
import NavigationForm, { INavigationFormProps } from "@ax/components/ConfigPanel/NavigationForm";
|
|
11
|
+
import NavigationForm, { type INavigationFormProps } from "@ax/components/ConfigPanel/NavigationForm";
|
|
12
12
|
import globalTheme from "@ax/themes/theme.json";
|
|
13
13
|
|
|
14
14
|
beforeEach(() => {
|
|
@@ -9,7 +9,7 @@ import "@testing-library/jest-dom";
|
|
|
9
9
|
import thunk from "redux-thunk";
|
|
10
10
|
|
|
11
11
|
import { parseTheme } from "@ax/helpers";
|
|
12
|
-
import PreviewForm, { IPreviewFormProps } from "@ax/components/ConfigPanel/PreviewForm";
|
|
12
|
+
import PreviewForm, { type IPreviewFormProps } from "@ax/components/ConfigPanel/PreviewForm";
|
|
13
13
|
import globalTheme from "@ax/themes/theme.json";
|
|
14
14
|
|
|
15
15
|
beforeEach(() => {
|
|
@@ -7,7 +7,7 @@ import { mock } from "vitest-mock-extended";
|
|
|
7
7
|
import "@testing-library/jest-dom";
|
|
8
8
|
|
|
9
9
|
import { parseTheme } from "@ax/helpers";
|
|
10
|
-
import DragAndDrop, { IDragAndDropProps } from "@ax/components/DragAndDrop";
|
|
10
|
+
import DragAndDrop, { type IDragAndDropProps } from "@ax/components/DragAndDrop";
|
|
11
11
|
import globalTheme from "@ax/themes/theme.json";
|
|
12
12
|
|
|
13
13
|
afterEach(cleanup);
|
|
@@ -6,7 +6,7 @@ import { mock } from "vitest-mock-extended";
|
|
|
6
6
|
|
|
7
7
|
import { parseTheme } from "@ax/helpers";
|
|
8
8
|
|
|
9
|
-
import ElementsTooltip, { IElementsTooltipProps } from "@ax/components/ElementsTooltip";
|
|
9
|
+
import ElementsTooltip, { type IElementsTooltipProps } from "@ax/components/ElementsTooltip";
|
|
10
10
|
import globalTheme from "@ax/themes/theme.json";
|
|
11
11
|
|
|
12
12
|
afterEach(cleanup);
|
|
@@ -7,7 +7,7 @@ import { parseTheme } from "@ax/helpers";
|
|
|
7
7
|
import "@testing-library/jest-dom";
|
|
8
8
|
|
|
9
9
|
import EmptyState from "@ax/components/EmptyState";
|
|
10
|
-
import { IEmptyStateProps } from "@ax/types";
|
|
10
|
+
import type { IEmptyStateProps } from "@ax/types";
|
|
11
11
|
import globalTheme from "@ax/themes/theme.json";
|
|
12
12
|
|
|
13
13
|
afterEach(cleanup);
|
|
@@ -6,9 +6,9 @@ import { mock } from "vitest-mock-extended";
|
|
|
6
6
|
import "@testing-library/jest-dom";
|
|
7
7
|
|
|
8
8
|
import { parseTheme } from "@ax/helpers";
|
|
9
|
-
import ErrorCenter, { IErrorCenterProps } from "@ax/components/ErrorCenter";
|
|
9
|
+
import ErrorCenter, { type IErrorCenterProps } from "@ax/components/ErrorCenter";
|
|
10
10
|
import globalTheme from "@ax/themes/theme.json";
|
|
11
|
-
import { IErrorItem } from "@ax/types";
|
|
11
|
+
import type { IErrorItem } from "@ax/types";
|
|
12
12
|
|
|
13
13
|
afterEach(cleanup);
|
|
14
14
|
|
|
@@ -5,7 +5,7 @@ import { render, cleanup, screen } from "@testing-library/react";
|
|
|
5
5
|
import { parseTheme } from "@ax/helpers";
|
|
6
6
|
import "@testing-library/jest-dom";
|
|
7
7
|
|
|
8
|
-
import ErrorToast, { IProps } from "@ax/components/ErrorToast";
|
|
8
|
+
import ErrorToast, { type IProps } from "@ax/components/ErrorToast";
|
|
9
9
|
import globalTheme from "@ax/themes/theme.json";
|
|
10
10
|
|
|
11
11
|
afterEach(cleanup);
|
|
@@ -6,7 +6,7 @@ import { render, screen, cleanup } from "@testing-library/react";
|
|
|
6
6
|
import { parseTheme } from "@ax/helpers";
|
|
7
7
|
import "@testing-library/jest-dom";
|
|
8
8
|
|
|
9
|
-
import FieldContainer, { IFieldContainerProps } from "@ax/components/FieldContainer";
|
|
9
|
+
import FieldContainer, { type IFieldContainerProps } from "@ax/components/FieldContainer";
|
|
10
10
|
import globalTheme from "@ax/themes/theme.json";
|
|
11
11
|
|
|
12
12
|
afterEach(cleanup);
|
|
@@ -2,12 +2,12 @@ import type { MockedFunction } from "vitest";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import axios from "axios";
|
|
4
4
|
import "@testing-library/jest-dom";
|
|
5
|
-
import AsyncSelect, { IAsyncSelectProps } from "@ax/components/Fields/AsyncSelect";
|
|
5
|
+
import AsyncSelect, { type IAsyncSelectProps } from "@ax/components/Fields/AsyncSelect";
|
|
6
6
|
import { ThemeProvider } from "styled-components";
|
|
7
7
|
import { parseTheme } from "@ax/helpers";
|
|
8
8
|
import globalTheme from "@ax/themes/theme.json";
|
|
9
9
|
import { render, screen, cleanup, act } from "@testing-library/react";
|
|
10
|
-
import { ISite } from "@ax/types";
|
|
10
|
+
import type { ISite } from "@ax/types";
|
|
11
11
|
import { mock } from "vitest-mock-extended";
|
|
12
12
|
|
|
13
13
|
afterEach(cleanup);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "@testing-library/jest-dom";
|
|
3
|
-
import ColorPicker, { IProps } from "@ax/components/Fields/ColorPicker";
|
|
3
|
+
import ColorPicker, { type IProps } from "@ax/components/Fields/ColorPicker";
|
|
4
4
|
import { ThemeProvider } from "styled-components";
|
|
5
5
|
import { parseTheme } from "@ax/helpers";
|
|
6
6
|
import globalTheme from "@ax/themes/theme.json";
|
|
@@ -3,9 +3,9 @@ import ComponentArraySelector from "@ax/components/Fields/ComponentArray";
|
|
|
3
3
|
import { ThemeProvider } from "styled-components";
|
|
4
4
|
import { parseTheme } from "@ax/helpers";
|
|
5
5
|
import globalTheme from "@ax/themes/theme.json";
|
|
6
|
-
import { IModule } from "@ax/types";
|
|
7
|
-
import { ISameComponentArrayProps } from "@ax/components/Fields/ComponentArray/SameComponentArray";
|
|
8
|
-
import { IMixableComponentArrayProps } from "@ax/components/Fields/ComponentArray/MixableComponentArray";
|
|
6
|
+
import type { IModule } from "@ax/types";
|
|
7
|
+
import type { ISameComponentArrayProps } from "@ax/components/Fields/ComponentArray/SameComponentArray";
|
|
8
|
+
import type { IMixableComponentArrayProps } from "@ax/components/Fields/ComponentArray/MixableComponentArray";
|
|
9
9
|
import { render, screen, cleanup } from "@testing-library/react";
|
|
10
10
|
import { mock } from "vitest-mock-extended";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import MixableComponentArray, {
|
|
3
|
-
IMixableComponentArrayProps,
|
|
3
|
+
type IMixableComponentArrayProps,
|
|
4
4
|
} from "@ax/components/Fields/ComponentArray/MixableComponentArray";
|
|
5
5
|
import { ThemeProvider } from "styled-components";
|
|
6
6
|
import { parseTheme } from "@ax/helpers";
|
|
7
7
|
import globalTheme from "@ax/themes/theme.json";
|
|
8
|
-
import { IModule } from "@ax/types";
|
|
8
|
+
import type { IModule } from "@ax/types";
|
|
9
9
|
import { render, screen, cleanup, fireEvent } from "@testing-library/react";
|
|
10
10
|
import { mock } from "vitest-mock-extended";
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { MockedFunction } from "vitest";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import PasteModuleButton, { IPasteModuleProps } from "@ax/components/Fields/ComponentArray/PasteModuleButton";
|
|
3
|
+
import PasteModuleButton, { type IPasteModuleProps } from "@ax/components/Fields/ComponentArray/PasteModuleButton";
|
|
4
4
|
import { ThemeProvider } from "styled-components";
|
|
5
5
|
import { parseTheme } from "@ax/helpers";
|
|
6
6
|
import "@testing-library/jest-dom";
|
|
7
7
|
import globalTheme from "@ax/themes/theme.json";
|
|
8
|
-
import { IModule, INotification } from "@ax/types";
|
|
8
|
+
import type { IModule, INotification } from "@ax/types";
|
|
9
9
|
import { render, screen, cleanup, fireEvent, act } from "@testing-library/react";
|
|
10
10
|
import { mock } from "vitest-mock-extended";
|
|
11
11
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import SameComponentArray, {
|
|
2
|
+
import SameComponentArray, {
|
|
3
|
+
type ISameComponentArrayProps,
|
|
4
|
+
} from "@ax/components/Fields/ComponentArray/SameComponentArray";
|
|
3
5
|
import { ThemeProvider } from "styled-components";
|
|
4
6
|
import { parseTheme } from "@ax/helpers";
|
|
5
7
|
import globalTheme from "@ax/themes/theme.json";
|
|
6
|
-
import { IModule } from "@ax/types";
|
|
8
|
+
import type { IModule } from "@ax/types";
|
|
7
9
|
import { render, screen, cleanup, fireEvent } from "@testing-library/react";
|
|
8
10
|
import { mock } from "vitest-mock-extended";
|
|
9
11
|
|