@webiny/app-admin 0.0.0-unstable.aa00eecd97 → 0.0.0-unstable.ac6ebf63c6

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 (1033) hide show
  1. package/README.md +7 -17
  2. package/assets/icons/file_download.svg +1 -0
  3. package/assets/icons/file_upload.svg +1 -0
  4. package/base/Admin.d.ts +5 -2
  5. package/base/Admin.js +43 -40
  6. package/base/Admin.js.map +1 -1
  7. package/base/Base/LexicalPreset/LinkEditForm.d.ts +6 -0
  8. package/base/Base/LexicalPreset/LinkEditForm.js +63 -0
  9. package/base/Base/LexicalPreset/LinkEditForm.js.map +1 -0
  10. package/base/Base/LexicalPreset.d.ts +2 -0
  11. package/base/Base/LexicalPreset.js +68 -0
  12. package/base/Base/LexicalPreset.js.map +1 -0
  13. package/base/Base/Menus/SupportMenuItems.d.ts +2 -0
  14. package/base/Base/Menus/SupportMenuItems.js +18 -0
  15. package/base/Base/Menus/SupportMenuItems.js.map +1 -0
  16. package/base/Base/Menus/WebinyVersion.d.ts +2 -0
  17. package/base/Base/Menus/WebinyVersion.js +24 -0
  18. package/base/Base/Menus/WebinyVersion.js.map +1 -0
  19. package/base/Base/Menus.d.ts +2 -0
  20. package/base/Base/Menus.js +114 -0
  21. package/base/Base/Menus.js.map +1 -0
  22. package/base/Base/RoutesConfig.d.ts +2 -0
  23. package/base/Base/RoutesConfig.js +30 -0
  24. package/base/Base/RoutesConfig.js.map +1 -0
  25. package/base/Base/Tenant/wby-horizontal.svg +23 -0
  26. package/base/Base/Tenant/wby-square.svg +3 -0
  27. package/base/Base/Tenant.d.ts +2 -0
  28. package/base/Base/Tenant.js +24 -0
  29. package/base/Base/Tenant.js.map +1 -0
  30. package/base/Base/UserMenu/ExitTenant.d.ts +20 -0
  31. package/base/Base/UserMenu/ExitTenant.js +37 -0
  32. package/base/Base/UserMenu/ExitTenant.js.map +1 -0
  33. package/base/Base/UserMenu/SignOut.d.ts +2 -0
  34. package/base/Base/UserMenu/SignOut.js +19 -0
  35. package/base/Base/UserMenu/SignOut.js.map +1 -0
  36. package/base/Base/UserMenu/UserInfo.d.ts +6 -0
  37. package/base/Base/UserMenu/UserInfo.js +43 -0
  38. package/base/Base/UserMenu/UserInfo.js.map +1 -0
  39. package/base/Base/UserMenu.d.ts +2 -0
  40. package/base/Base/UserMenu.js +21 -0
  41. package/base/Base/UserMenu.js.map +1 -0
  42. package/base/Base.d.ts +1 -1
  43. package/base/Base.js +12 -71
  44. package/base/Base.js.map +1 -1
  45. package/base/TelemetryAdminAppStart.d.ts +1 -0
  46. package/base/TelemetryAdminAppStart.js +19 -0
  47. package/base/TelemetryAdminAppStart.js.map +1 -0
  48. package/base/WebinyVersion.d.ts +2 -0
  49. package/base/WebinyVersion.js +24 -0
  50. package/base/WebinyVersion.js.map +1 -0
  51. package/base/createRootContainer.d.ts +2 -0
  52. package/base/createRootContainer.js +55 -0
  53. package/base/createRootContainer.js.map +1 -0
  54. package/base/plugins/AddGraphQLQuerySelection.d.ts +2 -3
  55. package/base/plugins/AddGraphQLQuerySelection.js +13 -22
  56. package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
  57. package/base/providers/AdminUiStateProvider.d.ts +1 -0
  58. package/base/providers/AdminUiStateProvider.js +14 -0
  59. package/base/providers/AdminUiStateProvider.js.map +1 -0
  60. package/base/providers/ApolloProvider.d.ts +5 -2
  61. package/base/providers/ApolloProvider.js +10 -18
  62. package/base/providers/ApolloProvider.js.map +1 -1
  63. package/base/providers/UiProviders.d.ts +1 -0
  64. package/base/providers/UiProviders.js +35 -0
  65. package/base/providers/UiProviders.js.map +1 -0
  66. package/base/providers/UiStateProvider.d.ts +1 -2
  67. package/base/providers/UiStateProvider.js +12 -16
  68. package/base/providers/UiStateProvider.js.map +1 -1
  69. package/base/ui/Brand.d.ts +39 -2
  70. package/base/ui/Brand.js +7 -14
  71. package/base/ui/Brand.js.map +1 -1
  72. package/base/ui/CenteredView.d.ts +21 -1
  73. package/base/ui/CenteredView.js +14 -34
  74. package/base/ui/CenteredView.js.map +1 -1
  75. package/base/ui/Dashboard.d.ts +39 -2
  76. package/base/ui/Dashboard.js +7 -14
  77. package/base/ui/Dashboard.js.map +1 -1
  78. package/base/ui/FileManager.d.ts +35 -28
  79. package/base/ui/FileManager.js +57 -52
  80. package/base/ui/FileManager.js.map +1 -1
  81. package/base/ui/Layout.d.ts +40 -2
  82. package/base/ui/Layout.js +10 -18
  83. package/base/ui/Layout.js.map +1 -1
  84. package/base/ui/LoginScreen.d.ts +40 -2
  85. package/base/ui/LoginScreen.js +22 -17
  86. package/base/ui/LoginScreen.js.map +1 -1
  87. package/base/ui/Logo.d.ts +38 -7
  88. package/base/ui/Logo.js +7 -29
  89. package/base/ui/Logo.js.map +1 -1
  90. package/base/ui/Navigation.d.ts +39 -23
  91. package/base/ui/Navigation.js +14 -146
  92. package/base/ui/Navigation.js.map +1 -1
  93. package/base/ui/NotFound.d.ts +39 -2
  94. package/base/ui/NotFound.js +7 -14
  95. package/base/ui/NotFound.js.map +1 -1
  96. package/base/ui/Tags.d.ts +2 -2
  97. package/base/ui/Tags.js +16 -18
  98. package/base/ui/Tags.js.map +1 -1
  99. package/base/ui/TenantSelector.d.ts +39 -0
  100. package/base/ui/TenantSelector.js +8 -0
  101. package/base/ui/TenantSelector.js.map +1 -0
  102. package/base/ui/UserMenu/UserMenu.d.ts +39 -0
  103. package/base/ui/UserMenu/UserMenu.js +8 -0
  104. package/base/ui/UserMenu/UserMenu.js.map +1 -0
  105. package/base/ui/UserMenu/UserMenuHandle.d.ts +39 -0
  106. package/base/ui/UserMenu/UserMenuHandle.js +8 -0
  107. package/base/ui/UserMenu/UserMenuHandle.js.map +1 -0
  108. package/base/ui/UserMenu/UserMenuItem.d.ts +81 -0
  109. package/base/ui/UserMenu/UserMenuItem.js +19 -0
  110. package/base/ui/UserMenu/UserMenuItem.js.map +1 -0
  111. package/base/ui/UserMenu/UserMenuLink.d.ts +81 -0
  112. package/base/ui/UserMenu/UserMenuLink.js +19 -0
  113. package/base/ui/UserMenu/UserMenuLink.js.map +1 -0
  114. package/base/ui/UserMenu/UserMenuSeparator.d.ts +42 -0
  115. package/base/ui/UserMenu/UserMenuSeparator.js +9 -0
  116. package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -0
  117. package/base/ui/UserMenu.d.ts +79 -29
  118. package/base/ui/UserMenu.js +16 -110
  119. package/base/ui/UserMenu.js.map +1 -1
  120. package/components/AdminLayout.d.ts +2 -1
  121. package/components/AdminLayout.js +9 -14
  122. package/components/AdminLayout.js.map +1 -1
  123. package/components/BulkActions/Worker.d.ts +82 -0
  124. package/components/BulkActions/Worker.js +126 -0
  125. package/components/BulkActions/Worker.js.map +1 -0
  126. package/components/BulkActions/index.d.ts +2 -0
  127. package/components/BulkActions/index.js +4 -0
  128. package/components/BulkActions/index.js.map +1 -0
  129. package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +5 -0
  130. package/components/BulkActions/useDialogWithReport/DialogMessage.js +23 -0
  131. package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -0
  132. package/components/BulkActions/useDialogWithReport/index.d.ts +1 -0
  133. package/components/BulkActions/useDialogWithReport/index.js +3 -0
  134. package/components/BulkActions/useDialogWithReport/index.js.map +1 -0
  135. package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +19 -0
  136. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +51 -0
  137. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -0
  138. package/components/Buttons/Buttons.d.ts +24 -0
  139. package/components/Buttons/Buttons.js +77 -0
  140. package/components/Buttons/Buttons.js.map +1 -0
  141. package/components/Buttons/Buttons.styles.d.ts +4 -0
  142. package/components/Buttons/Buttons.styles.js +17 -0
  143. package/components/Buttons/Buttons.styles.js.map +1 -0
  144. package/components/Buttons/index.d.ts +2 -0
  145. package/components/Buttons/index.js +4 -0
  146. package/components/Buttons/index.js.map +1 -0
  147. package/components/Buttons/useButtons.d.ts +14 -0
  148. package/components/Buttons/useButtons.js +24 -0
  149. package/components/Buttons/useButtons.js.map +1 -0
  150. package/components/Dialogs/Dialog.d.ts +21 -0
  151. package/components/Dialogs/Dialog.js +62 -0
  152. package/components/Dialogs/Dialog.js.map +1 -0
  153. package/components/Dialogs/DialogsContext.d.ts +38 -0
  154. package/components/Dialogs/DialogsContext.js +132 -0
  155. package/components/Dialogs/DialogsContext.js.map +1 -0
  156. package/components/Dialogs/useDialogs.d.ts +2 -0
  157. package/components/Dialogs/useDialogs.js +11 -0
  158. package/components/Dialogs/useDialogs.js.map +1 -0
  159. package/components/EmptyView.d.ts +4 -4
  160. package/components/EmptyView.js +30 -58
  161. package/components/EmptyView.js.map +1 -1
  162. package/components/Filters/Filters.d.ts +16 -0
  163. package/components/Filters/Filters.js +21 -0
  164. package/components/Filters/Filters.js.map +1 -0
  165. package/components/Filters/FiltersToggle.d.ts +7 -0
  166. package/components/Filters/FiltersToggle.js +26 -0
  167. package/components/Filters/FiltersToggle.js.map +1 -0
  168. package/components/Filters/index.d.ts +2 -0
  169. package/components/Filters/index.js +4 -0
  170. package/components/Filters/index.js.map +1 -0
  171. package/components/FloatingActionButton.d.ts +4 -1
  172. package/components/FloatingActionButton.js +9 -14
  173. package/components/FloatingActionButton.js.map +1 -1
  174. package/components/FloatingPanel.d.ts +13 -0
  175. package/components/FloatingPanel.js +94 -0
  176. package/components/FloatingPanel.js.map +1 -0
  177. package/components/IconPicker/IconPicker.d.ts +13 -0
  178. package/components/IconPicker/IconPicker.js +39 -0
  179. package/components/IconPicker/IconPicker.js.map +1 -0
  180. package/components/IconPicker/IconPickerComponent.d.ts +17 -0
  181. package/components/IconPicker/IconPickerComponent.js +81 -0
  182. package/components/IconPicker/IconPickerComponent.js.map +1 -0
  183. package/components/IconPicker/IconPickerPresenter.d.ts +53 -0
  184. package/components/IconPicker/IconPickerPresenter.js +77 -0
  185. package/components/IconPicker/IconPickerPresenter.js.map +1 -0
  186. package/components/IconPicker/IconPickerPresenter.test.d.ts +1 -0
  187. package/components/IconPicker/IconPickerPresenter.test.js +110 -0
  188. package/components/IconPicker/IconPickerPresenter.test.js.map +1 -0
  189. package/components/IconPicker/IconPickerPresenterProvider.d.ts +9 -0
  190. package/components/IconPicker/IconPickerPresenterProvider.js +19 -0
  191. package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -0
  192. package/components/IconPicker/IconPickerTab.d.ts +33 -0
  193. package/components/IconPicker/IconPickerTab.js +159 -0
  194. package/components/IconPicker/IconPickerTab.js.map +1 -0
  195. package/components/IconPicker/IconRenderer.d.ts +34 -0
  196. package/components/IconPicker/IconRenderer.js +27 -0
  197. package/components/IconPicker/IconRenderer.js.map +1 -0
  198. package/components/IconPicker/IconRepository.d.ts +19 -0
  199. package/components/IconPicker/IconRepository.js +47 -0
  200. package/components/IconPicker/IconRepository.js.map +1 -0
  201. package/components/IconPicker/IconRepository.test.d.ts +1 -0
  202. package/components/IconPicker/IconRepository.test.js +67 -0
  203. package/components/IconPicker/IconRepository.test.js.map +1 -0
  204. package/components/IconPicker/IconRepositoryFactory.d.ts +9 -0
  205. package/components/IconPicker/IconRepositoryFactory.js +17 -0
  206. package/components/IconPicker/IconRepositoryFactory.js.map +1 -0
  207. package/components/IconPicker/Loading.d.ts +14 -0
  208. package/components/IconPicker/Loading.js +50 -0
  209. package/components/IconPicker/Loading.js.map +1 -0
  210. package/components/IconPicker/components/IconPickerCell.d.ts +12 -0
  211. package/components/IconPicker/components/IconPickerCell.js +27 -0
  212. package/components/IconPicker/components/IconPickerCell.js.map +1 -0
  213. package/components/IconPicker/components/IconPickerContent.d.ts +11 -0
  214. package/components/IconPicker/components/IconPickerContent.js +41 -0
  215. package/components/IconPicker/components/IconPickerContent.js.map +1 -0
  216. package/components/IconPicker/components/IconPickerRow.d.ts +4 -0
  217. package/components/IconPicker/components/IconPickerRow.js +14 -0
  218. package/components/IconPicker/components/IconPickerRow.js.map +1 -0
  219. package/components/IconPicker/components/IconPickerTrigger.d.ts +13 -0
  220. package/components/IconPicker/components/IconPickerTrigger.js +52 -0
  221. package/components/IconPicker/components/IconPickerTrigger.js.map +1 -0
  222. package/components/IconPicker/components/index.d.ts +4 -0
  223. package/components/IconPicker/components/index.js +6 -0
  224. package/components/IconPicker/components/index.js.map +1 -0
  225. package/components/IconPicker/config/Emojis.d.ts +2 -0
  226. package/components/IconPicker/config/Emojis.js +24 -0
  227. package/components/IconPicker/config/Emojis.js.map +1 -0
  228. package/components/IconPicker/config/FontAwesomeIcons.d.ts +2 -0
  229. package/components/IconPicker/config/FontAwesomeIcons.js +61 -0
  230. package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -0
  231. package/components/IconPicker/config/IconPackProvider.d.ts +7 -0
  232. package/components/IconPicker/config/IconPackProvider.js +23 -0
  233. package/components/IconPicker/config/IconPackProvider.js.map +1 -0
  234. package/components/IconPicker/config/IconType.d.ts +32 -0
  235. package/components/IconPicker/config/IconType.js +89 -0
  236. package/components/IconPicker/config/IconType.js.map +1 -0
  237. package/components/IconPicker/config/index.d.ts +31 -0
  238. package/components/IconPicker/config/index.js +45 -0
  239. package/components/IconPicker/config/index.js.map +1 -0
  240. package/components/IconPicker/defaultIcon.d.ts +6 -0
  241. package/components/IconPicker/defaultIcon.js +8 -0
  242. package/components/IconPicker/defaultIcon.js.map +1 -0
  243. package/components/IconPicker/index.d.ts +7 -0
  244. package/components/IconPicker/index.js +8 -0
  245. package/components/IconPicker/index.js.map +1 -0
  246. package/components/IconPicker/plugins/customPlugin.d.ts +2 -0
  247. package/components/IconPicker/plugins/customPlugin.js +127 -0
  248. package/components/IconPicker/plugins/customPlugin.js.map +1 -0
  249. package/components/IconPicker/plugins/emojisPlugin.d.ts +2 -0
  250. package/components/IconPicker/plugins/emojisPlugin.js +127 -0
  251. package/components/IconPicker/plugins/emojisPlugin.js.map +1 -0
  252. package/components/IconPicker/plugins/graphql.d.ts +20 -0
  253. package/components/IconPicker/plugins/graphql.js +27 -0
  254. package/components/IconPicker/plugins/graphql.js.map +1 -0
  255. package/components/IconPicker/plugins/iconsPlugin.d.ts +2 -0
  256. package/components/IconPicker/plugins/iconsPlugin.js +115 -0
  257. package/components/IconPicker/plugins/iconsPlugin.js.map +1 -0
  258. package/components/IconPicker/types.d.ts +22 -0
  259. package/components/IconPicker/types.js +10 -0
  260. package/components/IconPicker/types.js.map +1 -0
  261. package/components/LexicalEditor/LexicalEditor.d.ts +12 -0
  262. package/components/LexicalEditor/LexicalEditor.js +40 -0
  263. package/components/LexicalEditor/LexicalEditor.js.map +1 -0
  264. package/components/LexicalEditor/index.d.ts +2 -0
  265. package/components/LexicalEditor/index.js +4 -0
  266. package/components/LexicalEditor/index.js.map +1 -0
  267. package/components/LexicalEditor/lexicalValueWithHtml.d.ts +7 -0
  268. package/components/LexicalEditor/lexicalValueWithHtml.js +36 -0
  269. package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -0
  270. package/components/MultiImageUpload.d.ts +1 -1
  271. package/components/MultiImageUpload.js +14 -32
  272. package/components/MultiImageUpload.js.map +1 -1
  273. package/components/NavigationPrompt.d.ts +27 -0
  274. package/components/NavigationPrompt.js +39 -0
  275. package/components/NavigationPrompt.js.map +1 -0
  276. package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -0
  277. package/components/NotAuthorizedError/NotAuthorizedError.js +20 -0
  278. package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
  279. package/components/NotAuthorizedError/SecureRouteError.svg +1 -0
  280. package/components/NotAuthorizedError/index.d.ts +1 -0
  281. package/components/NotAuthorizedError/index.js +3 -0
  282. package/components/NotAuthorizedError/index.js.map +1 -0
  283. package/components/OptionsMenu/OptionsMenu.d.ts +10 -0
  284. package/components/OptionsMenu/OptionsMenu.js +23 -0
  285. package/components/OptionsMenu/OptionsMenu.js.map +1 -0
  286. package/components/OptionsMenu/OptionsMenuItem.d.ts +10 -0
  287. package/components/OptionsMenu/OptionsMenuItem.js +17 -0
  288. package/components/OptionsMenu/OptionsMenuItem.js.map +1 -0
  289. package/components/OptionsMenu/OptionsMenuLink.d.ts +12 -0
  290. package/components/OptionsMenu/OptionsMenuLink.js +17 -0
  291. package/components/OptionsMenu/OptionsMenuLink.js.map +1 -0
  292. package/components/OptionsMenu/index.d.ts +4 -0
  293. package/components/OptionsMenu/index.js +6 -0
  294. package/components/OptionsMenu/index.js.map +1 -0
  295. package/components/OptionsMenu/useOptionsMenuItem.d.ts +13 -0
  296. package/components/OptionsMenu/useOptionsMenuItem.js +23 -0
  297. package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -0
  298. package/components/OverlayLayout/OverlayLayout.d.ts +6 -17
  299. package/components/OverlayLayout/OverlayLayout.js +43 -154
  300. package/components/OverlayLayout/OverlayLayout.js.map +1 -1
  301. package/components/OverlayLayout/components/OverlayBackdrop.d.ts +7 -0
  302. package/components/OverlayLayout/components/OverlayBackdrop.js +15 -0
  303. package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -0
  304. package/components/OverlayLayout/components/OverlayContent.d.ts +6 -0
  305. package/components/OverlayLayout/components/OverlayContent.js +21 -0
  306. package/components/OverlayLayout/components/OverlayContent.js.map +1 -0
  307. package/components/OverlayLayout/components/OverlayHeader.d.ts +13 -0
  308. package/components/OverlayLayout/components/OverlayHeader.js +44 -0
  309. package/components/OverlayLayout/components/OverlayHeader.js.map +1 -0
  310. package/components/OverlayLayout/components/OverlayRoot.d.ts +9 -0
  311. package/components/OverlayLayout/components/OverlayRoot.js +19 -0
  312. package/components/OverlayLayout/components/OverlayRoot.js.map +1 -0
  313. package/components/OverlayLayout/components/index.d.ts +4 -0
  314. package/components/OverlayLayout/components/index.js +6 -0
  315. package/components/OverlayLayout/components/index.js.map +1 -0
  316. package/components/OverlayLayout/index.d.ts +1 -1
  317. package/components/OverlayLayout/index.js +2 -15
  318. package/components/OverlayLayout/index.js.map +1 -1
  319. package/components/Permissions/CannotUseAaclAlert.d.ts +2 -0
  320. package/components/Permissions/CannotUseAaclAlert.js +14 -0
  321. package/components/Permissions/CannotUseAaclAlert.js.map +1 -0
  322. package/components/Permissions/Permissions.d.ts +3 -3
  323. package/components/Permissions/Permissions.js +39 -49
  324. package/components/Permissions/Permissions.js.map +1 -1
  325. package/components/Permissions/PermissionsGroup.d.ts +6 -0
  326. package/components/Permissions/PermissionsGroup.js +18 -0
  327. package/components/Permissions/PermissionsGroup.js.map +1 -0
  328. package/components/Permissions/StyledComponents.d.ts +2 -3
  329. package/components/Permissions/StyledComponents.js +14 -28
  330. package/components/Permissions/StyledComponents.js.map +1 -1
  331. package/components/Permissions/index.d.ts +4 -2
  332. package/components/Permissions/index.js +5 -26
  333. package/components/Permissions/index.js.map +1 -1
  334. package/components/RegisterFeature.d.ts +11 -0
  335. package/components/RegisterFeature.js +26 -0
  336. package/components/RegisterFeature.js.map +1 -0
  337. package/components/ResizablePanels/index.d.ts +1 -0
  338. package/components/ResizablePanels/index.js +3 -0
  339. package/components/ResizablePanels/index.js.map +1 -0
  340. package/components/RoleAutocomplete/graphql.d.ts +1 -0
  341. package/components/RoleAutocomplete/graphql.js +18 -0
  342. package/components/RoleAutocomplete/graphql.js.map +1 -0
  343. package/components/RoleAutocomplete/index.d.ts +5 -0
  344. package/components/RoleAutocomplete/index.js +18 -0
  345. package/components/RoleAutocomplete/index.js.map +1 -0
  346. package/components/RolesMultiAutocomplete/graphql.d.ts +1 -0
  347. package/components/RolesMultiAutocomplete/graphql.js +23 -0
  348. package/components/RolesMultiAutocomplete/graphql.js.map +1 -0
  349. package/components/RolesMultiAutocomplete/index.d.ts +5 -0
  350. package/components/RolesMultiAutocomplete/index.js +19 -0
  351. package/components/RolesMultiAutocomplete/index.js.map +1 -0
  352. package/components/SearchUI.d.ts +2 -2
  353. package/components/SearchUI.js +24 -69
  354. package/components/SearchUI.js.map +1 -1
  355. package/components/SimpleForm/SimpleForm.d.ts +19 -8
  356. package/components/SimpleForm/SimpleForm.js +74 -70
  357. package/components/SimpleForm/SimpleForm.js.map +1 -1
  358. package/components/SimpleForm/index.d.ts +1 -1
  359. package/components/SimpleForm/index.js +2 -29
  360. package/components/SimpleForm/index.js.map +1 -1
  361. package/components/SimpleUI/InputField.d.ts +3 -3
  362. package/components/SimpleUI/InputField.js +43 -50
  363. package/components/SimpleUI/InputField.js.map +1 -1
  364. package/components/SingleImageUpload.d.ts +21 -8
  365. package/components/SingleImageUpload.js +41 -77
  366. package/components/SingleImageUpload.js.map +1 -1
  367. package/components/SplitView/SplitView.d.ts +11 -9
  368. package/components/SplitView/SplitView.js +61 -72
  369. package/components/SplitView/SplitView.js.map +1 -1
  370. package/components/SplitView/index.d.ts +1 -1
  371. package/components/SplitView/index.js +2 -23
  372. package/components/SplitView/index.js.map +1 -1
  373. package/components/StateInspector.d.ts +8 -0
  374. package/components/StateInspector.js +36 -0
  375. package/components/StateInspector.js.map +1 -0
  376. package/components/TeamAutocomplete/graphql.d.ts +1 -0
  377. package/components/TeamAutocomplete/graphql.js +18 -0
  378. package/components/TeamAutocomplete/graphql.js.map +1 -0
  379. package/components/TeamAutocomplete/index.d.ts +5 -0
  380. package/components/TeamAutocomplete/index.js +18 -0
  381. package/components/TeamAutocomplete/index.js.map +1 -0
  382. package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
  383. package/components/TeamsMultiAutocomplete/graphql.js +23 -0
  384. package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
  385. package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
  386. package/components/TeamsMultiAutocomplete/index.js +19 -0
  387. package/components/TeamsMultiAutocomplete/index.js.map +1 -0
  388. package/components/Wcp.d.ts +15 -0
  389. package/components/Wcp.js +34 -0
  390. package/components/Wcp.js.map +1 -0
  391. package/components/index.d.ts +27 -1
  392. package/components/index.js +28 -11
  393. package/components/index.js.map +1 -1
  394. package/config/AdminConfig/Dashboard.d.ts +3 -0
  395. package/config/AdminConfig/Dashboard.js +6 -0
  396. package/config/AdminConfig/Dashboard.js.map +1 -0
  397. package/config/AdminConfig/LexicalTheme/Color.d.ts +11 -0
  398. package/config/AdminConfig/LexicalTheme/Color.js +45 -0
  399. package/config/AdminConfig/LexicalTheme/Color.js.map +1 -0
  400. package/config/AdminConfig/LexicalTheme/Typography.d.ts +30 -0
  401. package/config/AdminConfig/LexicalTheme/Typography.js +79 -0
  402. package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -0
  403. package/config/AdminConfig/LexicalTheme.d.ts +9 -0
  404. package/config/AdminConfig/LexicalTheme.js +8 -0
  405. package/config/AdminConfig/LexicalTheme.js.map +1 -0
  406. package/config/AdminConfig/Logo.d.ts +24 -0
  407. package/config/AdminConfig/Logo.js +21 -0
  408. package/config/AdminConfig/Logo.js.map +1 -0
  409. package/config/AdminConfig/Menu/MenuGroup.d.ts +62 -0
  410. package/config/AdminConfig/Menu/MenuGroup.js +14 -0
  411. package/config/AdminConfig/Menu/MenuGroup.js.map +1 -0
  412. package/config/AdminConfig/Menu/MenuItem.d.ts +43 -0
  413. package/config/AdminConfig/Menu/MenuItem.js +14 -0
  414. package/config/AdminConfig/Menu/MenuItem.js.map +1 -0
  415. package/config/AdminConfig/Menu/MenuLink.d.ts +43 -0
  416. package/config/AdminConfig/Menu/MenuLink.js +24 -0
  417. package/config/AdminConfig/Menu/MenuLink.js.map +1 -0
  418. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +43 -0
  419. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +13 -0
  420. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -0
  421. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +24 -0
  422. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +13 -0
  423. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -0
  424. package/config/AdminConfig/Menu/SupportMenu.d.ts +72 -0
  425. package/config/AdminConfig/Menu/SupportMenu.js +49 -0
  426. package/config/AdminConfig/Menu/SupportMenu.js.map +1 -0
  427. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +40 -0
  428. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +7 -0
  429. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -0
  430. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +40 -0
  431. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +7 -0
  432. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -0
  433. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -0
  434. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +3 -0
  435. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -0
  436. package/config/AdminConfig/Menu/UserMenu/types.d.ts +7 -0
  437. package/config/AdminConfig/Menu/UserMenu/types.js +3 -0
  438. package/config/AdminConfig/Menu/UserMenu/types.js.map +1 -0
  439. package/config/AdminConfig/Menu/UserMenu.d.ts +129 -0
  440. package/config/AdminConfig/Menu/UserMenu.js +61 -0
  441. package/config/AdminConfig/Menu/UserMenu.js.map +1 -0
  442. package/config/AdminConfig/Menu/types.d.ts +7 -0
  443. package/config/AdminConfig/Menu/types.js +3 -0
  444. package/config/AdminConfig/Menu/types.js.map +1 -0
  445. package/config/AdminConfig/Menu.d.ts +352 -0
  446. package/config/AdminConfig/Menu.js +85 -0
  447. package/config/AdminConfig/Menu.js.map +1 -0
  448. package/config/AdminConfig/Route.d.ts +3 -0
  449. package/config/AdminConfig/Route.js +8 -0
  450. package/config/AdminConfig/Route.js.map +1 -0
  451. package/config/AdminConfig/Tenant/TenantLogo.d.ts +24 -0
  452. package/config/AdminConfig/Tenant/TenantLogo.js +24 -0
  453. package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -0
  454. package/config/AdminConfig/Tenant/TenantName.d.ts +23 -0
  455. package/config/AdminConfig/Tenant/TenantName.js +19 -0
  456. package/config/AdminConfig/Tenant/TenantName.js.map +1 -0
  457. package/config/AdminConfig/Tenant.d.ts +49 -0
  458. package/config/AdminConfig/Tenant.js +14 -0
  459. package/config/AdminConfig/Tenant.js.map +1 -0
  460. package/config/AdminConfig/Theme/assignColor.d.ts +2 -0
  461. package/config/AdminConfig/Theme/assignColor.js +22 -0
  462. package/config/AdminConfig/Theme/assignColor.js.map +1 -0
  463. package/config/AdminConfig/Theme/consts.d.ts +2 -0
  464. package/config/AdminConfig/Theme/consts.js +4 -0
  465. package/config/AdminConfig/Theme/consts.js.map +1 -0
  466. package/config/AdminConfig/Theme/types.d.ts +3 -0
  467. package/config/AdminConfig/Theme/types.js +3 -0
  468. package/config/AdminConfig/Theme/types.js.map +1 -0
  469. package/config/AdminConfig/Theme.d.ts +16 -0
  470. package/config/AdminConfig/Theme.js +22 -0
  471. package/config/AdminConfig/Theme.js.map +1 -0
  472. package/config/AdminConfig/Title.d.ts +23 -0
  473. package/config/AdminConfig/Title.js +16 -0
  474. package/config/AdminConfig/Title.js.map +1 -0
  475. package/config/AdminConfig/Widget.d.ts +15 -0
  476. package/config/AdminConfig/Widget.js +36 -0
  477. package/config/AdminConfig/Widget.js.map +1 -0
  478. package/config/AdminConfig.d.ts +479 -0
  479. package/config/AdminConfig.js +68 -0
  480. package/config/AdminConfig.js.map +1 -0
  481. package/config/createAdminConfig.d.ts +57 -0
  482. package/config/createAdminConfig.js +94 -0
  483. package/config/createAdminConfig.js.map +1 -0
  484. package/css/tokens.css +379 -0
  485. package/css/typography.css +70 -0
  486. package/domain/Identity.d.ts +59 -0
  487. package/domain/Identity.js +96 -0
  488. package/domain/Identity.js.map +1 -0
  489. package/errors/ErrorOverlayNetworkErrorHandler.d.ts +11 -0
  490. package/errors/ErrorOverlayNetworkErrorHandler.js +66 -0
  491. package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -0
  492. package/errors/TenantIsDisabled.d.ts +2 -0
  493. package/errors/TenantIsDisabled.js +23 -0
  494. package/errors/TenantIsDisabled.js.map +1 -0
  495. package/exports/admin/buildParams.d.ts +1 -0
  496. package/exports/admin/buildParams.js +3 -0
  497. package/exports/admin/buildParams.js.map +1 -0
  498. package/exports/admin/configs.d.ts +1 -0
  499. package/exports/admin/configs.js +3 -0
  500. package/exports/admin/configs.js.map +1 -0
  501. package/exports/admin/security.d.ts +8 -0
  502. package/exports/admin/security.js +10 -0
  503. package/exports/admin/security.js.map +1 -0
  504. package/exports/admin/tenancy.d.ts +2 -0
  505. package/exports/admin/tenancy.js +4 -0
  506. package/exports/admin/tenancy.js.map +1 -0
  507. package/exports/admin/ui.d.ts +3 -0
  508. package/exports/admin/ui.js +5 -0
  509. package/exports/admin/ui.js.map +1 -0
  510. package/exports/admin.d.ts +3 -0
  511. package/exports/admin.js +5 -0
  512. package/exports/admin.js.map +1 -0
  513. package/extensions/AdminBuildParam.d.ts +11 -0
  514. package/extensions/AdminBuildParam.js +184 -0
  515. package/extensions/AdminBuildParam.js.map +1 -0
  516. package/extensions/AdminExtension.d.ts +11 -0
  517. package/extensions/AdminExtension.js +105 -0
  518. package/extensions/AdminExtension.js.map +1 -0
  519. package/extensions/index.d.ts +23 -0
  520. package/extensions/index.js +7 -0
  521. package/extensions/index.js.map +1 -0
  522. package/features/apolloClient/abstraction.d.ts +5 -0
  523. package/features/apolloClient/abstraction.js +4 -0
  524. package/features/apolloClient/abstraction.js.map +1 -0
  525. package/features/apolloClient/feature.d.ts +2 -0
  526. package/features/apolloClient/feature.js +39 -0
  527. package/features/apolloClient/feature.js.map +1 -0
  528. package/features/buildParams/BuildParams.d.ts +9 -0
  529. package/features/buildParams/BuildParams.js +18 -0
  530. package/features/buildParams/BuildParams.js.map +1 -0
  531. package/features/buildParams/abstractions.d.ts +15 -0
  532. package/features/buildParams/abstractions.js +5 -0
  533. package/features/buildParams/abstractions.js.map +1 -0
  534. package/features/buildParams/feature.d.ts +1 -0
  535. package/features/buildParams/feature.js +10 -0
  536. package/features/buildParams/feature.js.map +1 -0
  537. package/features/buildParams/index.d.ts +2 -0
  538. package/features/buildParams/index.js +4 -0
  539. package/features/buildParams/index.js.map +1 -0
  540. package/features/security/AuthenticationContext/AuthenticationContext.d.ts +15 -0
  541. package/features/security/AuthenticationContext/AuthenticationContext.js +31 -0
  542. package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -0
  543. package/features/security/AuthenticationContext/GraphQLClientDecorator.d.ts +12 -0
  544. package/features/security/AuthenticationContext/GraphQLClientDecorator.js +30 -0
  545. package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -0
  546. package/features/security/AuthenticationContext/InternalIdTokenProvider.d.ts +10 -0
  547. package/features/security/AuthenticationContext/InternalIdTokenProvider.js +17 -0
  548. package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -0
  549. package/features/security/AuthenticationContext/abstractions.d.ts +26 -0
  550. package/features/security/AuthenticationContext/abstractions.js +5 -0
  551. package/features/security/AuthenticationContext/abstractions.js.map +1 -0
  552. package/features/security/AuthenticationContext/feature.d.ts +3 -0
  553. package/features/security/AuthenticationContext/feature.js +20 -0
  554. package/features/security/AuthenticationContext/feature.js.map +1 -0
  555. package/features/security/AuthenticationContext/index.d.ts +1 -0
  556. package/features/security/AuthenticationContext/index.js +3 -0
  557. package/features/security/AuthenticationContext/index.js.map +1 -0
  558. package/features/security/AuthenticationContext/types.d.ts +11 -0
  559. package/features/security/AuthenticationContext/types.js +3 -0
  560. package/features/security/AuthenticationContext/types.js.map +1 -0
  561. package/features/security/IdentityContext/IdentityContext.d.ts +13 -0
  562. package/features/security/IdentityContext/IdentityContext.js +24 -0
  563. package/features/security/IdentityContext/IdentityContext.js.map +1 -0
  564. package/features/security/IdentityContext/abstractions.d.ts +10 -0
  565. package/features/security/IdentityContext/abstractions.js +4 -0
  566. package/features/security/IdentityContext/abstractions.js.map +1 -0
  567. package/features/security/IdentityContext/feature.d.ts +3 -0
  568. package/features/security/IdentityContext/feature.js +16 -0
  569. package/features/security/IdentityContext/feature.js.map +1 -0
  570. package/features/security/IdentityContext/index.d.ts +2 -0
  571. package/features/security/IdentityContext/index.js +4 -0
  572. package/features/security/IdentityContext/index.js.map +1 -0
  573. package/features/security/LogIn/IdentityMapper.d.ts +9 -0
  574. package/features/security/LogIn/IdentityMapper.js +13 -0
  575. package/features/security/LogIn/IdentityMapper.js.map +1 -0
  576. package/features/security/LogIn/LogInGateway.d.ts +11 -0
  577. package/features/security/LogIn/LogInGateway.js +27 -0
  578. package/features/security/LogIn/LogInGateway.js.map +1 -0
  579. package/features/security/LogIn/LogInRepository.d.ts +14 -0
  580. package/features/security/LogIn/LogInRepository.js +19 -0
  581. package/features/security/LogIn/LogInRepository.js.map +1 -0
  582. package/features/security/LogIn/LogInUseCase.d.ts +15 -0
  583. package/features/security/LogIn/LogInUseCase.js +40 -0
  584. package/features/security/LogIn/LogInUseCase.js.map +1 -0
  585. package/features/security/LogIn/abstractions.d.ts +48 -0
  586. package/features/security/LogIn/abstractions.js +19 -0
  587. package/features/security/LogIn/abstractions.js.map +1 -0
  588. package/features/security/LogIn/createLoginMutation.d.ts +1 -0
  589. package/features/security/LogIn/createLoginMutation.js +49 -0
  590. package/features/security/LogIn/createLoginMutation.js.map +1 -0
  591. package/features/security/LogIn/feature.d.ts +3 -0
  592. package/features/security/LogIn/feature.js +22 -0
  593. package/features/security/LogIn/feature.js.map +1 -0
  594. package/features/security/LogIn/index.d.ts +1 -0
  595. package/features/security/LogIn/index.js +3 -0
  596. package/features/security/LogIn/index.js.map +1 -0
  597. package/features/security/LogOut/LogOutUseCase.d.ts +13 -0
  598. package/features/security/LogOut/LogOutUseCase.js +23 -0
  599. package/features/security/LogOut/LogOutUseCase.js.map +1 -0
  600. package/features/security/LogOut/abstractions.d.ts +7 -0
  601. package/features/security/LogOut/abstractions.js +4 -0
  602. package/features/security/LogOut/abstractions.js.map +1 -0
  603. package/features/security/LogOut/feature.d.ts +3 -0
  604. package/features/security/LogOut/feature.js +16 -0
  605. package/features/security/LogOut/feature.js.map +1 -0
  606. package/features/security/LogOut/index.d.ts +2 -0
  607. package/features/security/LogOut/index.js +4 -0
  608. package/features/security/LogOut/index.js.map +1 -0
  609. package/features/security/SecurityFeature.d.ts +1 -0
  610. package/features/security/SecurityFeature.js +16 -0
  611. package/features/security/SecurityFeature.js.map +1 -0
  612. package/features/telemetry/TelemetryService.d.ts +6 -0
  613. package/features/telemetry/TelemetryService.js +20 -0
  614. package/features/telemetry/TelemetryService.js.map +1 -0
  615. package/features/telemetry/abstractions.d.ts +7 -0
  616. package/features/telemetry/abstractions.js +4 -0
  617. package/features/telemetry/abstractions.js.map +1 -0
  618. package/features/telemetry/feature.d.ts +3 -0
  619. package/features/telemetry/feature.js +16 -0
  620. package/features/telemetry/feature.js.map +1 -0
  621. package/features/telemetry/index.d.ts +2 -0
  622. package/features/telemetry/index.js +4 -0
  623. package/features/telemetry/index.js.map +1 -0
  624. package/features/tenancy/GraphQLClientDecorator.d.ts +12 -0
  625. package/features/tenancy/GraphQLClientDecorator.js +27 -0
  626. package/features/tenancy/GraphQLClientDecorator.js.map +1 -0
  627. package/features/tenancy/TenantContext.d.ts +17 -0
  628. package/features/tenancy/TenantContext.js +61 -0
  629. package/features/tenancy/TenantContext.js.map +1 -0
  630. package/features/tenancy/abstractions.d.ts +14 -0
  631. package/features/tenancy/abstractions.js +4 -0
  632. package/features/tenancy/abstractions.js.map +1 -0
  633. package/features/tenancy/feature.d.ts +5 -0
  634. package/features/tenancy/feature.js +41 -0
  635. package/features/tenancy/feature.js.map +1 -0
  636. package/features/tenancy/types.d.ts +4 -0
  637. package/features/tenancy/types.js +3 -0
  638. package/features/tenancy/types.js.map +1 -0
  639. package/features/wcp/ReactLicense.d.ts +18 -0
  640. package/features/wcp/ReactLicense.js +43 -0
  641. package/features/wcp/ReactLicense.js.map +1 -0
  642. package/features/wcp/WcpGateway.d.ts +10 -0
  643. package/features/wcp/WcpGateway.js +73 -0
  644. package/features/wcp/WcpGateway.js.map +1 -0
  645. package/features/wcp/WcpService.d.ts +20 -0
  646. package/features/wcp/WcpService.js +84 -0
  647. package/features/wcp/WcpService.js.map +1 -0
  648. package/features/wcp/abstractions.d.ts +19 -0
  649. package/features/wcp/abstractions.js +5 -0
  650. package/features/wcp/abstractions.js.map +1 -0
  651. package/features/wcp/feature.d.ts +3 -0
  652. package/features/wcp/feature.js +18 -0
  653. package/features/wcp/feature.js.map +1 -0
  654. package/features/wcp/types.d.ts +21 -0
  655. package/features/wcp/types.js +3 -0
  656. package/features/wcp/types.js.map +1 -0
  657. package/hooks/index.d.ts +11 -0
  658. package/hooks/index.js +13 -0
  659. package/hooks/index.js.map +1 -0
  660. package/hooks/useConfirmationDialog.d.ts +5 -3
  661. package/hooks/useConfirmationDialog.js +28 -34
  662. package/hooks/useConfirmationDialog.js.map +1 -1
  663. package/hooks/useDialog.d.ts +21 -2
  664. package/hooks/useDialog.js +18 -22
  665. package/hooks/useDialog.js.map +1 -1
  666. package/hooks/useIsMounted.d.ts +3 -0
  667. package/hooks/useIsMounted.js +15 -0
  668. package/hooks/useIsMounted.js.map +1 -0
  669. package/hooks/useKeyHandler.d.ts +8 -0
  670. package/hooks/useKeyHandler.js +64 -0
  671. package/hooks/useKeyHandler.js.map +1 -0
  672. package/hooks/useModKey.d.ts +1 -0
  673. package/hooks/useModKey.js +29 -0
  674. package/hooks/useModKey.js.map +1 -0
  675. package/hooks/useShiftKey.d.ts +1 -0
  676. package/hooks/useShiftKey.js +33 -0
  677. package/hooks/useShiftKey.js.map +1 -0
  678. package/hooks/useSnackbar.d.ts +1 -0
  679. package/hooks/useSnackbar.js +25 -26
  680. package/hooks/useSnackbar.js.map +1 -1
  681. package/hooks/useStateIfMounted.d.ts +1 -0
  682. package/hooks/useStateIfMounted.js +16 -0
  683. package/hooks/useStateIfMounted.js.map +1 -0
  684. package/hooks/useStateWithCallback.d.ts +5 -0
  685. package/hooks/useStateWithCallback.js +18 -0
  686. package/hooks/useStateWithCallback.js.map +1 -0
  687. package/hooks/useToggler.d.ts +7 -0
  688. package/hooks/useToggler.js +15 -0
  689. package/hooks/useToggler.js.map +1 -0
  690. package/index.d.ts +33 -32
  691. package/index.js +43 -312
  692. package/index.js.map +1 -1
  693. package/lexical.css +2 -0
  694. package/package.json +66 -49
  695. package/plugins/MenuPlugin.d.ts +1 -1
  696. package/plugins/MenuPlugin.js +17 -41
  697. package/plugins/MenuPlugin.js.map +1 -1
  698. package/plugins/PermissionRendererPlugin.d.ts +1 -1
  699. package/plugins/PermissionRendererPlugin.js +17 -41
  700. package/plugins/PermissionRendererPlugin.js.map +1 -1
  701. package/presentation/installation/components/SystemInstaller/SystemInstaller.d.ts +8 -0
  702. package/presentation/installation/components/SystemInstaller/SystemInstaller.js +70 -0
  703. package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -0
  704. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.d.ts +2 -0
  705. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +17 -0
  706. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -0
  707. package/presentation/installation/components/SystemInstaller/index.d.ts +1 -0
  708. package/presentation/installation/components/SystemInstaller/index.js +3 -0
  709. package/presentation/installation/components/SystemInstaller/index.js.map +1 -0
  710. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +8 -0
  711. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +32 -0
  712. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -0
  713. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.d.ts +1 -0
  714. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +15 -0
  715. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -0
  716. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.d.ts +7 -0
  717. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +69 -0
  718. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -0
  719. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.d.ts +7 -0
  720. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +95 -0
  721. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -0
  722. package/presentation/installation/components/SystemInstaller/steps/Center.d.ts +4 -0
  723. package/presentation/installation/components/SystemInstaller/steps/Center.js +10 -0
  724. package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -0
  725. package/presentation/installation/components/SystemInstaller/steps/Container.d.ts +8 -0
  726. package/presentation/installation/components/SystemInstaller/steps/Container.js +28 -0
  727. package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -0
  728. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.d.ts +11 -0
  729. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +58 -0
  730. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -0
  731. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.d.ts +7 -0
  732. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +21 -0
  733. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -0
  734. package/presentation/installation/components/SystemInstaller/steps/introduction.svg +154 -0
  735. package/presentation/installation/components/SystemInstaller/steps/referralSources.d.ts +1 -0
  736. package/presentation/installation/components/SystemInstaller/steps/referralSources.js +3 -0
  737. package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -0
  738. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +10 -0
  739. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +63 -0
  740. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -0
  741. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.d.ts +24 -0
  742. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +138 -0
  743. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -0
  744. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.d.ts +11 -0
  745. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +30 -0
  746. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -0
  747. package/presentation/installation/presenters/SystemInstaller/abstractions.d.ts +59 -0
  748. package/presentation/installation/presenters/SystemInstaller/abstractions.js +6 -0
  749. package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -0
  750. package/presentation/installation/presenters/SystemInstaller/feature.d.ts +3 -0
  751. package/presentation/installation/presenters/SystemInstaller/feature.js +20 -0
  752. package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -0
  753. package/presentation/installation/presenters/SystemInstaller/index.d.ts +3 -0
  754. package/presentation/installation/presenters/SystemInstaller/index.js +4 -0
  755. package/presentation/installation/presenters/SystemInstaller/index.js.map +1 -0
  756. package/presentation/security/components/HasPermission.d.ts +10 -0
  757. package/presentation/security/components/HasPermission.js +31 -0
  758. package/presentation/security/components/HasPermission.js.map +1 -0
  759. package/presentation/security/components/SecureRoute.d.ts +7 -0
  760. package/presentation/security/components/SecureRoute.js +16 -0
  761. package/presentation/security/components/SecureRoute.js.map +1 -0
  762. package/presentation/security/hooks/useAuthentication.d.ts +9 -0
  763. package/presentation/security/hooks/useAuthentication.js +24 -0
  764. package/presentation/security/hooks/useAuthentication.js.map +1 -0
  765. package/presentation/security/hooks/useIdentity.d.ts +6 -0
  766. package/presentation/security/hooks/useIdentity.js +25 -0
  767. package/presentation/security/hooks/useIdentity.js.map +1 -0
  768. package/presentation/security/hooks/useSecurity.d.ts +10 -0
  769. package/presentation/security/hooks/useSecurity.js +28 -0
  770. package/presentation/security/hooks/useSecurity.js.map +1 -0
  771. package/presentation/tenancy/TenancyProvider.d.ts +6 -0
  772. package/presentation/tenancy/TenancyProvider.js +43 -0
  773. package/presentation/tenancy/TenancyProvider.js.map +1 -0
  774. package/presentation/tenancy/createTenancyProvider.d.ts +1 -0
  775. package/presentation/tenancy/createTenancyProvider.js +14 -0
  776. package/presentation/tenancy/createTenancyProvider.js.map +1 -0
  777. package/presentation/tenancy/useTenantContext.d.ts +5 -0
  778. package/presentation/tenancy/useTenantContext.js +24 -0
  779. package/presentation/tenancy/useTenantContext.js.map +1 -0
  780. package/presentation/wcp/WcpProvider.d.ts +7 -0
  781. package/presentation/wcp/WcpProvider.js +26 -0
  782. package/presentation/wcp/WcpProvider.js.map +1 -0
  783. package/presentation/wcp/useWcp.d.ts +2 -0
  784. package/presentation/wcp/useWcp.js +18 -0
  785. package/presentation/wcp/useWcp.js.map +1 -0
  786. package/routes.d.ts +6 -0
  787. package/routes.js +17 -0
  788. package/routes.js.map +1 -0
  789. package/styles.scss +7 -2
  790. package/types.d.ts +9 -84
  791. package/types.js +2 -4
  792. package/types.js.map +1 -1
  793. package/base/providers/TelemetryProvider.d.ts +0 -2
  794. package/base/providers/TelemetryProvider.js +0 -31
  795. package/base/providers/TelemetryProvider.js.map +0 -1
  796. package/base/providers/ViewCompositionProvider.d.ts +0 -17
  797. package/base/providers/ViewCompositionProvider.js +0 -57
  798. package/base/providers/ViewCompositionProvider.js.map +0 -1
  799. package/base/ui/LocaleSelector.d.ts +0 -2
  800. package/base/ui/LocaleSelector.js +0 -15
  801. package/base/ui/LocaleSelector.js.map +0 -1
  802. package/base/ui/Menu.d.ts +0 -31
  803. package/base/ui/Menu.js +0 -137
  804. package/base/ui/Menu.js.map +0 -1
  805. package/base/ui/Search.d.ts +0 -19
  806. package/base/ui/Search.js +0 -63
  807. package/base/ui/Search.js.map +0 -1
  808. package/components/AppInstaller/AppInstaller.d.ts +0 -7
  809. package/components/AppInstaller/AppInstaller.js +0 -117
  810. package/components/AppInstaller/AppInstaller.js.map +0 -1
  811. package/components/AppInstaller/Sidebar.d.ts +0 -9
  812. package/components/AppInstaller/Sidebar.js +0 -145
  813. package/components/AppInstaller/Sidebar.js.map +0 -1
  814. package/components/AppInstaller/assets/sign-in-divider.svg +0 -19
  815. package/components/AppInstaller/index.d.ts +0 -2
  816. package/components/AppInstaller/index.js +0 -22
  817. package/components/AppInstaller/index.js.map +0 -1
  818. package/components/AppInstaller/styled.d.ts +0 -21
  819. package/components/AppInstaller/styled.js +0 -87
  820. package/components/AppInstaller/styled.js.map +0 -1
  821. package/components/AppInstaller/useInstaller.d.ts +0 -25
  822. package/components/AppInstaller/useInstaller.js +0 -210
  823. package/components/AppInstaller/useInstaller.js.map +0 -1
  824. package/components/OverlayLayout/icons/close.svg +0 -13
  825. package/components/OverlayLayout/icons/navigate_before.svg +0 -16
  826. package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
  827. package/components/RichTextEditor/RichTextEditor.js +0 -23
  828. package/components/RichTextEditor/RichTextEditor.js.map +0 -1
  829. package/components/RichTextEditor/index.d.ts +0 -2
  830. package/components/RichTextEditor/index.js +0 -19
  831. package/components/RichTextEditor/index.js.map +0 -1
  832. package/components/RichTextEditor/styles.scss +0 -96
  833. package/components/RichTextEditor/tools/header/index.d.ts +0 -229
  834. package/components/RichTextEditor/tools/header/index.js +0 -691
  835. package/components/RichTextEditor/tools/header/index.js.map +0 -1
  836. package/components/RichTextEditor/tools/header/styles.scss +0 -48
  837. package/components/RichTextEditor/tools/image/index.d.ts +0 -124
  838. package/components/RichTextEditor/tools/image/index.js +0 -244
  839. package/components/RichTextEditor/tools/image/index.js.map +0 -1
  840. package/components/RichTextEditor/tools/image/styles.scss +0 -90
  841. package/components/RichTextEditor/tools/image/svgs.d.ts +0 -6
  842. package/components/RichTextEditor/tools/image/svgs.js +0 -12
  843. package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
  844. package/components/RichTextEditor/tools/image/tunes.d.ts +0 -57
  845. package/components/RichTextEditor/tools/image/tunes.js +0 -129
  846. package/components/RichTextEditor/tools/image/tunes.js.map +0 -1
  847. package/components/RichTextEditor/tools/image/types.d.ts +0 -29
  848. package/components/RichTextEditor/tools/image/types.js +0 -5
  849. package/components/RichTextEditor/tools/image/types.js.map +0 -1
  850. package/components/RichTextEditor/tools/image/ui.d.ts +0 -122
  851. package/components/RichTextEditor/tools/image/ui.js +0 -278
  852. package/components/RichTextEditor/tools/image/ui.js.map +0 -1
  853. package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -209
  854. package/components/RichTextEditor/tools/paragraph/index.js +0 -488
  855. package/components/RichTextEditor/tools/paragraph/index.js.map +0 -1
  856. package/components/RichTextEditor/tools/paragraph/styles.scss +0 -29
  857. package/components/RichTextEditor/tools/textColor/index.d.ts +0 -64
  858. package/components/RichTextEditor/tools/textColor/index.js +0 -245
  859. package/components/RichTextEditor/tools/textColor/index.js.map +0 -1
  860. package/components/RichTextEditor/tools/textColor/styles.scss +0 -21
  861. package/components/RichTextEditor/tools/utils.d.ts +0 -19
  862. package/components/RichTextEditor/tools/utils.js +0 -31
  863. package/components/RichTextEditor/tools/utils.js.map +0 -1
  864. package/components/Routes.d.ts +0 -6
  865. package/components/Routes.js +0 -42
  866. package/components/Routes.js.map +0 -1
  867. package/plugins/globalSearch/SearchBar.d.ts +0 -15
  868. package/plugins/globalSearch/SearchBar.js +0 -225
  869. package/plugins/globalSearch/SearchBar.js.map +0 -1
  870. package/plugins/globalSearch/SearchBarDropdown.d.ts +0 -23
  871. package/plugins/globalSearch/SearchBarDropdown.js +0 -83
  872. package/plugins/globalSearch/SearchBarDropdown.js.map +0 -1
  873. package/plugins/globalSearch/icons/round-search-24px.svg +0 -20
  874. package/plugins/globalSearch/index.d.ts +0 -7
  875. package/plugins/globalSearch/index.js +0 -16
  876. package/plugins/globalSearch/index.js.map +0 -1
  877. package/plugins/globalSearch/styled.d.ts +0 -20
  878. package/plugins/globalSearch/styled.js +0 -131
  879. package/plugins/globalSearch/styled.js.map +0 -1
  880. package/plugins/uiLayoutRenderer/index.d.ts +0 -2
  881. package/plugins/uiLayoutRenderer/index.js +0 -61
  882. package/plugins/uiLayoutRenderer/index.js.map +0 -1
  883. package/styles/material-theme-assignments.scss +0 -350
  884. package/styles/material.scss +0 -43
  885. package/styles/theme.scss +0 -76
  886. package/ui/UIElement.d.ts +0 -2
  887. package/ui/UIElement.js +0 -18
  888. package/ui/UIElement.js.map +0 -1
  889. package/ui/UILayout.d.ts +0 -1
  890. package/ui/UILayout.js +0 -18
  891. package/ui/UILayout.js.map +0 -1
  892. package/ui/UIRenderer.d.ts +0 -2
  893. package/ui/UIRenderer.js +0 -12
  894. package/ui/UIRenderer.js.map +0 -1
  895. package/ui/UIView.d.ts +0 -2
  896. package/ui/UIView.js +0 -24
  897. package/ui/UIView.js.map +0 -1
  898. package/ui/elements/AccordionElement.d.ts +0 -27
  899. package/ui/elements/AccordionElement.js +0 -84
  900. package/ui/elements/AccordionElement.js.map +0 -1
  901. package/ui/elements/ButtonElement.d.ts +0 -24
  902. package/ui/elements/ButtonElement.js +0 -86
  903. package/ui/elements/ButtonElement.js.map +0 -1
  904. package/ui/elements/ButtonGroupElement.d.ts +0 -6
  905. package/ui/elements/ButtonGroupElement.js +0 -48
  906. package/ui/elements/ButtonGroupElement.js.map +0 -1
  907. package/ui/elements/GenericElement.d.ts +0 -1
  908. package/ui/elements/GenericElement.js +0 -16
  909. package/ui/elements/GenericElement.js.map +0 -1
  910. package/ui/elements/LabelElement.d.ts +0 -16
  911. package/ui/elements/LabelElement.js +0 -46
  912. package/ui/elements/LabelElement.js.map +0 -1
  913. package/ui/elements/NavigationMenuElement.d.ts +0 -33
  914. package/ui/elements/NavigationMenuElement.js +0 -144
  915. package/ui/elements/NavigationMenuElement.js.map +0 -1
  916. package/ui/elements/PanelElement.d.ts +0 -3
  917. package/ui/elements/PanelElement.js +0 -22
  918. package/ui/elements/PanelElement.js.map +0 -1
  919. package/ui/elements/PlaceholderElement.d.ts +0 -6
  920. package/ui/elements/PlaceholderElement.js +0 -33
  921. package/ui/elements/PlaceholderElement.js.map +0 -1
  922. package/ui/elements/SmallButtonElement.d.ts +0 -6
  923. package/ui/elements/SmallButtonElement.js +0 -45
  924. package/ui/elements/SmallButtonElement.js.map +0 -1
  925. package/ui/elements/TypographyElement.d.ts +0 -13
  926. package/ui/elements/TypographyElement.js +0 -48
  927. package/ui/elements/TypographyElement.js.map +0 -1
  928. package/ui/elements/ViewElement.d.ts +0 -1
  929. package/ui/elements/ViewElement.js +0 -16
  930. package/ui/elements/ViewElement.js.map +0 -1
  931. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -6
  932. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -44
  933. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
  934. package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -43
  935. package/ui/elements/form/DynamicFieldsetElement.js +0 -135
  936. package/ui/elements/form/DynamicFieldsetElement.js.map +0 -1
  937. package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +0 -4
  938. package/ui/elements/form/FileManagerElement/EmptyStateElement.js +0 -26
  939. package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
  940. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -7
  941. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -73
  942. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
  943. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -13
  944. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -104
  945. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
  946. package/ui/elements/form/FileManagerElement/styled.d.ts +0 -27
  947. package/ui/elements/form/FileManagerElement/styled.js +0 -115
  948. package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
  949. package/ui/elements/form/FileManagerElement.d.ts +0 -24
  950. package/ui/elements/form/FileManagerElement.js +0 -88
  951. package/ui/elements/form/FileManagerElement.js.map +0 -1
  952. package/ui/elements/form/FormElement.d.ts +0 -21
  953. package/ui/elements/form/FormElement.js +0 -45
  954. package/ui/elements/form/FormElement.js.map +0 -1
  955. package/ui/elements/form/FormFieldElement.d.ts +0 -56
  956. package/ui/elements/form/FormFieldElement.js +0 -173
  957. package/ui/elements/form/FormFieldElement.js.map +0 -1
  958. package/ui/elements/form/HiddenElement.d.ts +0 -6
  959. package/ui/elements/form/HiddenElement.js +0 -47
  960. package/ui/elements/form/HiddenElement.js.map +0 -1
  961. package/ui/elements/form/InputElement.d.ts +0 -7
  962. package/ui/elements/form/InputElement.js +0 -54
  963. package/ui/elements/form/InputElement.js.map +0 -1
  964. package/ui/elements/form/PasswordElement.d.ts +0 -6
  965. package/ui/elements/form/PasswordElement.js +0 -51
  966. package/ui/elements/form/PasswordElement.js.map +0 -1
  967. package/ui/elements/form/README.md +0 -2
  968. package/ui/elements/form/SelectElement.d.ts +0 -15
  969. package/ui/elements/form/SelectElement.js +0 -69
  970. package/ui/elements/form/SelectElement.js.map +0 -1
  971. package/ui/elements/form/TextareaElement.d.ts +0 -15
  972. package/ui/elements/form/TextareaElement.js +0 -55
  973. package/ui/elements/form/TextareaElement.js.map +0 -1
  974. package/ui/views/AdminView/ContentElement.d.ts +0 -4
  975. package/ui/views/AdminView/ContentElement.js +0 -54
  976. package/ui/views/AdminView/ContentElement.js.map +0 -1
  977. package/ui/views/AdminView/HeaderElement.d.ts +0 -13
  978. package/ui/views/AdminView/HeaderElement.js +0 -104
  979. package/ui/views/AdminView/HeaderElement.js.map +0 -1
  980. package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -6
  981. package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -42
  982. package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
  983. package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -6
  984. package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -42
  985. package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
  986. package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -6
  987. package/ui/views/AdminView/HeaderSectionRightElement.js +0 -42
  988. package/ui/views/AdminView/HeaderSectionRightElement.js.map +0 -1
  989. package/ui/views/AdminView/components/Dialog.d.ts +0 -2
  990. package/ui/views/AdminView/components/Dialog.js +0 -46
  991. package/ui/views/AdminView/components/Dialog.js.map +0 -1
  992. package/ui/views/AdminView/components/Hamburger.d.ts +0 -3
  993. package/ui/views/AdminView/components/Hamburger.js +0 -31
  994. package/ui/views/AdminView/components/Hamburger.js.map +0 -1
  995. package/ui/views/AdminView/components/Snackbar.d.ts +0 -3
  996. package/ui/views/AdminView/components/Snackbar.js +0 -32
  997. package/ui/views/AdminView/components/Snackbar.js.map +0 -1
  998. package/ui/views/FormView/FormContainerElement.d.ts +0 -12
  999. package/ui/views/FormView/FormContainerElement.js +0 -50
  1000. package/ui/views/FormView/FormContainerElement.js.map +0 -1
  1001. package/ui/views/FormView/FormContentElement.d.ts +0 -3
  1002. package/ui/views/FormView/FormContentElement.js +0 -22
  1003. package/ui/views/FormView/FormContentElement.js.map +0 -1
  1004. package/ui/views/FormView/FormFooterElement.d.ts +0 -6
  1005. package/ui/views/FormView/FormFooterElement.js +0 -49
  1006. package/ui/views/FormView/FormFooterElement.js.map +0 -1
  1007. package/ui/views/FormView/FormHeaderElement.d.ts +0 -14
  1008. package/ui/views/FormView/FormHeaderElement.js +0 -81
  1009. package/ui/views/FormView/FormHeaderElement.js.map +0 -1
  1010. package/ui/views/FormView.d.ts +0 -40
  1011. package/ui/views/FormView.js +0 -167
  1012. package/ui/views/FormView.js.map +0 -1
  1013. package/ui/views/OverlayView/ContentElement.d.ts +0 -6
  1014. package/ui/views/OverlayView/ContentElement.js +0 -42
  1015. package/ui/views/OverlayView/ContentElement.js.map +0 -1
  1016. package/ui/views/OverlayView/HeaderElement.d.ts +0 -24
  1017. package/ui/views/OverlayView/HeaderElement.js +0 -112
  1018. package/ui/views/OverlayView/HeaderElement.js.map +0 -1
  1019. package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -13
  1020. package/ui/views/OverlayView/HeaderTitleElement.js +0 -51
  1021. package/ui/views/OverlayView/HeaderTitleElement.js.map +0 -1
  1022. package/ui/views/OverlayView/useOverlayView.d.ts +0 -5
  1023. package/ui/views/OverlayView/useOverlayView.js +0 -44
  1024. package/ui/views/OverlayView/useOverlayView.js.map +0 -1
  1025. package/ui/views/OverlayView.d.ts +0 -29
  1026. package/ui/views/OverlayView.js +0 -165
  1027. package/ui/views/OverlayView.js.map +0 -1
  1028. package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -11
  1029. package/ui/views/SplitView/SplitViewPanelElement.js +0 -71
  1030. package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
  1031. package/ui/views/SplitView.d.ts +0 -21
  1032. package/ui/views/SplitView.js +0 -122
  1033. package/ui/views/SplitView.js.map +0 -1
@@ -1,57 +0,0 @@
1
- /// <reference types="react" />
2
- /// <reference types="web" />
3
- import { API } from "@editorjs/editorjs";
4
- import { ImageToolData, Tune, TuneOnChangeCallable } from "./types";
5
- interface TunesParams {
6
- api: API;
7
- actions: Tune[];
8
- onChange: TuneOnChangeCallable;
9
- }
10
- /**
11
- * Working with Block Tunes
12
- */
13
- export default class Tunes {
14
- private api;
15
- private readonly actions;
16
- private readonly onChange;
17
- private buttons;
18
- /**
19
- * @param {object} tune - image tool Tunes managers
20
- * @param {object} tune.api - Editor API
21
- * @param {object} tune.actions - list of user defined tunes
22
- * @param {Function} tune.onChange - tune toggling callback
23
- */
24
- constructor({ api, actions, onChange }: TunesParams);
25
- /**
26
- * Available Image tunes
27
- *
28
- * @returns {{name: string, icon: string, title: string}[]}
29
- */
30
- static get tunes(): Tune[];
31
- /**
32
- * Styles
33
- *
34
- * @returns {{wrapper: string, buttonBase: *, button: string, buttonActive: *}}
35
- */
36
- get CSS(): {
37
- wrapper: string;
38
- buttonBase: string;
39
- button: string;
40
- buttonActive: string;
41
- };
42
- /**
43
- * Makes buttons with tunes: stretch image
44
- *
45
- * @param {ImageToolData} toolData - generate Elements of tunes
46
- * @returns {Element}
47
- */
48
- render(toolData: ImageToolData): HTMLElement;
49
- /**
50
- * Clicks to one of the tunes
51
- *
52
- * @param {string} tuneName - clicked tune name
53
- * @param {Function} customFunction - function to execute on click
54
- */
55
- tuneClicked(tuneName: string, customFunction?: TuneOnChangeCallable): boolean;
56
- }
57
- export {};
@@ -1,129 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _ui = require("./ui");
12
- var _svgs = _interopRequireDefault(require("./svgs"));
13
- /**
14
- * Working with Block Tunes
15
- */
16
- var Tunes = /*#__PURE__*/function () {
17
- /**
18
- * @param {object} tune - image tool Tunes managers
19
- * @param {object} tune.api - Editor API
20
- * @param {object} tune.actions - list of user defined tunes
21
- * @param {Function} tune.onChange - tune toggling callback
22
- */
23
- function Tunes(_ref) {
24
- var api = _ref.api,
25
- actions = _ref.actions,
26
- onChange = _ref.onChange;
27
- (0, _classCallCheck2.default)(this, Tunes);
28
- (0, _defineProperty2.default)(this, "api", void 0);
29
- (0, _defineProperty2.default)(this, "actions", void 0);
30
- (0, _defineProperty2.default)(this, "onChange", void 0);
31
- (0, _defineProperty2.default)(this, "buttons", void 0);
32
- this.api = api;
33
- this.actions = actions;
34
- this.onChange = onChange;
35
- this.buttons = [];
36
- }
37
-
38
- /**
39
- * Available Image tunes
40
- *
41
- * @returns {{name: string, icon: string, title: string}[]}
42
- */
43
- (0, _createClass2.default)(Tunes, [{
44
- key: "CSS",
45
- get:
46
- /**
47
- * Styles
48
- *
49
- * @returns {{wrapper: string, buttonBase: *, button: string, buttonActive: *}}
50
- */
51
- function get() {
52
- return {
53
- wrapper: "",
54
- buttonBase: this.api.styles.settingsButton,
55
- button: "image-tool__tune",
56
- buttonActive: this.api.styles.settingsButtonActive
57
- };
58
- }
59
-
60
- /**
61
- * Makes buttons with tunes: stretch image
62
- *
63
- * @param {ImageToolData} toolData - generate Elements of tunes
64
- * @returns {Element}
65
- */
66
- }, {
67
- key: "render",
68
- value: function render(toolData) {
69
- var _this = this;
70
- var wrapper = (0, _ui.make)("div", this.CSS.wrapper);
71
- this.buttons = [];
72
- var tunes = Tunes.tunes.concat(this.actions);
73
- tunes.forEach(function (tune) {
74
- var title = _this.api.i18n.t(tune.title);
75
- var el = (0, _ui.make)("div", [_this.CSS.buttonBase, _this.CSS.button], {
76
- innerHTML: tune.icon,
77
- title: title
78
- });
79
- el.addEventListener("click", function () {
80
- _this.tuneClicked(tune.name, tune.action);
81
- });
82
- el.dataset["tune"] = tune.name;
83
- var name = tune.name;
84
- el.classList.toggle(_this.CSS.buttonActive, !!toolData[name]);
85
- _this.buttons.push(el);
86
- _this.api.tooltip.onHover(el, title, {
87
- placement: "top"
88
- });
89
- wrapper.appendChild(el);
90
- });
91
- return wrapper;
92
- }
93
-
94
- /**
95
- * Clicks to one of the tunes
96
- *
97
- * @param {string} tuneName - clicked tune name
98
- * @param {Function} customFunction - function to execute on click
99
- */
100
- }, {
101
- key: "tuneClicked",
102
- value: function tuneClicked(tuneName, customFunction) {
103
- if (typeof customFunction === "function") {
104
- if (!customFunction(tuneName)) {
105
- return false;
106
- }
107
- }
108
- var button = this.buttons.find(function (el) {
109
- return el.dataset["tune"] === tuneName;
110
- });
111
- if (button) {
112
- button.classList.toggle(this.CSS.buttonActive, !button.classList.contains(this.CSS.buttonActive));
113
- }
114
- this.onChange(tuneName);
115
- return true;
116
- }
117
- }], [{
118
- key: "tunes",
119
- get: function get() {
120
- return [{
121
- name: "stretched",
122
- icon: _svgs.default.stretched,
123
- title: "Stretch image"
124
- }];
125
- }
126
- }]);
127
- return Tunes;
128
- }();
129
- exports.default = Tunes;
@@ -1 +0,0 @@
1
- {"version":3,"names":["Tunes","api","actions","onChange","buttons","wrapper","buttonBase","styles","settingsButton","button","buttonActive","settingsButtonActive","toolData","make","CSS","tunes","concat","forEach","tune","title","i18n","t","el","innerHTML","icon","addEventListener","tuneClicked","name","action","dataset","classList","toggle","push","tooltip","onHover","placement","appendChild","tuneName","customFunction","find","contains","svgs","stretched"],"sources":["tunes.ts"],"sourcesContent":["import { API } from \"@editorjs/editorjs\";\nimport { make } from \"./ui\";\nimport svgs from \"./svgs\";\nimport { ImageToolData, Tune, TuneOnChangeCallable } from \"./types\";\n\ninterface TunesParams {\n api: API;\n actions: Tune[];\n onChange: TuneOnChangeCallable;\n}\n/**\n * Working with Block Tunes\n */\nexport default class Tunes {\n private api: API;\n private readonly actions: Tune[];\n private readonly onChange: TuneOnChangeCallable;\n private buttons: Array<HTMLElement>;\n /**\n * @param {object} tune - image tool Tunes managers\n * @param {object} tune.api - Editor API\n * @param {object} tune.actions - list of user defined tunes\n * @param {Function} tune.onChange - tune toggling callback\n */\n constructor({ api, actions, onChange }: TunesParams) {\n this.api = api;\n this.actions = actions;\n this.onChange = onChange;\n this.buttons = [];\n }\n\n /**\n * Available Image tunes\n *\n * @returns {{name: string, icon: string, title: string}[]}\n */\n static get tunes(): Tune[] {\n return [\n {\n name: \"stretched\",\n icon: svgs.stretched,\n title: \"Stretch image\"\n }\n ];\n }\n\n /**\n * Styles\n *\n * @returns {{wrapper: string, buttonBase: *, button: string, buttonActive: *}}\n */\n get CSS() {\n return {\n wrapper: \"\",\n buttonBase: this.api.styles.settingsButton,\n button: \"image-tool__tune\",\n buttonActive: this.api.styles.settingsButtonActive\n };\n }\n\n /**\n * Makes buttons with tunes: stretch image\n *\n * @param {ImageToolData} toolData - generate Elements of tunes\n * @returns {Element}\n */\n render(toolData: ImageToolData): HTMLElement {\n const wrapper = make(\"div\", this.CSS.wrapper);\n\n this.buttons = [];\n\n const tunes = Tunes.tunes.concat(this.actions);\n\n tunes.forEach(tune => {\n const title = this.api.i18n.t(tune.title);\n const el = make(\"div\", [this.CSS.buttonBase, this.CSS.button], {\n innerHTML: tune.icon,\n title\n });\n\n el.addEventListener(\"click\", () => {\n this.tuneClicked(tune.name, tune.action);\n });\n\n el.dataset[\"tune\"] = tune.name;\n const name = tune.name as keyof ImageToolData;\n el.classList.toggle(this.CSS.buttonActive, !!toolData[name]);\n\n this.buttons.push(el);\n\n this.api.tooltip.onHover(el, title, {\n placement: \"top\"\n });\n\n wrapper.appendChild(el);\n });\n\n return wrapper;\n }\n\n /**\n * Clicks to one of the tunes\n *\n * @param {string} tuneName - clicked tune name\n * @param {Function} customFunction - function to execute on click\n */\n tuneClicked(tuneName: string, customFunction?: TuneOnChangeCallable): boolean {\n if (typeof customFunction === \"function\") {\n if (!customFunction(tuneName)) {\n return false;\n }\n }\n\n const button = this.buttons.find(el => el.dataset[\"tune\"] === tuneName);\n\n if (button) {\n button.classList.toggle(\n this.CSS.buttonActive,\n !button.classList.contains(this.CSS.buttonActive)\n );\n }\n\n this.onChange(tuneName);\n return true;\n }\n}\n"],"mappings":";;;;;;;;;;AACA;AACA;AAQA;AACA;AACA;AAFA,IAGqBA,KAAK;EAKtB;AACJ;AACA;AACA;AACA;AACA;EACI,qBAAqD;IAAA,IAAvCC,GAAG,QAAHA,GAAG;MAAEC,OAAO,QAAPA,OAAO;MAAEC,QAAQ,QAARA,QAAQ;IAAA;IAAA;IAAA;IAAA;IAAA;IAChC,IAAI,CAACF,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,OAAO,GAAG,EAAE;EACrB;;EAEA;AACJ;AACA;AACA;AACA;EAJI;IAAA;IAAA;IAeA;AACJ;AACA;AACA;AACA;IACI,eAAU;MACN,OAAO;QACHC,OAAO,EAAE,EAAE;QACXC,UAAU,EAAE,IAAI,CAACL,GAAG,CAACM,MAAM,CAACC,cAAc;QAC1CC,MAAM,EAAE,kBAAkB;QAC1BC,YAAY,EAAE,IAAI,CAACT,GA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AEH,KAAK,EAAE;UAChCgB,SAAS,EAAE;QACf,CAAC,CAAC;QAEF9B,OAAO,CAAC+B,WAAW,CAACd,EAAE,CAAC;MAC3B,CAAC,CAAC;MAEF,OAAOjB,OAAO;IAClB;;IAEA;AACJ;AACA;AACA;AACA;AACA;EALI;IAAA;IAAA,OAMA,qBAAYgC,QAAgB,EAAEC,cAAqC,EAAW;MAC1E,IAAI,OAAOA,cAAc,KAAK,UAAU,EAAE;QACtC,IAAI,CAACA,cAAc,CAACD,QAAQ,CAAC,EAAE;UAC3B,OAAO,KAAK;QAChB;MACJ;MAEA,IAAM5B,MAAM,GAAG,IAAI,CAACL,OAAO,CAACmC,IAAI,CAAC,UAAAjB,EAAE;QAAA,OAAIA,EAAE,CAACO,OAAO,CAAC,MAAM,CAAC,KAAKQ,QAAQ;MAAA,EAAC;MAEvE,IAAI5B,MAAM,EAAE;QACRA,MAAM,CAACqB,SAAS,CAACC,MAAM,CACnB,IAAI,CAACjB,GAAG,CAACJ,YAAY,EACrB,CAACD,MAAM,CAACqB,SAAS,CAACU,QAAQ,CAAC,IAAI,CAAC1B,GAAG,CAACJ,YAAY,CAAC,CACpD;MACL;MAEA,IAAI,CAACP,QAAQ,CAACkC,QAAQ,CAAC;MACvB,OAAO,IAAI;IACf;EAAC;IAAA;IAAA,KAxFD,eAA2B;MACvB,OAAO,CACH;QACIV,IAAI,EAAE,WAAW;QACjBH,IAAI,EAAEiB,aAAI,CAACC,SAAS;QACpBvB,KAAK,EAAE;MACX,CAAC,CACJ;IACL;EAAC;EAAA;AAAA;AAAA"}
@@ -1,29 +0,0 @@
1
- export interface TuneOnChangeCallable {
2
- (tune: string): boolean | void;
3
- }
4
- export interface Tune {
5
- name: string;
6
- icon: string;
7
- title: string;
8
- action?: TuneOnChangeCallable;
9
- }
10
- export interface ImageToolData {
11
- caption: string;
12
- file: string;
13
- }
14
- export interface ImageToolFile {
15
- src: string;
16
- }
17
- export interface GetFileSourceCallable {
18
- (file: ImageToolFile | string): string;
19
- }
20
- export interface OnSelectFileCallable {
21
- (file: ImageToolFile): string;
22
- }
23
- export interface ImageToolConfig {
24
- getFileSrc: GetFileSourceCallable;
25
- onSelectFile: OnSelectFileCallable;
26
- captionPlaceholder?: string;
27
- actions: Tune[];
28
- context: Record<string, any>;
29
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface TuneOnChangeCallable {\n (tune: string): boolean | void;\n}\nexport interface Tune {\n name: string;\n icon: string;\n title: string;\n action?: TuneOnChangeCallable;\n}\n\nexport interface ImageToolData {\n caption: string;\n file: string;\n}\nexport interface ImageToolFile {\n src: string;\n}\nexport interface GetFileSourceCallable {\n (file: ImageToolFile | string): string;\n}\nexport interface OnSelectFileCallable {\n (file: ImageToolFile): string;\n}\nexport interface ImageToolConfig {\n getFileSrc: GetFileSourceCallable;\n onSelectFile: OnSelectFileCallable;\n captionPlaceholder?: string;\n actions: Tune[];\n context: Record<string, any>;\n}\n"],"mappings":""}
@@ -1,122 +0,0 @@
1
- /// <reference types="react" />
2
- /// <reference types="web" />
3
- import { API } from "@editorjs/editorjs";
4
- import { ImageToolConfig, ImageToolData } from "./types";
5
- interface OnSelectFileCallable {
6
- (): void;
7
- }
8
- interface UiStatus {
9
- EMPTY: "empty";
10
- FILLED: "filled";
11
- [key: string]: string;
12
- }
13
- interface UiParams {
14
- api: API;
15
- config: ImageToolConfig;
16
- onSelectFile: OnSelectFileCallable;
17
- readOnly: boolean;
18
- }
19
- /**
20
- * Class for working with UI:
21
- * - rendering base structure
22
- * - show/hide preview
23
- * - apply tune view
24
- */
25
- export default class Ui {
26
- private api;
27
- private config;
28
- private readonly readOnly;
29
- private readonly onSelectFile;
30
- readonly nodes: {
31
- wrapper: HTMLElement;
32
- imageContainer: HTMLElement;
33
- fileButton: HTMLElement;
34
- imageEl?: HTMLElement;
35
- caption: HTMLElement;
36
- };
37
- /**
38
- * @param ui - image tool Ui module
39
- * @param ui.api - Editor.js API
40
- * @param ui.config - user config
41
- * @param ui.onSelectFile - callback for clicks on Select file button
42
- * @param ui.readOnly - read-only mode flag
43
- */
44
- constructor({ api, config, onSelectFile, readOnly }: UiParams);
45
- /**
46
- * CSS classes
47
- *
48
- * @returns {object}
49
- */
50
- get CSS(): {
51
- baseClass: string;
52
- input: string;
53
- button: string;
54
- /**
55
- * Tool's classes
56
- */
57
- wrapper: string;
58
- imageContainer: string;
59
- imageEl: string;
60
- caption: string;
61
- };
62
- /**
63
- * Ui statuses:
64
- * - empty
65
- * - filled
66
- *
67
- * @returns {{EMPTY: string, UPLOADING: string, FILLED: string}}
68
- */
69
- static get status(): UiStatus;
70
- /**
71
- * Renders tool UI
72
- *
73
- * @param {ImageToolData} toolData - saved tool data
74
- * @returns {Element}
75
- */
76
- render(toolData: ImageToolData): HTMLElement;
77
- /**
78
- * Creates upload-file button
79
- *
80
- * @returns {Element}
81
- */
82
- createFileButton(): HTMLElement;
83
- /**
84
- * Shows an image
85
- *
86
- * @param {string} url - image source
87
- * @returns {void}
88
- */
89
- fillImage(url: string): void;
90
- /**
91
- * Shows caption input
92
- *
93
- * @param {string} text - caption text
94
- * @returns {void}
95
- */
96
- fillCaption(text: string): void;
97
- /**
98
- * Changes UI status
99
- *
100
- * @param {string} status - see {@link Ui.status} constants
101
- * @returns {void}
102
- */
103
- toggleStatus(status: string): void;
104
- /**
105
- * Apply visual representation of activated tune
106
- *
107
- * @param {string} tuneName - one of available tunes {@link Tunes.tunes}
108
- * @param {boolean} status - true for enable, false for disable
109
- * @returns {void}
110
- */
111
- applyTune(tuneName: string, status: boolean): void;
112
- }
113
- /**
114
- * Helper for making Elements with attributes
115
- *
116
- * @param {string} tagName - new Element tag name
117
- * @param {Array|string} classNames - list or name of CSS class
118
- * @param {object} attributes - any attributes
119
- * @returns {HTMLElement}
120
- */
121
- export declare const make: (tagName: string, classNames?: string[] | string | null, attributes?: Record<string, string | number | boolean>) => HTMLElement;
122
- export {};
@@ -1,278 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.make = exports.default = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- /**
13
- * Class for working with UI:
14
- * - rendering base structure
15
- * - show/hide preview
16
- * - apply tune view
17
- */
18
- var Ui = /*#__PURE__*/function () {
19
- /**
20
- * @param ui - image tool Ui module
21
- * @param ui.api - Editor.js API
22
- * @param ui.config - user config
23
- * @param ui.onSelectFile - callback for clicks on Select file button
24
- * @param ui.readOnly - read-only mode flag
25
- */
26
- function Ui(_ref) {
27
- var api = _ref.api,
28
- config = _ref.config,
29
- onSelectFile = _ref.onSelectFile,
30
- readOnly = _ref.readOnly;
31
- (0, _classCallCheck2.default)(this, Ui);
32
- (0, _defineProperty2.default)(this, "api", void 0);
33
- (0, _defineProperty2.default)(this, "config", void 0);
34
- (0, _defineProperty2.default)(this, "readOnly", void 0);
35
- (0, _defineProperty2.default)(this, "onSelectFile", void 0);
36
- (0, _defineProperty2.default)(this, "nodes", void 0);
37
- this.api = api;
38
- this.config = config;
39
- this.onSelectFile = onSelectFile;
40
- this.readOnly = readOnly;
41
- this.nodes = {
42
- wrapper: make("div", [this.CSS.baseClass, this.CSS.wrapper]),
43
- imageContainer: make("div", [this.CSS.imageContainer]),
44
- fileButton: this.createFileButton(),
45
- imageEl: undefined,
46
- caption: make("div", [this.CSS.input, this.CSS.caption], {
47
- contentEditable: !this.readOnly
48
- })
49
- };
50
-
51
- /**
52
- * Create base structure
53
- * <wrapper>
54
- * <image-container/>
55
- * <caption />
56
- * </wrapper>
57
- */
58
- this.nodes.caption.dataset["placeholder"] = this.config.captionPlaceholder;
59
- this.nodes.wrapper.appendChild(this.nodes.imageContainer);
60
- this.nodes.wrapper.appendChild(this.nodes.caption);
61
- this.nodes.wrapper.appendChild(this.nodes.fileButton);
62
- }
63
-
64
- /**
65
- * CSS classes
66
- *
67
- * @returns {object}
68
- */
69
- (0, _createClass2.default)(Ui, [{
70
- key: "CSS",
71
- get: function get() {
72
- return {
73
- baseClass: this.api.styles.block,
74
- input: this.api.styles.input,
75
- button: this.api.styles.button,
76
- /**
77
- * Tool's classes
78
- */
79
- wrapper: "image-tool",
80
- imageContainer: "image-tool__image",
81
- imageEl: "image-tool__image-picture",
82
- caption: "image-tool__caption"
83
- };
84
- }
85
-
86
- /**
87
- * Ui statuses:
88
- * - empty
89
- * - filled
90
- *
91
- * @returns {{EMPTY: string, UPLOADING: string, FILLED: string}}
92
- */
93
- }, {
94
- key: "render",
95
- value:
96
- /**
97
- * Renders tool UI
98
- *
99
- * @param {ImageToolData} toolData - saved tool data
100
- * @returns {Element}
101
- */
102
- function render(toolData) {
103
- if (!toolData.file || Object.keys(toolData.file).length === 0) {
104
- this.toggleStatus(Ui.status.EMPTY);
105
- }
106
- return this.nodes.wrapper;
107
- }
108
-
109
- /**
110
- * Creates upload-file button
111
- *
112
- * @returns {Element}
113
- */
114
- }, {
115
- key: "createFileButton",
116
- value: function createFileButton() {
117
- var _this = this;
118
- var button = make("div", [this.CSS.button]);
119
- button.innerHTML = this.api.i18n.t("Select an Image");
120
- button.addEventListener("click", function () {
121
- _this.onSelectFile();
122
- });
123
- return button;
124
- }
125
-
126
- /**
127
- * Shows an image
128
- *
129
- * @param {string} url - image source
130
- * @returns {void}
131
- */
132
- }, {
133
- key: "fillImage",
134
- value: function fillImage(url) {
135
- var _this2 = this;
136
- /**
137
- * Check for a source extension to compose element correctly: video tag for mp4, img — for others
138
- */
139
- var tag = /\.mp4$/.test(url) ? "VIDEO" : "IMG";
140
- var attributes = {
141
- src: url
142
- };
143
-
144
- /**
145
- * We use eventName variable because IMG and VIDEO tags have different event to be called on source load
146
- * - IMG: load
147
- * - VIDEO: loadeddata
148
- *
149
- * @type {string}
150
- */
151
- var eventName = "load";
152
-
153
- /**
154
- * Update attributes and eventName if source is a mp4 video
155
- */
156
- if (tag === "VIDEO") {
157
- /**
158
- * Add attributes for playing muted mp4 as a gif
159
- *
160
- * @type {boolean}
161
- */
162
- attributes.autoplay = true;
163
- attributes.loop = true;
164
- attributes.muted = true;
165
- attributes.playsinline = true;
166
-
167
- /**
168
- * Change event to be listened
169
- *
170
- * @type {string}
171
- */
172
- eventName = "loadeddata";
173
- }
174
-
175
- /**
176
- * Compose tag with defined attributes
177
- *
178
- * @type {Element}
179
- */
180
- this.nodes.imageEl = make(tag, this.CSS.imageEl, attributes);
181
-
182
- /**
183
- * Add load event listener
184
- */
185
- this.nodes.imageEl.addEventListener(eventName, function () {
186
- _this2.toggleStatus(Ui.status.FILLED);
187
- });
188
- this.nodes.imageContainer.appendChild(this.nodes.imageEl);
189
- }
190
-
191
- /**
192
- * Shows caption input
193
- *
194
- * @param {string} text - caption text
195
- * @returns {void}
196
- */
197
- }, {
198
- key: "fillCaption",
199
- value: function fillCaption(text) {
200
- if (!this.nodes.caption) {
201
- return;
202
- }
203
- this.nodes.caption.innerHTML = text;
204
- }
205
-
206
- /**
207
- * Changes UI status
208
- *
209
- * @param {string} status - see {@link Ui.status} constants
210
- * @returns {void}
211
- */
212
- }, {
213
- key: "toggleStatus",
214
- value: function toggleStatus(status) {
215
- for (var statusType in Ui.status) {
216
- if (Object.prototype.hasOwnProperty.call(Ui.status, statusType) === false) {
217
- continue;
218
- }
219
- var newStatus = Ui.status[statusType];
220
- this.nodes.wrapper.classList.toggle("".concat(this.CSS.wrapper, "--").concat(newStatus), status === newStatus);
221
- }
222
- }
223
-
224
- /**
225
- * Apply visual representation of activated tune
226
- *
227
- * @param {string} tuneName - one of available tunes {@link Tunes.tunes}
228
- * @param {boolean} status - true for enable, false for disable
229
- * @returns {void}
230
- */
231
- }, {
232
- key: "applyTune",
233
- value: function applyTune(tuneName, status) {
234
- this.nodes.wrapper.classList.toggle("".concat(this.CSS.wrapper, "--").concat(tuneName), status);
235
- }
236
- }], [{
237
- key: "status",
238
- get: function get() {
239
- return {
240
- EMPTY: "empty",
241
- FILLED: "filled"
242
- };
243
- }
244
- }]);
245
- return Ui;
246
- }();
247
- /**
248
- * Helper for making Elements with attributes
249
- *
250
- * @param {string} tagName - new Element tag name
251
- * @param {Array|string} classNames - list or name of CSS class
252
- * @param {object} attributes - any attributes
253
- * @returns {HTMLElement}
254
- */
255
- exports.default = Ui;
256
- var make = function make(tagName) {
257
- var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
258
- var attributes = arguments.length > 2 ? arguments[2] : undefined;
259
- var el = document.createElement(tagName);
260
- if (Array.isArray(classNames)) {
261
- var _el$classList;
262
- (_el$classList = el.classList).add.apply(_el$classList, (0, _toConsumableArray2.default)(classNames));
263
- } else if (classNames) {
264
- el.classList.add(classNames);
265
- }
266
- if (!attributes) {
267
- return el;
268
- }
269
- for (var attrName in attributes) {
270
- /**
271
- * Unfortunately it is a problem to map attributes to element because element is complaining
272
- * that attrName is a string, which cannot index the HTMLElement
273
- */
274
- el[attrName] = attributes[attrName];
275
- }
276
- return el;
277
- };
278
- exports.make = make;
@@ -1 +0,0 @@
1
- {"version":3,"names":["Ui","api","config","onSelectFile","readOnly","nodes","wrapper","make","CSS","baseClass","imageContainer","fileButton","createFileButton","imageEl","undefined","caption","input","contentEditable","dataset","captionPlaceholder","appendChild","styles","block","button","toolData","file","Object","keys","length","toggleStatus","status","EMPTY","innerHTML","i18n","t","addEventListener","url","tag","test","attributes","src","eventName","autoplay","loop","muted","playsinline","FILLED","text","statusType","prototype","hasOwnProperty","call","newStatus","classList","toggle","tuneName","tagName","classNames","el","document","createElement","Array","isArray","add","attrName"],"sources":["ui.ts"],"sourcesContent":["import { API } from \"@editorjs/editorjs\";\nimport { ImageToolConfig, ImageToolData } from \"./types\";\n\ninterface OnSelectFileCallable {\n (): void;\n}\ninterface UiStatus {\n EMPTY: \"empty\";\n FILLED: \"filled\";\n [key: string]: string;\n}\ninterface UiParams {\n api: API;\n config: ImageToolConfig;\n onSelectFile: OnSelectFileCallable;\n readOnly: boolean;\n}\n/**\n * Class for working with UI:\n * - rendering base structure\n * - show/hide preview\n * - apply tune view\n */\nexport default class Ui {\n private api: API;\n private config: ImageToolConfig;\n private readonly readOnly: boolean;\n private readonly onSelectFile: OnSelectFileCallable;\n\n public readonly nodes: {\n wrapper: HTMLElement;\n imageContainer: HTMLElement;\n fileButton: HTMLElement;\n imageEl?: HTMLElement;\n caption: HTMLElement;\n };\n\n /**\n * @param ui - image tool Ui module\n * @param ui.api - Editor.js API\n * @param ui.config - user config\n * @param ui.onSelectFile - callback for clicks on Select file button\n * @param ui.readOnly - read-only mode flag\n */\n constructor({ api, config, onSelectFile, readOnly }: UiParams) {\n this.api = api;\n this.config = config;\n this.onSelectFile = onSelectFile;\n this.readOnly = readOnly;\n this.nodes = {\n wrapper: make(\"div\", [this.CSS.baseClass, this.CSS.wrapper]),\n imageContainer: make(\"div\", [this.CSS.imageContainer]),\n fileButton: this.createFileButton(),\n imageEl: undefined,\n caption: make(\"div\", [this.CSS.input, this.CSS.caption], {\n contentEditable: !this.readOnly\n })\n };\n\n /**\n * Create base structure\n * <wrapper>\n * <image-container/>\n * <caption />\n * </wrapper>\n */\n this.nodes.caption.dataset[\"placeholder\"] = this.config.captionPlaceholder;\n this.nodes.wrapper.appendChild(this.nodes.imageContainer);\n this.nodes.wrapper.appendChild(this.nodes.caption);\n this.nodes.wrapper.appendChild(this.nodes.fileButton);\n }\n\n /**\n * CSS classes\n *\n * @returns {object}\n */\n get CSS() {\n return {\n baseClass: this.api.styles.block,\n input: this.api.styles.input,\n button: this.api.styles.button,\n\n /**\n * Tool's classes\n */\n wrapper: \"image-tool\",\n imageContainer: \"image-tool__image\",\n imageEl: \"image-tool__image-picture\",\n caption: \"image-tool__caption\"\n };\n }\n\n /**\n * Ui statuses:\n * - empty\n * - filled\n *\n * @returns {{EMPTY: string, UPLOADING: string, FILLED: string}}\n */\n static get status(): UiStatus {\n return {\n EMPTY: \"empty\",\n FILLED: \"filled\"\n };\n }\n\n /**\n * Renders tool UI\n *\n * @param {ImageToolData} toolData - saved tool data\n * @returns {Element}\n */\n render(toolData: ImageToolData) {\n if (!toolData.file || Object.keys(toolData.file).length === 0) {\n this.toggleStatus(Ui.status.EMPTY);\n }\n\n return this.nodes.wrapper;\n }\n\n /**\n * Creates upload-file button\n *\n * @returns {Element}\n */\n createFileButton() {\n const button = make(\"div\", [this.CSS.button]);\n\n button.innerHTML = this.api.i18n.t(\"Select an Image\");\n\n button.addEventListener(\"click\", () => {\n this.onSelectFile();\n });\n\n return button;\n }\n\n /**\n * Shows an image\n *\n * @param {string} url - image source\n * @returns {void}\n */\n public fillImage(url: string): void {\n /**\n * Check for a source extension to compose element correctly: video tag for mp4, img — for others\n */\n const tag = /\\.mp4$/.test(url) ? \"VIDEO\" : \"IMG\";\n\n const attributes: any = {\n src: url\n };\n\n /**\n * We use eventName variable because IMG and VIDEO tags have different event to be called on source load\n * - IMG: load\n * - VIDEO: loadeddata\n *\n * @type {string}\n */\n let eventName = \"load\";\n\n /**\n * Update attributes and eventName if source is a mp4 video\n */\n if (tag === \"VIDEO\") {\n /**\n * Add attributes for playing muted mp4 as a gif\n *\n * @type {boolean}\n */\n attributes.autoplay = true;\n attributes.loop = true;\n attributes.muted = true;\n attributes.playsinline = true;\n\n /**\n * Change event to be listened\n *\n * @type {string}\n */\n eventName = \"loadeddata\";\n }\n\n /**\n * Compose tag with defined attributes\n *\n * @type {Element}\n */\n this.nodes.imageEl = make(tag, this.CSS.imageEl, attributes);\n\n /**\n * Add load event listener\n */\n this.nodes.imageEl.addEventListener(eventName, () => {\n this.toggleStatus(Ui.status.FILLED);\n });\n\n this.nodes.imageContainer.appendChild(this.nodes.imageEl);\n }\n\n /**\n * Shows caption input\n *\n * @param {string} text - caption text\n * @returns {void}\n */\n public fillCaption(text: string): void {\n if (!this.nodes.caption) {\n return;\n }\n this.nodes.caption.innerHTML = text;\n }\n\n /**\n * Changes UI status\n *\n * @param {string} status - see {@link Ui.status} constants\n * @returns {void}\n */\n public toggleStatus(status: string): void {\n for (const statusType in Ui.status) {\n if (Object.prototype.hasOwnProperty.call(Ui.status, statusType) === false) {\n continue;\n }\n const newStatus = Ui.status[statusType];\n this.nodes.wrapper.classList.toggle(\n `${this.CSS.wrapper}--${newStatus}`,\n status === newStatus\n );\n }\n }\n\n /**\n * Apply visual representation of activated tune\n *\n * @param {string} tuneName - one of available tunes {@link Tunes.tunes}\n * @param {boolean} status - true for enable, false for disable\n * @returns {void}\n */\n public applyTune(tuneName: string, status: boolean) {\n this.nodes.wrapper.classList.toggle(`${this.CSS.wrapper}--${tuneName}`, status);\n }\n}\n\n/**\n * Helper for making Elements with attributes\n *\n * @param {string} tagName - new Element tag name\n * @param {Array|string} classNames - list or name of CSS class\n * @param {object} attributes - any attributes\n * @returns {HTMLElement}\n */\nexport const make = function make(\n tagName: string,\n classNames: string[] | string | null = null,\n attributes?: Record<string, string | number | boolean>\n): HTMLElement {\n const el: HTMLElement = document.createElement(tagName);\n\n if (Array.isArray(classNames)) {\n el.classList.add(...classNames);\n } else if (classNames) {\n el.classList.add(classNames);\n }\n\n if (!attributes) {\n return el;\n }\n for (const attrName in attributes) {\n /**\n * Unfortunately it is a problem to map attributes to element because element is complaining\n * that attrName is a string, which cannot index the HTMLElement\n */\n (el as any)[attrName] = (attributes as any)[attrName];\n }\n\n return el;\n};\n"],"mappings":";;;;;;;;;;;AAiBA;AACA;AACA;AACA;AACA;AACA;AALA,IAMqBA,EAAE;EAcnB;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,kBAA+D;IAAA,IAAjDC,GAAG,QAAHA,GAAG;MAAEC,MAAM,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