@griddo/ax 11.10.11-rc.0 → 11.10.11
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
package/config/webpack.config.js
CHANGED
|
@@ -42,8 +42,8 @@ let postcssConfigPlugins = [];
|
|
|
42
42
|
// If the prop `plugins` doesn't exists in the configuration object it will be
|
|
43
43
|
// an empty array to prevents error on desctructuring.
|
|
44
44
|
if (fs.existsSync(postcssConfigPath)) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
const postcssConfig = require(postcssConfigPath);
|
|
46
|
+
postcssConfigPlugins = postcssConfig.plugins || [];
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const appPackageJson = require(paths.appPackageJson);
|
|
@@ -73,643 +73,643 @@ const sassRegex = /\.(scss|sass)$/;
|
|
|
73
73
|
const sassModuleRegex = /\.module\.(scss|sass)$/;
|
|
74
74
|
|
|
75
75
|
const hasJsxRuntime = (() => {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
if (process.env.DISABLE_NEW_JSX_TRANSFORM === "true") {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
try {
|
|
81
|
+
require.resolve("react/jsx-runtime");
|
|
82
|
+
return true;
|
|
83
|
+
} catch (e) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
86
|
})();
|
|
87
87
|
|
|
88
88
|
// This is the production and development configuration.
|
|
89
89
|
// It is focused on developer experience, fast rebuilds, and a minimal bundle.
|
|
90
90
|
module.exports = function (webpackEnv) {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
const isEnvDevelopment = webpackEnv === "development";
|
|
92
|
+
const isEnvProduction = webpackEnv === "production";
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
// Variable used for enabling profiling in Production
|
|
95
|
+
// passed into alias object. Uses a flag if passed into the build command
|
|
96
|
+
const isEnvProductionProfile = isEnvProduction && process.argv.includes("--profile");
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
// We will provide `paths.publicUrlOrPath` to our app
|
|
99
|
+
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
|
|
100
|
+
// Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.
|
|
101
|
+
// Get environment variables to inject into our app.
|
|
102
|
+
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
const shouldUseReactRefresh = env.raw.FAST_REFRESH;
|
|
105
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
|
-
|
|
106
|
+
// common function to get style loaders
|
|
107
|
+
const getStyleLoaders = (cssOptions, preProcessor, preProcessorOptions = {}) => {
|
|
108
|
+
const loaders = [
|
|
109
|
+
isEnvDevelopment && require.resolve("style-loader"),
|
|
110
|
+
isEnvProduction && {
|
|
111
|
+
loader: MiniCssExtractPlugin.loader,
|
|
112
|
+
// css is located in `static/css`, use '../../' to locate index.html folder
|
|
113
|
+
// in production `paths.publicUrlOrPath` can be a relative path
|
|
114
|
+
options: paths.publicUrlOrPath.startsWith(".") ? { publicPath: "../../" } : {},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
loader: require.resolve("css-loader"),
|
|
118
|
+
options: cssOptions,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
// Options for PostCSS as we reference these options twice
|
|
122
|
+
// Adds vendor prefixing based on your specified browser support in
|
|
123
|
+
// package.json
|
|
124
|
+
loader: require.resolve("postcss-loader"),
|
|
125
|
+
options: {
|
|
126
|
+
// Necessary for external CSS imports to work
|
|
127
|
+
// https://github.com/facebook/create-react-app/issues/2677
|
|
128
|
+
ident: "postcss",
|
|
129
|
+
plugins: () => [
|
|
130
|
+
require("postcss-flexbugs-fixes"),
|
|
131
|
+
require("postcss-preset-env")({
|
|
132
|
+
autoprefixer: {
|
|
133
|
+
flexbox: "no-2009",
|
|
134
|
+
},
|
|
135
|
+
stage: 3,
|
|
136
|
+
}),
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
// PostCSS plugins from components.
|
|
139
|
+
...postcssConfigPlugins,
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
141
|
+
// Adds PostCSS Normalize as the reset css with default options,
|
|
142
|
+
// so that it honors browserslist config in package.json
|
|
143
|
+
// which in turn let's users customize the target behavior as per their needs.
|
|
144
|
+
postcssNormalize(),
|
|
145
|
+
],
|
|
146
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
].filter(Boolean);
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
151
|
+
if (preProcessor) {
|
|
152
|
+
loaders.push(
|
|
153
|
+
{
|
|
154
|
+
loader: require.resolve("resolve-url-loader"),
|
|
155
|
+
options: {
|
|
156
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
157
|
+
root: paths.appSrc,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
loader: require.resolve(preProcessor),
|
|
162
|
+
options: {
|
|
163
|
+
sourceMap: true,
|
|
164
|
+
...preProcessorOptions,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
return loaders;
|
|
170
|
+
};
|
|
171
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
|
-
|
|
172
|
+
return {
|
|
173
|
+
mode: isEnvProduction ? "production" : isEnvDevelopment && "development",
|
|
174
|
+
// Stop compilation early in production
|
|
175
|
+
bail: isEnvProduction,
|
|
176
|
+
devtool: isEnvProduction
|
|
177
|
+
? shouldUseSourceMap
|
|
178
|
+
? "source-map"
|
|
179
|
+
: false
|
|
180
|
+
: isEnvDevelopment && "cheap-module-source-map",
|
|
181
|
+
// These are the "entry points" to our application.
|
|
182
|
+
// This means they will be the "root" imports that are included in JS bundle.
|
|
183
|
+
entry:
|
|
184
|
+
isEnvDevelopment && !shouldUseReactRefresh
|
|
185
|
+
? [
|
|
186
|
+
// Include an alternative client for WebpackDevServer. A client's job is to
|
|
187
|
+
// connect to WebpackDevServer by a socket and get notified about changes.
|
|
188
|
+
// When you save a file, the client will either apply hot updates (in case
|
|
189
|
+
// of CSS changes), or refresh the page (in case of JS changes). When you
|
|
190
|
+
// make a syntax error, this client will display a syntax error overlay.
|
|
191
|
+
// Note: instead of the default WebpackDevServer client, we use a custom one
|
|
192
|
+
// to bring better experience for Create React App users. You can replace
|
|
193
|
+
// the line below with these two lines if you prefer the stock client:
|
|
194
|
+
//
|
|
195
|
+
// require.resolve('webpack-dev-server/client') + '?/',
|
|
196
|
+
// require.resolve('webpack/hot/dev-server'),
|
|
197
|
+
//
|
|
198
|
+
// When using the experimental react-refresh integration,
|
|
199
|
+
// the webpack plugin takes care of injecting the dev client for us.
|
|
200
|
+
webpackDevClientEntry,
|
|
201
|
+
// Finally, this is your app's code:
|
|
202
|
+
paths.appIndexJs,
|
|
203
|
+
// We include the app code last so that if there is a runtime error during
|
|
204
|
+
// initialization, it doesn't blow up the WebpackDevServer client, and
|
|
205
|
+
// changing JS code would still trigger a refresh.
|
|
206
|
+
]
|
|
207
|
+
: paths.appIndexJs,
|
|
208
|
+
output: {
|
|
209
|
+
// The build folder.
|
|
210
|
+
path: isEnvProduction ? paths.appBuild : undefined,
|
|
211
|
+
// Add /* filename */ comments to generated require()s in the output.
|
|
212
|
+
pathinfo: isEnvDevelopment,
|
|
213
|
+
// There will be one main bundle, and one file per asynchronous chunk.
|
|
214
|
+
// In development, it does not produce real files.
|
|
215
|
+
filename: isEnvProduction ? "static/js/[name].[contenthash:8].js" : isEnvDevelopment && "static/js/bundle.js",
|
|
216
|
+
// TODO: remove this when upgrading to webpack 5
|
|
217
|
+
futureEmitAssets: true,
|
|
218
|
+
// There are also additional JS chunk files if you use code splitting.
|
|
219
|
+
chunkFilename: isEnvProduction
|
|
220
|
+
? "static/js/[name].[contenthash:8].chunk.js"
|
|
221
|
+
: isEnvDevelopment && "static/js/[name].chunk.js",
|
|
222
|
+
// webpack uses `publicPath` to determine where the app is being served from.
|
|
223
|
+
// It requires a trailing slash, or the file assets will get an incorrect path.
|
|
224
|
+
// We inferred the "public path" (such as / or /my-project) from homepage.
|
|
225
|
+
publicPath: paths.publicUrlOrPath,
|
|
226
|
+
// Point sourcemap entries to original disk location (format as URL on Windows)
|
|
227
|
+
devtoolModuleFilenameTemplate: isEnvProduction
|
|
228
|
+
? (info) => path.relative(paths.appSrc, info.absoluteResourcePath).replace(/\\/g, "/")
|
|
229
|
+
: isEnvDevelopment && ((info) => path.resolve(info.absoluteResourcePath).replace(/\\/g, "/")),
|
|
230
|
+
// Prevents conflicts when multiple webpack runtimes (from different apps)
|
|
231
|
+
// are used on the same page.
|
|
232
|
+
jsonpFunction: `webpackJsonp${appPackageJson.name}`,
|
|
233
|
+
// this defaults to 'window', but by setting it to 'this' then
|
|
234
|
+
// module chunks which are built will work in web workers as well.
|
|
235
|
+
globalObject: "this",
|
|
236
|
+
},
|
|
237
|
+
optimization: {
|
|
238
|
+
minimize: isEnvProduction,
|
|
239
|
+
minimizer: [
|
|
240
|
+
// This is only used in production mode
|
|
241
|
+
new TerserPlugin({
|
|
242
|
+
terserOptions: {
|
|
243
|
+
parse: {
|
|
244
|
+
// We want terser to parse ecma 8 code. However, we don't want it
|
|
245
|
+
// to apply any minification steps that turns valid ecma 5 code
|
|
246
|
+
// into invalid ecma 5 code. This is why the 'compress' and 'output'
|
|
247
|
+
// sections only apply transformations that are ecma 5 safe
|
|
248
|
+
// https://github.com/facebook/create-react-app/pull/4234
|
|
249
|
+
ecma: 8,
|
|
250
|
+
},
|
|
251
|
+
compress: {
|
|
252
|
+
ecma: 5,
|
|
253
|
+
warnings: false,
|
|
254
|
+
// Disabled because of an issue with Uglify breaking seemingly valid code:
|
|
255
|
+
// https://github.com/facebook/create-react-app/issues/2376
|
|
256
|
+
// Pending further investigation:
|
|
257
|
+
// https://github.com/mishoo/UglifyJS2/issues/2011
|
|
258
|
+
comparisons: false,
|
|
259
|
+
// Disabled because of an issue with Terser breaking valid code:
|
|
260
|
+
// https://github.com/facebook/create-react-app/issues/5250
|
|
261
|
+
// Pending further investigation:
|
|
262
|
+
// https://github.com/terser-js/terser/issues/120
|
|
263
|
+
inline: 2,
|
|
264
|
+
},
|
|
265
|
+
mangle: {
|
|
266
|
+
safari10: true,
|
|
267
|
+
},
|
|
268
|
+
// Added for profiling in devtools
|
|
269
|
+
keep_classnames: isEnvProductionProfile,
|
|
270
|
+
keep_fnames: isEnvProductionProfile,
|
|
271
|
+
output: {
|
|
272
|
+
ecma: 5,
|
|
273
|
+
comments: false,
|
|
274
|
+
// Turned on because emoji and regex is not minified properly using default
|
|
275
|
+
// https://github.com/facebook/create-react-app/issues/2488
|
|
276
|
+
ascii_only: true,
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
sourceMap: shouldUseSourceMap,
|
|
280
|
+
}),
|
|
281
|
+
// This is only used in production mode
|
|
282
|
+
new OptimizeCSSAssetsPlugin({
|
|
283
|
+
cssProcessorOptions: {
|
|
284
|
+
parser: safePostCssParser,
|
|
285
|
+
map: shouldUseSourceMap
|
|
286
|
+
? {
|
|
287
|
+
// `inline: false` forces the sourcemap to be output into a
|
|
288
|
+
// separate file
|
|
289
|
+
inline: false,
|
|
290
|
+
// `annotation: true` appends the sourceMappingURL to the end of
|
|
291
|
+
// the css file, helping the browser find the sourcemap
|
|
292
|
+
annotation: true,
|
|
293
|
+
}
|
|
294
|
+
: false,
|
|
295
|
+
},
|
|
296
|
+
cssProcessorPluginOptions: {
|
|
297
|
+
preset: ["default", { minifyFontValues: { removeQuotes: false } }],
|
|
298
|
+
},
|
|
299
|
+
}),
|
|
300
|
+
],
|
|
301
|
+
// Automatically split vendor and commons
|
|
302
|
+
// https://twitter.com/wSokra/status/969633336732905474
|
|
303
|
+
// https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366
|
|
304
|
+
splitChunks: {
|
|
305
|
+
chunks: "all",
|
|
306
|
+
name: isEnvDevelopment,
|
|
307
|
+
},
|
|
308
|
+
// Keep the runtime chunk separated to enable long term caching
|
|
309
|
+
// https://twitter.com/wSokra/status/969679223278505985
|
|
310
|
+
// https://github.com/facebook/create-react-app/issues/5358
|
|
311
|
+
runtimeChunk: {
|
|
312
|
+
name: (entrypoint) => `runtime-${entrypoint.name}`,
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
resolve: {
|
|
316
|
+
// This allows you to set a fallback for where webpack should look for modules.
|
|
317
|
+
// We placed these paths second because we want `node_modules` to "win"
|
|
318
|
+
// if there are any conflicts. This matches Node resolution mechanism.
|
|
319
|
+
// https://github.com/facebook/create-react-app/issues/253
|
|
320
|
+
modules: ["node_modules", paths.appNodeModules].concat(modules.additionalModulePaths || []),
|
|
321
|
+
// These are the reasonable defaults supported by the Node ecosystem.
|
|
322
|
+
// We also include JSX as a common component filename extension to support
|
|
323
|
+
// some tools, although we do not recommend using it, see:
|
|
324
|
+
// https://github.com/facebook/create-react-app/issues/290
|
|
325
|
+
// `web` extension prefixes have been added for better support
|
|
326
|
+
// for React Native Web.
|
|
327
|
+
extensions: paths.moduleFileExtensions
|
|
328
|
+
.map((ext) => `.${ext}`)
|
|
329
|
+
.filter((ext) => useTypeScript || !ext.includes("ts")),
|
|
330
|
+
alias: {
|
|
331
|
+
// Support React Native Web
|
|
332
|
+
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
|
|
333
|
+
"react-native": "react-native-web",
|
|
334
|
+
// Allows for better profiling with ReactDevTools
|
|
335
|
+
...(isEnvProductionProfile && {
|
|
336
|
+
"react-dom$": "react-dom/profiling",
|
|
337
|
+
"scheduler/tracing": "scheduler/tracing-profiling",
|
|
338
|
+
}),
|
|
339
|
+
...(modules.webpackAliases || {}),
|
|
340
|
+
...projectAliases,
|
|
341
|
+
},
|
|
342
|
+
plugins: [
|
|
343
|
+
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
|
|
344
|
+
// guards against forgotten dependencies and such.
|
|
345
|
+
PnpWebpackPlugin,
|
|
346
|
+
],
|
|
347
|
+
},
|
|
348
|
+
resolveLoader: {
|
|
349
|
+
plugins: [
|
|
350
|
+
// Also related to Plug'n'Play, but this time it tells webpack to load its loaders
|
|
351
|
+
// from the current package.
|
|
352
|
+
PnpWebpackPlugin.moduleLoader(module),
|
|
353
|
+
],
|
|
354
|
+
},
|
|
355
|
+
module: {
|
|
356
|
+
strictExportPresence: true,
|
|
357
|
+
rules: [
|
|
358
|
+
// Disable require.ensure as it's not a standard language feature.
|
|
359
|
+
{ parser: { requireEnsure: false } },
|
|
360
|
+
{
|
|
361
|
+
// "oneOf" will traverse all following loaders until one will
|
|
362
|
+
// match the requirements. When no loader matches it will fall
|
|
363
|
+
// back to the "file" loader at the end of the loader list.
|
|
364
|
+
oneOf: [
|
|
365
|
+
// TODO: Merge this config once `image/avif` is in the mime-db
|
|
366
|
+
// https://github.com/jshttp/mime-db
|
|
367
|
+
{
|
|
368
|
+
test: [/\.avif$/],
|
|
369
|
+
loader: require.resolve("url-loader"),
|
|
370
|
+
options: {
|
|
371
|
+
limit: imageInlineSizeLimit,
|
|
372
|
+
mimetype: "image/avif",
|
|
373
|
+
name: "static/media/[name].[hash:8].[ext]",
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
// "url" loader works like "file" loader except that it embeds assets
|
|
377
|
+
// smaller than specified limit in bytes as data URLs to avoid requests.
|
|
378
|
+
// A missing `test` is equivalent to a match.
|
|
379
|
+
{
|
|
380
|
+
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
|
|
381
|
+
loader: require.resolve("url-loader"),
|
|
382
|
+
options: {
|
|
383
|
+
limit: imageInlineSizeLimit,
|
|
384
|
+
name: "static/media/[name].[hash:8].[ext]",
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
// Process application JS with Babel.
|
|
388
|
+
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
|
|
389
|
+
{
|
|
390
|
+
test: /\.(js|mjs|jsx|ts|tsx)$/,
|
|
391
|
+
include: [paths.appSrc, paths.componentsPath],
|
|
392
|
+
exclude: [/node_modules\/(?!@griddo).*/],
|
|
393
|
+
loader: require.resolve("babel-loader"),
|
|
394
|
+
options: {
|
|
395
|
+
customize: require.resolve("babel-preset-react-app/webpack-overrides"),
|
|
396
|
+
presets: [
|
|
397
|
+
[
|
|
398
|
+
require.resolve("babel-preset-react-app"),
|
|
399
|
+
{
|
|
400
|
+
runtime: hasJsxRuntime ? "automatic" : "classic",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
],
|
|
404
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
|
-
|
|
405
|
+
plugins: [
|
|
406
|
+
[
|
|
407
|
+
require.resolve("babel-plugin-named-asset-import"),
|
|
408
|
+
{
|
|
409
|
+
loaderMap: {
|
|
410
|
+
svg: {
|
|
411
|
+
ReactComponent: "@svgr/webpack?-svgo,+titleProp,+ref![path]",
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
require.resolve("babel-plugin-styled-components"),
|
|
417
|
+
isEnvDevelopment && shouldUseReactRefresh && require.resolve("react-refresh/babel"),
|
|
418
|
+
].filter(Boolean),
|
|
419
|
+
// This is a feature of `babel-loader` for webpack (not Babel itself).
|
|
420
|
+
// It enables caching results in ./node_modules/.cache/babel-loader/
|
|
421
|
+
// directory for faster rebuilds.
|
|
422
|
+
cacheDirectory: true,
|
|
423
|
+
// See #6846 for context on why cacheCompression is disabled
|
|
424
|
+
cacheCompression: false,
|
|
425
|
+
compact: isEnvProduction,
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
// Process any JS outside of the app with Babel.
|
|
429
|
+
// Unlike the application JS, we only compile the standard ES features.
|
|
430
|
+
{
|
|
431
|
+
test: /\.(js|mjs)$/,
|
|
432
|
+
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
433
|
+
loader: require.resolve("babel-loader"),
|
|
434
|
+
options: {
|
|
435
|
+
babelrc: true,
|
|
436
|
+
configFile: false,
|
|
437
|
+
compact: false,
|
|
438
|
+
presets: [[require.resolve("babel-preset-react-app/dependencies"), { helpers: true }]],
|
|
439
|
+
cacheDirectory: true,
|
|
440
|
+
// See #6846 for context on why cacheCompression is disabled
|
|
441
|
+
cacheCompression: false,
|
|
442
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
|
-
|
|
443
|
+
// Babel sourcemaps are needed for debugging into node_modules
|
|
444
|
+
// code. Without the options below, debuggers like VSCode
|
|
445
|
+
// show incorrect code and set breakpoints on the wrong lines.
|
|
446
|
+
sourceMaps: shouldUseSourceMap,
|
|
447
|
+
inputSourceMap: shouldUseSourceMap,
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
// "postcss" loader applies autoprefixer to our CSS.
|
|
451
|
+
// "css" loader resolves paths in CSS and adds assets as dependencies.
|
|
452
|
+
// "style" loader turns CSS into JS modules that inject <style> tags.
|
|
453
|
+
// In production, we use MiniCSSExtractPlugin to extract that CSS
|
|
454
|
+
// to a file, but in development "style" loader enables hot editing
|
|
455
|
+
// of CSS.
|
|
456
|
+
// By default we support CSS Modules with the extension .module.css
|
|
457
|
+
{
|
|
458
|
+
test: cssRegex,
|
|
459
|
+
exclude: cssModuleRegex,
|
|
460
|
+
use: getStyleLoaders({
|
|
461
|
+
importLoaders: 1,
|
|
462
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
463
|
+
}),
|
|
464
|
+
// Don't consider CSS imports dead code even if the
|
|
465
|
+
// containing package claims to have no side effects.
|
|
466
|
+
// Remove this when webpack adds a warning or an error for this.
|
|
467
|
+
// See https://github.com/webpack/webpack/issues/6571
|
|
468
|
+
sideEffects: true,
|
|
469
|
+
},
|
|
470
|
+
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
|
|
471
|
+
// using the extension .module.css
|
|
472
|
+
{
|
|
473
|
+
test: cssModuleRegex,
|
|
474
|
+
use: getStyleLoaders({
|
|
475
|
+
importLoaders: 1,
|
|
476
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
477
|
+
modules: {
|
|
478
|
+
getLocalIdent: getCSSModuleLocalIdent,
|
|
479
|
+
},
|
|
480
|
+
}),
|
|
481
|
+
},
|
|
482
|
+
// Opt-in support for SASS (using .scss or .sass extensions).
|
|
483
|
+
// By default we support SASS Modules with the
|
|
484
|
+
// extensions .module.scss or .module.sass
|
|
485
|
+
{
|
|
486
|
+
test: sassRegex,
|
|
487
|
+
exclude: sassModuleRegex,
|
|
488
|
+
use: getStyleLoaders(
|
|
489
|
+
{
|
|
490
|
+
importLoaders: 3,
|
|
491
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
492
|
+
},
|
|
493
|
+
"sass-loader",
|
|
494
|
+
),
|
|
495
|
+
// Don't consider CSS imports dead code even if the
|
|
496
|
+
// containing package claims to have no side effects.
|
|
497
|
+
// Remove this when webpack adds a warning or an error for this.
|
|
498
|
+
// See https://github.com/webpack/webpack/issues/6571
|
|
499
|
+
sideEffects: true,
|
|
500
|
+
},
|
|
501
|
+
// Adds support for CSS Modules, but using SASS
|
|
502
|
+
// using the extension .module.scss or .module.sass
|
|
503
|
+
{
|
|
504
|
+
test: sassModuleRegex,
|
|
505
|
+
use: getStyleLoaders(
|
|
506
|
+
{
|
|
507
|
+
importLoaders: 3,
|
|
508
|
+
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
509
|
+
modules: {
|
|
510
|
+
getLocalIdent: getCSSModuleLocalIdent,
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
"sass-loader",
|
|
514
|
+
),
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
test: /\.(woff|woff2)$/,
|
|
518
|
+
use: ["url-loader"],
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
test: /\.svg$/,
|
|
522
|
+
use: ["@svgr/webpack"],
|
|
523
|
+
},
|
|
524
|
+
// "file" loader makes sure those assets get served by WebpackDevServer.
|
|
525
|
+
// When you `import` an asset, you get its (virtual) filename.
|
|
526
|
+
// In production, they would get copied to the `build` folder.
|
|
527
|
+
// This loader doesn't use a "test" so it will catch all modules
|
|
528
|
+
// that fall through the other loaders.
|
|
529
|
+
{
|
|
530
|
+
loader: require.resolve("file-loader"),
|
|
531
|
+
// Exclude `js` files to keep "css" loader working as it injects
|
|
532
|
+
// its runtime that would otherwise be processed through "file" loader.
|
|
533
|
+
// Also exclude `html` and `json` extensions so they get processed
|
|
534
|
+
// by webpacks internal loaders.
|
|
535
|
+
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
|
|
536
|
+
options: {
|
|
537
|
+
name: "static/media/[name].[hash:8].[ext]",
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
// ** STOP ** Are you adding a new loader?
|
|
541
|
+
// Make sure to add the new loader(s) before the "file" loader.
|
|
542
|
+
],
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
test: /\.mjs$/,
|
|
546
|
+
include: /node_modules/,
|
|
547
|
+
type: "javascript/auto",
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
},
|
|
551
|
+
plugins: [
|
|
552
|
+
// Generates an `index.html` file with the <script> injected.
|
|
553
|
+
new HtmlWebpackPlugin(
|
|
554
|
+
Object.assign(
|
|
555
|
+
{},
|
|
556
|
+
{
|
|
557
|
+
inject: true,
|
|
558
|
+
template: paths.appHtml,
|
|
559
|
+
},
|
|
560
|
+
isEnvProduction
|
|
561
|
+
? {
|
|
562
|
+
minify: {
|
|
563
|
+
removeComments: true,
|
|
564
|
+
collapseWhitespace: true,
|
|
565
|
+
removeRedundantAttributes: true,
|
|
566
|
+
useShortDoctype: true,
|
|
567
|
+
removeEmptyAttributes: true,
|
|
568
|
+
removeStyleLinkTypeAttributes: true,
|
|
569
|
+
keepClosingSlash: true,
|
|
570
|
+
minifyJS: true,
|
|
571
|
+
minifyCSS: true,
|
|
572
|
+
minifyURLs: true,
|
|
573
|
+
},
|
|
574
|
+
}
|
|
575
|
+
: undefined,
|
|
576
|
+
),
|
|
577
|
+
),
|
|
578
|
+
// Inlines the webpack runtime script. This script is too small to warrant
|
|
579
|
+
// a network request.
|
|
580
|
+
// https://github.com/facebook/create-react-app/issues/5358
|
|
581
|
+
isEnvProduction && shouldInlineRuntimeChunk && new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/]),
|
|
582
|
+
// Makes some environment variables available in index.html.
|
|
583
|
+
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
|
|
584
|
+
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
|
|
585
|
+
// It will be an empty string unless you specify "homepage"
|
|
586
|
+
// in `package.json`, in which case it will be the pathname of that URL.
|
|
587
|
+
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
|
|
588
|
+
// This gives some necessary context to module not found errors, such as
|
|
589
|
+
// the requesting resource.
|
|
590
|
+
new ModuleNotFoundPlugin(paths.appPath),
|
|
591
|
+
// Makes some environment variables available to the JS code, for example:
|
|
592
|
+
// if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`.
|
|
593
|
+
// It is absolutely essential that NODE_ENV is set to production
|
|
594
|
+
// during a production build.
|
|
595
|
+
// Otherwise React will be compiled in the very slow development mode.
|
|
596
|
+
new webpack.DefinePlugin(env.stringified),
|
|
597
|
+
// This is necessary to emit hot updates (CSS and Fast Refresh):
|
|
598
|
+
isEnvDevelopment && new webpack.HotModuleReplacementPlugin(),
|
|
599
|
+
// Experimental hot reloading for React .
|
|
600
|
+
// https://github.com/facebook/react/tree/master/packages/react-refresh
|
|
601
|
+
isEnvDevelopment &&
|
|
602
|
+
shouldUseReactRefresh &&
|
|
603
|
+
new ReactRefreshWebpackPlugin({
|
|
604
|
+
overlay: {
|
|
605
|
+
entry: webpackDevClientEntry,
|
|
606
|
+
// The expected exports are slightly different from what the overlay exports,
|
|
607
|
+
// so an interop is included here to enable feedback on module-level errors.
|
|
608
|
+
module: reactRefreshOverlayEntry,
|
|
609
|
+
// Since we ship a custom dev client and overlay integration,
|
|
610
|
+
// the bundled socket handling logic can be eliminated.
|
|
611
|
+
sockIntegration: false,
|
|
612
|
+
},
|
|
613
|
+
}),
|
|
614
|
+
// Watcher doesn't work well if you mistype casing in a path so we use
|
|
615
|
+
// a plugin that prints an error when you attempt to do this.
|
|
616
|
+
// See https://github.com/facebook/create-react-app/issues/240
|
|
617
|
+
isEnvDevelopment && new CaseSensitivePathsPlugin(),
|
|
618
|
+
// If you require a missing module and then `npm install` it, you still have
|
|
619
|
+
// to restart the development server for webpack to discover it. This plugin
|
|
620
|
+
// makes the discovery automatic so you don't have to restart.
|
|
621
|
+
// See https://github.com/facebook/create-react-app/issues/186
|
|
622
|
+
isEnvDevelopment && new WatchMissingNodeModulesPlugin(paths.appNodeModules),
|
|
623
|
+
isEnvProduction &&
|
|
624
|
+
new MiniCssExtractPlugin({
|
|
625
|
+
// Options similar to the same options in webpackOptions.output
|
|
626
|
+
// both options are optional
|
|
627
|
+
filename: "static/css/[name].[contenthash:8].css",
|
|
628
|
+
chunkFilename: "static/css/[name].[contenthash:8].chunk.css",
|
|
629
|
+
}),
|
|
630
|
+
// Generate an asset manifest file with the following content:
|
|
631
|
+
// - "files" key: Mapping of all asset filenames to their corresponding
|
|
632
|
+
// output file so that tools can pick it up without having to parse
|
|
633
|
+
// `index.html`
|
|
634
|
+
// - "entrypoints" key: Array of files which are included in `index.html`,
|
|
635
|
+
// can be used to reconstruct the HTML if necessary
|
|
636
|
+
new ManifestPlugin({
|
|
637
|
+
fileName: "asset-manifest.json",
|
|
638
|
+
publicPath: paths.publicUrlOrPath,
|
|
639
|
+
generate: (seed, files, entrypoints) => {
|
|
640
|
+
const manifestFiles = files.reduce((manifest, file) => {
|
|
641
|
+
manifest[file.name] = file.path;
|
|
642
|
+
return manifest;
|
|
643
|
+
}, seed);
|
|
644
|
+
const entrypointFiles = entrypoints.main.filter((fileName) => !fileName.endsWith(".map"));
|
|
645
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
|
-
|
|
646
|
+
return {
|
|
647
|
+
files: manifestFiles,
|
|
648
|
+
entrypoints: entrypointFiles,
|
|
649
|
+
};
|
|
650
|
+
},
|
|
651
|
+
}),
|
|
652
|
+
// Moment.js is an extremely popular library that bundles large locale files
|
|
653
|
+
// by default due to how webpack interprets its code. This is a practical
|
|
654
|
+
// solution that requires the user to opt into importing specific locales.
|
|
655
|
+
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
|
|
656
|
+
// You can remove this if you don't use Moment.js:
|
|
657
|
+
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
|
658
|
+
// Generate a service worker script that will precache, and keep up to date,
|
|
659
|
+
// the HTML & assets that are part of the webpack build.
|
|
660
|
+
isEnvProduction &&
|
|
661
|
+
fs.existsSync(swSrc) &&
|
|
662
|
+
new WorkboxWebpackPlugin.InjectManifest({
|
|
663
|
+
swSrc,
|
|
664
|
+
dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./,
|
|
665
|
+
exclude: [/\.map$/, /asset-manifest\.json$/, /LICENSE/],
|
|
666
|
+
// Bump up the default maximum size (2mb) that's precached,
|
|
667
|
+
// to make lazy-loading failure scenarios less likely.
|
|
668
|
+
// See https://github.com/cra-template/pwa/issues/13#issuecomment-722667270
|
|
669
|
+
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
|
|
670
|
+
}),
|
|
671
|
+
// TypeScript type checking
|
|
672
|
+
useTypeScript &&
|
|
673
|
+
new ForkTsCheckerWebpackPlugin({
|
|
674
|
+
typescript: resolve.sync("typescript", {
|
|
675
|
+
basedir: paths.appNodeModules,
|
|
676
|
+
}),
|
|
677
|
+
async: isEnvDevelopment,
|
|
678
|
+
checkSyntacticErrors: true,
|
|
679
|
+
resolveModuleNameModule: process.versions.pnp ? `${__dirname}/pnpTs.js` : undefined,
|
|
680
|
+
resolveTypeReferenceDirectiveModule: process.versions.pnp ? `${__dirname}/pnpTs.js` : undefined,
|
|
681
|
+
tsconfig: paths.appTsConfig,
|
|
682
|
+
reportFiles: [
|
|
683
|
+
// This one is specifically to match during CI tests,
|
|
684
|
+
// as micromatch doesn't match
|
|
685
|
+
// '../cra-template-typescript/template/src/App.tsx'
|
|
686
|
+
// otherwise.
|
|
687
|
+
"../**/src/**/*.{ts,tsx}",
|
|
688
|
+
"**/src/**/*.{ts,tsx}",
|
|
689
|
+
"!**/src/**/__tests__/**",
|
|
690
|
+
"!**/src/**/?(*.)(spec|test).*",
|
|
691
|
+
"!**/src/setupProxy.*",
|
|
692
|
+
"!**/src/setupTests.*",
|
|
693
|
+
],
|
|
694
|
+
silent: true,
|
|
695
|
+
// The formatter is invoked directly in WebpackDevServerUtils during development
|
|
696
|
+
formatter: isEnvProduction ? typescriptFormatter : undefined,
|
|
697
|
+
}),
|
|
698
|
+
].filter(Boolean),
|
|
699
|
+
// Some libraries import Node modules but don't use them in the browser.
|
|
700
|
+
// Tell webpack to provide empty mocks for them so importing them works.
|
|
701
|
+
node: {
|
|
702
|
+
module: "empty",
|
|
703
|
+
dgram: "empty",
|
|
704
|
+
dns: "mock",
|
|
705
|
+
fs: "empty",
|
|
706
|
+
http2: "empty",
|
|
707
|
+
net: "empty",
|
|
708
|
+
tls: "empty",
|
|
709
|
+
child_process: "empty",
|
|
710
|
+
},
|
|
711
|
+
// Turn off performance processing because we utilize
|
|
712
|
+
// our own hints via the FileSizeReporter
|
|
713
|
+
performance: false,
|
|
714
|
+
};
|
|
715
715
|
};
|