@webiny/app-admin 0.0.0-unstable.de38392959 → 0.0.0-unstable.df7a8bb475

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