@griddo/ax 11.10.11-rc.0 → 11.10.12-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 +56 -3
- package/config/env.js +56 -56
- package/config/getHttpsConfig.js +32 -32
- package/config/griddo-config/cx-polyfills/builder.ssr.js +1 -2
- package/config/griddo-config/index.js +71 -71
- package/config/griddo-config/ssrHelpers.js +21 -23
- package/config/jest/componentsMock.js +1633 -1633
- package/config/jest/cssTransform.js +7 -7
- package/config/jest/fileMock.js +1 -1
- package/config/jest/fileTransform.js +13 -13
- package/config/jest/setup.js +9 -9
- package/config/jest/test-utils.js +11 -11
- package/config/modules.js +94 -92
- package/config/paths.js +73 -73
- package/config/pnpTs.js +8 -8
- package/config/webpack/persistentCache/createEnvironmentHash.js +3 -3
- package/config/webpack.config.js +624 -624
- package/config/webpackDevServer.config.js +111 -111
- package/config/webpackSchemas.config.js +50 -50
- package/package.json +219 -227
- package/public/fonts/fonts.css +216 -168
- package/public/manifest.json +6 -6
- package/scripts/build.js +114 -114
- package/scripts/griddo-sync-schemas.js +115 -115
- package/scripts/griddo.js +24 -24
- package/scripts/start.js +73 -73
- package/src/GlobalStore.tsx +62 -62
- package/src/Style/index.tsx +11 -8
- package/src/__mocks__/axios/ReferenceField.ts +455 -455
- package/src/__mocks__/axios/Roles.ts +6 -7
- package/src/__mocks__/axios/SitesList.ts +107 -107
- package/src/__mocks__/axios/SitesListCategories.ts +22 -22
- package/src/__mocks__/axios/SitesListDataPack.ts +148 -168
- package/src/__mocks__/axios/SitesListOptions.ts +15 -15
- package/src/__mocks__/axios/UserList.ts +525 -525
- package/src/__mocks__/mockedAxios.ts +2203 -2203
- package/src/__mocks__/reducers/structuredData.tsx +4 -5
- package/src/__mocks__/store/GenericStore.ts +26 -26
- package/src/__mocks__/store/ReferenceField.ts +1663 -1663
- package/src/__mocks__/store/Roles.ts +1045 -1045
- package/src/__mocks__/store/SitesList.ts +733 -733
- package/src/__mocks__/store/UserList.ts +468 -468
- package/src/__mocks__/store/UsersCreate.ts +287 -287
- package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +230 -230
- package/src/__tests__/components/Avatar/Avatar.test.tsx +107 -107
- package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +83 -83
- package/src/__tests__/components/Browser/Browser.test.tsx +174 -174
- package/src/__tests__/components/BulkSelectionOptions/BulkSelectionOptions.test.tsx +147 -147
- package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +40 -40
- package/src/__tests__/components/ConfigPanel/ConfigPanel.test.tsx +206 -206
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/ConnectedField.test.tsx +147 -147
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/NavConnectedField/NavConnectedField.test.tsx +134 -134
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/Field.test.tsx +92 -92
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/PageConnectedField.test.tsx +360 -360
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/TemplateManager.test.tsx +121 -121
- package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +198 -198
- package/src/__tests__/components/ConfigPanel/GlobalPageForm/GlobalPageForm.test.tsx +198 -198
- package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +115 -115
- package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +174 -174
- package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +66 -66
- package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +62 -62
- package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +68 -68
- package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +79 -79
- package/src/__tests__/components/EmptyState/EmptyState.test.tsx +49 -49
- package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +164 -164
- package/src/__tests__/components/ErrorToast/ErrorToast.test.tsx +42 -42
- package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +57 -57
- package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +64 -64
- package/src/__tests__/components/Fields/AnalyticsField/PageAnalytics/PageAnalytics.test.tsx +171 -171
- package/src/__tests__/components/Fields/AnalyticsField/StructuredDataAnalytics/StructuredDataAnalytics.test.tsx +105 -105
- package/src/__tests__/components/Fields/ArrayFieldGroup/ArrayFieldGroup.test.tsx +238 -238
- package/src/__tests__/components/Fields/AsyncCheckGroup/AsyncCheckGroup.test.tsx +89 -87
- package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +238 -238
- package/src/__tests__/components/Fields/Button/Button.test.tsx +100 -100
- package/src/__tests__/components/Fields/CheckField/CheckField.test.tsx +138 -138
- package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +331 -331
- package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +170 -171
- package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +111 -111
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +248 -248
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +84 -84
- package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +164 -164
- package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +480 -480
- package/src/__tests__/components/Fields/ConditionalField/ConditionalField.test.tsx +67 -67
- package/src/__tests__/components/Fields/DateField/DateField.test.tsx +49 -49
- package/src/__tests__/components/Fields/FieldGroup/FieldGroup.test.tsx +46 -46
- package/src/__tests__/components/Fields/FieldsDivider/FieldsDivider.test.tsx +10 -10
- package/src/__tests__/components/Fields/FileField/FileField.test.tsx +96 -96
- package/src/__tests__/components/Fields/HeadingField/HeadingField.test.tsx +54 -54
- package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +43 -43
- package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +450 -450
- package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +412 -412
- package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +36 -36
- package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +100 -100
- package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +36 -36
- package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +87 -87
- package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +79 -79
- package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +404 -406
- package/src/__tests__/components/Fields/RichText/RichText.test.tsx +20 -20
- package/src/__tests__/components/Fields/Select/Select.test.tsx +38 -38
- package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +45 -45
- package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +35 -35
- package/src/__tests__/components/Fields/TagField/TagField.test.tsx +119 -119
- package/src/__tests__/components/Fields/TextArea/TextArea.test.tsx +45 -45
- package/src/__tests__/components/Fields/TextField/TextField.test.tsx +126 -126
- package/src/__tests__/components/Fields/TimeField/HourInput/HourInput.test.tsx +121 -121
- package/src/__tests__/components/Fields/TimeField/TimeField.test.tsx +80 -80
- package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +107 -107
- package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +129 -129
- package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +215 -215
- package/src/__tests__/components/Fields/UniqueCheck/UniqueCheck.test.tsx +24 -24
- package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +395 -395
- package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +60 -60
- package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +125 -125
- package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +30 -30
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +98 -98
- package/src/__tests__/components/FieldsBehavior/FieldsBehavior.test.tsx +135 -135
- package/src/__tests__/components/Flag/Flag.test.tsx +46 -46
- package/src/__tests__/components/FloatingMenu/FloatingMenu.test.tsx +693 -693
- package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +132 -132
- package/src/__tests__/components/GuardModal/GuardModal.test.tsx +12 -12
- package/src/__tests__/components/Icon/Icon.test.tsx +51 -51
- package/src/__tests__/components/IconAction/IconAction.test.tsx +74 -74
- package/src/__tests__/components/Image/Image.test.tsx +27 -27
- package/src/__tests__/components/InformativeMenu/InformativeMenu.test.tsx +70 -70
- package/src/__tests__/components/LanguageMenu/LanguageMenu.test.tsx +196 -196
- package/src/__tests__/components/Lists/Lists.test.tsx +40 -40
- package/src/__tests__/components/Loader/Loader.test.tsx +41 -41
- package/src/__tests__/components/Loading/Loading.test.tsx +9 -9
- package/src/__tests__/components/Login/Login.test.tsx +223 -223
- package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +160 -160
- package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +503 -503
- package/src/__tests__/components/MainWrapper/MainWrapper.test.tsx +122 -122
- package/src/__tests__/components/MenuItem/MenuItem.test.tsx +123 -123
- package/src/__tests__/components/Modal/Modal.test.tsx +294 -294
- package/src/__tests__/components/Nav/Nav.test.tsx +41 -41
- package/src/__tests__/components/Notification/Notification.test.tsx +186 -186
- package/src/__tests__/components/Notification/SubNotification/Subnotification.test.tsx +32 -32
- package/src/__tests__/components/Pagination/Pagination.test.tsx +222 -222
- package/src/__tests__/components/ProgressBar/ProgressBar.test.tsx +12 -12
- package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +67 -67
- package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +135 -145
- package/src/__tests__/components/SearchField/SearchField.test.tsx +354 -354
- package/src/__tests__/components/SideModal/SideModal.test.tsx +321 -321
- package/src/__tests__/components/SubNav/SubNav.test.tsx +21 -21
- package/src/__tests__/components/TableCounter/TableCounter.test.tsx +35 -35
- package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +223 -223
- package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +115 -115
- package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +129 -129
- package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +280 -280
- package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +178 -178
- package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +147 -147
- package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +297 -297
- package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +178 -178
- package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +138 -138
- package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +147 -147
- package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +135 -135
- package/src/__tests__/components/TableList/TableList.test.tsx +95 -95
- package/src/__tests__/components/Tabs/Tabs.test.tsx +187 -187
- package/src/__tests__/components/Tag/Tag.test.tsx +121 -121
- package/src/__tests__/components/Toast/Toast.test.tsx +87 -87
- package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +143 -143
- package/src/__tests__/modules/Sites/Sites.test.tsx +238 -238
- package/src/__tests__/modules/Sites/SitesList/ListView/BulkHeader/BulkHeader.test.tsx +34 -34
- package/src/__tests__/modules/Sites/SitesList/SitesList.test.tsx +917 -917
- package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +133 -133
- package/src/__tests__/modules/Users/Roles/Roles.test.tsx +589 -589
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +75 -75
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +137 -137
- package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +153 -153
- package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +260 -260
- package/src/__tests__/modules/Users/UserList/UserItem/UserItem.test.tsx +363 -363
- package/src/__tests__/modules/Users/UserList/UserList.test.tsx +264 -264
- package/src/api/analytics.tsx +64 -64
- package/src/api/checkgroups.tsx +36 -36
- package/src/api/config.tsx +10 -10
- package/src/api/dataPack.tsx +127 -127
- package/src/api/domains.tsx +12 -12
- package/src/api/files.tsx +137 -137
- package/src/api/folders.tsx +39 -39
- package/src/api/forms.tsx +164 -164
- package/src/api/global.tsx +55 -55
- package/src/api/images.tsx +160 -160
- package/src/api/index.tsx +24 -24
- package/src/api/integrations.tsx +112 -112
- package/src/api/languages.tsx +50 -50
- package/src/api/logs.tsx +60 -60
- package/src/api/menus.tsx +21 -21
- package/src/api/navigation.tsx +158 -158
- package/src/api/pages.tsx +212 -212
- package/src/api/redirects.tsx +62 -62
- package/src/api/roles.tsx +51 -51
- package/src/api/schemas.tsx +7 -7
- package/src/api/selects.tsx +37 -37
- package/src/api/sites.tsx +302 -302
- package/src/api/social.tsx +24 -24
- package/src/api/structuredData.tsx +269 -269
- package/src/api/users.tsx +106 -106
- package/src/api/utils.tsx +157 -159
- package/src/components/ActionMenu/index.tsx +48 -48
- package/src/components/Avatar/index.tsx +9 -9
- package/src/components/BackFolder/index.tsx +14 -14
- package/src/components/BackFolder/style.tsx +3 -3
- package/src/components/Breadcrumb/index.tsx +27 -27
- package/src/components/Breadcrumb/style.tsx +10 -10
- package/src/components/Browser/index.tsx +193 -193
- package/src/components/BrowserContent/index.tsx +75 -75
- package/src/components/BulkSelectionOptions/index.tsx +41 -41
- package/src/components/Button/index.tsx +86 -86
- package/src/components/Button/style.tsx +1 -1
- package/src/components/CategoryCell/index.tsx +13 -13
- package/src/components/Circle/index.tsx +4 -4
- package/src/components/ConfigPanel/Form/ConnectedField/NavConnectedField/index.tsx +146 -146
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/index.tsx +106 -106
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/index.tsx +150 -150
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/index.tsx +243 -243
- package/src/components/ConfigPanel/Form/ConnectedField/index.tsx +3 -3
- package/src/components/ConfigPanel/Form/index.tsx +144 -144
- package/src/components/ConfigPanel/GlobalPageForm/index.tsx +169 -169
- package/src/components/ConfigPanel/Header/index.tsx +124 -124
- package/src/components/ConfigPanel/NavigationForm/Field/index.tsx +141 -140
- package/src/components/ConfigPanel/NavigationForm/Field/style.tsx +21 -27
- package/src/components/ConfigPanel/NavigationForm/index.tsx +14 -14
- package/src/components/ConfigPanel/NavigationForm/style.tsx +5 -5
- package/src/components/ConfigPanel/PreviewForm/index.tsx +22 -22
- package/src/components/ConfigPanel/index.tsx +116 -116
- package/src/components/DragAndDrop/index.tsx +47 -47
- package/src/components/ElementsTooltip/index.tsx +65 -65
- package/src/components/EmptyState/index.tsx +17 -17
- package/src/components/ErrorCenter/index.tsx +58 -58
- package/src/components/ErrorPage/index.tsx +98 -98
- package/src/components/ErrorPage/style.tsx +13 -13
- package/src/components/ErrorToast/index.tsx +4 -4
- package/src/components/ErrorToast/style.tsx +11 -11
- package/src/components/ExportButton/index.tsx +40 -40
- package/src/components/FieldContainer/index.tsx +63 -63
- package/src/components/Fields/AIReferenceField/AIConfigPanel/index.tsx +139 -139
- package/src/components/Fields/AIReferenceField/index.tsx +73 -73
- package/src/components/Fields/AIReferenceField/style.tsx +1 -1
- package/src/components/Fields/AnalyticsField/PageAnalytics/atoms.tsx +70 -70
- package/src/components/Fields/AnalyticsField/PageAnalytics/index.tsx +131 -131
- package/src/components/Fields/AnalyticsField/StructuredDataAnalytics/atoms.tsx +67 -67
- package/src/components/Fields/AnalyticsField/StructuredDataAnalytics/index.tsx +63 -63
- package/src/components/Fields/AnalyticsField/index.tsx +23 -23
- package/src/components/Fields/AnalyticsField/utils.tsx +6 -6
- package/src/components/Fields/ArrayFieldGroup/ArrayFieldInline/index.tsx +71 -71
- package/src/components/Fields/ArrayFieldGroup/ArrayFieldItem/index.tsx +105 -105
- package/src/components/Fields/ArrayFieldGroup/index.tsx +108 -108
- package/src/components/Fields/AsyncCheckGroup/index.tsx +210 -210
- package/src/components/Fields/AsyncSelect/index.tsx +180 -180
- package/src/components/Fields/AsyncSelect/style.tsx +6 -6
- package/src/components/Fields/CheckField/index.tsx +76 -76
- package/src/components/Fields/CheckField/style.tsx +33 -33
- package/src/components/Fields/CheckGroup/index.tsx +48 -48
- package/src/components/Fields/CheckGroup/style.tsx +2 -2
- package/src/components/Fields/ColorPicker/Picker/index.tsx +60 -60
- package/src/components/Fields/ColorPicker/Picker/style.tsx +14 -14
- package/src/components/Fields/ColorPicker/helpers.tsx +31 -26
- package/src/components/Fields/ColorPicker/index.tsx +120 -120
- package/src/components/Fields/ColorPicker/style.tsx +11 -11
- package/src/components/Fields/ComponentArray/BulkHeader/index.tsx +32 -32
- package/src/components/Fields/ComponentArray/MixableComponentArray/AddItemButton/index.tsx +27 -27
- package/src/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/index.tsx +53 -53
- package/src/components/Fields/ComponentArray/MixableComponentArray/index.tsx +352 -353
- package/src/components/Fields/ComponentArray/SameComponentArray/AddItemButton/index.tsx +8 -8
- package/src/components/Fields/ComponentArray/SameComponentArray/index.tsx +241 -242
- package/src/components/Fields/ComponentArray/helpers.tsx +66 -66
- package/src/components/Fields/ComponentArray/index.tsx +3 -3
- package/src/components/Fields/ComponentContainer/EmptyContainer/index.tsx +36 -36
- package/src/components/Fields/ComponentContainer/atoms.tsx +12 -12
- package/src/components/Fields/ComponentContainer/index.tsx +258 -258
- package/src/components/Fields/ComponentContainer/style.tsx +20 -20
- package/src/components/Fields/ConditionalField/index.tsx +20 -20
- package/src/components/Fields/DateField/DatePickerInput/index.tsx +54 -54
- package/src/components/Fields/DateField/index.tsx +127 -127
- package/src/components/Fields/FieldGroup/index.tsx +18 -18
- package/src/components/Fields/FieldsDivider/index.tsx +9 -9
- package/src/components/Fields/FileField/index.tsx +100 -100
- package/src/components/Fields/FileField/style.tsx +11 -11
- package/src/components/Fields/FormCategorySelect/index.tsx +30 -30
- package/src/components/Fields/FormContainer/FormModal/index.tsx +190 -190
- package/src/components/Fields/FormContainer/FormModal/style.tsx +16 -16
- package/src/components/Fields/FormContainer/index.tsx +73 -73
- package/src/components/Fields/FormFieldArray/index.tsx +5 -5
- package/src/components/Fields/HeadingField/index.tsx +39 -39
- package/src/components/Fields/HiddenField/index.tsx +18 -18
- package/src/components/Fields/ImageField/index.tsx +194 -194
- package/src/components/Fields/ImageField/style.tsx +18 -18
- package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/index.tsx +82 -82
- package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/style.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/helpers.ts +24 -24
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/index.tsx +97 -98
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/style.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/atoms.tsx +15 -15
- package/src/components/Fields/IntegrationsField/IntegrationItem/index.tsx +114 -114
- package/src/components/Fields/IntegrationsField/PasteIntegrationButton/index.tsx +15 -15
- package/src/components/Fields/IntegrationsField/SideModal/SideModalOption/index.tsx +38 -38
- package/src/components/Fields/IntegrationsField/SideModal/index.tsx +40 -40
- package/src/components/Fields/IntegrationsField/index.tsx +119 -119
- package/src/components/Fields/LinkField/index.tsx +112 -112
- package/src/components/Fields/MultiCheckSelect/index.tsx +77 -77
- package/src/components/Fields/MultiCheckSelect/style.tsx +2 -2
- package/src/components/Fields/MultiCheckSelectGroup/index.tsx +68 -68
- package/src/components/Fields/NoteField/index.tsx +10 -10
- package/src/components/Fields/NumberField/index.tsx +89 -89
- package/src/components/Fields/NumberField/style.tsx +2 -2
- package/src/components/Fields/RadioField/index.tsx +30 -30
- package/src/components/Fields/RadioField/style.tsx +12 -12
- package/src/components/Fields/RadioGroup/index.tsx +43 -43
- package/src/components/Fields/RadioGroup/style.tsx +4 -4
- package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/index.tsx +380 -380
- package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/style.tsx +20 -20
- package/src/components/Fields/ReferenceField/AutoPanel/index.tsx +513 -513
- package/src/components/Fields/ReferenceField/AutoPanel/style.tsx +25 -25
- package/src/components/Fields/ReferenceField/Context/index.tsx +87 -87
- package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +45 -45
- package/src/components/Fields/ReferenceField/ItemList/Item/style.tsx +13 -13
- package/src/components/Fields/ReferenceField/ItemList/index.tsx +124 -124
- package/src/components/Fields/ReferenceField/ManualPanel/Item/index.tsx +25 -25
- package/src/components/Fields/ReferenceField/ManualPanel/index.tsx +227 -227
- package/src/components/Fields/ReferenceField/ManualPanel/style.tsx +10 -10
- package/src/components/Fields/ReferenceField/index.tsx +236 -236
- package/src/components/Fields/ReferenceField/style.tsx +12 -12
- package/src/components/Fields/RichText/index.tsx +123 -112
- package/src/components/Fields/RichText/style.tsx +1 -1
- package/src/components/Fields/RichText/utils.tsx +23 -23
- package/src/components/Fields/Select/index.tsx +70 -70
- package/src/components/Fields/Select/style.tsx +6 -6
- package/src/components/Fields/SliderField/index.tsx +50 -50
- package/src/components/Fields/SummaryButton/index.tsx +53 -53
- package/src/components/Fields/TagsField/index.tsx +49 -49
- package/src/components/Fields/TextArea/index.tsx +48 -47
- package/src/components/Fields/TextField/index.tsx +122 -123
- package/src/components/Fields/TextField/style.tsx +9 -9
- package/src/components/Fields/TimeField/HourInput/index.tsx +82 -82
- package/src/components/Fields/TimeField/HourInput/utils.tsx +23 -23
- package/src/components/Fields/TimeField/index.tsx +45 -45
- package/src/components/Fields/ToggleField/index.tsx +31 -31
- package/src/components/Fields/TranslateButton/index.tsx +137 -137
- package/src/components/Fields/UniqueCheck/index.tsx +30 -30
- package/src/components/Fields/UrlField/index.tsx +232 -232
- package/src/components/Fields/UrlField/utils.tsx +78 -78
- package/src/components/Fields/VisualOption/index.tsx +26 -26
- package/src/components/Fields/VisualOption/style.tsx +4 -4
- package/src/components/Fields/VisualUniqueSelection/ImageSelection/index.tsx +31 -31
- package/src/components/Fields/VisualUniqueSelection/ImageSelection/style.tsx +1 -1
- package/src/components/Fields/VisualUniqueSelection/ScrollableSelection/index.tsx +73 -73
- package/src/components/Fields/VisualUniqueSelection/index.tsx +3 -3
- package/src/components/Fields/VisualUniqueSelection/utils.tsx +13 -13
- package/src/components/Fields/Wysiwyg/config.tsx +95 -95
- package/src/components/Fields/Wysiwyg/helpers.tsx +69 -69
- package/src/components/Fields/Wysiwyg/index.tsx +81 -81
- package/src/components/Fields/Wysiwyg/languages.js +132 -132
- package/src/components/Fields/Wysiwyg/style.tsx +37 -37
- package/src/components/Fields/index.tsx +45 -45
- package/src/components/FieldsBehavior/index.tsx +114 -114
- package/src/components/FieldsBehavior/style.tsx +15 -15
- package/src/components/FileGallery/FolderItem/index.tsx +24 -24
- package/src/components/FileGallery/FolderItem/style.tsx +1 -1
- package/src/components/FileGallery/GalleryPanel/DetailPanel/index.tsx +133 -133
- package/src/components/FileGallery/GalleryPanel/DetailPanel/style.tsx +12 -12
- package/src/components/FileGallery/GalleryPanel/index.tsx +25 -25
- package/src/components/FileGallery/GalleryPanel/style.tsx +2 -2
- package/src/components/FileGallery/GridItem/index.tsx +32 -32
- package/src/components/FileGallery/index.tsx +310 -310
- package/src/components/FileGallery/style.tsx +22 -22
- package/src/components/FilterTagsBar/index.tsx +48 -48
- package/src/components/FilterTagsBar/style.tsx +1 -1
- package/src/components/Flag/components/Ca_ES.js +11 -11
- package/src/components/Flag/components/De_DE.js +13 -7
- package/src/components/Flag/components/En_GB.js +16 -16
- package/src/components/Flag/components/Es_ES.js +73 -61
- package/src/components/Flag/components/Eu_ES.js +16 -13
- package/src/components/Flag/components/Fr_FR.js +13 -7
- package/src/components/Flag/components/It_IT.js +13 -7
- package/src/components/Flag/components/Pt_PT.js +33 -27
- package/src/components/Flag/index.tsx +24 -24
- package/src/components/FloatingButton/index.tsx +20 -20
- package/src/components/FloatingMenu/index.tsx +121 -122
- package/src/components/FloatingPanel/index.tsx +55 -55
- package/src/components/FloatingPanel/style.tsx +3 -3
- package/src/components/Gallery/FolderItem/index.tsx +24 -24
- package/src/components/Gallery/FolderItem/style.tsx +1 -1
- package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +138 -138
- package/src/components/Gallery/GalleryPanel/DetailPanel/style.tsx +13 -13
- package/src/components/Gallery/GalleryPanel/index.tsx +40 -40
- package/src/components/Gallery/GalleryPanel/style.tsx +2 -2
- package/src/components/Gallery/index.tsx +347 -348
- package/src/components/Gallery/style.tsx +24 -24
- package/src/components/GuardModal/index.tsx +34 -34
- package/src/components/GuardModal/style.tsx +3 -3
- package/src/components/Icon/components/Active.js +9 -9
- package/src/components/Icon/components/Add.js +4 -4
- package/src/components/Icon/components/AddCircle.js +7 -7
- package/src/components/Icon/components/Alert.js +10 -10
- package/src/components/Icon/components/Back.js +6 -6
- package/src/components/Icon/components/BulletList.js +10 -10
- package/src/components/Icon/components/Button.js +9 -4
- package/src/components/Icon/components/Calendar.js +9 -9
- package/src/components/Icon/components/CancelEvent.js +6 -6
- package/src/components/Icon/components/Category.js +6 -6
- package/src/components/Icon/components/Change.js +9 -9
- package/src/components/Icon/components/Close.js +7 -7
- package/src/components/Icon/components/ClosePanel.js +8 -8
- package/src/components/Icon/components/CodeBody.js +8 -8
- package/src/components/Icon/components/CodeHead.js +8 -8
- package/src/components/Icon/components/CodeHeadBody.js +8 -8
- package/src/components/Icon/components/Collapsed.js +10 -10
- package/src/components/Icon/components/ColorPicker.js +8 -8
- package/src/components/Icon/components/Compose.js +8 -8
- package/src/components/Icon/components/Copy.js +9 -9
- package/src/components/Icon/components/Copy2.js +9 -9
- package/src/components/Icon/components/Data.js +9 -9
- package/src/components/Icon/components/DataAdd.js +15 -15
- package/src/components/Icon/components/Deactivate.js +8 -8
- package/src/components/Icon/components/Delete.js +7 -4
- package/src/components/Icon/components/Desktop.js +8 -8
- package/src/components/Icon/components/Disabled.js +8 -8
- package/src/components/Icon/components/Done.js +5 -5
- package/src/components/Icon/components/DownArrow.js +4 -4
- package/src/components/Icon/components/Download.js +3 -3
- package/src/components/Icon/components/Drag.js +9 -9
- package/src/components/Icon/components/Duplicate.js +7 -7
- package/src/components/Icon/components/Edit.js +7 -7
- package/src/components/Icon/components/Empty.js +8 -8
- package/src/components/Icon/components/EmptyCheck.js +10 -10
- package/src/components/Icon/components/Extend.js +10 -10
- package/src/components/Icon/components/File.js +8 -8
- package/src/components/Icon/components/Filter.js +5 -5
- package/src/components/Icon/components/Form.js +8 -8
- package/src/components/Icon/components/FullArrowDown.js +4 -4
- package/src/components/Icon/components/FullArrowLeft.js +4 -4
- package/src/components/Icon/components/FullArrowRight.js +4 -4
- package/src/components/Icon/components/FullArrowUp.js +4 -4
- package/src/components/Icon/components/Grid.js +10 -10
- package/src/components/Icon/components/Grid2.js +10 -10
- package/src/components/Icon/components/HeroCard.js +10 -7
- package/src/components/Icon/components/Hide.js +16 -13
- package/src/components/Icon/components/History.js +9 -9
- package/src/components/Icon/components/Home.js +8 -3
- package/src/components/Icon/components/Ia.js +8 -8
- package/src/components/Icon/components/Image.js +7 -4
- package/src/components/Icon/components/Info.js +9 -9
- package/src/components/Icon/components/Laptop.js +9 -4
- package/src/components/Icon/components/LeftArrow.js +4 -4
- package/src/components/Icon/components/Link.js +9 -9
- package/src/components/Icon/components/Lock.js +7 -7
- package/src/components/Icon/components/Log.js +7 -7
- package/src/components/Icon/components/Map.js +9 -6
- package/src/components/Icon/components/Menu.js +4 -9
- package/src/components/Icon/components/Microsoft.js +6 -6
- package/src/components/Icon/components/Modified.js +9 -9
- package/src/components/Icon/components/Modules.js +8 -8
- package/src/components/Icon/components/More.js +10 -10
- package/src/components/Icon/components/NewFolder.js +6 -6
- package/src/components/Icon/components/Offline.js +8 -8
- package/src/components/Icon/components/OfflinePending.js +10 -10
- package/src/components/Icon/components/OpenOutside.js +10 -10
- package/src/components/Icon/components/OpenPanel.js +8 -8
- package/src/components/Icon/components/OutOfSection.js +8 -3
- package/src/components/Icon/components/Page.js +7 -7
- package/src/components/Icon/components/Paste.js +7 -7
- package/src/components/Icon/components/Phone.js +8 -8
- package/src/components/Icon/components/PhotoLibrary.js +7 -7
- package/src/components/Icon/components/Power.js +9 -9
- package/src/components/Icon/components/Preview.js +8 -8
- package/src/components/Icon/components/Project.js +9 -4
- package/src/components/Icon/components/QrCode.js +6 -6
- package/src/components/Icon/components/Question.js +10 -10
- package/src/components/Icon/components/Refresh.js +6 -6
- package/src/components/Icon/components/RightArrow.js +4 -4
- package/src/components/Icon/components/Scheduled.js +8 -8
- package/src/components/Icon/components/Search.js +9 -9
- package/src/components/Icon/components/SendEmail.js +8 -8
- package/src/components/Icon/components/Settings.js +15 -15
- package/src/components/Icon/components/Share.js +6 -6
- package/src/components/Icon/components/Subsection.js +8 -3
- package/src/components/Icon/components/Success.js +10 -10
- package/src/components/Icon/components/SuccessSolid.js +10 -10
- package/src/components/Icon/components/Tablet.js +8 -8
- package/src/components/Icon/components/Translate.js +6 -6
- package/src/components/Icon/components/Unlink.js +9 -9
- package/src/components/Icon/components/UpArrow.js +4 -4
- package/src/components/Icon/components/UploadFile.js +8 -8
- package/src/components/Icon/components/UploadPending.js +8 -8
- package/src/components/Icon/components/UrlLink.js +8 -8
- package/src/components/Icon/components/User.js +9 -9
- package/src/components/Icon/components/Users.js +8 -8
- package/src/components/Icon/components/Video.js +9 -9
- package/src/components/Icon/components/View.js +8 -8
- package/src/components/Icon/components/Warning.js +10 -10
- package/src/components/Icon/components/Web.js +10 -10
- package/src/components/Icon/components/Working.js +6 -6
- package/src/components/Icon/index.tsx +37 -37
- package/src/components/IconAction/index.tsx +27 -27
- package/src/components/IconAction/style.tsx +4 -4
- package/src/components/Image/index.tsx +21 -21
- package/src/components/Image/utils.ts +31 -31
- package/src/components/InformativeMenu/index.tsx +20 -20
- package/src/components/InformativeMenu/style.tsx +3 -3
- package/src/components/LanguageMenu/index.tsx +58 -58
- package/src/components/LanguageMenu/style.tsx +10 -10
- package/src/components/Lists/index.tsx +10 -10
- package/src/components/Loader/components/Circle.js +15 -8
- package/src/components/Loader/components/Dots.js +13 -13
- package/src/components/Loader/index.tsx +28 -28
- package/src/components/Loading/index.tsx +9 -9
- package/src/components/Login/LoginForm/RecoveryModal/index.tsx +64 -64
- package/src/components/Login/LoginForm/index.tsx +107 -107
- package/src/components/Login/LoginSSO/index.tsx +60 -60
- package/src/components/Login/LoginSSO/style.tsx +12 -12
- package/src/components/Login/LoginSlider/index.tsx +50 -50
- package/src/components/Login/index.tsx +69 -69
- package/src/components/MainWrapper/AppBar/atoms.tsx +39 -39
- package/src/components/MainWrapper/AppBar/index.tsx +282 -282
- package/src/components/MainWrapper/AppBar/style.tsx +24 -24
- package/src/components/MainWrapper/AppBar/utils.tsx +10 -14
- package/src/components/MainWrapper/index.tsx +50 -50
- package/src/components/MenuGroup/index.tsx +68 -68
- package/src/components/MenuGroup/style.tsx +5 -5
- package/src/components/MenuItem/index.tsx +47 -47
- package/src/components/Modal/index.tsx +83 -83
- package/src/components/Modal/style.tsx +20 -20
- package/src/components/Nav/index.tsx +33 -33
- package/src/components/Nav/style.tsx +1 -1
- package/src/components/Notification/SubNotification/index.tsx +18 -18
- package/src/components/Notification/index.tsx +82 -82
- package/src/components/OcassionalToast/index.tsx +11 -11
- package/src/components/PageFinder/SelectionListItem/index.tsx +29 -29
- package/src/components/PageFinder/index.tsx +278 -278
- package/src/components/PageFinder/style.tsx +12 -12
- package/src/components/Pagination/index.tsx +49 -44
- package/src/components/Pagination/style.tsx +4 -8
- package/src/components/ProgressBar/index.tsx +11 -11
- package/src/components/ProgressBar/style.tsx +4 -4
- package/src/components/ReorderArrows/index.tsx +25 -25
- package/src/components/ReorderArrows/style.tsx +3 -3
- package/src/components/ResizePanel/ResizeHandle/index.tsx +51 -19
- package/src/components/ResizePanel/index.tsx +40 -39
- package/src/components/ResizePanel/style.tsx +5 -5
- package/src/components/RestoreModal/index.tsx +37 -37
- package/src/components/ScheduleModal/index.tsx +84 -84
- package/src/components/SearchField/index.tsx +120 -120
- package/src/components/SearchField/style.tsx +10 -10
- package/src/components/SearchTagsBar/index.tsx +31 -31
- package/src/components/SearchTagsBar/style.tsx +1 -1
- package/src/components/SideModal/SideModalOption/index.tsx +42 -42
- package/src/components/SideModal/index.tsx +193 -194
- package/src/components/SideModal/style.tsx +15 -15
- package/src/components/SubNav/index.tsx +6 -6
- package/src/components/TableCounter/index.tsx +4 -4
- package/src/components/TableFilters/CategoryFilter/index.tsx +106 -107
- package/src/components/TableFilters/CheckGroupFilter/index.tsx +95 -95
- package/src/components/TableFilters/CustomizeFilters/index.tsx +41 -41
- package/src/components/TableFilters/DateFilter/index.tsx +38 -38
- package/src/components/TableFilters/LastAccessFilter/index.tsx +38 -38
- package/src/components/TableFilters/LiveFilter/index.tsx +100 -102
- package/src/components/TableFilters/NameFilter/index.tsx +48 -48
- package/src/components/TableFilters/PermissionsFilter/index.tsx +37 -37
- package/src/components/TableFilters/RoleFilter/index.tsx +50 -50
- package/src/components/TableFilters/SiteFilter/index.tsx +73 -73
- package/src/components/TableFilters/StateFilter/index.tsx +53 -53
- package/src/components/TableFilters/StatusFilter/index.tsx +40 -40
- package/src/components/TableFilters/TranslationsFilter/index.tsx +48 -49
- package/src/components/TableFilters/TypeFilter/index.tsx +50 -51
- package/src/components/TableFilters/UsersFilter/index.tsx +42 -42
- package/src/components/TableFilters/index.tsx +15 -15
- package/src/components/TableList/TableItem/style.tsx +4 -4
- package/src/components/TableList/index.tsx +44 -44
- package/src/components/TableList/style.tsx +14 -14
- package/src/components/Tabs/index.tsx +58 -58
- package/src/components/Tabs/style.tsx +6 -6
- package/src/components/Tag/index.tsx +50 -50
- package/src/components/Tag/style.tsx +1 -1
- package/src/components/Toast/index.tsx +39 -39
- package/src/components/Toast/style.tsx +1 -1
- package/src/components/Tooltip/index.tsx +109 -109
- package/src/components/Tooltip/style.tsx +8 -8
- package/src/components/index.tsx +175 -175
- package/src/containers/ActivityLog/actions.tsx +212 -212
- package/src/containers/ActivityLog/interfaces.tsx +4 -4
- package/src/containers/ActivityLog/reducer.tsx +11 -11
- package/src/containers/Analytics/actions.tsx +77 -77
- package/src/containers/Analytics/interfaces.tsx +2 -2
- package/src/containers/Analytics/reducer.tsx +14 -14
- package/src/containers/App/actions.tsx +191 -191
- package/src/containers/App/constants.tsx +12 -12
- package/src/containers/App/index.tsx +1 -4
- package/src/containers/App/interfaces.tsx +44 -44
- package/src/containers/App/reducer.tsx +97 -97
- package/src/containers/Domains/actions.tsx +41 -41
- package/src/containers/Domains/interfaces.tsx +2 -2
- package/src/containers/Domains/reducer.tsx +8 -8
- package/src/containers/FileDrive/actions.tsx +326 -326
- package/src/containers/FileDrive/constants.tsx +10 -10
- package/src/containers/FileDrive/index.tsx +1 -4
- package/src/containers/FileDrive/interfaces.tsx +27 -27
- package/src/containers/FileDrive/reducer.tsx +43 -43
- package/src/containers/Forms/actions.tsx +717 -717
- package/src/containers/Forms/constants.tsx +21 -21
- package/src/containers/Forms/interfaces.tsx +45 -45
- package/src/containers/Forms/reducer.tsx +67 -67
- package/src/containers/Forms/utils.tsx +27 -27
- package/src/containers/Gallery/actions.tsx +398 -397
- package/src/containers/Gallery/constants.tsx +13 -13
- package/src/containers/Gallery/index.tsx +1 -4
- package/src/containers/Gallery/interfaces.tsx +48 -48
- package/src/containers/Gallery/reducer.tsx +74 -74
- package/src/containers/Integrations/actions.tsx +165 -165
- package/src/containers/Integrations/constants.tsx +3 -3
- package/src/containers/Integrations/interfaces.tsx +12 -12
- package/src/containers/Integrations/reducer.tsx +17 -17
- package/src/containers/Navigation/Defaults/actions.tsx +735 -735
- package/src/containers/Navigation/Defaults/interfaces.tsx +54 -54
- package/src/containers/Navigation/Defaults/reducer.tsx +71 -71
- package/src/containers/Navigation/Defaults/utils.tsx +60 -60
- package/src/containers/Navigation/Menu/actions.tsx +233 -233
- package/src/containers/Navigation/Menu/index.tsx +2 -5
- package/src/containers/Navigation/Menu/interfaces.tsx +20 -20
- package/src/containers/Navigation/Menu/reducer.tsx +39 -39
- package/src/containers/Navigation/index.tsx +3 -8
- package/src/containers/PageEditor/actions.tsx +1344 -1344
- package/src/containers/PageEditor/interfaces.tsx +80 -80
- package/src/containers/PageEditor/reducer.tsx +102 -102
- package/src/containers/PageEditor/utils.tsx +128 -128
- package/src/containers/Redirects/actions.tsx +151 -151
- package/src/containers/Redirects/constants.tsx +12 -12
- package/src/containers/Redirects/interfaces.tsx +8 -8
- package/src/containers/Redirects/reducer.tsx +21 -21
- package/src/containers/Settings/DataPacks/actions.tsx +388 -388
- package/src/containers/Settings/DataPacks/constants.tsx +9 -9
- package/src/containers/Settings/DataPacks/index.tsx +1 -4
- package/src/containers/Settings/DataPacks/interfaces.tsx +23 -15
- package/src/containers/Settings/DataPacks/reducer.tsx +37 -37
- package/src/containers/Settings/Languages/actions.tsx +49 -49
- package/src/containers/Settings/Languages/reducer.tsx +19 -19
- package/src/containers/Settings/Social/actions.tsx +43 -43
- package/src/containers/Settings/Social/index.tsx +1 -4
- package/src/containers/Settings/Social/interfaces.tsx +2 -2
- package/src/containers/Settings/Social/reducer.tsx +6 -6
- package/src/containers/Settings/index.tsx +1 -8
- package/src/containers/Sites/actions.tsx +641 -641
- package/src/containers/Sites/constants.tsx +5 -5
- package/src/containers/Sites/index.tsx +1 -4
- package/src/containers/Sites/interfaces.tsx +54 -54
- package/src/containers/Sites/reducer.tsx +90 -90
- package/src/containers/StructuredData/actions.tsx +662 -662
- package/src/containers/StructuredData/constants.tsx +27 -27
- package/src/containers/StructuredData/index.tsx +1 -4
- package/src/containers/StructuredData/interfaces.tsx +53 -53
- package/src/containers/StructuredData/reducer.tsx +75 -75
- package/src/containers/StructuredData/utils.tsx +40 -40
- package/src/containers/Users/actions.tsx +302 -302
- package/src/containers/Users/index.tsx +1 -4
- package/src/containers/Users/interfaces.tsx +18 -18
- package/src/containers/Users/reducer.tsx +37 -37
- package/src/forms/editor.tsx +194 -194
- package/src/forms/elements.tsx +200 -200
- package/src/forms/errors.tsx +43 -43
- package/src/forms/fields.tsx +83 -83
- package/src/forms/index.tsx +66 -66
- package/src/forms/validators.tsx +467 -467
- package/src/guards/error/index.tsx +51 -51
- package/src/guards/restricted/index.tsx +9 -9
- package/src/guards/routeLeaving/index.tsx +53 -53
- package/src/guards/routeLeaving/style.tsx +2 -2
- package/src/helpers/arrays.tsx +13 -13
- package/src/helpers/containerEvaluations.tsx +53 -53
- package/src/helpers/customColumns.tsx +33 -33
- package/src/helpers/dataPacks.tsx +8 -8
- package/src/helpers/dates.tsx +52 -53
- package/src/helpers/environment.tsx +3 -3
- package/src/helpers/files.tsx +52 -52
- package/src/helpers/forms.tsx +9 -9
- package/src/helpers/imageResize.tsx +197 -167
- package/src/helpers/images.tsx +75 -75
- package/src/helpers/index.tsx +192 -192
- package/src/helpers/objects.tsx +117 -118
- package/src/helpers/parseTheme.js +274 -274
- package/src/helpers/requests.tsx +19 -19
- package/src/helpers/schemas.tsx +120 -120
- package/src/helpers/strings.tsx +103 -103
- package/src/helpers/structuredData.tsx +17 -17
- package/src/helpers/themes.tsx +56 -56
- package/src/helpers/thumbnails.tsx +47 -47
- package/src/hooks/bulk.tsx +133 -135
- package/src/hooks/content.tsx +93 -93
- package/src/hooks/forms.tsx +115 -115
- package/src/hooks/iframe.ts +48 -48
- package/src/hooks/index.tsx +20 -20
- package/src/hooks/location.tsx +5 -5
- package/src/hooks/modals.tsx +38 -38
- package/src/hooks/network.tsx +21 -20
- package/src/hooks/resize.ts +51 -51
- package/src/hooks/users.tsx +22 -22
- package/src/hooks/window.ts +10 -10
- package/src/index.tsx +16 -19
- package/src/modules/ActivityLog/DetailModal/index.tsx +81 -81
- package/src/modules/ActivityLog/DownloadModal/index.tsx +84 -84
- package/src/modules/ActivityLog/ItemGroup/index.tsx +14 -14
- package/src/modules/ActivityLog/ItemLog/EventItem/index.tsx +136 -136
- package/src/modules/ActivityLog/ItemLog/index.tsx +11 -11
- package/src/modules/ActivityLog/ItemLogUser/UserItem/EventItem/index.tsx +139 -139
- package/src/modules/ActivityLog/ItemLogUser/UserItem/index.tsx +33 -33
- package/src/modules/ActivityLog/ItemLogUser/index.tsx +12 -12
- package/src/modules/ActivityLog/LogFilters/ContentFilter/index.tsx +59 -59
- package/src/modules/ActivityLog/LogFilters/DateFilter/index.tsx +64 -64
- package/src/modules/ActivityLog/LogFilters/EventFilter/index.tsx +57 -57
- package/src/modules/ActivityLog/LogFilters/OrderFilter/index.tsx +36 -36
- package/src/modules/ActivityLog/LogFilters/UserFilter/index.tsx +59 -59
- package/src/modules/ActivityLog/TableHeader/index.tsx +52 -52
- package/src/modules/ActivityLog/TableHeader/style.tsx +9 -9
- package/src/modules/ActivityLog/constants.tsx +6 -6
- package/src/modules/ActivityLog/hooks.tsx +45 -46
- package/src/modules/ActivityLog/index.tsx +287 -287
- package/src/modules/ActivityLog/utils.tsx +20 -20
- package/src/modules/Analytics/DimensionItem/index.tsx +49 -49
- package/src/modules/Analytics/DimensionItem/style.tsx +2 -2
- package/src/modules/Analytics/DimensionPanel/index.tsx +129 -129
- package/src/modules/Analytics/DimensionPanel/style.tsx +1 -1
- package/src/modules/Analytics/GroupItem/index.tsx +61 -51
- package/src/modules/Analytics/GroupItem/style.tsx +5 -14
- package/src/modules/Analytics/GroupPanel/index.tsx +172 -172
- package/src/modules/Analytics/GroupPanel/style.tsx +2 -12
- package/src/modules/Analytics/GroupPanel/utils.tsx +17 -17
- package/src/modules/Analytics/index.tsx +180 -181
- package/src/modules/Analytics/style.tsx +9 -9
- package/src/modules/App/Routing/Logout/index.tsx +12 -12
- package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/index.tsx +16 -16
- package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/style.tsx +5 -5
- package/src/modules/App/Routing/NavMenu/NavItem/index.tsx +93 -93
- package/src/modules/App/Routing/NavMenu/NavItem/style.tsx +2 -2
- package/src/modules/App/Routing/NavMenu/context.tsx +2 -2
- package/src/modules/App/Routing/NavMenu/index.tsx +219 -219
- package/src/modules/App/Routing/NavMenu/style.tsx +1 -1
- package/src/modules/App/Routing/PrivateRoute/index.tsx +15 -15
- package/src/modules/App/Routing/index.tsx +106 -106
- package/src/modules/App/index.tsx +18 -18
- package/src/modules/Categories/CategoriesList/BulkHeader/TableHeader/index.tsx +35 -35
- package/src/modules/Categories/CategoriesList/BulkHeader/index.tsx +40 -40
- package/src/modules/Categories/CategoriesList/CategoryItem/index.tsx +284 -284
- package/src/modules/Categories/CategoriesList/CategoryItem/style.tsx +14 -14
- package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/index.tsx +42 -42
- package/src/modules/Categories/CategoriesList/CategoryNav/index.tsx +28 -28
- package/src/modules/Categories/CategoriesList/CategoryNav/style.tsx +5 -5
- package/src/modules/Categories/CategoriesList/CategoryPanel/Form/index.tsx +97 -97
- package/src/modules/Categories/CategoriesList/CategoryPanel/index.tsx +181 -181
- package/src/modules/Categories/CategoriesList/atoms.tsx +66 -66
- package/src/modules/Categories/CategoriesList/helpers.tsx +106 -106
- package/src/modules/Categories/CategoriesList/hooks.tsx +54 -54
- package/src/modules/Categories/CategoriesList/index.tsx +465 -466
- package/src/modules/Categories/CategoriesList/style.tsx +9 -9
- package/src/modules/Categories/CategoriesList/utils.tsx +19 -19
- package/src/modules/Categories/index.tsx +6 -6
- package/src/modules/Content/BulkHeader/TableHeader/index.tsx +141 -141
- package/src/modules/Content/BulkHeader/TableHeader/style.tsx +13 -13
- package/src/modules/Content/BulkHeader/index.tsx +99 -99
- package/src/modules/Content/ContentFilters/index.tsx +83 -83
- package/src/modules/Content/ContentFilters/utils.tsx +53 -53
- package/src/modules/Content/OptionTable/index.tsx +205 -205
- package/src/modules/Content/OptionTable/store.tsx +19 -19
- package/src/modules/Content/PageImporter/index.tsx +122 -122
- package/src/modules/Content/PageImporter/style.tsx +15 -15
- package/src/modules/Content/PageItem/index.tsx +700 -700
- package/src/modules/Content/PageItem/style.tsx +24 -24
- package/src/modules/Content/atoms.tsx +103 -103
- package/src/modules/Content/hooks.tsx +99 -99
- package/src/modules/Content/index.tsx +1056 -1055
- package/src/modules/Content/style.tsx +8 -8
- package/src/modules/Content/utils.tsx +164 -164
- package/src/modules/CreatePass/index.tsx +64 -64
- package/src/modules/CreatePass/style.tsx +8 -9
- package/src/modules/FileDrive/Breadcrumb/index.tsx +27 -27
- package/src/modules/FileDrive/Breadcrumb/style.tsx +7 -7
- package/src/modules/FileDrive/BulkGridHeader/GridHeader/index.tsx +23 -23
- package/src/modules/FileDrive/BulkGridHeader/index.tsx +20 -20
- package/src/modules/FileDrive/BulkGridHeader/style.tsx +1 -1
- package/src/modules/FileDrive/BulkListHeader/TableHeader/index.tsx +34 -34
- package/src/modules/FileDrive/BulkListHeader/TableHeader/style.tsx +9 -9
- package/src/modules/FileDrive/BulkListHeader/index.tsx +30 -30
- package/src/modules/FileDrive/BulkListHeader/style.tsx +1 -1
- package/src/modules/FileDrive/FileDragAndDrop/index.tsx +255 -255
- package/src/modules/FileDrive/FileDragAndDrop/style.tsx +32 -32
- package/src/modules/FileDrive/FileFilters/SortBy/index.tsx +54 -54
- package/src/modules/FileDrive/FileFilters/Type/index.tsx +58 -59
- package/src/modules/FileDrive/FileFilters/Usage/index.tsx +46 -46
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/Item/index.tsx +17 -17
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/Item/style.tsx +0 -1
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/ItemGroup/index.tsx +27 -27
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/index.tsx +110 -110
- package/src/modules/FileDrive/FileModal/DetailPanel/index.tsx +179 -179
- package/src/modules/FileDrive/FileModal/index.tsx +176 -176
- package/src/modules/FileDrive/FileModal/style.tsx +12 -12
- package/src/modules/FileDrive/FolderItem/index.tsx +158 -158
- package/src/modules/FileDrive/FolderItem/style.tsx +1 -1
- package/src/modules/FileDrive/FolderTree/MenuItem/index.tsx +64 -64
- package/src/modules/FileDrive/FolderTree/MenuList/index.tsx +21 -21
- package/src/modules/FileDrive/FolderTree/index.tsx +43 -43
- package/src/modules/FileDrive/GridItem/index.tsx +168 -168
- package/src/modules/FileDrive/ListItem/index.tsx +182 -182
- package/src/modules/FileDrive/ListItem/style.tsx +12 -12
- package/src/modules/FileDrive/UploadItem/index.tsx +19 -19
- package/src/modules/FileDrive/UploadItem/style.tsx +1 -1
- package/src/modules/FileDrive/atoms.tsx +156 -156
- package/src/modules/FileDrive/hooks.tsx +82 -82
- package/src/modules/FileDrive/index.tsx +821 -822
- package/src/modules/FileDrive/style.tsx +28 -28
- package/src/modules/FileDrive/utils.tsx +11 -11
- package/src/modules/Forms/FormCategoriesList/BulkHeader/TableHeader/index.tsx +29 -29
- package/src/modules/Forms/FormCategoriesList/BulkHeader/index.tsx +24 -24
- package/src/modules/Forms/FormCategoriesList/CategoryItem/index.tsx +111 -111
- package/src/modules/Forms/FormCategoriesList/CategoryItem/style.tsx +9 -9
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/Form/index.tsx +34 -34
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/index.tsx +85 -85
- package/src/modules/Forms/FormCategoriesList/atoms.tsx +21 -21
- package/src/modules/Forms/FormCategoriesList/hooks.tsx +54 -54
- package/src/modules/Forms/FormCategoriesList/index.tsx +245 -245
- package/src/modules/Forms/FormCategoriesList/style.tsx +10 -10
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/Field/index.tsx +91 -91
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/TemplateManager/index.tsx +85 -85
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/index.tsx +98 -98
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/index.tsx +70 -70
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Header/index.tsx +117 -117
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/index.tsx +73 -73
- package/src/modules/Forms/FormEditor/Editor/SideModal/SectionOption/index.tsx +9 -9
- package/src/modules/Forms/FormEditor/Editor/SideModal/SideModalOption/index.tsx +18 -18
- package/src/modules/Forms/FormEditor/Editor/SideModal/index.tsx +91 -91
- package/src/modules/Forms/FormEditor/Editor/SideModal/style.tsx +13 -13
- package/src/modules/Forms/FormEditor/Editor/index.tsx +141 -141
- package/src/modules/Forms/FormEditor/PageBrowser/index.tsx +69 -69
- package/src/modules/Forms/FormEditor/index.tsx +372 -372
- package/src/modules/Forms/FormList/BulkHeader/TableHeader/index.tsx +131 -131
- package/src/modules/Forms/FormList/BulkHeader/index.tsx +52 -52
- package/src/modules/Forms/FormList/FormItem/index.tsx +366 -366
- package/src/modules/Forms/FormList/FormItem/style.tsx +11 -11
- package/src/modules/Forms/FormList/Summary/index.tsx +41 -41
- package/src/modules/Forms/FormList/TemplateModal/index.tsx +92 -92
- package/src/modules/Forms/FormList/TemplateModal/style.tsx +9 -9
- package/src/modules/Forms/FormList/hooks.tsx +91 -91
- package/src/modules/Forms/FormList/index.tsx +442 -442
- package/src/modules/Forms/FormUseModal/FormUseItem/index.tsx +29 -29
- package/src/modules/Forms/FormUseModal/index.tsx +262 -262
- package/src/modules/Forms/FormUseModal/utils.tsx +92 -92
- package/src/modules/Forms/FormsMenu/MenuGroup/index.tsx +43 -43
- package/src/modules/Forms/FormsMenu/index.tsx +65 -65
- package/src/modules/Forms/atoms.tsx +182 -182
- package/src/modules/Forms/utils.tsx +15 -15
- package/src/modules/FramePreview/index.tsx +139 -129
- package/src/modules/GlobalEditor/Editor/index.tsx +111 -111
- package/src/modules/GlobalEditor/PageBrowser/index.tsx +65 -65
- package/src/modules/GlobalEditor/Preview/index.tsx +7 -7
- package/src/modules/GlobalEditor/index.tsx +738 -738
- package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/index.tsx +49 -49
- package/src/modules/GlobalSettings/Robots/Item/index.tsx +14 -14
- package/src/modules/GlobalSettings/Robots/index.tsx +92 -93
- package/src/modules/GlobalSettings/index.tsx +21 -21
- package/src/modules/Login/constants.tsx +2 -2
- package/src/modules/Login/index.tsx +112 -112
- package/src/modules/MediaGallery/Breadcrumb/index.tsx +27 -27
- package/src/modules/MediaGallery/Breadcrumb/style.tsx +7 -7
- package/src/modules/MediaGallery/BulkGridHeader/GridHeader/index.tsx +23 -23
- package/src/modules/MediaGallery/BulkGridHeader/index.tsx +20 -20
- package/src/modules/MediaGallery/BulkGridHeader/style.tsx +1 -1
- package/src/modules/MediaGallery/BulkListHeader/TableHeader/index.tsx +32 -32
- package/src/modules/MediaGallery/BulkListHeader/index.tsx +27 -27
- package/src/modules/MediaGallery/BulkListHeader/style.tsx +1 -1
- package/src/modules/MediaGallery/FolderItem/index.tsx +169 -169
- package/src/modules/MediaGallery/FolderItem/style.tsx +1 -1
- package/src/modules/MediaGallery/FolderTree/MenuItem/index.tsx +64 -64
- package/src/modules/MediaGallery/FolderTree/MenuList/index.tsx +22 -22
- package/src/modules/MediaGallery/FolderTree/index.tsx +43 -43
- package/src/modules/MediaGallery/GridItem/index.tsx +133 -133
- package/src/modules/MediaGallery/ImageDragAndDrop/index.tsx +267 -260
- package/src/modules/MediaGallery/ImageDragAndDrop/style.tsx +32 -32
- package/src/modules/MediaGallery/ImageFilters/Orientation/index.tsx +47 -47
- package/src/modules/MediaGallery/ImageFilters/SortBy/index.tsx +54 -54
- package/src/modules/MediaGallery/ImageFilters/Type/index.tsx +48 -48
- package/src/modules/MediaGallery/ImageFilters/Usage/index.tsx +53 -53
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/Item/index.tsx +20 -20
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/ItemGroup/index.tsx +29 -29
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/index.tsx +201 -202
- package/src/modules/MediaGallery/ImageModal/DetailPanel/index.tsx +179 -179
- package/src/modules/MediaGallery/ImageModal/index.tsx +150 -150
- package/src/modules/MediaGallery/ImageModal/style.tsx +11 -11
- package/src/modules/MediaGallery/ListItem/index.tsx +164 -164
- package/src/modules/MediaGallery/ListItem/style.tsx +12 -12
- package/src/modules/MediaGallery/UploadItem/index.tsx +19 -19
- package/src/modules/MediaGallery/UploadItem/style.tsx +1 -1
- package/src/modules/MediaGallery/atoms.tsx +156 -156
- package/src/modules/MediaGallery/hooks.tsx +88 -88
- package/src/modules/MediaGallery/index.tsx +890 -890
- package/src/modules/MediaGallery/style.tsx +28 -28
- package/src/modules/MediaGallery/utils.tsx +11 -11
- package/src/modules/Navigation/Defaults/BulkHeader/TableHeader/index.tsx +30 -30
- package/src/modules/Navigation/Defaults/BulkHeader/index.tsx +26 -26
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +37 -37
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +101 -101
- package/src/modules/Navigation/Defaults/DefaultsEditor/index.tsx +261 -261
- package/src/modules/Navigation/Defaults/Item/atoms.tsx +34 -34
- package/src/modules/Navigation/Defaults/Item/index.tsx +241 -241
- package/src/modules/Navigation/Defaults/Item/style.tsx +9 -9
- package/src/modules/Navigation/Defaults/Nav/index.tsx +21 -21
- package/src/modules/Navigation/Defaults/Nav/style.tsx +9 -9
- package/src/modules/Navigation/Defaults/ReplaceNavModal/index.tsx +180 -180
- package/src/modules/Navigation/Defaults/ReplaceNavModal/style.tsx +15 -15
- package/src/modules/Navigation/Defaults/atoms.tsx +17 -17
- package/src/modules/Navigation/Defaults/index.tsx +301 -301
- package/src/modules/Navigation/Defaults/style.tsx +7 -7
- package/src/modules/Navigation/Menus/List/Nav/index.tsx +37 -37
- package/src/modules/Navigation/Menus/List/Nav/style.tsx +3 -4
- package/src/modules/Navigation/Menus/List/Table/ConfigPanel/Form/index.tsx +49 -49
- package/src/modules/Navigation/Menus/List/Table/ConfigPanel/index.tsx +33 -33
- package/src/modules/Navigation/Menus/List/Table/Header/index.tsx +29 -29
- package/src/modules/Navigation/Menus/List/Table/Header/style.tsx +2 -2
- package/src/modules/Navigation/Menus/List/Table/Item/atoms.tsx +54 -54
- package/src/modules/Navigation/Menus/List/Table/Item/index.tsx +149 -149
- package/src/modules/Navigation/Menus/List/Table/SidePanel/Form/ConnectedField/index.tsx +22 -22
- package/src/modules/Navigation/Menus/List/Table/SidePanel/Form/index.tsx +71 -71
- package/src/modules/Navigation/Menus/List/Table/SidePanel/index.tsx +87 -87
- package/src/modules/Navigation/Menus/List/Table/SidePanel/style.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Table/helpers.tsx +103 -103
- package/src/modules/Navigation/Menus/List/Table/index.tsx +170 -170
- package/src/modules/Navigation/Menus/List/Table/style.tsx +1 -7
- package/src/modules/Navigation/Menus/List/helpers.tsx +36 -36
- package/src/modules/Navigation/Menus/List/index.tsx +50 -50
- package/src/modules/Navigation/Menus/index.tsx +38 -38
- package/src/modules/PageEditor/Editor/index.tsx +153 -153
- package/src/modules/PageEditor/PageBrowser/index.tsx +73 -73
- package/src/modules/PageEditor/Preview/index.tsx +5 -5
- package/src/modules/PageEditor/atoms.tsx +58 -58
- package/src/modules/PageEditor/index.tsx +805 -805
- package/src/modules/PublicPreview/index.tsx +48 -48
- package/src/modules/Redirects/BulkHeader/TableHeader/index.tsx +51 -51
- package/src/modules/Redirects/BulkHeader/index.tsx +56 -56
- package/src/modules/Redirects/RedirectItem/index.tsx +141 -141
- package/src/modules/Redirects/RedirectItem/style.tsx +1 -10
- package/src/modules/Redirects/RedirectPanel/index.tsx +90 -90
- package/src/modules/Redirects/atoms.tsx +185 -185
- package/src/modules/Redirects/hooks.tsx +63 -63
- package/src/modules/Redirects/index.tsx +397 -397
- package/src/modules/Redirects/style.tsx +24 -24
- package/src/modules/Redirects/utils.tsx +10 -7
- package/src/modules/ResetPass/index.tsx +69 -69
- package/src/modules/ResetPass/style.tsx +8 -9
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/index.tsx +31 -31
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/Item/index.tsx +14 -12
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/Item/style.tsx +3 -9
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/index.tsx +28 -28
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/style.tsx +11 -11
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/EmptyPanel/index.tsx +8 -8
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/EmptyPanel/style.tsx +2 -6
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/MultiplePanel/index.tsx +18 -18
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/index.tsx +12 -12
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/style.tsx +3 -5
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SortFilter/index.tsx +32 -32
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SortFilter/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/index.tsx +113 -113
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/style.tsx +36 -24
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Card/index.tsx +9 -9
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Card/style.tsx +6 -6
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/IntegrationsField/index.tsx +31 -31
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/NavigationField/index.tsx +102 -102
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/NavigationField/style.tsx +17 -21
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/index.tsx +33 -33
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/TemplateBrowser/index.tsx +33 -33
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/index.tsx +6 -6
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/index.tsx +45 -45
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/index.tsx +35 -35
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/style.tsx +7 -14
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/index.tsx +219 -219
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/style.tsx +2 -2
- package/src/modules/Settings/ContentTypes/DataPacks/Config/index.tsx +61 -61
- package/src/modules/Settings/ContentTypes/DataPacks/Config/style.tsx +6 -7
- package/src/modules/Settings/ContentTypes/DataPacks/Item/index.tsx +102 -102
- package/src/modules/Settings/ContentTypes/DataPacks/Item/style.tsx +10 -18
- package/src/modules/Settings/ContentTypes/DataPacks/List/index.tsx +15 -15
- package/src/modules/Settings/ContentTypes/DataPacks/List/style.tsx +1 -3
- package/src/modules/Settings/ContentTypes/DataPacks/Nav/index.tsx +65 -65
- package/src/modules/Settings/ContentTypes/DataPacks/Nav/style.tsx +11 -18
- package/src/modules/Settings/ContentTypes/DataPacks/hooks.tsx +12 -12
- package/src/modules/Settings/ContentTypes/DataPacks/index.tsx +220 -220
- package/src/modules/Settings/ContentTypes/DataPacks/style.tsx +4 -9
- package/src/modules/Settings/ContentTypes/index.tsx +5 -5
- package/src/modules/Settings/Globals/NavigationModules/SideModal/SideModalOption/index.tsx +16 -16
- package/src/modules/Settings/Globals/NavigationModules/SideModal/index.tsx +85 -85
- package/src/modules/Settings/Globals/NavigationModules/index.tsx +69 -69
- package/src/modules/Settings/Globals/constants.tsx +436 -436
- package/src/modules/Settings/Globals/index.tsx +198 -194
- package/src/modules/Settings/Integrations/BulkHeader/TableHeader/index.tsx +102 -102
- package/src/modules/Settings/Integrations/BulkHeader/TableHeader/style.tsx +8 -8
- package/src/modules/Settings/Integrations/BulkHeader/index.tsx +40 -40
- package/src/modules/Settings/Integrations/IntegrationForm/VariableItem/index.tsx +69 -69
- package/src/modules/Settings/Integrations/IntegrationForm/VariablePanel/index.tsx +118 -118
- package/src/modules/Settings/Integrations/IntegrationForm/index.tsx +275 -275
- package/src/modules/Settings/Integrations/IntegrationForm/style.tsx +11 -11
- package/src/modules/Settings/Integrations/IntegrationItem/CopyModal/index.tsx +31 -31
- package/src/modules/Settings/Integrations/IntegrationItem/index.tsx +278 -278
- package/src/modules/Settings/Integrations/IntegrationItem/style.tsx +21 -21
- package/src/modules/Settings/Integrations/atoms.tsx +32 -32
- package/src/modules/Settings/Integrations/hooks.tsx +67 -67
- package/src/modules/Settings/Integrations/index.tsx +327 -327
- package/src/modules/Settings/Integrations/style.tsx +10 -10
- package/src/modules/Settings/Integrations/utils.tsx +27 -27
- package/src/modules/Settings/Languages/LanguagePanel/Form/ConnectedField/index.tsx +24 -24
- package/src/modules/Settings/Languages/LanguagePanel/Form/index.tsx +41 -41
- package/src/modules/Settings/Languages/LanguagePanel/index.tsx +59 -59
- package/src/modules/Settings/Languages/Table/Header/index.tsx +20 -20
- package/src/modules/Settings/Languages/Table/Header/style.tsx +2 -2
- package/src/modules/Settings/Languages/Table/Item/index.tsx +61 -61
- package/src/modules/Settings/Languages/Table/index.tsx +11 -11
- package/src/modules/Settings/Languages/index.tsx +36 -36
- package/src/modules/Settings/Languages/style.tsx +1 -1
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/atoms.tsx +129 -129
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/index.tsx +118 -118
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/style.tsx +14 -14
- package/src/modules/Settings/SeoAnalyticsSettings/index.tsx +21 -21
- package/src/modules/Settings/Social/index.tsx +93 -93
- package/src/modules/Settings/Social/style.tsx +1 -1
- package/src/modules/Settings/index.tsx +30 -29
- package/src/modules/Sites/SitesList/GridView/GridHeaderFilter/index.tsx +53 -53
- package/src/modules/Sites/SitesList/GridView/GridSiteItem/index.tsx +179 -179
- package/src/modules/Sites/SitesList/ListView/BulkHeader/TableHeader/index.tsx +57 -57
- package/src/modules/Sites/SitesList/ListView/BulkHeader/index.tsx +66 -66
- package/src/modules/Sites/SitesList/ListView/ListSiteItem/index.tsx +205 -205
- package/src/modules/Sites/SitesList/ListView/ListSiteItem/style.tsx +12 -12
- package/src/modules/Sites/SitesList/RecentSiteItem/index.tsx +27 -27
- package/src/modules/Sites/SitesList/SiteModal/index.tsx +67 -67
- package/src/modules/Sites/SitesList/atoms.tsx +29 -29
- package/src/modules/Sites/SitesList/hooks.tsx +98 -98
- package/src/modules/Sites/SitesList/index.tsx +412 -412
- package/src/modules/Sites/SitesList/style.tsx +26 -26
- package/src/modules/Sites/SitesList/utils.tsx +21 -21
- package/src/modules/Sites/index.tsx +60 -60
- package/src/modules/StructuredData/Form/ConnectedField/index.tsx +85 -85
- package/src/modules/StructuredData/Form/index.tsx +464 -464
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/index.tsx +143 -143
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/style.tsx +13 -13
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/index.tsx +96 -96
- package/src/modules/StructuredData/StructuredDataList/ContentFilters/index.tsx +51 -51
- package/src/modules/StructuredData/StructuredDataList/ContentFilters/utils.tsx +42 -42
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/atoms.tsx +109 -109
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +507 -507
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/style.tsx +22 -22
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/utils.tsx +11 -11
- package/src/modules/StructuredData/StructuredDataList/OptionTable/index.tsx +102 -102
- package/src/modules/StructuredData/StructuredDataList/OptionTable/store.tsx +19 -19
- package/src/modules/StructuredData/StructuredDataList/OptionTable/style.tsx +1 -1
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/index.tsx +298 -298
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/style.tsx +12 -12
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/utils.tsx +48 -48
- package/src/modules/StructuredData/StructuredDataList/atoms.tsx +65 -65
- package/src/modules/StructuredData/StructuredDataList/hooks.tsx +108 -108
- package/src/modules/StructuredData/StructuredDataList/index.tsx +782 -782
- package/src/modules/StructuredData/StructuredDataList/utils.tsx +161 -161
- package/src/modules/StructuredData/index.tsx +8 -8
- package/src/modules/Users/Profile/atoms.tsx +32 -32
- package/src/modules/Users/Profile/index.tsx +82 -82
- package/src/modules/Users/Roles/BulkHeader/TableHeader/index.tsx +50 -50
- package/src/modules/Users/Roles/BulkHeader/TableHeader/style.tsx +1 -1
- package/src/modules/Users/Roles/BulkHeader/index.tsx +60 -60
- package/src/modules/Users/Roles/RoleItem/index.tsx +80 -80
- package/src/modules/Users/Roles/RoleItem/style.tsx +13 -13
- package/src/modules/Users/Roles/SideModal/index.tsx +64 -64
- package/src/modules/Users/Roles/SideModal/style.tsx +20 -21
- package/src/modules/Users/Roles/hooks.tsx +74 -74
- package/src/modules/Users/Roles/index.tsx +218 -218
- package/src/modules/Users/Roles/utils.tsx +7 -7
- package/src/modules/Users/UserCreate/OptionItem/index.tsx +32 -32
- package/src/modules/Users/UserCreate/OptionItem/style.tsx +5 -5
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/index.tsx +32 -32
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/index.tsx +124 -123
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/style.tsx +12 -12
- package/src/modules/Users/UserCreate/SiteItem/index.tsx +101 -101
- package/src/modules/Users/UserCreate/SiteItem/style.tsx +5 -5
- package/src/modules/Users/UserCreate/index.tsx +315 -315
- package/src/modules/Users/UserCreate/style.tsx +20 -20
- package/src/modules/Users/UserEdit/index.tsx +159 -159
- package/src/modules/Users/UserEdit/style.tsx +2 -2
- package/src/modules/Users/UserForm/atoms.tsx +100 -100
- package/src/modules/Users/UserForm/helpers.tsx +4 -4
- package/src/modules/Users/UserForm/index.tsx +494 -494
- package/src/modules/Users/UserForm/style.tsx +18 -18
- package/src/modules/Users/UserList/BulkHeader/TableHeader/index.tsx +86 -86
- package/src/modules/Users/UserList/BulkHeader/index.tsx +62 -62
- package/src/modules/Users/UserList/UserItem/index.tsx +231 -231
- package/src/modules/Users/UserList/UserItem/style.tsx +15 -15
- package/src/modules/Users/UserList/hooks.tsx +73 -73
- package/src/modules/Users/UserList/index.tsx +312 -312
- package/src/modules/Users/UserList/style.tsx +3 -3
- package/src/modules/Users/UserList/utils.tsx +6 -6
- package/src/modules/Users/index.tsx +36 -36
- package/src/react-app-env.d.ts +36 -36
- package/src/routes/index.tsx +15 -15
- package/src/routes/multisite.tsx +205 -205
- package/src/routes/publicRoutes.tsx +5 -5
- package/src/routes/site.tsx +260 -260
- package/src/schemas/index.tsx +1 -1
- package/src/schemas/pages/FormPage.tsx +48 -48
- package/src/schemas/pages/GlobalPage.tsx +208 -208
- package/src/schemas/pages/Page.tsx +278 -278
- package/src/serviceWorker.ts +99 -109
- package/src/themes/theme.json +370 -370
- package/src/types/files.tsx +72 -72
- package/src/types/forms.tsx +54 -54
- package/src/types/index.tsx +794 -794
- package/src/types/logs.tsx +4 -4
- package/tsconfig.json +21 -35
- package/tsconfig.paths.json +20 -20
- package/scripts/start/build-dev.sh +0 -2
- package/scripts/start/build.sh +0 -2
- package/scripts/start/check-node-version.sh +0 -2
- package/scripts/start/start-dev.sh +0 -2
- package/scripts/start/start-local.sh +0 -2
- package/scripts/start/start-staging.sh +0 -2
- package/scripts/start/start-test.sh +0 -2
|
@@ -6,30 +6,30 @@ import { useTheme } from "styled-components";
|
|
|
6
6
|
import { useAdaptiveText, useModal, usePermission } from "@ax/hooks";
|
|
7
7
|
import { getHumanLastModifiedDate, getScheduleFormatDate, getTemplateDisplayName, slugify } from "@ax/helpers";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
IPage,
|
|
10
|
+
ISite,
|
|
11
|
+
ISavePageParams,
|
|
12
|
+
ICheck,
|
|
13
|
+
IColumn,
|
|
14
|
+
IPageLanguage,
|
|
15
|
+
IDataPack,
|
|
16
|
+
ILanguage,
|
|
17
|
+
ISchemaField,
|
|
18
|
+
IRootState,
|
|
19
19
|
} from "@ax/types";
|
|
20
20
|
import { pageStatus, ISetCurrentPageIDAction } from "@ax/containers/PageEditor/interfaces";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
CheckField,
|
|
23
|
+
FieldsBehavior,
|
|
24
|
+
FloatingMenu,
|
|
25
|
+
Icon,
|
|
26
|
+
Flag,
|
|
27
|
+
LanguageMenu,
|
|
28
|
+
Modal,
|
|
29
|
+
Tag,
|
|
30
|
+
Tooltip,
|
|
31
|
+
CategoryCell,
|
|
32
|
+
ErrorToast,
|
|
33
33
|
} from "@ax/components";
|
|
34
34
|
import { pageEditorActions } from "@ax/containers/PageEditor";
|
|
35
35
|
import { appActions } from "@ax/containers/App";
|
|
@@ -41,697 +41,697 @@ import * as S from "./style";
|
|
|
41
41
|
const schemas = config.schemas.ui;
|
|
42
42
|
|
|
43
43
|
const PageItem = (props: IPageItemProps): JSX.Element => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
44
|
+
const {
|
|
45
|
+
functions,
|
|
46
|
+
item,
|
|
47
|
+
activatedTemplates,
|
|
48
|
+
toggleToast,
|
|
49
|
+
setRemovedPage,
|
|
50
|
+
columns,
|
|
51
|
+
categoryColumns,
|
|
52
|
+
categoryColors,
|
|
53
|
+
addCategoryColors,
|
|
54
|
+
dataPacks,
|
|
55
|
+
sites,
|
|
56
|
+
skipReview,
|
|
57
|
+
hoverCheck,
|
|
58
|
+
createNewTranslation,
|
|
59
|
+
setLanguage,
|
|
60
|
+
isSaving,
|
|
61
|
+
} = props;
|
|
62
|
+
const { isSelected, siteLanguages, page, lang, isDuplicable } = item;
|
|
63
|
+
const {
|
|
64
|
+
onClick,
|
|
65
|
+
onCheck,
|
|
66
|
+
deletePage,
|
|
67
|
+
getSiteContent,
|
|
68
|
+
setHistoryPush,
|
|
69
|
+
updatePageStatus,
|
|
70
|
+
setCurrentPageID,
|
|
71
|
+
duplicatePage,
|
|
72
|
+
validatePage,
|
|
73
|
+
getPage,
|
|
74
|
+
removePageFromSite,
|
|
75
|
+
deleteBulk,
|
|
76
|
+
getDataPack,
|
|
77
|
+
setTemplateInstanceError,
|
|
78
|
+
toggleCopiedToast,
|
|
79
|
+
} = functions;
|
|
80
|
+
const { locale } = lang;
|
|
81
|
+
const {
|
|
82
|
+
pageLanguages,
|
|
83
|
+
isHome,
|
|
84
|
+
fullPath,
|
|
85
|
+
canBeUnpublished,
|
|
86
|
+
origin,
|
|
87
|
+
manuallyImported,
|
|
88
|
+
templateId,
|
|
89
|
+
structuredDataContent,
|
|
90
|
+
liveStatus,
|
|
91
|
+
publicationScheduled,
|
|
92
|
+
haveDraftPage,
|
|
93
|
+
} = page;
|
|
94
|
+
|
|
95
|
+
const displayName = getTemplateDisplayName(templateId);
|
|
96
|
+
|
|
97
|
+
const initValue = { title: "", slug: "" };
|
|
98
|
+
const [site, setSite] = useState(null);
|
|
99
|
+
const [modalState, setModalState] = useState(initValue);
|
|
100
|
+
const [deleteAllVersions, setDeleteAllVersions] = useState(false);
|
|
101
|
+
const { isOpen, toggleModal } = useModal();
|
|
102
|
+
const { isOpen: isRemoveOpen, toggleModal: toggleRemoveModal } = useModal();
|
|
103
|
+
const { isOpen: isUnpublishOpen, toggleModal: toggleUnpublishModal } = useModal();
|
|
104
|
+
const { isOpen: isDeleteOpen, toggleModal: toggleDeleteModal } = useModal();
|
|
105
|
+
const { isOpen: isCopyOpen, toggleModal: toggleCopyModal } = useModal();
|
|
106
|
+
|
|
107
|
+
const nameCellRef = useRef<HTMLDivElement>(null);
|
|
108
|
+
const theme: any = useTheme();
|
|
109
|
+
const nameCellPadding = Number(theme.spacing.s.slice(0, -2));
|
|
110
|
+
const title = useAdaptiveText(nameCellRef, page.title, nameCellPadding);
|
|
111
|
+
const path = useAdaptiveText(nameCellRef, fullPath.page, nameCellPadding);
|
|
112
|
+
|
|
113
|
+
const isAllowedToDuplicatePages = usePermission("content.duplicatePages");
|
|
114
|
+
const isAllowedToPublishPages = usePermission("content.publishUnpublishPages");
|
|
115
|
+
const isAllowedToCreatePages = usePermission("content.createPages");
|
|
116
|
+
const isAllowedToCopyPage = usePermission("content.copyPageInOtherSite");
|
|
117
|
+
const isAllowedToDeletePage = usePermission("content.deletePages");
|
|
118
|
+
const isAllowedToDeletePublishedPage = usePermission("content.deletePublishedPages");
|
|
119
|
+
const isAllowedToEditContentPage = usePermission("content.editContentPages");
|
|
120
|
+
|
|
121
|
+
const currentTemplateDataPacks = schemas.templates[templateId].dataPacks;
|
|
122
|
+
|
|
123
|
+
const isCopyable = !currentTemplateDataPacks;
|
|
124
|
+
const isGlobal = origin === "GLOBAL";
|
|
125
|
+
const isTranslated = pageLanguages.length > 1;
|
|
126
|
+
const activeColumns = columns.filter((col) => col.show).map((col) => col.id);
|
|
127
|
+
const API_URL = process.env.GRIDDO_API_URL || process.env.REACT_APP_API_ENDPOINT;
|
|
128
|
+
const isPublished = liveStatus?.status === pageStatus.PUBLISHED || liveStatus?.status === pageStatus.UPLOAD_PENDING;
|
|
129
|
+
const isAllowedToDelete = (isPublished && isAllowedToDeletePublishedPage) || (!isPublished && isAllowedToDeletePage);
|
|
130
|
+
const isScheduledPub = !!publicationScheduled && (liveStatus?.status === pageStatus.SCHEDULED || haveDraftPage);
|
|
131
|
+
|
|
132
|
+
const publishedTooltip: Record<string, string> = {
|
|
133
|
+
active: "Live",
|
|
134
|
+
"upload-pending": "Publication pending",
|
|
135
|
+
offline: "Offline",
|
|
136
|
+
"offline-pending": "Offline pending",
|
|
137
|
+
modified: "Live & Modified",
|
|
138
|
+
scheduled: `Scheduled publication: ${isScheduledPub ? getScheduleFormatDate(publicationScheduled) : ""}`,
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const setRoute = (path: string) => setHistoryPush(path, true);
|
|
142
|
+
|
|
143
|
+
const goToPage = async () => {
|
|
144
|
+
const pageID = page.haveDraftPage ? page.haveDraftPage : page.id;
|
|
145
|
+
setCurrentPageID(pageID);
|
|
146
|
+
|
|
147
|
+
const { templateId } = item.page;
|
|
148
|
+
const dataPack = dataPacks.find((pack) => pack.templates.some((template) => template.id === templateId));
|
|
149
|
+
dataPack && (await getDataPack(dataPack.id));
|
|
150
|
+
|
|
151
|
+
setRoute("pages/editor");
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const editLivePage = () => {
|
|
155
|
+
setCurrentPageID(page.id);
|
|
156
|
+
setRoute("pages/editor");
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const handleOnChange = (value: ICheck) => onCheck(value);
|
|
160
|
+
|
|
161
|
+
const checkSeoDone = (value: string | boolean) => {
|
|
162
|
+
if (typeof value === "string") {
|
|
163
|
+
value = value.trim();
|
|
164
|
+
}
|
|
165
|
+
if (value) {
|
|
166
|
+
return (
|
|
167
|
+
<S.StyledDone>
|
|
168
|
+
<Icon name="done" />
|
|
169
|
+
</S.StyledDone>
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
return (
|
|
173
|
+
<S.StyledClose>
|
|
174
|
+
<Icon name="close" />
|
|
175
|
+
</S.StyledClose>
|
|
176
|
+
);
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const SeoItems = {
|
|
180
|
+
Index: () => <S.StyledSeo>{checkSeoDone(page.isIndexed)}Indexed</S.StyledSeo>,
|
|
181
|
+
Title: () => <S.StyledSeo>{checkSeoDone(page.metaTitle)}Title</S.StyledSeo>,
|
|
182
|
+
Description: () => <S.StyledSeo>{checkSeoDone(page.metaDescription)}Description</S.StyledSeo>,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const SeoTitleMenu = () => {
|
|
186
|
+
if (page.metaTitle) {
|
|
187
|
+
return (
|
|
188
|
+
<FloatingMenu Button={SeoItems.Title}>
|
|
189
|
+
<S.FloatingSeo>{page.metaTitle}</S.FloatingSeo>
|
|
190
|
+
</FloatingMenu>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
return SeoItems.Title();
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
const SeoDescriptionMenu = () => {
|
|
197
|
+
if (page.metaDescription) {
|
|
198
|
+
return (
|
|
199
|
+
<FloatingMenu Button={SeoItems.Description}>
|
|
200
|
+
<S.FloatingSeo>{page.metaDescription}</S.FloatingSeo>
|
|
201
|
+
</FloatingMenu>
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
return SeoItems.Description();
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const checkWorkflowStatus = () => {
|
|
208
|
+
if (page.workflowStatus) {
|
|
209
|
+
return <Tag type="status" color={page.workflowStatus.color} text={page.workflowStatus.text} />;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
const handleDeleteItem = async () => {
|
|
214
|
+
const allPageVersions = pageLanguages.map((lang: IPageLanguage) => lang.pageId);
|
|
215
|
+
deleteAllVersions ? deleteBulk(allPageVersions) : deletePage();
|
|
216
|
+
toggleDeleteModal();
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const handleRemoveItemFromSite = async () => {
|
|
220
|
+
await removePageFromSite(page.id).then((removed: boolean) => {
|
|
221
|
+
if (removed && page.originalGlobalPage) {
|
|
222
|
+
setRemovedPage(page.originalGlobalPage);
|
|
223
|
+
toggleToast();
|
|
224
|
+
}
|
|
225
|
+
toggleRemoveModal();
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const publishPage = async () => {
|
|
230
|
+
await getPage(page.id);
|
|
231
|
+
const isValidated = skipReview ? true : await validatePage(true);
|
|
232
|
+
|
|
233
|
+
if (isValidated) {
|
|
234
|
+
await updatePageStatus([page.id], pageStatus.UPLOAD_PENDING, true);
|
|
235
|
+
await getSiteContent();
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const unpublishPage = async () => {
|
|
240
|
+
await updatePageStatus([page.id], pageStatus.OFFLINE_PENDING, true);
|
|
241
|
+
await getSiteContent();
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const cancelPublishPage = async () => {
|
|
245
|
+
await updatePageStatus([page.id], pageStatus.OFFLINE, true);
|
|
246
|
+
await getSiteContent();
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const getSelectedPageLanguage = (language: ILanguage) =>
|
|
250
|
+
pageLanguages.find((lang: IPageLanguage) => lang.languageId === language.id);
|
|
251
|
+
|
|
252
|
+
const handleLanguage = (language: ILanguage) => {
|
|
253
|
+
const { locale, id } = language;
|
|
254
|
+
|
|
255
|
+
setLanguage({
|
|
256
|
+
locale,
|
|
257
|
+
id,
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
const selectedPageLanguage = getSelectedPageLanguage(language);
|
|
261
|
+
selectedPageLanguage ? setCurrentPageID(selectedPageLanguage.pageId) : createNewTranslation(true);
|
|
262
|
+
setHistoryPush("pages/editor", true);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const getCurrentPageLanguages = () => {
|
|
266
|
+
const languages: ILanguage[] = [];
|
|
267
|
+
|
|
268
|
+
pageLanguages.forEach(
|
|
269
|
+
(pageLang: IPageLanguage) =>
|
|
270
|
+
siteLanguages &&
|
|
271
|
+
siteLanguages.forEach((siteLang) => {
|
|
272
|
+
if (siteLang.id === pageLang.languageId) {
|
|
273
|
+
languages.push(siteLang);
|
|
274
|
+
}
|
|
275
|
+
}),
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
return languages;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
const handleDuplicatePage = async () => {
|
|
282
|
+
setTemplateInstanceError({ error: false, templateName: "" });
|
|
283
|
+
if (isDuplicable) {
|
|
284
|
+
const isDuplicated = await duplicatePage(page.id, modalState);
|
|
285
|
+
if (isDuplicated) {
|
|
286
|
+
toggleModal();
|
|
287
|
+
setRoute("pages/editor");
|
|
288
|
+
}
|
|
289
|
+
} else {
|
|
290
|
+
toggleModal();
|
|
291
|
+
setModalState({ title: "", slug: "" });
|
|
292
|
+
setTemplateInstanceError({ error: true, templateName: displayName });
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
const handleCloseDuplicate = () => {
|
|
297
|
+
toggleModal();
|
|
298
|
+
setModalState({ title: "", slug: "" });
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
const mainModalAction = {
|
|
302
|
+
title: "Duplicate",
|
|
303
|
+
onClick: handleDuplicatePage,
|
|
304
|
+
disabled: !modalState.title.trim() || !modalState.slug.trim() || isSaving,
|
|
305
|
+
};
|
|
306
|
+
const secondaryModalAction = { title: "Cancel", onClick: handleCloseDuplicate };
|
|
307
|
+
|
|
308
|
+
const currentLanguages = getCurrentPageLanguages();
|
|
309
|
+
|
|
310
|
+
const isTemplateActivated = activatedTemplates.some((temp: any) => temp.id === templateId);
|
|
311
|
+
|
|
312
|
+
let availableLanguages = siteLanguages;
|
|
313
|
+
|
|
314
|
+
if (!isTemplateActivated || isGlobal || !isAllowedToCreatePages) {
|
|
315
|
+
const pageLanguagesIDs = pageLanguages.map((language: IPageLanguage) => language.languageId);
|
|
316
|
+
availableLanguages = siteLanguages && siteLanguages.filter((language) => pageLanguagesIDs.includes(language.id));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const languageMenu = () => (
|
|
320
|
+
<LanguageMenu
|
|
321
|
+
language={locale}
|
|
322
|
+
availableLanguages={availableLanguages || []}
|
|
323
|
+
setLanguage={handleLanguage}
|
|
324
|
+
currentLanguages={currentLanguages}
|
|
325
|
+
/>
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
const FlagsButton = () => (
|
|
329
|
+
<S.FlagsWrapper onClick={onClick}>
|
|
330
|
+
{currentLanguages.slice(0, 2).map((pageLanguage: ILanguage, i: number) => (
|
|
331
|
+
<Flag key={`${pageLanguage.language}${i}`} name={pageLanguage.locale} size="15" />
|
|
332
|
+
))}
|
|
333
|
+
<span>({currentLanguages.length})</span>
|
|
334
|
+
</S.FlagsWrapper>
|
|
335
|
+
);
|
|
336
|
+
|
|
337
|
+
const handleNameChange = (value: string) => {
|
|
338
|
+
setModalState({ title: value, slug: slugify(value) });
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
const handleSlugChange = (value: string) => {
|
|
342
|
+
setModalState({ ...modalState, slug: value });
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
const deleteDisabled = isGlobal && (!manuallyImported || canBeUnpublished === false);
|
|
346
|
+
const deleteHelpText =
|
|
347
|
+
isGlobal && !manuallyImported
|
|
348
|
+
? "This page has been provided by subscription. You cannot remove it."
|
|
349
|
+
: canBeUnpublished === false
|
|
350
|
+
? "This is the canonical site of the page. You cannot remove it."
|
|
351
|
+
: null;
|
|
352
|
+
|
|
353
|
+
let menuOptions: IPageOption[] = [];
|
|
354
|
+
|
|
355
|
+
if (isAllowedToDelete) {
|
|
356
|
+
menuOptions.push({
|
|
357
|
+
label: isGlobal ? "Remove from site" : "delete",
|
|
358
|
+
icon: "delete",
|
|
359
|
+
action: isGlobal ? toggleRemoveModal : toggleDeleteModal,
|
|
360
|
+
disabled: deleteDisabled,
|
|
361
|
+
helpText: deleteHelpText,
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (isCopyable && isAllowedToCopyPage) {
|
|
366
|
+
menuOptions.unshift({
|
|
367
|
+
label: "Copy page in another site",
|
|
368
|
+
icon: "copy",
|
|
369
|
+
action: toggleCopyModal,
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if (!isGlobal && isAllowedToDuplicatePages) {
|
|
374
|
+
menuOptions.unshift({
|
|
375
|
+
label: "duplicate",
|
|
376
|
+
icon: "duplicate",
|
|
377
|
+
action: toggleModal,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const getPublishItem = (status: string, canBeUnpublished: boolean) => {
|
|
382
|
+
const helpText =
|
|
383
|
+
canBeUnpublished === false ? "This is the canonical site of the page. You cannot unpublish it." : null;
|
|
384
|
+
const disabled = canBeUnpublished === false;
|
|
385
|
+
|
|
386
|
+
switch (status) {
|
|
387
|
+
case pageStatus.OFFLINE:
|
|
388
|
+
case pageStatus.OFFLINE_PENDING:
|
|
389
|
+
return {
|
|
390
|
+
label: "publish",
|
|
391
|
+
icon: "upload-pending",
|
|
392
|
+
action: publishPage,
|
|
393
|
+
};
|
|
394
|
+
case pageStatus.PUBLISHED:
|
|
395
|
+
return {
|
|
396
|
+
label: "unpublish",
|
|
397
|
+
icon: "offline",
|
|
398
|
+
action: page.haveDraftPage ? toggleUnpublishModal : unpublishPage,
|
|
399
|
+
disabled,
|
|
400
|
+
helpText,
|
|
401
|
+
};
|
|
402
|
+
case pageStatus.UPLOAD_PENDING:
|
|
403
|
+
return {
|
|
404
|
+
label: "unpublish",
|
|
405
|
+
icon: "offline",
|
|
406
|
+
action: page.haveDraftPage ? toggleUnpublishModal : cancelPublishPage,
|
|
407
|
+
disabled,
|
|
408
|
+
helpText,
|
|
409
|
+
};
|
|
410
|
+
default:
|
|
411
|
+
return null;
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
const viewPage = () => window.open(page.fullUrl || `${API_URL}/page/go/${page.id}`, "_blank");
|
|
416
|
+
|
|
417
|
+
const viewOption = {
|
|
418
|
+
label: "View online",
|
|
419
|
+
icon: "View",
|
|
420
|
+
action: viewPage,
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
const publishAction = getPublishItem(page.liveStatus?.status, canBeUnpublished);
|
|
424
|
+
|
|
425
|
+
menuOptions = publishAction && isAllowedToPublishPages ? [publishAction, ...menuOptions] : menuOptions;
|
|
426
|
+
|
|
427
|
+
const editOptions = [
|
|
428
|
+
{
|
|
429
|
+
label: "View live",
|
|
430
|
+
icon: "active",
|
|
431
|
+
action: editLivePage,
|
|
432
|
+
color: true,
|
|
433
|
+
},
|
|
434
|
+
];
|
|
435
|
+
|
|
436
|
+
if (isAllowedToEditContentPage) {
|
|
437
|
+
editOptions.unshift({
|
|
438
|
+
label: "Edit draft",
|
|
439
|
+
icon: "modified",
|
|
440
|
+
action: goToPage,
|
|
441
|
+
color: true,
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
menuOptions = page.haveDraftPage ? [...editOptions, ...menuOptions] : menuOptions;
|
|
446
|
+
|
|
447
|
+
menuOptions = page.liveStatus?.status === pageStatus.PUBLISHED ? [viewOption, ...menuOptions] : menuOptions;
|
|
448
|
+
|
|
449
|
+
const GlobalMark = () => (
|
|
450
|
+
<Tooltip content="Global Page">
|
|
451
|
+
<S.Mark>G</S.Mark>
|
|
452
|
+
</Tooltip>
|
|
453
|
+
);
|
|
454
|
+
|
|
455
|
+
const mainRemoveModalAction = {
|
|
456
|
+
title: "Remove Page",
|
|
457
|
+
onClick: handleRemoveItemFromSite,
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
const secondaryRemoveModalAction = { title: "Cancel", onClick: toggleRemoveModal };
|
|
461
|
+
|
|
462
|
+
const copyToOtherSite = () => {
|
|
463
|
+
if (site) {
|
|
464
|
+
const siteID = parseInt(site);
|
|
465
|
+
|
|
466
|
+
duplicatePage(page.id, null, siteID).then((successEvent: boolean) => {
|
|
467
|
+
if (successEvent === true) {
|
|
468
|
+
toggleCopiedToast();
|
|
469
|
+
}
|
|
470
|
+
toggleCopyModal();
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
const secondaryCopyModalAction = {
|
|
476
|
+
title: "Cancel",
|
|
477
|
+
onClick: toggleCopyModal,
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
const mainCopyModalAction = { title: "Copy page", onClick: copyToOtherSite, disabled: !site };
|
|
481
|
+
|
|
482
|
+
const getLiveStatus = () => (isScheduledPub ? "scheduled" : haveDraftPage ? "modified" : liveStatus?.status);
|
|
483
|
+
|
|
484
|
+
const mainUnpublishAction = { title: "Ok", onClick: toggleUnpublishModal };
|
|
485
|
+
|
|
486
|
+
const mainDeleteModalAction = {
|
|
487
|
+
title: "Delete page",
|
|
488
|
+
onClick: handleDeleteItem,
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
const secondaryDeleteModalAction = { title: "Cancel", onClick: toggleDeleteModal };
|
|
492
|
+
|
|
493
|
+
const CategoryColumns = categoryColumns.map((col) => {
|
|
494
|
+
if (!activeColumns.includes(col.key)) {
|
|
495
|
+
return <React.Fragment key={col.key} />;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
const type: any = structuredDataContent && structuredDataContent[col.key];
|
|
499
|
+
|
|
500
|
+
if (typeof type !== "object") {
|
|
501
|
+
return (
|
|
502
|
+
<S.ColumnCell key={col.key} onClick={goToPage}>
|
|
503
|
+
{type}
|
|
504
|
+
</S.ColumnCell>
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
const categories: string[] = !type
|
|
509
|
+
? []
|
|
510
|
+
: Array.isArray(type)
|
|
511
|
+
? type.map((cat: any) => cat.label || cat.title)
|
|
512
|
+
: [type.label || type.title];
|
|
513
|
+
|
|
514
|
+
return (
|
|
515
|
+
<CategoryCell
|
|
516
|
+
key={col.key}
|
|
517
|
+
categories={categories}
|
|
518
|
+
categoryColors={categoryColors}
|
|
519
|
+
addCategoryColors={addCategoryColors}
|
|
520
|
+
/>
|
|
521
|
+
);
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
return (
|
|
525
|
+
<>
|
|
526
|
+
<S.PageRow role="rowgroup" selected={isSelected} global={isGlobal}>
|
|
527
|
+
<S.CheckCell role="cell">
|
|
528
|
+
<CheckField name="check" value={page.id} checked={isSelected || hoverCheck} onChange={handleOnChange} />
|
|
529
|
+
</S.CheckCell>
|
|
530
|
+
<S.NameCell role="cell" onClick={goToPage} ref={nameCellRef}>
|
|
531
|
+
{isHome && (
|
|
532
|
+
<S.Home>
|
|
533
|
+
<Icon name="home" />
|
|
534
|
+
Home
|
|
535
|
+
</S.Home>
|
|
536
|
+
)}
|
|
537
|
+
<Tooltip
|
|
538
|
+
content={[
|
|
539
|
+
<React.Fragment key="page-title">
|
|
540
|
+
<strong>{page.title}</strong>
|
|
541
|
+
<br />
|
|
542
|
+
</React.Fragment>,
|
|
543
|
+
<React.Fragment key="page-slug">{fullPath.page}</React.Fragment>,
|
|
544
|
+
]}
|
|
545
|
+
left={0}
|
|
546
|
+
top={1}
|
|
547
|
+
expanded
|
|
548
|
+
>
|
|
549
|
+
<S.Title width={title.width}>{title.text}</S.Title>
|
|
550
|
+
{!isHome && <S.Slug width={path.width}>{path.text}</S.Slug>}
|
|
551
|
+
</Tooltip>
|
|
552
|
+
</S.NameCell>
|
|
553
|
+
|
|
554
|
+
{activeColumns.includes("type") && (
|
|
555
|
+
<S.TypeCell role="cell" onClick={goToPage}>
|
|
556
|
+
{displayName}
|
|
557
|
+
</S.TypeCell>
|
|
558
|
+
)}
|
|
559
|
+
{activeColumns.includes("live") && (
|
|
560
|
+
<S.LiveCell role="cell" onClick={goToPage}>
|
|
561
|
+
<Tooltip content={publishedTooltip[getLiveStatus()]}>
|
|
562
|
+
<Icon name={getLiveStatus()} />
|
|
563
|
+
</Tooltip>
|
|
564
|
+
</S.LiveCell>
|
|
565
|
+
)}
|
|
566
|
+
{CategoryColumns}
|
|
567
|
+
{activeColumns.includes("status") && (
|
|
568
|
+
<S.StatusCell role="cell" onClick={goToPage}>
|
|
569
|
+
{checkWorkflowStatus()}
|
|
570
|
+
<S.ModDate>{`Mod. ${getHumanLastModifiedDate(page.modified)}`}</S.ModDate>
|
|
571
|
+
</S.StatusCell>
|
|
572
|
+
)}
|
|
573
|
+
{activeColumns.includes("translation") && (
|
|
574
|
+
<S.TransCell role="cell">
|
|
575
|
+
<FloatingMenu Button={FlagsButton}>{languageMenu()}</FloatingMenu>
|
|
576
|
+
</S.TransCell>
|
|
577
|
+
)}
|
|
578
|
+
{activeColumns.includes("seo") && (
|
|
579
|
+
<S.SeoCell role="cell">
|
|
580
|
+
<SeoItems.Index />
|
|
581
|
+
{SeoTitleMenu()}
|
|
582
|
+
{SeoDescriptionMenu()}
|
|
583
|
+
</S.SeoCell>
|
|
584
|
+
)}
|
|
585
|
+
<S.GlobalCell>{isGlobal && <GlobalMark />}</S.GlobalCell>
|
|
586
|
+
<S.ActionsCell role="cell">
|
|
587
|
+
<S.StyledActionMenu icon="more" options={menuOptions} tooltip="Page actions" />
|
|
588
|
+
</S.ActionsCell>
|
|
589
|
+
</S.PageRow>
|
|
590
|
+
<CopyModal
|
|
591
|
+
isOpen={isCopyOpen}
|
|
592
|
+
toggleModal={() => {
|
|
593
|
+
setSite(null);
|
|
594
|
+
toggleCopyModal();
|
|
595
|
+
}}
|
|
596
|
+
mainModalAction={mainCopyModalAction}
|
|
597
|
+
secondaryModalAction={secondaryCopyModalAction}
|
|
598
|
+
sites={sites}
|
|
599
|
+
site={site}
|
|
600
|
+
setSite={setSite}
|
|
601
|
+
/>
|
|
602
|
+
<Modal
|
|
603
|
+
isOpen={isOpen}
|
|
604
|
+
hide={handleCloseDuplicate}
|
|
605
|
+
title="Duplicate page"
|
|
606
|
+
secondaryAction={secondaryModalAction}
|
|
607
|
+
mainAction={mainModalAction}
|
|
608
|
+
size="M"
|
|
609
|
+
>
|
|
610
|
+
<ErrorToast />
|
|
611
|
+
{isOpen ? (
|
|
612
|
+
<S.ModalContent>
|
|
613
|
+
<FieldsBehavior
|
|
614
|
+
fieldType="TextField"
|
|
615
|
+
name="title"
|
|
616
|
+
title="Title"
|
|
617
|
+
mandatory={true}
|
|
618
|
+
value={modalState.title}
|
|
619
|
+
onChange={handleNameChange}
|
|
620
|
+
/>
|
|
621
|
+
<FieldsBehavior
|
|
622
|
+
fieldType="TextField"
|
|
623
|
+
name="slug"
|
|
624
|
+
title="Slug"
|
|
625
|
+
mandatory={true}
|
|
626
|
+
value={modalState.slug}
|
|
627
|
+
onChange={handleSlugChange}
|
|
628
|
+
/>
|
|
629
|
+
</S.ModalContent>
|
|
630
|
+
) : null}
|
|
631
|
+
</Modal>
|
|
632
|
+
<Modal
|
|
633
|
+
isOpen={isRemoveOpen}
|
|
634
|
+
hide={toggleRemoveModal}
|
|
635
|
+
title="Remove page from this site?"
|
|
636
|
+
secondaryAction={secondaryRemoveModalAction}
|
|
637
|
+
mainAction={mainRemoveModalAction}
|
|
638
|
+
size="S"
|
|
639
|
+
>
|
|
640
|
+
{isRemoveOpen ? (
|
|
641
|
+
<S.ModalContent>
|
|
642
|
+
<p>
|
|
643
|
+
Are you sure you want to remove <strong>‘{page.title}’</strong> from this site?
|
|
644
|
+
<br />
|
|
645
|
+
This action <strong>cannot be undone</strong>.
|
|
646
|
+
</p>
|
|
647
|
+
</S.ModalContent>
|
|
648
|
+
) : null}
|
|
649
|
+
</Modal>
|
|
650
|
+
<Modal
|
|
651
|
+
isOpen={isUnpublishOpen}
|
|
652
|
+
hide={toggleUnpublishModal}
|
|
653
|
+
size="S"
|
|
654
|
+
title="Unpublish Modified Page"
|
|
655
|
+
mainAction={mainUnpublishAction}
|
|
656
|
+
>
|
|
657
|
+
{isUnpublishOpen && (
|
|
658
|
+
<S.ModalContent>
|
|
659
|
+
<p>
|
|
660
|
+
There are some saved changes that are not published on this page. To Unpublish this page,{" "}
|
|
661
|
+
<strong>you must publish these changes or discard them.</strong>
|
|
662
|
+
</p>
|
|
663
|
+
</S.ModalContent>
|
|
664
|
+
)}
|
|
665
|
+
</Modal>
|
|
666
|
+
<DeleteModal
|
|
667
|
+
isOpen={isDeleteOpen}
|
|
668
|
+
toggleModal={toggleDeleteModal}
|
|
669
|
+
mainModalAction={mainDeleteModalAction}
|
|
670
|
+
secondaryModalAction={secondaryDeleteModalAction}
|
|
671
|
+
{...{ isTranslated, deleteAllVersions, setDeleteAllVersions, title: page.title }}
|
|
672
|
+
/>
|
|
673
|
+
</>
|
|
674
|
+
);
|
|
675
675
|
};
|
|
676
676
|
|
|
677
677
|
interface IPageOption {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
678
|
+
label: string;
|
|
679
|
+
icon: string;
|
|
680
|
+
action: () => void;
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
helpText?: string | null;
|
|
683
|
+
color?: boolean;
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
interface IPageItemProps {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
687
|
+
item: {
|
|
688
|
+
isSelected: boolean;
|
|
689
|
+
siteLanguages?: ILanguage[];
|
|
690
|
+
page: IPage;
|
|
691
|
+
site: ISite;
|
|
692
|
+
lang: { locale: string; id: number };
|
|
693
|
+
isDuplicable: boolean;
|
|
694
|
+
};
|
|
695
|
+
functions: {
|
|
696
|
+
onClick: (e: any) => void;
|
|
697
|
+
onCheck: (e: any) => void;
|
|
698
|
+
deletePage(params?: ISavePageParams, currentLanguage?: string): void;
|
|
699
|
+
getSiteContent(): any;
|
|
700
|
+
setHistoryPush(path: string, isEditor: boolean): void;
|
|
701
|
+
updatePageStatus(ids: number[], status: string, updatedFromList: boolean): Promise<boolean>;
|
|
702
|
+
setCurrentPageID(currentPageID: number | null): ISetCurrentPageIDAction;
|
|
703
|
+
duplicatePage(pageID: number, data: any, siteID?: number): Promise<boolean>;
|
|
704
|
+
removePageFromSite(pageID: number): Promise<boolean>;
|
|
705
|
+
deleteBulk(ids: number[]): void;
|
|
706
|
+
setTemplateInstanceError(error: any): void;
|
|
707
|
+
getDataPack: (id: string) => Promise<void>;
|
|
708
|
+
toggleCopiedToast(): void;
|
|
709
|
+
getPage(pageID?: number, global?: boolean): Promise<void>;
|
|
710
|
+
validatePage(publish?: boolean, browserRef?: any, currentPage?: IPage): Promise<boolean>;
|
|
711
|
+
};
|
|
712
|
+
activatedTemplates: any[];
|
|
713
|
+
toggleToast(): void;
|
|
714
|
+
setRemovedPage(pageID: number): void;
|
|
715
|
+
categoryColumns: ISchemaField[];
|
|
716
|
+
columns: IColumn[];
|
|
717
|
+
categoryColors: any;
|
|
718
|
+
addCategoryColors(cats: string[]): void;
|
|
719
|
+
dataPacks: IDataPack[];
|
|
720
|
+
sites: ISite[];
|
|
721
|
+
skipReview?: boolean;
|
|
722
|
+
hoverCheck?: boolean;
|
|
723
|
+
createNewTranslation(isNewTranslation: boolean): void;
|
|
724
|
+
setLanguage(lang: { locale: string; id: number | null }): void;
|
|
725
|
+
isSaving: boolean;
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
const mapStateToProps = (state: IRootState) => ({
|
|
729
|
-
|
|
729
|
+
isSaving: state.app.isSaving,
|
|
730
730
|
});
|
|
731
731
|
|
|
732
732
|
const mapDispatchToProps = {
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
createNewTranslation: pageEditorActions.createNewTranslation,
|
|
734
|
+
setLanguage: appActions.setLanguage,
|
|
735
735
|
};
|
|
736
736
|
|
|
737
737
|
export default connect(mapStateToProps, mapDispatchToProps)(PageItem);
|