@akemona-org/strapi-plugin-content-manager 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +27 -0
  3. package/admin/src/InjectedComponents/ContentTypeBuilder/ConfigureViewButton/index.js +78 -0
  4. package/admin/src/assets/images/background_input.svg +1 -0
  5. package/admin/src/assets/images/icon-cross-blue.svg +1 -0
  6. package/admin/src/assets/images/icon_remove.svg +19 -0
  7. package/admin/src/assets/images/logo.svg +1 -0
  8. package/admin/src/components/AddDropdown/components.js +113 -0
  9. package/admin/src/components/AddDropdown/index.js +76 -0
  10. package/admin/src/components/Block/components.js +28 -0
  11. package/admin/src/components/Block/index.js +45 -0
  12. package/admin/src/components/ComponentInitializer/P.js +9 -0
  13. package/admin/src/components/ComponentInitializer/index.js +43 -0
  14. package/admin/src/components/Container/index.js +7 -0
  15. package/admin/src/components/CustomInputCheckbox/components.js +77 -0
  16. package/admin/src/components/CustomInputCheckbox/index.js +53 -0
  17. package/admin/src/components/CustomTable/ActionCollapse/Delete.js +14 -0
  18. package/admin/src/components/CustomTable/ActionCollapse/DeleteAll.js +18 -0
  19. package/admin/src/components/CustomTable/ActionCollapse/Wrapper.js +20 -0
  20. package/admin/src/components/CustomTable/ActionCollapse/index.js +38 -0
  21. package/admin/src/components/CustomTable/Headers/Header.js +59 -0
  22. package/admin/src/components/CustomTable/Headers/Thead.js +35 -0
  23. package/admin/src/components/CustomTable/Headers/index.js +46 -0
  24. package/admin/src/components/CustomTable/Row/ActionContainer.js +19 -0
  25. package/admin/src/components/CustomTable/Row/Cell.js +55 -0
  26. package/admin/src/components/CustomTable/Row/index.js +112 -0
  27. package/admin/src/components/CustomTable/index.js +162 -0
  28. package/admin/src/components/CustomTable/styledComponents.js +85 -0
  29. package/admin/src/components/DragLayer/index.js +102 -0
  30. package/admin/src/components/DraggedField/Close/index.js +10 -0
  31. package/admin/src/components/DraggedField/GrabWrapper.js +38 -0
  32. package/admin/src/components/DraggedField/Link.js +17 -0
  33. package/admin/src/components/DraggedField/NameWrapper.js +29 -0
  34. package/admin/src/components/DraggedField/RemoveWrapper.js +32 -0
  35. package/admin/src/components/DraggedField/SubWrapper.js +36 -0
  36. package/admin/src/components/DraggedField/Wrapper.js +134 -0
  37. package/admin/src/components/DraggedField/index.js +196 -0
  38. package/admin/src/components/DraggedField/utils/getColor.js +12 -0
  39. package/admin/src/components/DraggedField/utils/getHeight.js +3 -0
  40. package/admin/src/components/DraggedFieldWithPreview/Carret.js +24 -0
  41. package/admin/src/components/DraggedFieldWithPreview/DynamicComponent.js +70 -0
  42. package/admin/src/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +10 -0
  43. package/admin/src/components/DraggedFieldWithPreview/Tooltip.js +19 -0
  44. package/admin/src/components/DraggedFieldWithPreview/Wrapper.js +24 -0
  45. package/admin/src/components/DraggedFieldWithPreview/index.js +194 -0
  46. package/admin/src/components/DynamicComponentCard/Wrapper.js +63 -0
  47. package/admin/src/components/DynamicComponentCard/index.js +49 -0
  48. package/admin/src/components/DynamicZone/BaselineAlignement.js +11 -0
  49. package/admin/src/components/DynamicZone/Button.js +31 -0
  50. package/admin/src/components/DynamicZone/Component/RoundCTA.js +45 -0
  51. package/admin/src/components/DynamicZone/Component/index.js +79 -0
  52. package/admin/src/components/DynamicZone/ComponentWrapper.js +44 -0
  53. package/admin/src/components/DynamicZone/DynamicZoneWrapper.js +12 -0
  54. package/admin/src/components/DynamicZone/Label.js +42 -0
  55. package/admin/src/components/DynamicZone/Picker/Category/Banner/Wrapper.js +78 -0
  56. package/admin/src/components/DynamicZone/Picker/Category/Banner/index.js +33 -0
  57. package/admin/src/components/DynamicZone/Picker/Category/index.js +53 -0
  58. package/admin/src/components/DynamicZone/Picker/Wrapper.js +32 -0
  59. package/admin/src/components/DynamicZone/Picker/index.js +88 -0
  60. package/admin/src/components/DynamicZone/Wrapper.js +34 -0
  61. package/admin/src/components/DynamicZone/index.js +238 -0
  62. package/admin/src/components/DynamicZone/utils/connect.js +12 -0
  63. package/admin/src/components/DynamicZone/utils/select.js +49 -0
  64. package/admin/src/components/FieldComponent/ComponentIcon.js +44 -0
  65. package/admin/src/components/FieldComponent/EmptyComponent.js +19 -0
  66. package/admin/src/components/FieldComponent/Label.js +10 -0
  67. package/admin/src/components/FieldComponent/ResetComponent.js +41 -0
  68. package/admin/src/components/FieldComponent/Wrapper.js +18 -0
  69. package/admin/src/components/FieldComponent/index.js +171 -0
  70. package/admin/src/components/FieldComponent/utils/connect.js +12 -0
  71. package/admin/src/components/FieldComponent/utils/select.js +123 -0
  72. package/admin/src/components/FieldsReorder/Item.js +249 -0
  73. package/admin/src/components/FieldsReorder/components.js +8 -0
  74. package/admin/src/components/FieldsReorder/index.js +102 -0
  75. package/admin/src/components/FilterOptionsCTA/index.js +14 -0
  76. package/admin/src/components/FilterPicker/components.js +56 -0
  77. package/admin/src/components/FilterPicker/index.js +258 -0
  78. package/admin/src/components/FilterPicker/init.js +25 -0
  79. package/admin/src/components/FilterPicker/reducer.js +58 -0
  80. package/admin/src/components/FilterPickerOption/Input.js +58 -0
  81. package/admin/src/components/FilterPickerOption/Option.js +18 -0
  82. package/admin/src/components/FilterPickerOption/components.js +60 -0
  83. package/admin/src/components/FilterPickerOption/index.js +101 -0
  84. package/admin/src/components/FormTitle/index.js +26 -0
  85. package/admin/src/components/FormWrapper/index.js +20 -0
  86. package/admin/src/components/InputJSON/components.js +30 -0
  87. package/admin/src/components/InputJSON/index.js +184 -0
  88. package/admin/src/components/InputJSON/jsonlint.js +424 -0
  89. package/admin/src/components/InputJSONWithErrors/Wrapper.js +32 -0
  90. package/admin/src/components/InputJSONWithErrors/index.js +168 -0
  91. package/admin/src/components/InputUID/InputUID.js +26 -0
  92. package/admin/src/components/InputUID/Options/Option.js +22 -0
  93. package/admin/src/components/InputUID/Options/OptionsTitle.js +12 -0
  94. package/admin/src/components/InputUID/Options/RightOptionLabel.js +10 -0
  95. package/admin/src/components/InputUID/Options/index.js +34 -0
  96. package/admin/src/components/InputUID/Options/wrapper.js +13 -0
  97. package/admin/src/components/InputUID/RegenerateButton.js +18 -0
  98. package/admin/src/components/InputUID/RightContent.js +14 -0
  99. package/admin/src/components/InputUID/RightContentLabel.js +10 -0
  100. package/admin/src/components/InputUID/RightLabel.js +42 -0
  101. package/admin/src/components/InputUID/SubLabel.js +9 -0
  102. package/admin/src/components/InputUID/Wrapper.js +8 -0
  103. package/admin/src/components/InputUID/index.js +325 -0
  104. package/admin/src/components/InputUID/regex.js +3 -0
  105. package/admin/src/components/Inputs/index.js +283 -0
  106. package/admin/src/components/Inputs/utils/VALIDATIONS_TO_OMIT.js +12 -0
  107. package/admin/src/components/Inputs/utils/connect.js +12 -0
  108. package/admin/src/components/Inputs/utils/generateOptions.js +19 -0
  109. package/admin/src/components/Inputs/utils/getInputType.js +44 -0
  110. package/admin/src/components/Inputs/utils/getStep.js +15 -0
  111. package/admin/src/components/Inputs/utils/index.js +6 -0
  112. package/admin/src/components/Inputs/utils/select.js +38 -0
  113. package/admin/src/components/LayoutTitle/index.js +19 -0
  114. package/admin/src/components/MediaPreviewList/StyledMediaPreviewList.js +171 -0
  115. package/admin/src/components/MediaPreviewList/index.js +110 -0
  116. package/admin/src/components/NonRepeatableComponent/index.js +73 -0
  117. package/admin/src/components/NonRepeatableWrapper/index.js +73 -0
  118. package/admin/src/components/PlusButton/index.js +52 -0
  119. package/admin/src/components/PopupForm/index.js +93 -0
  120. package/admin/src/components/PreviewCarret/components.js +27 -0
  121. package/admin/src/components/PreviewCarret/index.js +22 -0
  122. package/admin/src/components/PreviewWysiwyg/Wrapper.js +133 -0
  123. package/admin/src/components/PreviewWysiwyg/index.js +34 -0
  124. package/admin/src/components/PreviewWysiwyg/utils/mdRenderer.js +72 -0
  125. package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.js +16 -0
  126. package/admin/src/components/RelationPreviewList/CountWrapper.js +7 -0
  127. package/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js +117 -0
  128. package/admin/src/components/RelationPreviewList/index.js +111 -0
  129. package/admin/src/components/RepeatableComponent/AddFieldButton.js +64 -0
  130. package/admin/src/components/RepeatableComponent/Banner.js +112 -0
  131. package/admin/src/components/RepeatableComponent/BannerWrapper.js +194 -0
  132. package/admin/src/components/RepeatableComponent/CarretTop.js +14 -0
  133. package/admin/src/components/RepeatableComponent/DraggedItem/index.js +245 -0
  134. package/admin/src/components/RepeatableComponent/DraggedItem/utils/connect.js +11 -0
  135. package/admin/src/components/RepeatableComponent/DraggedItem/utils/index.js +2 -0
  136. package/admin/src/components/RepeatableComponent/DraggedItem/utils/select.js +30 -0
  137. package/admin/src/components/RepeatableComponent/EmptyComponent.js +27 -0
  138. package/admin/src/components/RepeatableComponent/FormWrapper.js +27 -0
  139. package/admin/src/components/RepeatableComponent/index.js +187 -0
  140. package/admin/src/components/RepeatableComponent/reducer.js +73 -0
  141. package/admin/src/components/RepeatableComponent/utils/connect.js +11 -0
  142. package/admin/src/components/RepeatableComponent/utils/select.js +12 -0
  143. package/admin/src/components/Search/index.js +88 -0
  144. package/admin/src/components/SectionTitle/Title.js +11 -0
  145. package/admin/src/components/SectionTitle/index.js +29 -0
  146. package/admin/src/components/SelectMany/ListItem.js +107 -0
  147. package/admin/src/components/SelectMany/Relation.js +106 -0
  148. package/admin/src/components/SelectMany/components.js +153 -0
  149. package/admin/src/components/SelectMany/index.js +159 -0
  150. package/admin/src/components/SelectOne/SingleValue.js +58 -0
  151. package/admin/src/components/SelectOne/index.js +71 -0
  152. package/admin/src/components/SelectWrapper/ClearIndicator.js +15 -0
  153. package/admin/src/components/SelectWrapper/IndicatorSeparator.js +3 -0
  154. package/admin/src/components/SelectWrapper/Option.js +76 -0
  155. package/admin/src/components/SelectWrapper/components.js +14 -0
  156. package/admin/src/components/SelectWrapper/index.js +393 -0
  157. package/admin/src/components/SelectWrapper/utils/connect.js +12 -0
  158. package/admin/src/components/SelectWrapper/utils/index.js +3 -0
  159. package/admin/src/components/SelectWrapper/utils/select.js +45 -0
  160. package/admin/src/components/SelectWrapper/utils/styles.js +105 -0
  161. package/admin/src/components/Separator/index.js +9 -0
  162. package/admin/src/components/SettingFormWrapper/index.js +9 -0
  163. package/admin/src/components/SettingsViewWrapper/index.js +283 -0
  164. package/admin/src/components/SortWrapper/index.js +9 -0
  165. package/admin/src/components/SortableList/Item.js +126 -0
  166. package/admin/src/components/SortableList/index.js +60 -0
  167. package/admin/src/components/State/Wrapper.js +30 -0
  168. package/admin/src/components/State/index.js +26 -0
  169. package/admin/src/components/Truncate/index.js +5 -0
  170. package/admin/src/components/Truncated/index.js +10 -0
  171. package/admin/src/components/Wysiwyg/EditorWrapper.js +122 -0
  172. package/admin/src/components/Wysiwyg/MediaLib.js +71 -0
  173. package/admin/src/components/Wysiwyg/PreviewControlWrapper.js +30 -0
  174. package/admin/src/components/Wysiwyg/SelectWrapper.js +24 -0
  175. package/admin/src/components/Wysiwyg/ToggleModeWrapper.js +30 -0
  176. package/admin/src/components/Wysiwyg/constants.js +98 -0
  177. package/admin/src/components/Wysiwyg/customSelect.js +39 -0
  178. package/admin/src/components/Wysiwyg/helpers.js +116 -0
  179. package/admin/src/components/Wysiwyg/index.js +819 -0
  180. package/admin/src/components/Wysiwyg/previewControl.js +29 -0
  181. package/admin/src/components/Wysiwyg/toggleMode.js +44 -0
  182. package/admin/src/components/Wysiwyg/utils.js +70 -0
  183. package/admin/src/components/WysiwygBottomControls/components.js +44 -0
  184. package/admin/src/components/WysiwygBottomControls/index.js +33 -0
  185. package/admin/src/components/WysiwygDropUpload/Label.js +16 -0
  186. package/admin/src/components/WysiwygDropUpload/index.js +18 -0
  187. package/admin/src/components/WysiwygEditor/index.js +26 -0
  188. package/admin/src/components/WysiwygInlineControls/Button.js +77 -0
  189. package/admin/src/components/WysiwygInlineControls/StyledButton.js +54 -0
  190. package/admin/src/components/WysiwygInlineControls/Wrapper.js +25 -0
  191. package/admin/src/components/WysiwygInlineControls/index.js +66 -0
  192. package/admin/src/components/WysiwygWithErrors/Wrapper.js +38 -0
  193. package/admin/src/components/WysiwygWithErrors/index.js +158 -0
  194. package/admin/src/containers/CollectionTypeFormWrapper/index.js +376 -0
  195. package/admin/src/containers/CollectionTypeFormWrapper/utils/getRequestUrl.js +5 -0
  196. package/admin/src/containers/CollectionTypeFormWrapper/utils/index.js +2 -0
  197. package/admin/src/containers/CollectionTypeRecursivePath/index.js +125 -0
  198. package/admin/src/containers/ComponentSetttingsView/index.js +55 -0
  199. package/admin/src/containers/EditSettingsView/index.js +408 -0
  200. package/admin/src/containers/EditSettingsView/init.js +18 -0
  201. package/admin/src/containers/EditSettingsView/reducer.js +126 -0
  202. package/admin/src/containers/EditSettingsView/utils/createPossibleMainFieldsForModelsAndComponents.js +26 -0
  203. package/admin/src/containers/EditSettingsView/utils/getInputProps.js +30 -0
  204. package/admin/src/containers/EditSettingsView/utils/index.js +2 -0
  205. package/admin/src/containers/EditSettingsView/utils/layout.js +98 -0
  206. package/admin/src/containers/EditView/DeleteLink/index.js +94 -0
  207. package/admin/src/containers/EditView/DeleteLink/utils/connect.js +12 -0
  208. package/admin/src/containers/EditView/DeleteLink/utils/index.js +2 -0
  209. package/admin/src/containers/EditView/DeleteLink/utils/select.js +21 -0
  210. package/admin/src/containers/EditView/Header/index.js +258 -0
  211. package/admin/src/containers/EditView/Header/utils/connect.js +12 -0
  212. package/admin/src/containers/EditView/Header/utils/getDraftRelations.js +62 -0
  213. package/admin/src/containers/EditView/Header/utils/index.js +3 -0
  214. package/admin/src/containers/EditView/Header/utils/select.js +31 -0
  215. package/admin/src/containers/EditView/InformationCard.js +100 -0
  216. package/admin/src/containers/EditView/components.js +74 -0
  217. package/admin/src/containers/EditView/index.js +297 -0
  218. package/admin/src/containers/EditView/utils/createAttributesLayout.js +39 -0
  219. package/admin/src/containers/EditView/utils/getFieldsActionMatchingPermissions.js +23 -0
  220. package/admin/src/containers/EditView/utils/index.js +3 -0
  221. package/admin/src/containers/EditViewDataManagerProvider/index.js +519 -0
  222. package/admin/src/containers/EditViewDataManagerProvider/reducer.js +218 -0
  223. package/admin/src/containers/EditViewDataManagerProvider/utils/cleanData.js +88 -0
  224. package/admin/src/containers/EditViewDataManagerProvider/utils/getYupInnerErrors.js +17 -0
  225. package/admin/src/containers/EditViewDataManagerProvider/utils/index.js +3 -0
  226. package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +368 -0
  227. package/admin/src/containers/EditViewLayoutManager/Permissions.js +30 -0
  228. package/admin/src/containers/EditViewLayoutManager/actions.js +9 -0
  229. package/admin/src/containers/EditViewLayoutManager/constants.js +2 -0
  230. package/admin/src/containers/EditViewLayoutManager/index.js +44 -0
  231. package/admin/src/containers/EditViewLayoutManager/reducer.js +30 -0
  232. package/admin/src/containers/EditViewLayoutManager/selectors.js +5 -0
  233. package/admin/src/containers/LayoutDndProvider/index.js +75 -0
  234. package/admin/src/containers/ListSettingsView/DragWrapper.js +21 -0
  235. package/admin/src/containers/ListSettingsView/DropdownButton.js +8 -0
  236. package/admin/src/containers/ListSettingsView/Label.js +91 -0
  237. package/admin/src/containers/ListSettingsView/MenuDropdown.js +41 -0
  238. package/admin/src/containers/ListSettingsView/Toggle.js +51 -0
  239. package/admin/src/containers/ListSettingsView/forms.json +64 -0
  240. package/admin/src/containers/ListSettingsView/index.js +298 -0
  241. package/admin/src/containers/ListSettingsView/init.js +11 -0
  242. package/admin/src/containers/ListSettingsView/reducer.js +77 -0
  243. package/admin/src/containers/ListView/FieldPicker/ConfigureLink/StyledLink.js +28 -0
  244. package/admin/src/containers/ListView/FieldPicker/ConfigureLink/Wrapper.js +8 -0
  245. package/admin/src/containers/ListView/FieldPicker/ConfigureLink/index.js +29 -0
  246. package/admin/src/containers/ListView/FieldPicker/Field/Wrapper.js +15 -0
  247. package/admin/src/containers/ListView/FieldPicker/Field/index.js +24 -0
  248. package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +18 -0
  249. package/admin/src/containers/ListView/FieldPicker/Fields/index.js +27 -0
  250. package/admin/src/containers/ListView/FieldPicker/Header/Reset.js +8 -0
  251. package/admin/src/containers/ListView/FieldPicker/Header/index.js +42 -0
  252. package/admin/src/containers/ListView/FieldPicker/Wrapper.js +9 -0
  253. package/admin/src/containers/ListView/FieldPicker/index.js +46 -0
  254. package/admin/src/containers/ListView/Filter.js +83 -0
  255. package/admin/src/containers/ListView/Footer.js +60 -0
  256. package/admin/src/containers/ListView/actions.js +91 -0
  257. package/admin/src/containers/ListView/components.js +138 -0
  258. package/admin/src/containers/ListView/constants.js +16 -0
  259. package/admin/src/containers/ListView/index.js +573 -0
  260. package/admin/src/containers/ListView/reducer.js +182 -0
  261. package/admin/src/containers/ListView/selectors.js +24 -0
  262. package/admin/src/containers/ListView/utils/buildQueryString.js +26 -0
  263. package/admin/src/containers/ListView/utils/createPluginsFilter.js +13 -0
  264. package/admin/src/containers/ListView/utils/getAllAllowedHeaders.js +17 -0
  265. package/admin/src/containers/ListView/utils/getFirstSortableHeader.js +14 -0
  266. package/admin/src/containers/ListView/utils/index.js +3 -0
  267. package/admin/src/containers/ListViewLayoutManager/Permissions.js +29 -0
  268. package/admin/src/containers/ListViewLayoutManager/index.js +60 -0
  269. package/admin/src/containers/ListViewProvider/index.js +16 -0
  270. package/admin/src/containers/Main/actions.js +13 -0
  271. package/admin/src/containers/Main/constants.js +3 -0
  272. package/admin/src/containers/Main/index.js +100 -0
  273. package/admin/src/containers/Main/reducer.js +37 -0
  274. package/admin/src/containers/Main/selectors.js +20 -0
  275. package/admin/src/containers/RBACManager/actions.js +14 -0
  276. package/admin/src/containers/RBACManager/constants.js +2 -0
  277. package/admin/src/containers/RBACManager/reducer.js +32 -0
  278. package/admin/src/containers/RBACManager/useSyncRbac.js +28 -0
  279. package/admin/src/containers/SingleTypeFormWrapper/index.js +317 -0
  280. package/admin/src/containers/SingleTypeFormWrapper/utils/getRequestUrl.js +5 -0
  281. package/admin/src/containers/SingleTypeFormWrapper/utils/index.js +2 -0
  282. package/admin/src/containers/SingleTypeRecursivePath/index.js +84 -0
  283. package/admin/src/containers/WysiwygProvider/index.js +16 -0
  284. package/admin/src/contexts/ContentTypeLayout.js +5 -0
  285. package/admin/src/contexts/LayoutDnd.js +5 -0
  286. package/admin/src/contexts/ListView.js +5 -0
  287. package/admin/src/contexts/Wysiwyg.js +5 -0
  288. package/admin/src/contexts/index.js +4 -0
  289. package/admin/src/hooks/index.js +6 -0
  290. package/admin/src/hooks/useContentTypeLayout/index.js +19 -0
  291. package/admin/src/hooks/useFetchContentTypeLayout/index.js +83 -0
  292. package/admin/src/hooks/useFetchContentTypeLayout/reducer.js +56 -0
  293. package/admin/src/hooks/useFetchContentTypeLayout/utils/formatLayouts.js +235 -0
  294. package/admin/src/hooks/useFindRedirectionLink/index.js +14 -0
  295. package/admin/src/hooks/useFindRedirectionLink/selectors.js +7 -0
  296. package/admin/src/hooks/useFindRedirectionLink/utils/getRedirectionLink.js +45 -0
  297. package/admin/src/hooks/useLayoutDnd.js +6 -0
  298. package/admin/src/hooks/useListView.js +6 -0
  299. package/admin/src/hooks/useWysiwyg.js +6 -0
  300. package/admin/src/icons/Bold/index.js +22 -0
  301. package/admin/src/icons/Code/index.js +13 -0
  302. package/admin/src/icons/Cross/index.js +33 -0
  303. package/admin/src/icons/Italic/index.js +23 -0
  304. package/admin/src/icons/Link/index.js +21 -0
  305. package/admin/src/icons/Media/index.js +14 -0
  306. package/admin/src/icons/Na/index.js +58 -0
  307. package/admin/src/icons/Ol/index.js +13 -0
  308. package/admin/src/icons/Quote/index.js +13 -0
  309. package/admin/src/icons/Striked/index.js +24 -0
  310. package/admin/src/icons/Ul/index.js +15 -0
  311. package/admin/src/icons/Underline/index.js +22 -0
  312. package/admin/src/index.js +52 -0
  313. package/admin/src/lifecycles.js +19 -0
  314. package/admin/src/permissions.js +27 -0
  315. package/admin/src/pluginId.js +5 -0
  316. package/admin/src/reducers.js +16 -0
  317. package/admin/src/selectors.js +6 -0
  318. package/admin/src/sharedReducers/crudReducer/actions.js +44 -0
  319. package/admin/src/sharedReducers/crudReducer/constants.js +7 -0
  320. package/admin/src/sharedReducers/crudReducer/reducer.js +75 -0
  321. package/admin/src/sharedReducers/crudReducer/selectors.js +5 -0
  322. package/admin/src/testUtils/data.js +305 -0
  323. package/admin/src/testUtils/index.js +4 -0
  324. package/admin/src/translations/ar.json +94 -0
  325. package/admin/src/translations/cs.json +130 -0
  326. package/admin/src/translations/de.json +177 -0
  327. package/admin/src/translations/dk.json +180 -0
  328. package/admin/src/translations/en.json +177 -0
  329. package/admin/src/translations/es.json +177 -0
  330. package/admin/src/translations/fr.json +162 -0
  331. package/admin/src/translations/id.json +175 -0
  332. package/admin/src/translations/index.js +53 -0
  333. package/admin/src/translations/it.json +177 -0
  334. package/admin/src/translations/ja.json +94 -0
  335. package/admin/src/translations/ko.json +110 -0
  336. package/admin/src/translations/ms.json +148 -0
  337. package/admin/src/translations/nl.json +94 -0
  338. package/admin/src/translations/pl.json +142 -0
  339. package/admin/src/translations/pt-BR.json +94 -0
  340. package/admin/src/translations/pt.json +94 -0
  341. package/admin/src/translations/ru.json +177 -0
  342. package/admin/src/translations/sk.json +172 -0
  343. package/admin/src/translations/th.json +155 -0
  344. package/admin/src/translations/tr.json +177 -0
  345. package/admin/src/translations/uk.json +148 -0
  346. package/admin/src/translations/vi.json +110 -0
  347. package/admin/src/translations/zh-Hans.json +177 -0
  348. package/admin/src/translations/zh.json +94 -0
  349. package/admin/src/utils/ItemTypes.js +7 -0
  350. package/admin/src/utils/checkIfAttributeIsDisplayable.js +13 -0
  351. package/admin/src/utils/createDefaultForm.js +50 -0
  352. package/admin/src/utils/dateFormats.js +18 -0
  353. package/admin/src/utils/formatFiltersFromQuery.js +55 -0
  354. package/admin/src/utils/formatFiltersToQuery.js +27 -0
  355. package/admin/src/utils/formatLayoutToApi.js +44 -0
  356. package/admin/src/utils/generatePermissionsObject.js +20 -0
  357. package/admin/src/utils/getComponents.js +50 -0
  358. package/admin/src/utils/getDisplayedValue.js +61 -0
  359. package/admin/src/utils/getFieldName.js +6 -0
  360. package/admin/src/utils/getMaxTempKey.js +12 -0
  361. package/admin/src/utils/getRequestUrl.js +5 -0
  362. package/admin/src/utils/getTrad.js +5 -0
  363. package/admin/src/utils/index.js +17 -0
  364. package/admin/src/utils/mergeMetasWithSchema.js +20 -0
  365. package/admin/src/utils/removeKeyInObject.js +45 -0
  366. package/admin/src/utils/removePasswordFieldsFromData.js +54 -0
  367. package/config/admin.json +5 -0
  368. package/config/functions/bootstrap.js +9 -0
  369. package/config/policies/has-draft-and-publish.js +19 -0
  370. package/config/policies/hasPermissions.js +34 -0
  371. package/config/policies/routing.js +27 -0
  372. package/config/routes.json +275 -0
  373. package/controllers/collection-types.js +282 -0
  374. package/controllers/components.js +66 -0
  375. package/controllers/content-types.js +112 -0
  376. package/controllers/relations.js +63 -0
  377. package/controllers/single-types.js +170 -0
  378. package/controllers/uid.js +41 -0
  379. package/controllers/validation/index.js +104 -0
  380. package/controllers/validation/model-configuration.js +114 -0
  381. package/oas.yml +757 -0
  382. package/package.json +77 -0
  383. package/services/components.js +92 -0
  384. package/services/configuration.js +79 -0
  385. package/services/content-types.js +73 -0
  386. package/services/data-mapper.js +98 -0
  387. package/services/entity-manager.js +140 -0
  388. package/services/metrics.js +34 -0
  389. package/services/permission-checker.js +69 -0
  390. package/services/permission.js +95 -0
  391. package/services/uid.js +63 -0
  392. package/services/utils/configuration/attributes.js +175 -0
  393. package/services/utils/configuration/index.js +43 -0
  394. package/services/utils/configuration/layouts.js +185 -0
  395. package/services/utils/configuration/metadatas.js +142 -0
  396. package/services/utils/configuration/settings.js +52 -0
  397. package/services/utils/store.js +93 -0
  398. package/utils/index.js +16 -0
  399. package/utils/pick-writable-attributes.js +6 -0
  400. package/utils/wrap-bad-request.js +15 -0
  401. package/validation/policies/hasPermissions.js +17 -0
@@ -0,0 +1,235 @@
1
+ import { cloneDeep, get, set } from 'lodash';
2
+ import { mergeMetasWithSchema } from '../../../utils';
3
+ import pluginId from '../../../pluginId';
4
+
5
+ const getRelationModel = (targetModel, models) => models.find(model => model.uid === targetModel);
6
+
7
+ // editRelations is an array of strings...
8
+ const formatEditRelationsLayoutWithMetas = (contentTypeConfiguration, models) => {
9
+ const formatted = contentTypeConfiguration.layouts.editRelations.reduce((acc, current) => {
10
+ const fieldSchema = get(contentTypeConfiguration, ['attributes', current], {});
11
+ const targetModelUID = get(
12
+ contentTypeConfiguration,
13
+ ['attributes', current, 'targetModel'],
14
+ null
15
+ );
16
+ const targetModelSchema = getRelationModel(targetModelUID, models);
17
+ const targetModelPluginOptions = targetModelSchema.pluginOptions || {};
18
+ const metadatas = get(contentTypeConfiguration, ['metadatas', current, 'edit'], {});
19
+ const size = 6;
20
+
21
+ const queryInfos = generateRelationQueryInfos(contentTypeConfiguration, current, models);
22
+
23
+ acc.push({
24
+ name: current,
25
+ size,
26
+ fieldSchema,
27
+ metadatas,
28
+ queryInfos,
29
+ targetModelPluginOptions,
30
+ });
31
+
32
+ return acc;
33
+ }, []);
34
+
35
+ return formatted;
36
+ };
37
+
38
+ const formatLayouts = (initialData, models) => {
39
+ const data = createMetasSchema(initialData, models);
40
+
41
+ const formattedCTEditLayout = formatLayoutWithMetas(data.contentType, null, models);
42
+ const ctUid = data.contentType.uid;
43
+ const formattedEditRelationsLayout = formatEditRelationsLayoutWithMetas(data.contentType, models);
44
+ const formattedListLayout = formatListLayoutWithMetas(data.contentType, models);
45
+
46
+ set(data, ['contentType', 'layouts', 'edit'], formattedCTEditLayout);
47
+ set(data, ['contentType', 'layouts', 'editRelations'], formattedEditRelationsLayout);
48
+ set(data, ['contentType', 'layouts', 'list'], formattedListLayout);
49
+
50
+ Object.keys(data.components).forEach(compoUID => {
51
+ const formattedCompoEditLayout = formatLayoutWithMetas(
52
+ data.components[compoUID],
53
+ ctUid,
54
+ models
55
+ );
56
+
57
+ set(data, ['components', compoUID, 'layouts', 'edit'], formattedCompoEditLayout);
58
+ });
59
+
60
+ return data;
61
+ };
62
+
63
+ const createMetasSchema = (initialData, models) => {
64
+ const data = mergeMetasWithSchema(cloneDeep(initialData), models, 'contentType');
65
+ const { components, contentType } = data;
66
+
67
+ const formatMetadatas = targetSchema => {
68
+ return Object.keys(targetSchema.metadatas).reduce((acc, current) => {
69
+ const schema = get(targetSchema, ['attributes', current], {});
70
+ let metadatas = targetSchema.metadatas[current];
71
+
72
+ if (schema.type === 'relation') {
73
+ const relationModel = getRelationModel(schema.targetModel, models);
74
+ const mainFieldName = metadatas.edit.mainField;
75
+ const mainField = {
76
+ name: mainFieldName,
77
+ schema: get(relationModel, ['attributes', mainFieldName]),
78
+ };
79
+
80
+ metadatas = {
81
+ list: {
82
+ ...metadatas.list,
83
+ mainField,
84
+ },
85
+ edit: {
86
+ ...metadatas.edit,
87
+ mainField,
88
+ },
89
+ };
90
+ }
91
+
92
+ acc[current] = metadatas;
93
+
94
+ return acc;
95
+ }, {});
96
+ };
97
+
98
+ set(data, ['contentType', 'metadatas'], formatMetadatas(contentType));
99
+
100
+ Object.keys(components).forEach(compoUID => {
101
+ const currentCompo = components[compoUID];
102
+ const updatedMetas = formatMetadatas(currentCompo);
103
+
104
+ set(data, ['components', compoUID, 'metadatas'], updatedMetas);
105
+ });
106
+
107
+ return data;
108
+ };
109
+
110
+ const formatLayoutWithMetas = (contentTypeConfiguration, ctUid, models) => {
111
+ const formatted = contentTypeConfiguration.layouts.edit.reduce((acc, current) => {
112
+ const row = current.map(attribute => {
113
+ const fieldSchema = get(contentTypeConfiguration, ['attributes', attribute.name], {});
114
+
115
+ const data = {
116
+ ...attribute,
117
+ fieldSchema,
118
+ metadatas: get(contentTypeConfiguration, ['metadatas', attribute.name, 'edit'], {}),
119
+ };
120
+
121
+ if (fieldSchema.type === 'relation') {
122
+ const targetModelUID = fieldSchema.targetModel;
123
+ const targetModelSchema = getRelationModel(targetModelUID, models);
124
+ const targetModelPluginOptions = targetModelSchema.pluginOptions || {};
125
+
126
+ const queryInfos = ctUid
127
+ ? generateRelationQueryInfosForComponents(
128
+ contentTypeConfiguration,
129
+ attribute.name,
130
+ ctUid,
131
+ models
132
+ )
133
+ : generateRelationQueryInfos(contentTypeConfiguration, attribute.name, models);
134
+
135
+ set(data, 'targetModelPluginOptions', targetModelPluginOptions);
136
+ set(data, 'queryInfos', queryInfos);
137
+ }
138
+
139
+ return data;
140
+ });
141
+
142
+ acc.push(row);
143
+
144
+ return acc;
145
+ }, []);
146
+
147
+ return formatted;
148
+ };
149
+
150
+ const formatListLayoutWithMetas = contentTypeConfiguration => {
151
+ const formatted = contentTypeConfiguration.layouts.list.reduce((acc, current) => {
152
+ const fieldSchema = get(contentTypeConfiguration, ['attributes', current], {});
153
+ const metadatas = get(contentTypeConfiguration, ['metadatas', current, 'list'], {});
154
+
155
+ const type = fieldSchema.type;
156
+
157
+ if (type === 'relation') {
158
+ const queryInfos = {
159
+ endPoint: `collection-types/${contentTypeConfiguration.uid}`,
160
+ defaultParams: {},
161
+ };
162
+
163
+ acc.push({ key: `__${current}_key__`, name: current, fieldSchema, metadatas, queryInfos });
164
+
165
+ return acc;
166
+ }
167
+
168
+ acc.push({ key: `__${current}_key__`, name: current, fieldSchema, metadatas });
169
+
170
+ return acc;
171
+ }, []);
172
+
173
+ return formatted;
174
+ };
175
+
176
+ const generateRelationQueryInfos = (contentTypeConfiguration, fieldName, models) => {
177
+ const uid = contentTypeConfiguration.uid;
178
+ const endPoint = `/${pluginId}/relations/${uid}/${fieldName}`;
179
+ const mainField = get(
180
+ contentTypeConfiguration,
181
+ ['metadatas', fieldName, 'edit', 'mainField', 'name'],
182
+ ''
183
+ );
184
+ const targetModel = get(contentTypeConfiguration, ['attributes', fieldName, 'targetModel'], '');
185
+ const shouldDisplayRelationLink = getDisplayedModels(models).indexOf(targetModel) !== -1;
186
+
187
+ const queryInfos = {
188
+ endPoint,
189
+ containsKey: `${mainField}_contains`,
190
+ defaultParams: {},
191
+ shouldDisplayRelationLink,
192
+ };
193
+
194
+ return queryInfos;
195
+ };
196
+
197
+ const generateRelationQueryInfosForComponents = (
198
+ contentTypeConfiguration,
199
+ fieldName,
200
+ ctUid,
201
+ models
202
+ ) => {
203
+ const endPoint = `/${pluginId}/relations/${ctUid}/${fieldName}`;
204
+ const mainField = get(
205
+ contentTypeConfiguration,
206
+ ['metadatas', fieldName, 'edit', 'mainField', 'name'],
207
+ ''
208
+ );
209
+ const targetModel = get(contentTypeConfiguration, ['attributes', fieldName, 'targetModel'], '');
210
+ const shouldDisplayRelationLink = getDisplayedModels(models).indexOf(targetModel) !== -1;
211
+
212
+ const queryInfos = {
213
+ endPoint,
214
+ containsKey: `${mainField}_contains`,
215
+ defaultParams: {
216
+ _component: contentTypeConfiguration.uid,
217
+ },
218
+ shouldDisplayRelationLink,
219
+ };
220
+
221
+ return queryInfos;
222
+ };
223
+
224
+ const getDisplayedModels = models =>
225
+ models.filter(model => model.isDisplayed).map(({ uid }) => uid);
226
+
227
+ export default formatLayouts;
228
+ export {
229
+ formatEditRelationsLayoutWithMetas,
230
+ formatLayoutWithMetas,
231
+ formatListLayoutWithMetas,
232
+ generateRelationQueryInfos,
233
+ generateRelationQueryInfosForComponents,
234
+ getDisplayedModels,
235
+ };
@@ -0,0 +1,14 @@
1
+ import { useSelector } from 'react-redux';
2
+ import { useQueryParams } from 'strapi-helper-plugin';
3
+ import selectMenuLinks from './selectors';
4
+ import getRedirectionLink from './utils/getRedirectionLink';
5
+
6
+ const useFindRedirectionLink = slug => {
7
+ const [{ rawQuery }] = useQueryParams();
8
+ const collectionTypesMenuLinks = useSelector(selectMenuLinks);
9
+ const redirectionLink = getRedirectionLink(collectionTypesMenuLinks, slug, rawQuery);
10
+
11
+ return redirectionLink;
12
+ };
13
+
14
+ export default useFindRedirectionLink;
@@ -0,0 +1,7 @@
1
+ const selectMenuLinks = state => {
2
+ const menuState = state.get('menu');
3
+
4
+ return menuState.collectionTypesSectionLinks;
5
+ };
6
+
7
+ export default selectMenuLinks;
@@ -0,0 +1,45 @@
1
+ import { stringify, parse } from 'qs';
2
+ import get from 'lodash/get';
3
+ import isObject from 'lodash/isObject';
4
+
5
+ /**
6
+ * Updates the leafs of the first argument
7
+ * @param {object} initialParams
8
+ * @param {object} params
9
+ * @returns string
10
+ */
11
+ const mergeParams = (initialParams, params) => {
12
+ return Object.keys(initialParams).reduce((acc, current) => {
13
+ const intialValue = initialParams[current];
14
+ const nextValue = get(params, [current], intialValue);
15
+
16
+ if (isObject(intialValue)) {
17
+ return { ...acc, [current]: mergeParams(intialValue, nextValue) };
18
+ }
19
+
20
+ acc[current] = nextValue;
21
+
22
+ return acc;
23
+ }, {});
24
+ };
25
+
26
+ const getDeleteRedirectionLink = (links, slug, rawQuery) => {
27
+ const matchingLink = links.find(({ destination }) => destination.includes(slug));
28
+
29
+ if (!matchingLink) {
30
+ return '/';
31
+ }
32
+
33
+ const { destination, search } = matchingLink;
34
+ const searchQueryParams = parse(search);
35
+ const currentQueryParams = parse(rawQuery.substring(1));
36
+
37
+ const mergedParams = mergeParams(searchQueryParams, currentQueryParams);
38
+
39
+ const link = `${destination}?${stringify(mergedParams, { encode: false })}`;
40
+
41
+ return link;
42
+ };
43
+
44
+ export default getDeleteRedirectionLink;
45
+ export { mergeParams };
@@ -0,0 +1,6 @@
1
+ import { useContext } from 'react';
2
+ import LayoutDndContext from '../contexts/LayoutDnd';
3
+
4
+ const useLayoutDnd = () => useContext(LayoutDndContext);
5
+
6
+ export default useLayoutDnd;
@@ -0,0 +1,6 @@
1
+ import { useContext } from 'react';
2
+ import ListViewContext from '../contexts/ListView';
3
+
4
+ const useListView = () => useContext(ListViewContext);
5
+
6
+ export default useListView;
@@ -0,0 +1,6 @@
1
+ import { useContext } from 'react';
2
+ import WysiwygContext from '../contexts/Wysiwyg';
3
+
4
+ const useWysiwyg = () => useContext(WysiwygContext);
5
+
6
+ export default useWysiwyg;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+
3
+ const Bold = () => {
4
+ return (
5
+ <svg width="9" height="10" xmlns="http://www.w3.org/2000/svg">
6
+ <text
7
+ transform="translate(-12 -10)"
8
+ fill="#333740"
9
+ fillRule="evenodd"
10
+ fontSize="13"
11
+ fontFamily="Baskerville-SemiBold, Baskerville"
12
+ fontWeight="500"
13
+ >
14
+ <tspan x="12" y="20">
15
+ B
16
+ </tspan>
17
+ </text>
18
+ </svg>
19
+ );
20
+ };
21
+
22
+ export default Bold;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+
3
+ const Code = () => {
4
+ return (
5
+ <svg width="12" height="8" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="#333740" fillRule="evenodd">
7
+ <path d="M3.653 7.385a.632.632 0 0 1-.452-.191L.214 4.154a.66.66 0 0 1 0-.922L3.201.19a.632.632 0 0 1 .905 0 .66.66 0 0 1 0 .921l-2.534 2.58 2.534 2.58a.66.66 0 0 1 0 .922.632.632 0 0 1-.453.19zM8.347 7.385a.632.632 0 0 0 .452-.191l2.987-3.04a.66.66 0 0 0 0-.922L8.799.19a.632.632 0 0 0-.905 0 .66.66 0 0 0 0 .921l2.534 2.58-2.534 2.58a.66.66 0 0 0 0 .922c.125.127.289.19.453.19z" />
8
+ </g>
9
+ </svg>
10
+ );
11
+ };
12
+
13
+ export default Code;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ const Cross = ({ fill, height, width, ...rest }) => {
5
+ return (
6
+ <svg
7
+ {...rest}
8
+ width={width}
9
+ height={height}
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ >
12
+ <path
13
+ d="M7.78 6.72L5.06 4l2.72-2.72a.748.748 0 0 0 0-1.06.748.748 0 0 0-1.06 0L4 2.94 1.28.22a.748.748 0 0 0-1.06 0 .748.748 0 0 0 0 1.06L2.94 4 .22 6.72a.748.748 0 0 0 0 1.06.748.748 0 0 0 1.06 0L4 5.06l2.72 2.72a.748.748 0 0 0 1.06 0 .752.752 0 0 0 0-1.06z"
14
+ fill={fill}
15
+ fillRule="evenodd"
16
+ />
17
+ </svg>
18
+ );
19
+ };
20
+
21
+ Cross.defaultProps = {
22
+ fill: '#b3b5b9',
23
+ height: '8',
24
+ width: '8',
25
+ };
26
+
27
+ Cross.propTypes = {
28
+ fill: PropTypes.string,
29
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
30
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
31
+ };
32
+
33
+ export default Cross;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+
3
+ const Italic = () => {
4
+ return (
5
+ <svg width="6" height="9" xmlns="http://www.w3.org/2000/svg">
6
+ <text
7
+ transform="translate(-13 -11)"
8
+ fill="#333740"
9
+ fillRule="evenodd"
10
+ fontWeight="500"
11
+ fontSize="13"
12
+ fontFamily="Baskerville-SemiBoldItalic, Baskerville"
13
+ fontStyle="italic"
14
+ >
15
+ <tspan x="13" y="20">
16
+ I
17
+ </tspan>
18
+ </text>
19
+ </svg>
20
+ );
21
+ };
22
+
23
+ export default Italic;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+
3
+ const Link = () => {
4
+ return (
5
+ <svg width="12" height="6" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="none" fillRule="evenodd">
7
+ <path d="M6.063 1.5H6h.063z" fill="#000" />
8
+ <path
9
+ d="M9.516 0H8s.813.531.988 1.5h.528c.55 0 .984.434.984.984v1c0 .55-.434 1.016-.984 1.016h-3.5A1.03 1.03 0 0 1 5 3.484V2.5H3.5v.984A2.518 2.518 0 0 0 6.016 6h3.5C10.896 6 12 4.866 12 3.484v-1A2.473 2.473 0 0 0 9.516 0z"
10
+ fill="#333740"
11
+ />
12
+ <path
13
+ d="M8.3 1.5A2.473 2.473 0 0 0 6.016 0h-3.5C1.134 0 0 1.103 0 2.484v1A2.526 2.526 0 0 0 2.516 6H4s-.806-.531-1.003-1.5h-.481A1.03 1.03 0 0 1 1.5 3.484v-1c0-.55.466-.984 1.016-.984h3.5c.55 0 .984.434.984.984V3.5h1.5V2.484c0-.35-.072-.684-.2-.984z"
14
+ fill="#333740"
15
+ />
16
+ </g>
17
+ </svg>
18
+ );
19
+ };
20
+
21
+ export default Link;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+
3
+ const Media = () => {
4
+ return (
5
+ <svg width="12" height="11" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="#333740" fillRule="evenodd">
7
+ <path d="M9 4.286a1.286 1.286 0 1 0 0-2.572 1.286 1.286 0 0 0 0 2.572z" />
8
+ <path d="M11.25 0H.75C.332 0 0 .34 0 .758v8.77c0 .418.332.758.75.758h10.5c.418 0 .75-.34.75-.758V.758A.752.752 0 0 0 11.25 0zM8.488 5.296a.46.46 0 0 0-.342-.167c-.137 0-.234.065-.343.153l-.501.423c-.105.075-.188.126-.308.126a.443.443 0 0 1-.295-.11 3.5 3.5 0 0 1-.115-.11L5.143 4.054a.59.59 0 0 0-.897.008L.857 8.148V1.171a.353.353 0 0 1 .351-.314h9.581a.34.34 0 0 1 .346.322l.008 6.975-2.655-2.858z" />
9
+ </g>
10
+ </svg>
11
+ );
12
+ };
13
+
14
+ export default Media;
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ const Na = ({
5
+ fill,
6
+ fontFamily,
7
+ fontSize,
8
+ fontWeight,
9
+ height,
10
+ textFill,
11
+ width,
12
+ ...rest
13
+ }) => {
14
+ return (
15
+ <svg
16
+ {...rest}
17
+ width={width}
18
+ height={height}
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ >
21
+ <g fill="none" fillRule="evenodd">
22
+ <rect fill={fill} width={width} height={height} rx="17.5" />
23
+ <text
24
+ fontFamily={fontFamily}
25
+ fontSize={fontSize}
26
+ fontWeight={fontWeight}
27
+ fill={textFill}
28
+ >
29
+ <tspan x="6" y="22">
30
+ N/A
31
+ </tspan>
32
+ </text>
33
+ </g>
34
+ </svg>
35
+ );
36
+ };
37
+
38
+ Na.defaultProps = {
39
+ fill: '#fafafb',
40
+ fontFamily: 'Lato-Medium, Lato',
41
+ fontSize: '12',
42
+ fontWeight: '400',
43
+ height: '35',
44
+ textFill: '#838383',
45
+ width: '35',
46
+ };
47
+
48
+ Na.propTypes = {
49
+ fill: PropTypes.string,
50
+ fontFamily: PropTypes.string,
51
+ fontSize: PropTypes.string,
52
+ fontWeight: PropTypes.string,
53
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
54
+ textFill: PropTypes.string,
55
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
56
+ };
57
+
58
+ export default Na;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+
3
+ const Ol = () => {
4
+ return (
5
+ <svg width="12" height="8" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="#333740" fillRule="evenodd">
7
+ <path d="M2.4 3H.594v-.214h.137c.123 0 .212-.01.266-.032.053-.022.086-.052.1-.092a.67.67 0 0 0 .018-.188V.74a.46.46 0 0 0-.03-.194C1.064.504 1.021.476.955.46A1.437 1.437 0 0 0 .643.435H.539V.23c.332-.035.565-.067.7-.096.135-.03.258-.075.37-.134h.275v2.507c0 .104.023.177.07.218.047.04.14.061.278.061H2.4V3zM2.736 6.695l-.132.528h-.246a.261.261 0 0 0 .015-.074c0-.058-.049-.087-.146-.087H.293v-.198c.258-.173.511-.367.76-.581.25-.215.457-.437.623-.667.166-.23.249-.447.249-.653a.49.49 0 0 0-.321-.478.794.794 0 0 0-.582-.006.482.482 0 0 0-.196.138.284.284 0 0 0-.07.182c0 .074.04.17.12.289.006.008.009.015.009.02 0 .012-.041.03-.123.053l-.19.057a.693.693 0 0 1-.115.03c-.031 0-.067-.038-.108-.114a.516.516 0 0 1 .071-.586.899.899 0 0 1 .405-.238c.18-.058.4-.087.657-.087.317 0 .566.044.749.132.183.087.306.187.37.3a.64.64 0 0 1 .094.312c0 .197-.089.389-.266.575a5.296 5.296 0 0 1-.916.74 62.947 62.947 0 0 1-.62.413h1.843zM4 0h8v1H4zM4 2h8v1H4zM4 4h8v1H4zM4 6h8v1H4z" />
8
+ </g>
9
+ </svg>
10
+ );
11
+ };
12
+
13
+ export default Ol;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+
3
+ const Quote = () => {
4
+ return (
5
+ <svg width="9" height="9" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="#333740" fillRule="evenodd">
7
+ <path d="M3 0C2.047 0 1.301.263.782.782.263 1.302 0 2.047 0 3v6h3.75V3H1.5c0-.54.115-.93.343-1.157C2.07 1.615 2.46 1.5 3 1.5M8.25 0c-.953 0-1.699.263-2.218.782-.519.52-.782 1.265-.782 2.218v6H9V3H6.75c0-.54.115-.93.343-1.157.227-.228.617-.343 1.157-.343" />
8
+ </g>
9
+ </svg>
10
+ );
11
+ };
12
+
13
+ export default Quote;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+
3
+ const Striked = () => {
4
+ return (
5
+ <svg width="19" height="10" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="none" fillRule="evenodd">
7
+ <text
8
+ fontFamily="Lato-Semibold, Lato"
9
+ fontSize="11"
10
+ fontWeight="500"
11
+ fill="#41464E"
12
+ transform="translate(0 -2)"
13
+ >
14
+ <tspan x="1" y="11">
15
+ abc
16
+ </tspan>
17
+ </text>
18
+ <path d="M.5 6.5h18" stroke="#2C3039" strokeLinecap="square" />
19
+ </g>
20
+ </svg>
21
+ );
22
+ };
23
+
24
+ export default Striked;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ const Ul = () => {
4
+ return (
5
+ <svg width="13" height="7" xmlns="http://www.w3.org/2000/svg">
6
+ <g fill="none" fillRule="evenodd">
7
+ <path fill="#333740" d="M5 0h8v1H5zM5 2h8v1H5zM5 4h8v1H5zM5 6h8v1H5z" />
8
+ <rect stroke="#333740" x=".5" y=".5" width="2" height="2" rx="1" />
9
+ <rect stroke="#333740" x=".5" y="4.5" width="2" height="2" rx="1" />
10
+ </g>
11
+ </svg>
12
+ );
13
+ };
14
+
15
+ export default Ul;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+
3
+ const Underline = () => {
4
+ return (
5
+ <svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
6
+ <text
7
+ transform="translate(-10 -11)"
8
+ fill="#101622"
9
+ fillRule="evenodd"
10
+ fontSize="13"
11
+ fontFamily="Baskerville-SemiBold, Baskerville"
12
+ fontWeight="500"
13
+ >
14
+ <tspan x="10" y="20">
15
+ U
16
+ </tspan>
17
+ </text>
18
+ </svg>
19
+ );
20
+ };
21
+
22
+ export default Underline;
@@ -0,0 +1,52 @@
1
+ // NOTE TO PLUGINS DEVELOPERS:
2
+ // If you modify this file by adding new options to the plugin entry point
3
+ // Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md
4
+ // Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md
5
+ // Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated
6
+ // IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
7
+
8
+ import pluginPkg from '../../package.json';
9
+ import pluginId from './pluginId';
10
+ import pluginLogo from './assets/images/logo.svg';
11
+ import App from './containers/Main';
12
+
13
+ import ConfigureViewButton from './InjectedComponents/ContentTypeBuilder/ConfigureViewButton';
14
+ import lifecycles from './lifecycles';
15
+ import reducers from './reducers';
16
+ import trads from './translations';
17
+
18
+ export default strapi => {
19
+ const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
20
+ const plugin = {
21
+ blockerComponent: null,
22
+ blockerComponentProps: {},
23
+ description: pluginDescription,
24
+ icon: pluginPkg.strapi.icon,
25
+ id: pluginId,
26
+ initializer: null,
27
+ injectedComponents: [
28
+ {
29
+ plugin: 'content-type-builder.listView',
30
+ area: 'list.link',
31
+ component: ConfigureViewButton,
32
+ key: 'content-manager.link',
33
+ },
34
+ ],
35
+ injectionZones: {
36
+ editView: { informations: [] },
37
+ listView: { actions: [], deleteModalAdditionalInfos: [] },
38
+ },
39
+ isReady: true,
40
+ isRequired: pluginPkg.strapi.required || false,
41
+ layout: null,
42
+ lifecycles,
43
+ mainComponent: App,
44
+ name: pluginPkg.strapi.name,
45
+ pluginLogo,
46
+ preventComponentRendering: false,
47
+ reducers,
48
+ trads,
49
+ };
50
+
51
+ return strapi.registerPlugin(plugin);
52
+ };