@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
|
@@ -4,24 +4,24 @@ import { RouteComponentProps } from "react-router-dom";
|
|
|
4
4
|
import { withErrorBoundary } from "react-error-boundary";
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
IErrorItem,
|
|
8
|
+
INotification,
|
|
9
|
+
IRootState,
|
|
10
|
+
ISavePageParams,
|
|
11
|
+
IUserEditing,
|
|
12
|
+
IPageLanguage,
|
|
13
|
+
ILanguage,
|
|
14
14
|
} from "@ax/types";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
MainWrapper,
|
|
17
|
+
Loading,
|
|
18
|
+
ErrorToast,
|
|
19
|
+
Notification,
|
|
20
|
+
Modal,
|
|
21
|
+
ErrorPage,
|
|
22
|
+
CancelScheduleModal,
|
|
23
|
+
ScheduleModal,
|
|
24
|
+
RestoreModal,
|
|
25
25
|
} from "@ax/components";
|
|
26
26
|
import { pageEditorActions } from "@ax/containers/PageEditor";
|
|
27
27
|
import { appActions } from "@ax/containers/App";
|
|
@@ -38,807 +38,807 @@ import Preview from "./Preview";
|
|
|
38
38
|
import * as S from "./style";
|
|
39
39
|
|
|
40
40
|
const PageEditor = (props: IProps) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
41
|
+
const {
|
|
42
|
+
pageID,
|
|
43
|
+
isLoading,
|
|
44
|
+
isSaving,
|
|
45
|
+
pageName,
|
|
46
|
+
lang,
|
|
47
|
+
setLanguage,
|
|
48
|
+
createNewTranslation,
|
|
49
|
+
siteLanguages,
|
|
50
|
+
pageLanguages,
|
|
51
|
+
getPage,
|
|
52
|
+
activatedTemplates,
|
|
53
|
+
selectedComponent,
|
|
54
|
+
activatedModules,
|
|
55
|
+
getSiteDataPackbyModule,
|
|
56
|
+
getSiteDataPackbyTemplate,
|
|
57
|
+
setHistoryPush,
|
|
58
|
+
getDefaults,
|
|
59
|
+
errors,
|
|
60
|
+
setSelectedContent,
|
|
61
|
+
setTab,
|
|
62
|
+
editorContent,
|
|
63
|
+
schema,
|
|
64
|
+
userEditing,
|
|
65
|
+
isNewTranslation,
|
|
66
|
+
currentSiteErrorPages,
|
|
67
|
+
schedulePublication,
|
|
68
|
+
setCurrentPageID,
|
|
69
|
+
restorePage,
|
|
70
|
+
schemaVersion,
|
|
71
|
+
} = props;
|
|
72
|
+
|
|
73
|
+
const isAllowedToPublishPages = usePermission("content.publishUnpublishPages");
|
|
74
|
+
const isAllowedToCreatePages = usePermission("content.createPages");
|
|
75
|
+
const isAllowedToDeletePage = usePermission("content.deletePages");
|
|
76
|
+
const isAllowedToDeletePublishedPage = usePermission("content.deletePublishedPages");
|
|
77
|
+
const isAllowedToEditContentPage = usePermission("content.editContentPages");
|
|
78
|
+
|
|
79
|
+
const defaultTab = isAllowedToEditContentPage ? "edit" : "view";
|
|
80
|
+
|
|
81
|
+
const [deleteAllVersions, setDeleteAllVersions] = useState(false);
|
|
82
|
+
const [isReadOnly, setIsReadOnly] = useState(false);
|
|
83
|
+
const [selectedTab, setSelectedTab] = useState(defaultTab);
|
|
84
|
+
const [notification, setNotification] = useState<INotification | null>(null);
|
|
85
|
+
const [scheduleDate, setScheduleDate] = useState({ date: dateToString(new Date(), "yyy/MM/dd"), time: "12:00 am" });
|
|
86
|
+
const { isDirty, setIsDirty, resetDirty } = useIsDirty(editorContent, isNewTranslation);
|
|
87
|
+
const { isOpen, toggleModal } = useModal();
|
|
88
|
+
const { isOpen: isUnpublishOpen, toggleModal: toggleUnpublishModal } = useModal();
|
|
89
|
+
const { isOpen: isDeleteOpen, toggleModal: toggleDeleteModal } = useModal();
|
|
90
|
+
const { isOpen: isScheduleOpen, toggleModal: toggleScheduleModal } = useModal();
|
|
91
|
+
const { isOpen: isCancelScheduleOpen, toggleModal: toggleCancelScheduleModal } = useModal();
|
|
92
|
+
const { isOpen: isRestoreOpen, toggleModal: toggleRestoreModal } = useModal();
|
|
93
|
+
const [errorPagesChecked, setErrorPagesChecked] = useState(false);
|
|
94
|
+
const browserRef = useRef<HTMLDivElement>(null);
|
|
95
|
+
|
|
96
|
+
const isGlobal = editorContent && editorContent.origin === "GLOBAL";
|
|
97
|
+
const isEditable = editorContent && editorContent.editable;
|
|
98
|
+
const isPublished = props.pageStatus === pageStatus.PUBLISHED || props.pageStatus === pageStatus.UPLOAD_PENDING;
|
|
99
|
+
const isDraft = props.pageStatus === pageStatus.MODIFIED || !!editorContent.draftFromPage;
|
|
100
|
+
const hasDraft = editorContent && editorContent.haveDraftPage;
|
|
101
|
+
const isLivePageChanged = editorContent && editorContent.liveChanged;
|
|
102
|
+
const isTranslated = pageLanguages.length > 1;
|
|
103
|
+
const structuredData = editorContent ? editorContent.structuredData : "";
|
|
104
|
+
const isEditLive = isPublished && hasDraft;
|
|
105
|
+
const isAllowedToDelete = (isPublished && isAllowedToDeletePublishedPage) || (!isPublished && isAllowedToDeletePage);
|
|
106
|
+
const canBeUnpublished = editorContent && editorContent.canBeUnpublished;
|
|
107
|
+
const deleteHelpText = !canBeUnpublished ? "This is the canonical site of the page. You cannot unpublish it." : null;
|
|
108
|
+
const isScheduled = !!editorContent && !!editorContent.publicationScheduled;
|
|
109
|
+
const isDeleted = editorContent.deleted;
|
|
110
|
+
|
|
111
|
+
const errorNotificationText =
|
|
112
|
+
"There are some errors on the page so you can not publish yet. Please review them in the error panel.";
|
|
113
|
+
const validatedNotificationText = "Everything seems ok, you can publish the page.";
|
|
114
|
+
const modifiedNotificationText =
|
|
115
|
+
"You made some changes to the Live version that aren't implemented on this Draft. Check it out before you continue working.";
|
|
116
|
+
|
|
117
|
+
const deletedNotificationText =
|
|
118
|
+
"This page has been deleted and can’t be edited. It will be permanently removed from the trash after 30 days.";
|
|
119
|
+
|
|
120
|
+
const backLinkRoute = "/sites/pages";
|
|
121
|
+
|
|
122
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: TODO: fix this
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
const { pageID, getPage, setTab, sendPagePing } = props;
|
|
125
|
+
const defaultTab = "content";
|
|
126
|
+
const handleGetPage = async () => await getPage(pageID);
|
|
127
|
+
|
|
128
|
+
setTab(defaultTab);
|
|
129
|
+
resetDirty();
|
|
130
|
+
handleGetPage();
|
|
131
|
+
|
|
132
|
+
if (!pageID) {
|
|
133
|
+
setIsDirty(false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const interval = setInterval(() => {
|
|
137
|
+
pageID && sendPagePing(pageID);
|
|
138
|
+
}, 30000);
|
|
139
|
+
return () => clearInterval(interval);
|
|
140
|
+
}, []);
|
|
141
|
+
|
|
142
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: TODO: fix this
|
|
143
|
+
useEffect(() => {
|
|
144
|
+
const { pageID, sendPagePing, currentUserID } = props;
|
|
145
|
+
if (userEditing && userEditing.id !== currentUserID) {
|
|
146
|
+
setIsReadOnly(true);
|
|
147
|
+
!isOpen && toggleModal();
|
|
148
|
+
} else {
|
|
149
|
+
setIsReadOnly(false);
|
|
150
|
+
pageID && sendPagePing(pageID);
|
|
151
|
+
isOpen && toggleModal();
|
|
152
|
+
}
|
|
153
|
+
}, [userEditing]);
|
|
154
|
+
|
|
155
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: TODO: fix this
|
|
156
|
+
useEffect(() => {
|
|
157
|
+
if (!errorPagesChecked && !isLoading && editorContent) {
|
|
158
|
+
const pageId = editorContent.id;
|
|
159
|
+
const hasErrors = currentSiteErrorPages.some((errorPageId) => pageId === errorPageId);
|
|
160
|
+
hasErrors && reviewPage();
|
|
161
|
+
setErrorPagesChecked(true);
|
|
162
|
+
}
|
|
163
|
+
}, [editorContent]);
|
|
164
|
+
|
|
165
|
+
const setRoute = (path: string) => props.setHistoryPush(path, true);
|
|
166
|
+
|
|
167
|
+
const removePage = async () => {
|
|
168
|
+
const { deletePage, deleteBulk } = props;
|
|
169
|
+
const path = "/sites/pages";
|
|
170
|
+
|
|
171
|
+
const allPageVersions = pageLanguages.map((lang: IPageLanguage) => lang.pageId);
|
|
172
|
+
const isDeleted = deleteAllVersions ? await deleteBulk(allPageVersions) : await deletePage();
|
|
173
|
+
|
|
174
|
+
toggleDeleteModal();
|
|
175
|
+
if (isDeleted) {
|
|
176
|
+
setRoute(path);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
const publishPage = async () => {
|
|
181
|
+
const { updatePageStatus, savePage, pageID, validatePage, skipReviewOnPublish } = props;
|
|
182
|
+
|
|
183
|
+
const validated = skipReviewOnPublish ? true : await validatePage(true);
|
|
184
|
+
|
|
185
|
+
if (validated) {
|
|
186
|
+
const publishPage = {
|
|
187
|
+
status: pageStatus.UPLOAD_PENDING,
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const isSaved =
|
|
191
|
+
pageID && !isNewTranslation
|
|
192
|
+
? await updatePageStatus([pageID], pageStatus.UPLOAD_PENDING)
|
|
193
|
+
: await savePage(false, publishPage);
|
|
194
|
+
|
|
195
|
+
if (isSaved) {
|
|
196
|
+
resetDirty();
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
setNotification({ text: errorNotificationText, type: "error" });
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
const publishChanges = async () => {
|
|
204
|
+
const { savePage, validatePage, skipReviewOnPublish } = props;
|
|
205
|
+
|
|
206
|
+
const validated = skipReviewOnPublish ? true : await validatePage(true);
|
|
207
|
+
|
|
208
|
+
if (validated) {
|
|
209
|
+
const publishPage = {
|
|
210
|
+
status: pageStatus.UPLOAD_PENDING,
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
const isSaved = await savePage(false, publishPage);
|
|
214
|
+
if (isSaved) {
|
|
215
|
+
resetDirty();
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
setNotification({ text: errorNotificationText, type: "error" });
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
const unpublishPage = async () => {
|
|
223
|
+
const { updatePageStatus, pageID } = props;
|
|
224
|
+
|
|
225
|
+
const isSaved = await updatePageStatus([pageID], pageStatus.OFFLINE_PENDING);
|
|
226
|
+
if (isSaved) {
|
|
227
|
+
resetDirty();
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
const reviewPage = async () => {
|
|
232
|
+
const { validatePage } = props;
|
|
233
|
+
const validated = await validatePage(false);
|
|
234
|
+
if (validated) {
|
|
235
|
+
setNotification({ text: validatedNotificationText, type: "success" });
|
|
236
|
+
} else {
|
|
237
|
+
setNotification({ text: errorNotificationText, type: "error" });
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
const handlePublishDraft = async () => {
|
|
242
|
+
const { savePage, validatePage, skipReviewOnPublish } = props;
|
|
243
|
+
|
|
244
|
+
const validated = skipReviewOnPublish ? true : await validatePage(true);
|
|
245
|
+
|
|
246
|
+
if (validated) {
|
|
247
|
+
const isSaved = await savePage(false, null, true);
|
|
248
|
+
if (isSaved) resetDirty();
|
|
249
|
+
} else {
|
|
250
|
+
setNotification({ text: errorNotificationText, type: "error" });
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const handleDiscardDraft = () => {
|
|
255
|
+
const { discardDraft } = props;
|
|
256
|
+
resetDirty();
|
|
257
|
+
discardDraft();
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
const handleDiscarChanges = () => {
|
|
261
|
+
const { getPage, pageID } = props;
|
|
262
|
+
resetDirty();
|
|
263
|
+
|
|
264
|
+
getPage(pageID);
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
const handleCreateDraft = async () => {
|
|
268
|
+
const { savePage } = props;
|
|
269
|
+
|
|
270
|
+
const isSaved = await savePage(true);
|
|
271
|
+
if (isSaved) resetDirty();
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const handleSchedulePublication = async () => {
|
|
275
|
+
console.log(scheduleDate, "scheduleDate");
|
|
276
|
+
const date = new Date(`${scheduleDate.date} ${scheduleDate.time}`);
|
|
277
|
+
const dateString = dateToString(date, "dd/MM/yyyy HH:mm:ss");
|
|
278
|
+
const saved = await schedulePublication(dateString, isDraft);
|
|
279
|
+
if (saved) {
|
|
280
|
+
resetDirty();
|
|
281
|
+
toggleScheduleModal();
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const handleCancelSchedulePublication = async () => {
|
|
286
|
+
const saved = await schedulePublication(null, isDraft);
|
|
287
|
+
if (saved) {
|
|
288
|
+
setScheduleDate({ date: "", time: "12:00 am" });
|
|
289
|
+
resetDirty();
|
|
290
|
+
toggleCancelScheduleModal();
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const getPublishButton = (status: string) => {
|
|
295
|
+
switch (status) {
|
|
296
|
+
case pageStatus.OFFLINE:
|
|
297
|
+
case pageStatus.OFFLINE_PENDING:
|
|
298
|
+
return {
|
|
299
|
+
label: status === pageStatus.OFFLINE_PENDING ? "Cancel Unpublishing" : "Publish",
|
|
300
|
+
action: publishPage,
|
|
301
|
+
};
|
|
302
|
+
case pageStatus.PUBLISHED:
|
|
303
|
+
case pageStatus.UPLOAD_PENDING:
|
|
304
|
+
return !isGlobal && !hasDraft && isDirty
|
|
305
|
+
? {
|
|
306
|
+
label: "Create new draft",
|
|
307
|
+
action: handleCreateDraft,
|
|
308
|
+
}
|
|
309
|
+
: {
|
|
310
|
+
label: status === pageStatus.UPLOAD_PENDING ? "Cancel publication" : "Unpublish",
|
|
311
|
+
action: hasDraft ? toggleUnpublishModal : unpublishPage,
|
|
312
|
+
disabled: !canBeUnpublished,
|
|
313
|
+
helpText: deleteHelpText,
|
|
314
|
+
};
|
|
315
|
+
case pageStatus.MODIFIED:
|
|
316
|
+
case pageStatus.SCHEDULED:
|
|
317
|
+
return {
|
|
318
|
+
label: isDraft ? "Publish changes" : "Publish",
|
|
319
|
+
action: isDraft ? handlePublishDraft : publishPage,
|
|
320
|
+
};
|
|
321
|
+
default:
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
const menuOptions = [];
|
|
327
|
+
|
|
328
|
+
if (isAllowedToPublishPages && !isScheduled && !isPublished && props.pageStatus !== pageStatus.OFFLINE_PENDING) {
|
|
329
|
+
menuOptions.push({
|
|
330
|
+
label: "Schedule",
|
|
331
|
+
icon: "calendar",
|
|
332
|
+
action: toggleScheduleModal,
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (isAllowedToPublishPages && isScheduled) {
|
|
337
|
+
menuOptions.push({
|
|
338
|
+
label: "Cancel Schedule",
|
|
339
|
+
icon: "cancelEvent",
|
|
340
|
+
action: toggleCancelScheduleModal,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (
|
|
345
|
+
isAllowedToEditContentPage &&
|
|
346
|
+
(props.pageStatus === pageStatus.PUBLISHED ||
|
|
347
|
+
props.pageStatus === pageStatus.OFFLINE ||
|
|
348
|
+
props.pageStatus === pageStatus.OFFLINE_PENDING ||
|
|
349
|
+
props.pageStatus === pageStatus.SCHEDULED ||
|
|
350
|
+
(isDraft && isDirty))
|
|
351
|
+
) {
|
|
352
|
+
menuOptions.push({
|
|
353
|
+
label: "Review",
|
|
354
|
+
icon: "question",
|
|
355
|
+
action: reviewPage,
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (props.pageStatus === pageStatus.PUBLISHED && !hasDraft && isDirty && isAllowedToPublishPages) {
|
|
360
|
+
menuOptions.push({
|
|
361
|
+
label: "Unpublish",
|
|
362
|
+
icon: "offline",
|
|
363
|
+
action: isDraft ? toggleUnpublishModal : unpublishPage,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (isAllowedToEditContentPage && !isScheduled && (isDraft || (isPublished && isDirty))) {
|
|
368
|
+
menuOptions.push({
|
|
369
|
+
label: "Discard changes",
|
|
370
|
+
icon: "close",
|
|
371
|
+
action: isDraft ? handleDiscardDraft : handleDiscarChanges,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (!isDraft && isAllowedToDelete) {
|
|
376
|
+
menuOptions.push({
|
|
377
|
+
label: "Delete page",
|
|
378
|
+
icon: "delete",
|
|
379
|
+
action: toggleDeleteModal,
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
const downArrowMenu = {
|
|
384
|
+
displayed: !isReadOnly && !isDeleted,
|
|
385
|
+
button: isAllowedToPublishPages ? getPublishButton(props.pageStatus) : undefined,
|
|
386
|
+
options: !isGlobal ? menuOptions : [],
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const handleSavePage = async () => {
|
|
390
|
+
const { savePage } = props;
|
|
391
|
+
|
|
392
|
+
const isSaved = await savePage(false);
|
|
393
|
+
if (isSaved) resetDirty();
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
const goToPages = (path: string) => setRoute(path);
|
|
397
|
+
|
|
398
|
+
const goToError = async (editorID: number | null, tab: string, template: boolean, parentEditorID?: number) => {
|
|
399
|
+
const realEditorID = parentEditorID ? parentEditorID : template ? 0 : editorID;
|
|
400
|
+
if (realEditorID !== null) {
|
|
401
|
+
await setSelectedContent(realEditorID);
|
|
402
|
+
setTab(tab);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
const modalText = (
|
|
407
|
+
<>
|
|
408
|
+
Some content <strong>is not saved</strong> on this page.
|
|
409
|
+
</>
|
|
410
|
+
);
|
|
411
|
+
|
|
412
|
+
let isTemplateActivated = true;
|
|
413
|
+
let hasDeactivatedModules = false;
|
|
414
|
+
let deactivatedModules: string[] = [];
|
|
415
|
+
if (editorContent && editorContent.template) {
|
|
416
|
+
const editorTemplate = editorContent.template;
|
|
417
|
+
const mainContentModules = editorTemplate?.mainContent?.modules;
|
|
418
|
+
|
|
419
|
+
if (mainContentModules) {
|
|
420
|
+
deactivatedModules = getDeactivatedModules(activatedModules, mainContentModules);
|
|
421
|
+
hasDeactivatedModules = deactivatedModules.length > 0;
|
|
422
|
+
} else {
|
|
423
|
+
hasDeactivatedModules = isModuleDisabled(selectedComponent, schema.schemaType, activatedModules);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
isTemplateActivated = activatedTemplates.find((temp) => temp.id === editorTemplate.templateType) ? true : false;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
let availableLanguages = siteLanguages;
|
|
430
|
+
if (!isTemplateActivated || hasDeactivatedModules || !isAllowedToCreatePages || isDeleted) {
|
|
431
|
+
const pageLanguagesIDs = pageLanguages.map((language) => language.languageId);
|
|
432
|
+
availableLanguages = siteLanguages.filter((language) => {
|
|
433
|
+
return pageLanguagesIDs.includes(language.id);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
const getSaveLabel = () => {
|
|
438
|
+
switch (props.pageStatus) {
|
|
439
|
+
case pageStatus.PUBLISHED:
|
|
440
|
+
case pageStatus.UPLOAD_PENDING:
|
|
441
|
+
return !isDirty && !isNewTranslation
|
|
442
|
+
? "Saved"
|
|
443
|
+
: isGlobal || (isPublished && hasDraft)
|
|
444
|
+
? "Save & publish"
|
|
445
|
+
: "Publish changes";
|
|
446
|
+
default:
|
|
447
|
+
return !pageID || isNewTranslation || (isDirty && props.pageStatus !== pageStatus.MODIFIED)
|
|
448
|
+
? "Save"
|
|
449
|
+
: isDirty && props.pageStatus === pageStatus.MODIFIED
|
|
450
|
+
? "Save draft"
|
|
451
|
+
: "Saved";
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
const rightButtonProps = isAllowedToEditContentPage
|
|
456
|
+
? {
|
|
457
|
+
label: isSaving ? "Saving" : getSaveLabel(),
|
|
458
|
+
disabled:
|
|
459
|
+
(!isDirty && pageID !== null && !isNewTranslation) ||
|
|
460
|
+
isSaving ||
|
|
461
|
+
isReadOnly ||
|
|
462
|
+
(!isTemplateActivated && !isGlobal),
|
|
463
|
+
action: isPublished ? publishChanges : handleSavePage,
|
|
464
|
+
}
|
|
465
|
+
: undefined;
|
|
466
|
+
|
|
467
|
+
const goToLivePage = () => {
|
|
468
|
+
const currentPageUrl = editorContent.fullUrl;
|
|
469
|
+
if (currentPageUrl) {
|
|
470
|
+
window.open(currentPageUrl, "_blank");
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
const toggleDraftPage = async () => {
|
|
475
|
+
const { getPage } = props;
|
|
476
|
+
resetDirty();
|
|
477
|
+
const pageID = isDraft ? editorContent.draftFromPage : editorContent.haveDraftPage;
|
|
478
|
+
await getPage(pageID);
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
let pageStatusActions =
|
|
482
|
+
props.pageStatus === pageStatus.PUBLISHED || isDraft
|
|
483
|
+
? [
|
|
484
|
+
{
|
|
485
|
+
label: "Go to live page",
|
|
486
|
+
icon: "view",
|
|
487
|
+
action: goToLivePage,
|
|
488
|
+
},
|
|
489
|
+
]
|
|
490
|
+
: [];
|
|
491
|
+
|
|
492
|
+
pageStatusActions =
|
|
493
|
+
isDraft || hasDraft
|
|
494
|
+
? [
|
|
495
|
+
{
|
|
496
|
+
label: isDraft ? "View live" : "Edit draft",
|
|
497
|
+
icon: isDraft ? "active" : "modified",
|
|
498
|
+
action: toggleDraftPage,
|
|
499
|
+
},
|
|
500
|
+
...pageStatusActions,
|
|
501
|
+
]
|
|
502
|
+
: pageStatusActions;
|
|
503
|
+
|
|
504
|
+
const packNotificationText =
|
|
505
|
+
"This content is part of disabled content type package. To edit it, you must first activate it.";
|
|
506
|
+
|
|
507
|
+
const handleClickNotification = () => {
|
|
508
|
+
if (editorContent && editorContent.template) {
|
|
509
|
+
const editorTemplate = editorContent.template;
|
|
510
|
+
if (!isTemplateActivated) {
|
|
511
|
+
getSiteDataPackbyTemplate(editorTemplate.templateType);
|
|
512
|
+
} else if (hasDeactivatedModules) {
|
|
513
|
+
const currentModule = deactivatedModules.length === 1 ? deactivatedModules[0] : selectedComponent;
|
|
514
|
+
getSiteDataPackbyModule(currentModule);
|
|
515
|
+
}
|
|
516
|
+
setHistoryPush("/sites/settings/content-types", false);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
const handleGoBack = () => {
|
|
521
|
+
props.setHistoryPush(backLinkRoute, false);
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
const mainAction = { title: "Preview Page", onClick: toggleModal };
|
|
525
|
+
const secondaryAction = { title: "Ok, go back", onClick: handleGoBack };
|
|
526
|
+
|
|
527
|
+
const mainUnpublishAction = { title: "Ok", onClick: toggleUnpublishModal };
|
|
528
|
+
|
|
529
|
+
const mainDeleteModalAction = {
|
|
530
|
+
title: "Delete page",
|
|
531
|
+
onClick: removePage,
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
const secondaryDeleteModalAction = { title: "Cancel", onClick: toggleDeleteModal };
|
|
535
|
+
|
|
536
|
+
const mainScheduleModalAction = {
|
|
537
|
+
title: "Schedule",
|
|
538
|
+
onClick: handleSchedulePublication,
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
const secondaryScheduleModalAction = { title: "Cancel", onClick: toggleScheduleModal };
|
|
542
|
+
|
|
543
|
+
const mainCancelScheduleModalAction = {
|
|
544
|
+
title: "Cancel Schedule",
|
|
545
|
+
onClick: handleCancelSchedulePublication,
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
const secondaryCancelScheduleModalAction = { title: "Back", onClick: toggleCancelScheduleModal };
|
|
549
|
+
|
|
550
|
+
const tabIcons = isAllowedToEditContentPage
|
|
551
|
+
? [
|
|
552
|
+
{ name: "edit", text: "Edit mode" },
|
|
553
|
+
{ name: "view", text: "Preview mode" },
|
|
554
|
+
]
|
|
555
|
+
: [{ name: "view", text: "Preview mode" }];
|
|
556
|
+
|
|
557
|
+
const tabsPreview = {
|
|
558
|
+
icons: tabIcons,
|
|
559
|
+
selectedTab,
|
|
560
|
+
action: (tab: string) => setSelectedTab(tab),
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
const contentLanguages: ILanguage[] = [];
|
|
564
|
+
pageLanguages.forEach((pageLang) => {
|
|
565
|
+
const contentLang = siteLanguages.find((lang) => lang.id === pageLang.languageId);
|
|
566
|
+
if (contentLang) {
|
|
567
|
+
contentLanguages.push(contentLang);
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
const getSelectedPageLanguage = (language: ILanguage) =>
|
|
572
|
+
pageLanguages.find((pageLang) => pageLang.languageId === language.id);
|
|
573
|
+
|
|
574
|
+
const handleLanguage = async (language: ILanguage) => {
|
|
575
|
+
const { locale, id } = language;
|
|
576
|
+
setLanguage({ locale, id });
|
|
577
|
+
|
|
578
|
+
const selectedPageLanguage = getSelectedPageLanguage(language);
|
|
579
|
+
|
|
580
|
+
await getDefaults();
|
|
581
|
+
|
|
582
|
+
if (selectedPageLanguage) {
|
|
583
|
+
createNewTranslation(false);
|
|
584
|
+
setCurrentPageID(selectedPageLanguage.pageId);
|
|
585
|
+
await getPage(selectedPageLanguage.pageId);
|
|
586
|
+
resetDirty();
|
|
587
|
+
} else {
|
|
588
|
+
isAllowedToEditContentPage && setSelectedTab("edit");
|
|
589
|
+
createNewTranslation(true);
|
|
590
|
+
await getPage(pageID);
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
const handleRestorePage = async () => {
|
|
595
|
+
const isRestored = await restorePage(pageID);
|
|
596
|
+
if (isRestored) {
|
|
597
|
+
isRestoreOpen && toggleRestoreModal();
|
|
598
|
+
await getPage(pageID);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
return isLoading ? (
|
|
603
|
+
<Loading />
|
|
604
|
+
) : (
|
|
605
|
+
<>
|
|
606
|
+
<RouteLeavingGuard when={isDirty} action={goToPages} text={modalText} />
|
|
607
|
+
<MainWrapper
|
|
608
|
+
title={pageName}
|
|
609
|
+
subtitle={structuredData}
|
|
610
|
+
backLink={backLinkRoute}
|
|
611
|
+
rightButton={rightButtonProps}
|
|
612
|
+
downArrowMenu={downArrowMenu}
|
|
613
|
+
fixedAppBar={true}
|
|
614
|
+
pageStatus={props.pageStatus}
|
|
615
|
+
pageStatusActions={pageStatusActions}
|
|
616
|
+
language={lang}
|
|
617
|
+
languageAction={handleLanguage}
|
|
618
|
+
availableLanguages={availableLanguages}
|
|
619
|
+
currentLanguages={contentLanguages}
|
|
620
|
+
currentPageID={pageID}
|
|
621
|
+
fullWidth={true}
|
|
622
|
+
errors={errors}
|
|
623
|
+
errorActions={{ goToError, goToPackage: handleClickNotification }}
|
|
624
|
+
isFromEditor={true}
|
|
625
|
+
tabs={tabsPreview}
|
|
626
|
+
isDirty={isDirty}
|
|
627
|
+
scheduledPublication={editorContent?.publicationScheduled}
|
|
628
|
+
>
|
|
629
|
+
{selectedTab === "edit" ? (
|
|
630
|
+
<>
|
|
631
|
+
{(!isTemplateActivated || hasDeactivatedModules) && !isGlobal && (
|
|
632
|
+
<S.NotificationWrapper>
|
|
633
|
+
<Notification
|
|
634
|
+
type="error"
|
|
635
|
+
text={packNotificationText}
|
|
636
|
+
btnText="Activate package"
|
|
637
|
+
onClick={handleClickNotification}
|
|
638
|
+
/>
|
|
639
|
+
</S.NotificationWrapper>
|
|
640
|
+
)}
|
|
641
|
+
{isDeleted && (
|
|
642
|
+
<S.NotificationWrapper>
|
|
643
|
+
<Notification
|
|
644
|
+
type="error"
|
|
645
|
+
text={deletedNotificationText}
|
|
646
|
+
btnText="Restore page"
|
|
647
|
+
onClick={toggleRestoreModal}
|
|
648
|
+
/>
|
|
649
|
+
</S.NotificationWrapper>
|
|
650
|
+
)}
|
|
651
|
+
{isLivePageChanged && (
|
|
652
|
+
<S.NotificationWrapper>
|
|
653
|
+
<Notification type="warning" text={modifiedNotificationText} />
|
|
654
|
+
</S.NotificationWrapper>
|
|
655
|
+
)}
|
|
656
|
+
{notification && (
|
|
657
|
+
<S.NotificationWrapper>
|
|
658
|
+
<Notification
|
|
659
|
+
type={notification.type}
|
|
660
|
+
text={notification.text}
|
|
661
|
+
btnText={notification.btnText}
|
|
662
|
+
onClick={notification.onClick}
|
|
663
|
+
resetError={() => setNotification(null)}
|
|
664
|
+
/>
|
|
665
|
+
</S.NotificationWrapper>
|
|
666
|
+
)}
|
|
667
|
+
<ErrorToast size="l" fixed />
|
|
668
|
+
<S.Content>
|
|
669
|
+
<Editor
|
|
670
|
+
isTemplateActivated={isTemplateActivated}
|
|
671
|
+
isGlobal={isGlobal}
|
|
672
|
+
isEditable={isEditable}
|
|
673
|
+
pageTitle={pageName}
|
|
674
|
+
isReadOnly={isReadOnly}
|
|
675
|
+
browserRef={browserRef}
|
|
676
|
+
setNotification={setNotification}
|
|
677
|
+
isEditLive={isEditLive}
|
|
678
|
+
isDisabled={isDeleted}
|
|
679
|
+
/>
|
|
680
|
+
</S.Content>
|
|
681
|
+
</>
|
|
682
|
+
) : (
|
|
683
|
+
<Preview />
|
|
684
|
+
)}
|
|
685
|
+
<Modal
|
|
686
|
+
isOpen={isOpen}
|
|
687
|
+
hide={toggleModal}
|
|
688
|
+
size="S"
|
|
689
|
+
title="This page is currently being edited"
|
|
690
|
+
mainAction={mainAction}
|
|
691
|
+
secondaryAction={secondaryAction}
|
|
692
|
+
>
|
|
693
|
+
{isOpen && (
|
|
694
|
+
<S.ModalContent>
|
|
695
|
+
<p>
|
|
696
|
+
<strong>{userEditing && userEditing.name}</strong> is currently working on this page. You can preview
|
|
697
|
+
the page but <strong>you cannot make changes to it</strong> until {userEditing && userEditing.name}{" "}
|
|
698
|
+
leaves the page.
|
|
699
|
+
</p>
|
|
700
|
+
</S.ModalContent>
|
|
701
|
+
)}
|
|
702
|
+
</Modal>
|
|
703
|
+
<Modal
|
|
704
|
+
isOpen={isUnpublishOpen}
|
|
705
|
+
hide={toggleUnpublishModal}
|
|
706
|
+
size="S"
|
|
707
|
+
title="Unpublish Modified Page"
|
|
708
|
+
mainAction={mainUnpublishAction}
|
|
709
|
+
>
|
|
710
|
+
{isUnpublishOpen && (
|
|
711
|
+
<S.ModalContent>
|
|
712
|
+
<p>
|
|
713
|
+
There are some saved changes that are not published on this page. To Unpublish this page,{" "}
|
|
714
|
+
<strong>you must publish these changes or discard them.</strong>
|
|
715
|
+
</p>
|
|
716
|
+
</S.ModalContent>
|
|
717
|
+
)}
|
|
718
|
+
</Modal>
|
|
719
|
+
<DeleteModal
|
|
720
|
+
isOpen={isDeleteOpen}
|
|
721
|
+
toggleModal={toggleDeleteModal}
|
|
722
|
+
mainModalAction={mainDeleteModalAction}
|
|
723
|
+
secondaryModalAction={secondaryDeleteModalAction}
|
|
724
|
+
{...{ isTranslated, deleteAllVersions, setDeleteAllVersions }}
|
|
725
|
+
/>
|
|
726
|
+
<ScheduleModal
|
|
727
|
+
isOpen={isScheduleOpen}
|
|
728
|
+
toggleModal={toggleScheduleModal}
|
|
729
|
+
mainModalAction={mainScheduleModalAction}
|
|
730
|
+
secondaryModalAction={secondaryScheduleModalAction}
|
|
731
|
+
scheduleDate={scheduleDate}
|
|
732
|
+
setScheduleDate={setScheduleDate}
|
|
733
|
+
/>
|
|
734
|
+
<CancelScheduleModal
|
|
735
|
+
isOpen={isCancelScheduleOpen}
|
|
736
|
+
toggleModal={toggleCancelScheduleModal}
|
|
737
|
+
mainModalAction={mainCancelScheduleModalAction}
|
|
738
|
+
secondaryModalAction={secondaryCancelScheduleModalAction}
|
|
739
|
+
/>
|
|
740
|
+
<RestoreModal
|
|
741
|
+
isOpen={isRestoreOpen}
|
|
742
|
+
toggleModal={toggleRestoreModal}
|
|
743
|
+
{...{
|
|
744
|
+
isChild: false,
|
|
745
|
+
hasIssues: schemaVersion !== editorContent.schemaVersionTimestamp,
|
|
746
|
+
restorePage: handleRestorePage,
|
|
747
|
+
}}
|
|
748
|
+
/>
|
|
749
|
+
</MainWrapper>
|
|
750
|
+
</>
|
|
751
|
+
);
|
|
752
752
|
};
|
|
753
753
|
|
|
754
754
|
const mapStateToProps = (state: IRootState): IPageEditorStateProps => ({
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
755
|
+
isSaving: state.app.isSaving,
|
|
756
|
+
pageID: state.pageEditor.currentPageID as number,
|
|
757
|
+
pageStatus: state.pageEditor.currentPageStatus as string,
|
|
758
|
+
pageName: state.pageEditor.currentPageName,
|
|
759
|
+
selectedComponent: state.pageEditor.selectedContent.component,
|
|
760
|
+
isLoading: state.app.isLoading,
|
|
761
|
+
lang: state.app.lang,
|
|
762
|
+
siteLanguages: state.sites.currentSiteLanguages,
|
|
763
|
+
pageLanguages: state.pageEditor.currentPageLanguages,
|
|
764
|
+
editorContent: state.pageEditor.editorContent,
|
|
765
|
+
schema: state.pageEditor.schema,
|
|
766
|
+
activatedTemplates: state.dataPacks.templates,
|
|
767
|
+
activatedModules: state.dataPacks.modules,
|
|
768
|
+
errors: state.pageEditor.errors,
|
|
769
|
+
userEditing: state.pageEditor.userEditing,
|
|
770
|
+
currentUserID: state.users.currentUser && state.users.currentUser.id,
|
|
771
|
+
isNewTranslation: state.pageEditor.isNewTranslation,
|
|
772
|
+
currentSiteErrorPages: state.sites.currentSiteErrorPages,
|
|
773
|
+
skipReviewOnPublish: state.app.globalSettings.skipReviewOnPublish,
|
|
774
|
+
schemaVersion: state.structuredData.schemaVersion,
|
|
775
775
|
});
|
|
776
776
|
|
|
777
777
|
interface IPageEditorStateProps {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
778
|
+
pageID: number;
|
|
779
|
+
pageStatus: string;
|
|
780
|
+
pageName: string;
|
|
781
|
+
selectedComponent: any;
|
|
782
|
+
isSaving: boolean;
|
|
783
|
+
isLoading: boolean;
|
|
784
|
+
lang: { locale: string; id: number | null };
|
|
785
|
+
siteLanguages: ILanguage[];
|
|
786
|
+
pageLanguages: IPageLanguage[];
|
|
787
|
+
editorContent: any;
|
|
788
|
+
activatedTemplates: any[];
|
|
789
|
+
activatedModules: string[];
|
|
790
|
+
errors: IErrorItem[];
|
|
791
|
+
userEditing: IUserEditing | null;
|
|
792
|
+
currentUserID: number | null;
|
|
793
|
+
isNewTranslation: boolean;
|
|
794
|
+
currentSiteErrorPages: number[];
|
|
795
|
+
skipReviewOnPublish?: boolean;
|
|
796
|
+
schema: any;
|
|
797
|
+
schemaVersion: string;
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
const mapDispatchToProps = {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
801
|
+
getPage: pageEditorActions.getPage,
|
|
802
|
+
savePage: pageEditorActions.savePage,
|
|
803
|
+
deletePage: pageEditorActions.deletePage,
|
|
804
|
+
validatePage: pageEditorActions.validatePage,
|
|
805
|
+
updatePageStatus: pageEditorActions.updatePageStatus,
|
|
806
|
+
setHistoryPush: appActions.setHistoryPush,
|
|
807
|
+
setLanguage: appActions.setLanguage,
|
|
808
|
+
createNewTranslation: pageEditorActions.createNewTranslation,
|
|
809
|
+
setTab: pageEditorActions.setTab,
|
|
810
|
+
getSiteDataPackbyTemplate: dataPacksActions.getSiteDataPackbyTemplate,
|
|
811
|
+
getSiteDataPackbyModule: dataPacksActions.getSiteDataPackbyModule,
|
|
812
|
+
getDefaults: navigationActions.getDefaults,
|
|
813
|
+
setSelectedContent: pageEditorActions.setSelectedContent,
|
|
814
|
+
sendPagePing: pageEditorActions.sendPagePing,
|
|
815
|
+
discardDraft: pageEditorActions.discardDraft,
|
|
816
|
+
deleteBulk: pageEditorActions.deleteBulk,
|
|
817
|
+
schedulePublication: pageEditorActions.schedulePublication,
|
|
818
|
+
setCurrentPageID: pageEditorActions.setCurrentPageID,
|
|
819
|
+
restorePage: pageEditorActions.restorePage,
|
|
820
820
|
};
|
|
821
821
|
|
|
822
822
|
interface IPageEditorDispatchProps {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
823
|
+
getPage(pageID?: number): Promise<void>;
|
|
824
|
+
savePage(createDraft: boolean, publishPage?: any, publishDraft?: boolean): Promise<boolean>;
|
|
825
|
+
deletePage(params?: ISavePageParams): Promise<boolean>;
|
|
826
|
+
validatePage(publish?: boolean): Promise<boolean>;
|
|
827
|
+
updatePageStatus(id: number[], status: string): Promise<boolean>;
|
|
828
|
+
setHistoryPush(path: string, isEditor: boolean): void;
|
|
829
|
+
setLanguage(lang: { locale: string; id: number | null }): void;
|
|
830
|
+
createNewTranslation(isNewTranslation: boolean): void;
|
|
831
|
+
setTab(tab: string): void;
|
|
832
|
+
getSiteDataPackbyTemplate(templateType: string): void;
|
|
833
|
+
getSiteDataPackbyModule(module: string): void;
|
|
834
|
+
getDefaults(): Promise<void>;
|
|
835
|
+
setSelectedContent(editorID: number): Promise<void>;
|
|
836
|
+
sendPagePing(pageID: number): Promise<boolean>;
|
|
837
|
+
discardDraft(): Promise<void>;
|
|
838
|
+
deleteBulk(ids: number[]): Promise<boolean>;
|
|
839
|
+
schedulePublication(date: string | null, isDraft: boolean): Promise<boolean>;
|
|
840
|
+
setCurrentPageID: (currentPageID: number | null) => void;
|
|
841
|
+
restorePage(id: number | number[]): Promise<boolean>;
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
type IProps = IPageEditorStateProps & IPageEditorDispatchProps & RouteComponentProps;
|