@webiny/app-admin 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313

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 (920) hide show
  1. package/README.md +7 -17
  2. package/base/Admin.d.ts +5 -2
  3. package/base/Admin.js +34 -16
  4. package/base/Admin.js.map +1 -1
  5. package/base/Base/LexicalPreset.d.ts +2 -0
  6. package/base/Base/LexicalPreset.js +67 -0
  7. package/base/Base/LexicalPreset.js.map +1 -0
  8. package/base/Base/Menus/SupportMenuItems.d.ts +2 -2
  9. package/base/Base/Menus/SupportMenuItems.js +2 -4
  10. package/base/Base/Menus/SupportMenuItems.js.map +1 -1
  11. package/base/Base/Menus/WebinyVersion.js +4 -4
  12. package/base/Base/Menus/WebinyVersion.js.map +1 -1
  13. package/base/Base/Menus.js +37 -42
  14. package/base/Base/Menus.js.map +1 -1
  15. package/base/Base/RoutesConfig.d.ts +2 -0
  16. package/base/Base/RoutesConfig.js +30 -0
  17. package/base/Base/RoutesConfig.js.map +1 -0
  18. package/base/Base/Tenant/wby-horizontal.svg +23 -0
  19. package/base/Base/Tenant.js +14 -9
  20. package/base/Base/Tenant.js.map +1 -1
  21. package/base/Base/UserMenu/ExitTenant.d.ts +20 -0
  22. package/base/Base/UserMenu/ExitTenant.js +37 -0
  23. package/base/Base/UserMenu/ExitTenant.js.map +1 -0
  24. package/base/Base/UserMenu/SignOut.d.ts +2 -0
  25. package/base/Base/UserMenu/SignOut.js +19 -0
  26. package/base/Base/UserMenu/SignOut.js.map +1 -0
  27. package/base/Base/UserMenu/UserInfo.d.ts +6 -0
  28. package/base/Base/UserMenu/UserInfo.js +43 -0
  29. package/base/Base/UserMenu/UserInfo.js.map +1 -0
  30. package/base/Base/UserMenu.d.ts +2 -0
  31. package/base/Base/UserMenu.js +21 -0
  32. package/base/Base/UserMenu.js.map +1 -0
  33. package/base/Base.js +6 -8
  34. package/base/Base.js.map +1 -1
  35. package/base/TelemetryAdminAppStart.d.ts +1 -0
  36. package/base/TelemetryAdminAppStart.js +19 -0
  37. package/base/TelemetryAdminAppStart.js.map +1 -0
  38. package/base/WebinyVersion.js +4 -4
  39. package/base/WebinyVersion.js.map +1 -1
  40. package/base/createRootContainer.d.ts +2 -0
  41. package/base/createRootContainer.js +55 -0
  42. package/base/createRootContainer.js.map +1 -0
  43. package/base/plugins/AddGraphQLQuerySelection.js +1 -1
  44. package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
  45. package/base/providers/AdminUiStateProvider.js +1 -1
  46. package/base/providers/AdminUiStateProvider.js.map +1 -1
  47. package/base/providers/ApolloProvider.d.ts +1 -1
  48. package/base/providers/ApolloProvider.js +2 -5
  49. package/base/providers/ApolloProvider.js.map +1 -1
  50. package/base/providers/UiProviders.js +24 -3
  51. package/base/providers/UiProviders.js.map +1 -1
  52. package/base/providers/UiStateProvider.js +1 -1
  53. package/base/providers/UiStateProvider.js.map +1 -1
  54. package/base/ui/CenteredView.d.ts +1 -1
  55. package/base/ui/CenteredView.js +2 -2
  56. package/base/ui/CenteredView.js.map +1 -1
  57. package/base/ui/FileManager.d.ts +9 -21
  58. package/base/ui/FileManager.js +18 -12
  59. package/base/ui/FileManager.js.map +1 -1
  60. package/base/ui/LoginScreen.d.ts +19 -0
  61. package/base/ui/LoginScreen.js +2 -1
  62. package/base/ui/LoginScreen.js.map +1 -1
  63. package/base/ui/Navigation.js +1 -1
  64. package/base/ui/Navigation.js.map +1 -1
  65. package/base/ui/UserMenu/UserMenuItem.d.ts +5 -5
  66. package/base/ui/UserMenu/UserMenuItem.js +1 -1
  67. package/base/ui/UserMenu/UserMenuItem.js.map +1 -1
  68. package/base/ui/UserMenu/UserMenuLink.d.ts +5 -5
  69. package/base/ui/UserMenu/UserMenuLink.js +1 -1
  70. package/base/ui/UserMenu/UserMenuLink.js.map +1 -1
  71. package/base/ui/UserMenu/UserMenuSeparator.d.ts +8 -8
  72. package/base/ui/UserMenu/UserMenuSeparator.js +1 -1
  73. package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -1
  74. package/base/ui/UserMenu.d.ts +3 -3
  75. package/base/ui/UserMenu.js +3 -3
  76. package/base/ui/UserMenu.js.map +1 -1
  77. package/components/AdminLayout.js +1 -1
  78. package/components/AdminLayout.js.map +1 -1
  79. package/components/BulkActions/Worker.d.ts +0 -1
  80. package/components/BulkActions/Worker.js +1 -1
  81. package/components/BulkActions/Worker.js.map +1 -1
  82. package/components/BulkActions/index.d.ts +2 -2
  83. package/components/BulkActions/index.js +2 -2
  84. package/components/BulkActions/index.js.map +1 -1
  85. package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +1 -1
  86. package/components/BulkActions/useDialogWithReport/DialogMessage.js +2 -2
  87. package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -1
  88. package/components/BulkActions/useDialogWithReport/index.d.ts +1 -1
  89. package/components/BulkActions/useDialogWithReport/index.js +1 -1
  90. package/components/BulkActions/useDialogWithReport/index.js.map +1 -1
  91. package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +1 -1
  92. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +2 -2
  93. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -1
  94. package/components/Buttons/Buttons.d.ts +1 -1
  95. package/components/Buttons/Buttons.js +4 -4
  96. package/components/Buttons/Buttons.js.map +1 -1
  97. package/components/Buttons/Buttons.styles.d.ts +2 -3
  98. package/components/Buttons/Buttons.styles.js +1 -2
  99. package/components/Buttons/Buttons.styles.js.map +1 -1
  100. package/components/Buttons/index.d.ts +2 -2
  101. package/components/Buttons/index.js +2 -2
  102. package/components/Buttons/index.js.map +1 -1
  103. package/components/Buttons/useButtons.d.ts +1 -1
  104. package/components/Buttons/useButtons.js +1 -1
  105. package/components/Buttons/useButtons.js.map +1 -1
  106. package/components/DeveloperMode/DeveloperMode.d.ts +11 -0
  107. package/components/DeveloperMode/DeveloperMode.js +17 -0
  108. package/components/DeveloperMode/DeveloperMode.js.map +1 -0
  109. package/components/DeveloperMode/index.d.ts +2 -0
  110. package/components/DeveloperMode/index.js +3 -0
  111. package/components/DeveloperMode/index.js.map +1 -0
  112. package/components/Dialogs/Dialog.js +2 -2
  113. package/components/Dialogs/Dialog.js.map +1 -1
  114. package/components/Dialogs/DialogsContext.d.ts +1 -6
  115. package/components/Dialogs/DialogsContext.js +14 -23
  116. package/components/Dialogs/DialogsContext.js.map +1 -1
  117. package/components/Dialogs/useDialogs.d.ts +1 -2
  118. package/components/Dialogs/useDialogs.js +1 -2
  119. package/components/Dialogs/useDialogs.js.map +1 -1
  120. package/components/EmptyView.d.ts +1 -2
  121. package/components/EmptyView.js +6 -7
  122. package/components/EmptyView.js.map +1 -1
  123. package/components/Filters/Filters.d.ts +1 -1
  124. package/components/Filters/Filters.js +2 -2
  125. package/components/Filters/Filters.js.map +1 -1
  126. package/components/Filters/index.d.ts +2 -2
  127. package/components/Filters/index.js +2 -2
  128. package/components/Filters/index.js.map +1 -1
  129. package/components/FloatingActionButton.js +1 -1
  130. package/components/FloatingActionButton.js.map +1 -1
  131. package/components/FloatingPanel.js +4 -6
  132. package/components/FloatingPanel.js.map +1 -1
  133. package/components/IconPicker/IconPicker.d.ts +3 -3
  134. package/components/IconPicker/IconPicker.js +6 -6
  135. package/components/IconPicker/IconPicker.js.map +1 -1
  136. package/components/IconPicker/IconPickerComponent.d.ts +3 -3
  137. package/components/IconPicker/IconPickerComponent.js +4 -4
  138. package/components/IconPicker/IconPickerComponent.js.map +1 -1
  139. package/components/IconPicker/IconPickerPresenter.d.ts +3 -3
  140. package/components/IconPicker/IconPickerPresenter.js.map +1 -1
  141. package/components/IconPicker/IconPickerPresenter.test.js +3 -2
  142. package/components/IconPicker/IconPickerPresenter.test.js.map +1 -1
  143. package/components/IconPicker/IconPickerPresenterProvider.d.ts +1 -1
  144. package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -1
  145. package/components/IconPicker/IconPickerTab.d.ts +1 -1
  146. package/components/IconPicker/IconPickerTab.js +10 -10
  147. package/components/IconPicker/IconPickerTab.js.map +1 -1
  148. package/components/IconPicker/IconRenderer.d.ts +1 -1
  149. package/components/IconPicker/IconRenderer.js.map +1 -1
  150. package/components/IconPicker/IconRepository.d.ts +2 -2
  151. package/components/IconPicker/IconRepository.js +2 -2
  152. package/components/IconPicker/IconRepository.js.map +1 -1
  153. package/components/IconPicker/IconRepository.test.js +2 -1
  154. package/components/IconPicker/IconRepository.test.js.map +1 -1
  155. package/components/IconPicker/IconRepositoryFactory.d.ts +2 -2
  156. package/components/IconPicker/IconRepositoryFactory.js +1 -1
  157. package/components/IconPicker/IconRepositoryFactory.js.map +1 -1
  158. package/components/IconPicker/components/IconPickerCell.d.ts +2 -2
  159. package/components/IconPicker/components/IconPickerCell.js +3 -3
  160. package/components/IconPicker/components/IconPickerCell.js.map +1 -1
  161. package/components/IconPicker/components/IconPickerContent.d.ts +1 -1
  162. package/components/IconPicker/components/IconPickerContent.js +4 -4
  163. package/components/IconPicker/components/IconPickerContent.js.map +1 -1
  164. package/components/IconPicker/components/IconPickerRow.js +1 -1
  165. package/components/IconPicker/components/IconPickerRow.js.map +1 -1
  166. package/components/IconPicker/components/IconPickerTrigger.d.ts +1 -1
  167. package/components/IconPicker/components/IconPickerTrigger.js +7 -7
  168. package/components/IconPicker/components/IconPickerTrigger.js.map +1 -1
  169. package/components/IconPicker/components/index.d.ts +4 -4
  170. package/components/IconPicker/components/index.js +4 -4
  171. package/components/IconPicker/components/index.js.map +1 -1
  172. package/components/IconPicker/config/Emojis.js +1 -1
  173. package/components/IconPicker/config/Emojis.js.map +1 -1
  174. package/components/IconPicker/config/FontAwesomeIcons.js +1 -1
  175. package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -1
  176. package/components/IconPicker/config/IconPackProvider.d.ts +1 -1
  177. package/components/IconPicker/config/IconPackProvider.js.map +1 -1
  178. package/components/IconPicker/config/IconType.js +2 -2
  179. package/components/IconPicker/config/IconType.js.map +1 -1
  180. package/components/IconPicker/config/index.d.ts +3 -3
  181. package/components/IconPicker/config/index.js +7 -7
  182. package/components/IconPicker/config/index.js.map +1 -1
  183. package/components/IconPicker/index.d.ts +7 -7
  184. package/components/IconPicker/index.js +6 -6
  185. package/components/IconPicker/index.js.map +1 -1
  186. package/components/IconPicker/plugins/customPlugin.js +19 -24
  187. package/components/IconPicker/plugins/customPlugin.js.map +1 -1
  188. package/components/IconPicker/plugins/emojisPlugin.js +9 -9
  189. package/components/IconPicker/plugins/emojisPlugin.js.map +1 -1
  190. package/components/IconPicker/plugins/iconsPlugin.js +4 -4
  191. package/components/IconPicker/plugins/iconsPlugin.js.map +1 -1
  192. package/components/IconPicker/types.js.map +1 -1
  193. package/components/LexicalEditor/LexicalEditor.d.ts +9 -5
  194. package/components/LexicalEditor/LexicalEditor.js +32 -21
  195. package/components/LexicalEditor/LexicalEditor.js.map +1 -1
  196. package/components/LexicalEditor/LexicalLinkForm.d.ts +6 -0
  197. package/components/LexicalEditor/LexicalLinkForm.js +92 -0
  198. package/components/LexicalEditor/LexicalLinkForm.js.map +1 -0
  199. package/components/LexicalEditor/index.d.ts +3 -1
  200. package/components/LexicalEditor/index.js +3 -1
  201. package/components/LexicalEditor/index.js.map +1 -1
  202. package/components/LexicalEditor/lexicalValueWithHtml.d.ts +7 -0
  203. package/components/LexicalEditor/lexicalValueWithHtml.js +36 -0
  204. package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -0
  205. package/components/NavigationPrompt.d.ts +27 -0
  206. package/components/NavigationPrompt.js +39 -0
  207. package/components/NavigationPrompt.js.map +1 -0
  208. package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -0
  209. package/components/NotAuthorizedError/NotAuthorizedError.js +20 -0
  210. package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
  211. package/components/NotAuthorizedError/SecureRouteError.svg +1 -0
  212. package/components/NotAuthorizedError/index.d.ts +1 -0
  213. package/components/NotAuthorizedError/index.js +3 -0
  214. package/components/NotAuthorizedError/index.js.map +1 -0
  215. package/components/OptionsMenu/OptionsMenu.js +1 -1
  216. package/components/OptionsMenu/OptionsMenu.js.map +1 -1
  217. package/components/OptionsMenu/index.d.ts +4 -4
  218. package/components/OptionsMenu/index.js +4 -4
  219. package/components/OptionsMenu/index.js.map +1 -1
  220. package/components/OptionsMenu/useOptionsMenuItem.d.ts +2 -2
  221. package/components/OptionsMenu/useOptionsMenuItem.js +2 -2
  222. package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -1
  223. package/components/OverlayLayout/OverlayLayout.d.ts +1 -1
  224. package/components/OverlayLayout/OverlayLayout.js +8 -11
  225. package/components/OverlayLayout/OverlayLayout.js.map +1 -1
  226. package/components/OverlayLayout/components/OverlayBackdrop.js +1 -1
  227. package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -1
  228. package/components/OverlayLayout/components/OverlayContent.js +1 -1
  229. package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
  230. package/components/OverlayLayout/components/OverlayHeader.js +3 -3
  231. package/components/OverlayLayout/components/OverlayHeader.js.map +1 -1
  232. package/components/OverlayLayout/components/OverlayRoot.js +1 -1
  233. package/components/OverlayLayout/components/OverlayRoot.js.map +1 -1
  234. package/components/OverlayLayout/components/index.d.ts +4 -4
  235. package/components/OverlayLayout/components/index.js +4 -4
  236. package/components/OverlayLayout/components/index.js.map +1 -1
  237. package/components/OverlayLayout/index.d.ts +1 -1
  238. package/components/OverlayLayout/index.js +1 -1
  239. package/components/OverlayLayout/index.js.map +1 -1
  240. package/components/Permissions/Permissions.d.ts +1 -3
  241. package/components/Permissions/Permissions.js +37 -31
  242. package/components/Permissions/Permissions.js.map +1 -1
  243. package/components/Permissions/PermissionsGroup.js +2 -2
  244. package/components/Permissions/PermissionsGroup.js.map +1 -1
  245. package/components/Permissions/StyledComponents.js +1 -1
  246. package/components/Permissions/StyledComponents.js.map +1 -1
  247. package/components/Permissions/index.d.ts +4 -4
  248. package/components/Permissions/index.js +4 -4
  249. package/components/Permissions/index.js.map +1 -1
  250. package/components/RegisterFeature.d.ts +11 -0
  251. package/components/RegisterFeature.js +26 -0
  252. package/components/RegisterFeature.js.map +1 -0
  253. package/components/ResizablePanels/index.d.ts +1 -1
  254. package/components/ResizablePanels/index.js +1 -1
  255. package/components/ResizablePanels/index.js.map +1 -1
  256. package/components/RoleAutocomplete/graphql.d.ts +1 -0
  257. package/components/RoleAutocomplete/graphql.js +18 -0
  258. package/components/RoleAutocomplete/graphql.js.map +1 -0
  259. package/components/RoleAutocomplete/index.d.ts +5 -0
  260. package/components/RoleAutocomplete/index.js +18 -0
  261. package/components/RoleAutocomplete/index.js.map +1 -0
  262. package/components/RolesMultiAutocomplete/graphql.d.ts +1 -0
  263. package/components/RolesMultiAutocomplete/graphql.js +23 -0
  264. package/components/RolesMultiAutocomplete/graphql.js.map +1 -0
  265. package/components/RolesMultiAutocomplete/index.d.ts +5 -0
  266. package/components/RolesMultiAutocomplete/index.js +19 -0
  267. package/components/RolesMultiAutocomplete/index.js.map +1 -0
  268. package/components/SearchUI.d.ts +1 -2
  269. package/components/SearchUI.js +1 -2
  270. package/components/SearchUI.js.map +1 -1
  271. package/components/SimpleForm/SimpleForm.d.ts +1 -1
  272. package/components/SimpleForm/SimpleForm.js +10 -10
  273. package/components/SimpleForm/SimpleForm.js.map +1 -1
  274. package/components/SimpleForm/index.d.ts +1 -1
  275. package/components/SimpleForm/index.js +1 -1
  276. package/components/SimpleForm/index.js.map +1 -1
  277. package/components/SimpleUI/InputField.js +3 -3
  278. package/components/SimpleUI/InputField.js.map +1 -1
  279. package/components/SingleImageUpload.d.ts +3 -8
  280. package/components/SingleImageUpload.js +1 -1
  281. package/components/SingleImageUpload.js.map +1 -1
  282. package/components/SplitView/SplitView.d.ts +7 -7
  283. package/components/SplitView/SplitView.js +20 -12
  284. package/components/SplitView/SplitView.js.map +1 -1
  285. package/components/SplitView/index.d.ts +1 -1
  286. package/components/SplitView/index.js +1 -1
  287. package/components/SplitView/index.js.map +1 -1
  288. package/components/StateInspector.js +1 -1
  289. package/components/StateInspector.js.map +1 -1
  290. package/components/TeamAutocomplete/graphql.d.ts +1 -0
  291. package/components/TeamAutocomplete/graphql.js +18 -0
  292. package/components/TeamAutocomplete/graphql.js.map +1 -0
  293. package/components/TeamAutocomplete/index.d.ts +5 -0
  294. package/components/TeamAutocomplete/index.js +18 -0
  295. package/components/TeamAutocomplete/index.js.map +1 -0
  296. package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
  297. package/components/TeamsMultiAutocomplete/graphql.js +23 -0
  298. package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
  299. package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
  300. package/components/TeamsMultiAutocomplete/index.js +19 -0
  301. package/components/TeamsMultiAutocomplete/index.js.map +1 -0
  302. package/components/Wcp.d.ts +4 -0
  303. package/components/Wcp.js +16 -2
  304. package/components/Wcp.js.map +1 -1
  305. package/components/index.d.ts +30 -3
  306. package/components/index.js +29 -3
  307. package/components/index.js.map +1 -1
  308. package/config/AdminConfig/Dashboard.d.ts +3 -0
  309. package/config/AdminConfig/Dashboard.js +6 -0
  310. package/config/AdminConfig/Dashboard.js.map +1 -0
  311. package/config/AdminConfig/LexicalTheme/Color.d.ts +11 -0
  312. package/config/AdminConfig/LexicalTheme/Color.js +45 -0
  313. package/config/AdminConfig/LexicalTheme/Color.js.map +1 -0
  314. package/config/AdminConfig/LexicalTheme/Typography.d.ts +30 -0
  315. package/config/AdminConfig/LexicalTheme/Typography.js +79 -0
  316. package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -0
  317. package/config/AdminConfig/LexicalTheme.d.ts +9 -0
  318. package/config/AdminConfig/LexicalTheme.js +8 -0
  319. package/config/AdminConfig/LexicalTheme.js.map +1 -0
  320. package/config/AdminConfig/Logo.d.ts +24 -0
  321. package/config/AdminConfig/Logo.js +21 -0
  322. package/config/AdminConfig/Logo.js.map +1 -0
  323. package/config/AdminConfig/Menu/MenuGroup.d.ts +10 -10
  324. package/config/AdminConfig/Menu/MenuGroup.js +1 -1
  325. package/config/AdminConfig/Menu/MenuGroup.js.map +1 -1
  326. package/config/AdminConfig/Menu/MenuItem.d.ts +9 -9
  327. package/config/AdminConfig/Menu/MenuItem.js +1 -1
  328. package/config/AdminConfig/Menu/MenuItem.js.map +1 -1
  329. package/config/AdminConfig/Menu/MenuLink.d.ts +14 -14
  330. package/config/AdminConfig/Menu/MenuLink.js +10 -4
  331. package/config/AdminConfig/Menu/MenuLink.js.map +1 -1
  332. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +2 -2
  333. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +1 -1
  334. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -1
  335. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +1 -1
  336. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +1 -1
  337. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -1
  338. package/config/AdminConfig/Menu/SupportMenu.d.ts +15 -15
  339. package/config/AdminConfig/Menu/SupportMenu.js +3 -3
  340. package/config/AdminConfig/Menu/SupportMenu.js.map +1 -1
  341. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +14 -15
  342. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +1 -1
  343. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -1
  344. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +14 -15
  345. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +1 -1
  346. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -1
  347. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -1
  348. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +1 -1
  349. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -1
  350. package/config/AdminConfig/Menu/UserMenu.d.ts +31 -31
  351. package/config/AdminConfig/Menu/UserMenu.js +4 -4
  352. package/config/AdminConfig/Menu/UserMenu.js.map +1 -1
  353. package/config/AdminConfig/Menu.d.ts +105 -103
  354. package/config/AdminConfig/Menu.js +17 -7
  355. package/config/AdminConfig/Menu.js.map +1 -1
  356. package/config/AdminConfig/Route.d.ts +1 -1
  357. package/config/AdminConfig/Route.js +2 -2
  358. package/config/AdminConfig/Route.js.map +1 -1
  359. package/config/AdminConfig/Security.d.ts +3 -0
  360. package/config/AdminConfig/Security.js +6 -0
  361. package/config/AdminConfig/Security.js.map +1 -0
  362. package/config/AdminConfig/SecurityPermissions.d.ts +17 -0
  363. package/config/AdminConfig/SecurityPermissions.js +31 -0
  364. package/config/AdminConfig/SecurityPermissions.js.map +1 -0
  365. package/config/AdminConfig/Tenant/TenantLogo.d.ts +8 -7
  366. package/config/AdminConfig/Tenant/TenantLogo.js +14 -6
  367. package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -1
  368. package/config/AdminConfig/Tenant/TenantName.d.ts +1 -1
  369. package/config/AdminConfig/Tenant/TenantName.js +5 -2
  370. package/config/AdminConfig/Tenant/TenantName.js.map +1 -1
  371. package/config/AdminConfig/Tenant.d.ts +14 -31
  372. package/config/AdminConfig/Tenant.js +4 -13
  373. package/config/AdminConfig/Tenant.js.map +1 -1
  374. package/config/AdminConfig/Theme/assignColor.d.ts +1 -1
  375. package/config/AdminConfig/Theme/assignColor.js +1 -1
  376. package/config/AdminConfig/Theme/assignColor.js.map +1 -1
  377. package/config/AdminConfig/Theme/types.d.ts +1 -1
  378. package/config/AdminConfig/Theme/types.js.map +1 -1
  379. package/config/AdminConfig/Theme.d.ts +1 -1
  380. package/config/AdminConfig/Theme.js +1 -1
  381. package/config/AdminConfig/Theme.js.map +1 -1
  382. package/config/AdminConfig/Title.d.ts +23 -0
  383. package/config/AdminConfig/Title.js +16 -0
  384. package/config/AdminConfig/Title.js.map +1 -0
  385. package/config/AdminConfig/Widget.d.ts +15 -0
  386. package/config/AdminConfig/Widget.js +36 -0
  387. package/config/AdminConfig/Widget.js.map +1 -0
  388. package/config/AdminConfig.d.ts +202 -150
  389. package/config/AdminConfig.js +35 -9
  390. package/config/AdminConfig.js.map +1 -1
  391. package/config/createAdminConfig.js.map +1 -1
  392. package/css/tokens.css +379 -0
  393. package/css/typography.css +70 -0
  394. package/domain/Identity.d.ts +59 -0
  395. package/domain/Identity.js +96 -0
  396. package/domain/Identity.js.map +1 -0
  397. package/errors/ErrorOverlayNetworkErrorHandler.d.ts +11 -0
  398. package/errors/ErrorOverlayNetworkErrorHandler.js +66 -0
  399. package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -0
  400. package/errors/TenantIsDisabled.d.ts +2 -0
  401. package/errors/TenantIsDisabled.js +23 -0
  402. package/errors/TenantIsDisabled.js.map +1 -0
  403. package/exports/admin/build-params.d.ts +1 -0
  404. package/exports/admin/build-params.js +3 -0
  405. package/exports/admin/build-params.js.map +1 -0
  406. package/exports/admin/configs.d.ts +1 -0
  407. package/exports/admin/configs.js +3 -0
  408. package/exports/admin/configs.js.map +1 -0
  409. package/exports/admin/form.d.ts +11 -0
  410. package/exports/admin/form.js +12 -0
  411. package/exports/admin/form.js.map +1 -0
  412. package/exports/admin/security.d.ts +8 -0
  413. package/exports/admin/security.js +10 -0
  414. package/exports/admin/security.js.map +1 -0
  415. package/exports/admin/tenancy.d.ts +2 -0
  416. package/exports/admin/tenancy.js +4 -0
  417. package/exports/admin/tenancy.js.map +1 -0
  418. package/exports/admin/ui.d.ts +4 -0
  419. package/exports/admin/ui.js +6 -0
  420. package/exports/admin/ui.js.map +1 -0
  421. package/exports/admin.d.ts +7 -0
  422. package/exports/admin.js +9 -0
  423. package/exports/admin.js.map +1 -0
  424. package/features/apolloClient/abstraction.d.ts +5 -0
  425. package/features/apolloClient/abstraction.js +4 -0
  426. package/features/apolloClient/abstraction.js.map +1 -0
  427. package/features/apolloClient/feature.d.ts +2 -0
  428. package/features/apolloClient/feature.js +39 -0
  429. package/features/apolloClient/feature.js.map +1 -0
  430. package/features/buildParams/BuildParams.d.ts +9 -0
  431. package/features/buildParams/BuildParams.js +18 -0
  432. package/features/buildParams/BuildParams.js.map +1 -0
  433. package/features/buildParams/abstractions.d.ts +15 -0
  434. package/features/buildParams/abstractions.js +5 -0
  435. package/features/buildParams/abstractions.js.map +1 -0
  436. package/features/buildParams/feature.d.ts +1 -0
  437. package/features/buildParams/feature.js +10 -0
  438. package/features/buildParams/feature.js.map +1 -0
  439. package/features/buildParams/index.d.ts +2 -0
  440. package/features/buildParams/index.js +4 -0
  441. package/features/buildParams/index.js.map +1 -0
  442. package/features/security/AuthenticationContext/AuthenticationContext.d.ts +15 -0
  443. package/features/security/AuthenticationContext/AuthenticationContext.js +31 -0
  444. package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -0
  445. package/features/security/AuthenticationContext/GraphQLClientDecorator.d.ts +12 -0
  446. package/features/security/AuthenticationContext/GraphQLClientDecorator.js +30 -0
  447. package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -0
  448. package/features/security/AuthenticationContext/InternalIdTokenProvider.d.ts +10 -0
  449. package/features/security/AuthenticationContext/InternalIdTokenProvider.js +17 -0
  450. package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -0
  451. package/features/security/AuthenticationContext/abstractions.d.ts +26 -0
  452. package/features/security/AuthenticationContext/abstractions.js +5 -0
  453. package/features/security/AuthenticationContext/abstractions.js.map +1 -0
  454. package/features/security/AuthenticationContext/feature.d.ts +3 -0
  455. package/features/security/AuthenticationContext/feature.js +20 -0
  456. package/features/security/AuthenticationContext/feature.js.map +1 -0
  457. package/features/security/AuthenticationContext/index.d.ts +1 -0
  458. package/features/security/AuthenticationContext/index.js +3 -0
  459. package/features/security/AuthenticationContext/index.js.map +1 -0
  460. package/features/security/AuthenticationContext/types.d.ts +11 -0
  461. package/features/security/AuthenticationContext/types.js.map +1 -0
  462. package/features/security/IdentityContext/IdentityContext.d.ts +13 -0
  463. package/features/security/IdentityContext/IdentityContext.js +24 -0
  464. package/features/security/IdentityContext/IdentityContext.js.map +1 -0
  465. package/features/security/IdentityContext/abstractions.d.ts +10 -0
  466. package/features/security/IdentityContext/abstractions.js +4 -0
  467. package/features/security/IdentityContext/abstractions.js.map +1 -0
  468. package/features/security/IdentityContext/feature.d.ts +3 -0
  469. package/features/security/IdentityContext/feature.js +16 -0
  470. package/features/security/IdentityContext/feature.js.map +1 -0
  471. package/features/security/IdentityContext/index.d.ts +2 -0
  472. package/features/security/IdentityContext/index.js +4 -0
  473. package/features/security/IdentityContext/index.js.map +1 -0
  474. package/features/security/LogIn/IdentityMapper.d.ts +9 -0
  475. package/features/security/LogIn/IdentityMapper.js +13 -0
  476. package/features/security/LogIn/IdentityMapper.js.map +1 -0
  477. package/features/security/LogIn/LogInGateway.d.ts +11 -0
  478. package/features/security/LogIn/LogInGateway.js +27 -0
  479. package/features/security/LogIn/LogInGateway.js.map +1 -0
  480. package/features/security/LogIn/LogInRepository.d.ts +14 -0
  481. package/features/security/LogIn/LogInRepository.js +19 -0
  482. package/features/security/LogIn/LogInRepository.js.map +1 -0
  483. package/features/security/LogIn/LogInUseCase.d.ts +15 -0
  484. package/features/security/LogIn/LogInUseCase.js +40 -0
  485. package/features/security/LogIn/LogInUseCase.js.map +1 -0
  486. package/features/security/LogIn/abstractions.d.ts +48 -0
  487. package/features/security/LogIn/abstractions.js +19 -0
  488. package/features/security/LogIn/abstractions.js.map +1 -0
  489. package/features/security/LogIn/createLoginMutation.d.ts +1 -0
  490. package/features/security/LogIn/createLoginMutation.js +49 -0
  491. package/features/security/LogIn/createLoginMutation.js.map +1 -0
  492. package/features/security/LogIn/feature.d.ts +3 -0
  493. package/features/security/LogIn/feature.js +22 -0
  494. package/features/security/LogIn/feature.js.map +1 -0
  495. package/features/security/LogIn/index.d.ts +1 -0
  496. package/features/security/LogIn/index.js +3 -0
  497. package/features/security/LogIn/index.js.map +1 -0
  498. package/features/security/LogOut/LogOutUseCase.d.ts +13 -0
  499. package/features/security/LogOut/LogOutUseCase.js +23 -0
  500. package/features/security/LogOut/LogOutUseCase.js.map +1 -0
  501. package/features/security/LogOut/abstractions.d.ts +7 -0
  502. package/features/security/LogOut/abstractions.js +4 -0
  503. package/features/security/LogOut/abstractions.js.map +1 -0
  504. package/features/security/LogOut/feature.d.ts +3 -0
  505. package/features/security/LogOut/feature.js +16 -0
  506. package/features/security/LogOut/feature.js.map +1 -0
  507. package/features/security/LogOut/index.d.ts +2 -0
  508. package/features/security/LogOut/index.js +4 -0
  509. package/features/security/LogOut/index.js.map +1 -0
  510. package/features/security/SecurityFeature.d.ts +1 -0
  511. package/features/security/SecurityFeature.js +16 -0
  512. package/features/security/SecurityFeature.js.map +1 -0
  513. package/features/telemetry/TelemetryService.d.ts +6 -0
  514. package/features/telemetry/TelemetryService.js +20 -0
  515. package/features/telemetry/TelemetryService.js.map +1 -0
  516. package/features/telemetry/abstractions.d.ts +7 -0
  517. package/features/telemetry/abstractions.js +4 -0
  518. package/features/telemetry/abstractions.js.map +1 -0
  519. package/features/telemetry/feature.d.ts +3 -0
  520. package/features/telemetry/feature.js +16 -0
  521. package/features/telemetry/feature.js.map +1 -0
  522. package/features/telemetry/index.d.ts +2 -0
  523. package/features/telemetry/index.js +4 -0
  524. package/features/telemetry/index.js.map +1 -0
  525. package/features/tenancy/GraphQLClientDecorator.d.ts +12 -0
  526. package/features/tenancy/GraphQLClientDecorator.js +27 -0
  527. package/features/tenancy/GraphQLClientDecorator.js.map +1 -0
  528. package/features/tenancy/TenantContext.d.ts +17 -0
  529. package/features/tenancy/TenantContext.js +61 -0
  530. package/features/tenancy/TenantContext.js.map +1 -0
  531. package/features/tenancy/abstractions.d.ts +14 -0
  532. package/features/tenancy/abstractions.js +4 -0
  533. package/features/tenancy/abstractions.js.map +1 -0
  534. package/features/tenancy/feature.d.ts +5 -0
  535. package/features/tenancy/feature.js +41 -0
  536. package/features/tenancy/feature.js.map +1 -0
  537. package/features/tenancy/types.d.ts +4 -0
  538. package/features/tenancy/types.js +3 -0
  539. package/features/tenancy/types.js.map +1 -0
  540. package/features/wcp/ReactLicense.d.ts +19 -0
  541. package/features/wcp/ReactLicense.js +46 -0
  542. package/features/wcp/ReactLicense.js.map +1 -0
  543. package/features/wcp/WcpGateway.d.ts +10 -0
  544. package/features/wcp/WcpGateway.js +73 -0
  545. package/features/wcp/WcpGateway.js.map +1 -0
  546. package/features/wcp/WcpService.d.ts +20 -0
  547. package/features/wcp/WcpService.js +84 -0
  548. package/features/wcp/WcpService.js.map +1 -0
  549. package/features/wcp/abstractions.d.ts +19 -0
  550. package/features/wcp/abstractions.js +5 -0
  551. package/features/wcp/abstractions.js.map +1 -0
  552. package/features/wcp/feature.d.ts +3 -0
  553. package/features/wcp/feature.js +18 -0
  554. package/features/wcp/feature.js.map +1 -0
  555. package/features/wcp/types.d.ts +21 -0
  556. package/features/wcp/types.js +3 -0
  557. package/features/wcp/types.js.map +1 -0
  558. package/hooks/index.d.ts +11 -10
  559. package/hooks/index.js +11 -10
  560. package/hooks/index.js.map +1 -1
  561. package/hooks/useConfirmationDialog.js +3 -3
  562. package/hooks/useConfirmationDialog.js.map +1 -1
  563. package/hooks/useDialog.js +1 -1
  564. package/hooks/useDialog.js.map +1 -1
  565. package/hooks/useKeyHandler.js +1 -1
  566. package/hooks/useKeyHandler.js.map +1 -1
  567. package/hooks/useModKey.js +1 -2
  568. package/hooks/useModKey.js.map +1 -1
  569. package/hooks/useShiftKey.js +1 -1
  570. package/hooks/useShiftKey.js.map +1 -1
  571. package/hooks/useStateIfMounted.d.ts +0 -1
  572. package/hooks/useStateIfMounted.js +1 -1
  573. package/hooks/useStateIfMounted.js.map +1 -1
  574. package/hooks/useToggler.d.ts +7 -0
  575. package/hooks/useToggler.js +15 -0
  576. package/hooks/useToggler.js.map +1 -0
  577. package/index.d.ts +34 -45
  578. package/index.js +36 -43
  579. package/index.js.map +1 -1
  580. package/lexical.css +2 -0
  581. package/package.json +42 -47
  582. package/permissions/PermissionRenderer.d.ts +6 -0
  583. package/permissions/PermissionRenderer.js +219 -0
  584. package/permissions/PermissionRenderer.js.map +1 -0
  585. package/permissions/PermissionValueContext.d.ts +11 -0
  586. package/permissions/PermissionValueContext.js +23 -0
  587. package/permissions/PermissionValueContext.js.map +1 -0
  588. package/permissions/createHasPermission.d.ts +3 -0
  589. package/permissions/createHasPermission.js +36 -0
  590. package/permissions/createHasPermission.js.map +1 -0
  591. package/permissions/createPermissionSchema.d.ts +2 -0
  592. package/permissions/createPermissionSchema.js +8 -0
  593. package/permissions/createPermissionSchema.js.map +1 -0
  594. package/permissions/index.d.ts +8 -0
  595. package/permissions/index.js +8 -0
  596. package/permissions/index.js.map +1 -0
  597. package/permissions/types.d.ts +242 -0
  598. package/permissions/types.js +3 -0
  599. package/permissions/types.js.map +1 -0
  600. package/permissions/usePermissionForm.d.ts +17 -0
  601. package/permissions/usePermissionForm.js +256 -0
  602. package/permissions/usePermissionForm.js.map +1 -0
  603. package/permissions/usePermissions.d.ts +3 -0
  604. package/permissions/usePermissions.js +180 -0
  605. package/permissions/usePermissions.js.map +1 -0
  606. package/presentation/installation/components/SystemInstaller/SystemInstaller.d.ts +8 -0
  607. package/presentation/installation/components/SystemInstaller/SystemInstaller.js +70 -0
  608. package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -0
  609. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.d.ts +2 -0
  610. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +17 -0
  611. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -0
  612. package/presentation/installation/components/SystemInstaller/index.d.ts +1 -0
  613. package/presentation/installation/components/SystemInstaller/index.js +3 -0
  614. package/presentation/installation/components/SystemInstaller/index.js.map +1 -0
  615. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +8 -0
  616. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +32 -0
  617. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -0
  618. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.d.ts +1 -0
  619. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +15 -0
  620. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -0
  621. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.d.ts +7 -0
  622. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +69 -0
  623. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -0
  624. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.d.ts +7 -0
  625. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +95 -0
  626. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -0
  627. package/presentation/installation/components/SystemInstaller/steps/Center.d.ts +4 -0
  628. package/presentation/installation/components/SystemInstaller/steps/Center.js +10 -0
  629. package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -0
  630. package/presentation/installation/components/SystemInstaller/steps/Container.d.ts +8 -0
  631. package/presentation/installation/components/SystemInstaller/steps/Container.js +28 -0
  632. package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -0
  633. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.d.ts +11 -0
  634. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +58 -0
  635. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -0
  636. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.d.ts +7 -0
  637. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +21 -0
  638. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -0
  639. package/presentation/installation/components/SystemInstaller/steps/introduction.svg +154 -0
  640. package/presentation/installation/components/SystemInstaller/steps/referralSources.d.ts +1 -0
  641. package/presentation/installation/components/SystemInstaller/steps/referralSources.js +3 -0
  642. package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -0
  643. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +10 -0
  644. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +63 -0
  645. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -0
  646. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.d.ts +24 -0
  647. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +138 -0
  648. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -0
  649. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.d.ts +11 -0
  650. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +30 -0
  651. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -0
  652. package/presentation/installation/presenters/SystemInstaller/abstractions.d.ts +59 -0
  653. package/presentation/installation/presenters/SystemInstaller/abstractions.js +6 -0
  654. package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -0
  655. package/presentation/installation/presenters/SystemInstaller/feature.d.ts +3 -0
  656. package/presentation/installation/presenters/SystemInstaller/feature.js +20 -0
  657. package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -0
  658. package/presentation/installation/presenters/SystemInstaller/index.d.ts +3 -0
  659. package/presentation/installation/presenters/SystemInstaller/index.js +4 -0
  660. package/presentation/installation/presenters/SystemInstaller/index.js.map +1 -0
  661. package/presentation/security/components/HasPermission.d.ts +10 -0
  662. package/presentation/security/components/HasPermission.js +31 -0
  663. package/presentation/security/components/HasPermission.js.map +1 -0
  664. package/presentation/security/components/SecureRoute.d.ts +7 -0
  665. package/presentation/security/components/SecureRoute.js +16 -0
  666. package/presentation/security/components/SecureRoute.js.map +1 -0
  667. package/presentation/security/hooks/useAuthentication.d.ts +9 -0
  668. package/presentation/security/hooks/useAuthentication.js +24 -0
  669. package/presentation/security/hooks/useAuthentication.js.map +1 -0
  670. package/presentation/security/hooks/useIdentity.d.ts +6 -0
  671. package/presentation/security/hooks/useIdentity.js +25 -0
  672. package/presentation/security/hooks/useIdentity.js.map +1 -0
  673. package/presentation/security/hooks/useSecurity.d.ts +10 -0
  674. package/presentation/security/hooks/useSecurity.js +28 -0
  675. package/presentation/security/hooks/useSecurity.js.map +1 -0
  676. package/presentation/tenancy/TenancyProvider.d.ts +6 -0
  677. package/presentation/tenancy/TenancyProvider.js +43 -0
  678. package/presentation/tenancy/TenancyProvider.js.map +1 -0
  679. package/presentation/tenancy/createTenancyProvider.d.ts +1 -0
  680. package/presentation/tenancy/createTenancyProvider.js +14 -0
  681. package/presentation/tenancy/createTenancyProvider.js.map +1 -0
  682. package/presentation/tenancy/useTenantContext.d.ts +5 -0
  683. package/presentation/tenancy/useTenantContext.js +24 -0
  684. package/presentation/tenancy/useTenantContext.js.map +1 -0
  685. package/presentation/wcp/WcpProvider.d.ts +7 -0
  686. package/presentation/wcp/WcpProvider.js +26 -0
  687. package/presentation/wcp/WcpProvider.js.map +1 -0
  688. package/presentation/wcp/useWcp.d.ts +2 -0
  689. package/presentation/wcp/useWcp.js +18 -0
  690. package/presentation/wcp/useWcp.js.map +1 -0
  691. package/routes.d.ts +6 -0
  692. package/routes.js +17 -0
  693. package/routes.js.map +1 -0
  694. package/types.d.ts +3 -76
  695. package/types.js +1 -5
  696. package/types.js.map +1 -1
  697. package/base/Base/Routes.d.ts +0 -2
  698. package/base/Base/Routes.js +0 -24
  699. package/base/Base/Routes.js.map +0 -1
  700. package/base/providers/TelemetryProvider.d.ts +0 -1
  701. package/base/providers/TelemetryProvider.js +0 -22
  702. package/base/providers/TelemetryProvider.js.map +0 -1
  703. package/base/providers/ViewCompositionProvider.d.ts +0 -21
  704. package/base/providers/ViewCompositionProvider.js +0 -47
  705. package/base/providers/ViewCompositionProvider.js.map +0 -1
  706. package/base/ui/LocaleSelector.d.ts +0 -39
  707. package/base/ui/LocaleSelector.js +0 -8
  708. package/base/ui/LocaleSelector.js.map +0 -1
  709. package/components/AppInstaller/AppInstaller.d.ts +0 -11
  710. package/components/AppInstaller/AppInstaller.js +0 -113
  711. package/components/AppInstaller/AppInstaller.js.map +0 -1
  712. package/components/AppInstaller/Sidebar.d.ts +0 -9
  713. package/components/AppInstaller/Sidebar.js +0 -108
  714. package/components/AppInstaller/Sidebar.js.map +0 -1
  715. package/components/AppInstaller/assets/sign-in-divider.svg +0 -19
  716. package/components/AppInstaller/index.d.ts +0 -2
  717. package/components/AppInstaller/index.js +0 -17
  718. package/components/AppInstaller/index.js.map +0 -1
  719. package/components/AppInstaller/styled.d.ts +0 -19
  720. package/components/AppInstaller/styled.js +0 -75
  721. package/components/AppInstaller/styled.js.map +0 -1
  722. package/components/AppInstaller/useInstaller.d.ts +0 -25
  723. package/components/AppInstaller/useInstaller.js +0 -169
  724. package/components/AppInstaller/useInstaller.js.map +0 -1
  725. package/components/Dialogs/CustomDialog.d.ts +0 -17
  726. package/components/Dialogs/CustomDialog.js +0 -48
  727. package/components/Dialogs/CustomDialog.js.map +0 -1
  728. package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
  729. package/components/RichTextEditor/RichTextEditor.js +0 -16
  730. package/components/RichTextEditor/RichTextEditor.js.map +0 -1
  731. package/components/RichTextEditor/index.d.ts +0 -2
  732. package/components/RichTextEditor/index.js +0 -4
  733. package/components/RichTextEditor/index.js.map +0 -1
  734. package/components/RichTextEditor/styles.scss +0 -96
  735. package/components/RichTextEditor/tools/header/index.d.ts +0 -228
  736. package/components/RichTextEditor/tools/header/index.js +0 -615
  737. package/components/RichTextEditor/tools/header/index.js.map +0 -1
  738. package/components/RichTextEditor/tools/header/styles.scss +0 -48
  739. package/components/RichTextEditor/tools/image/index.d.ts +0 -122
  740. package/components/RichTextEditor/tools/image/index.js +0 -202
  741. package/components/RichTextEditor/tools/image/index.js.map +0 -1
  742. package/components/RichTextEditor/tools/image/styles.scss +0 -90
  743. package/components/RichTextEditor/tools/image/svgs.d.ts +0 -6
  744. package/components/RichTextEditor/tools/image/svgs.js +0 -7
  745. package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
  746. package/components/RichTextEditor/tools/image/tunes.d.ts +0 -55
  747. package/components/RichTextEditor/tools/image/tunes.js +0 -103
  748. package/components/RichTextEditor/tools/image/tunes.js.map +0 -1
  749. package/components/RichTextEditor/tools/image/types.d.ts +0 -29
  750. package/components/RichTextEditor/tools/image/types.js.map +0 -1
  751. package/components/RichTextEditor/tools/image/ui.d.ts +0 -120
  752. package/components/RichTextEditor/tools/image/ui.js +0 -245
  753. package/components/RichTextEditor/tools/image/ui.js.map +0 -1
  754. package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -208
  755. package/components/RichTextEditor/tools/paragraph/index.js +0 -435
  756. package/components/RichTextEditor/tools/paragraph/index.js.map +0 -1
  757. package/components/RichTextEditor/tools/paragraph/styles.scss +0 -29
  758. package/components/RichTextEditor/tools/textColor/index.d.ts +0 -61
  759. package/components/RichTextEditor/tools/textColor/index.js +0 -197
  760. package/components/RichTextEditor/tools/textColor/index.js.map +0 -1
  761. package/components/RichTextEditor/tools/textColor/styles.scss +0 -21
  762. package/components/RichTextEditor/tools/utils.d.ts +0 -19
  763. package/components/RichTextEditor/tools/utils.js +0 -24
  764. package/components/RichTextEditor/tools/utils.js.map +0 -1
  765. package/components/Routes.d.ts +0 -6
  766. package/components/Routes.js +0 -34
  767. package/components/Routes.js.map +0 -1
  768. package/plugins/PermissionRendererPlugin.d.ts +0 -22
  769. package/plugins/PermissionRendererPlugin.js +0 -19
  770. package/plugins/PermissionRendererPlugin.js.map +0 -1
  771. package/plugins/uiLayoutRenderer/index.d.ts +0 -2
  772. package/plugins/uiLayoutRenderer/index.js +0 -53
  773. package/plugins/uiLayoutRenderer/index.js.map +0 -1
  774. package/ui/UIElement.d.ts +0 -2
  775. package/ui/UIElement.js +0 -3
  776. package/ui/UIElement.js.map +0 -1
  777. package/ui/UILayout.d.ts +0 -1
  778. package/ui/UILayout.js +0 -3
  779. package/ui/UILayout.js.map +0 -1
  780. package/ui/UIRenderer.d.ts +0 -2
  781. package/ui/UIRenderer.js +0 -3
  782. package/ui/UIRenderer.js.map +0 -1
  783. package/ui/UIView.d.ts +0 -2
  784. package/ui/UIView.js +0 -3
  785. package/ui/UIView.js.map +0 -1
  786. package/ui/elements/AccordionElement.d.ts +0 -28
  787. package/ui/elements/AccordionElement.js +0 -48
  788. package/ui/elements/AccordionElement.js.map +0 -1
  789. package/ui/elements/ButtonElement.d.ts +0 -25
  790. package/ui/elements/ButtonElement.js +0 -52
  791. package/ui/elements/ButtonElement.js.map +0 -1
  792. package/ui/elements/ButtonGroupElement.d.ts +0 -7
  793. package/ui/elements/ButtonGroupElement.js +0 -29
  794. package/ui/elements/ButtonGroupElement.js.map +0 -1
  795. package/ui/elements/GenericElement.d.ts +0 -1
  796. package/ui/elements/GenericElement.js +0 -3
  797. package/ui/elements/GenericElement.js.map +0 -1
  798. package/ui/elements/LabelElement.d.ts +0 -17
  799. package/ui/elements/LabelElement.js +0 -23
  800. package/ui/elements/LabelElement.js.map +0 -1
  801. package/ui/elements/NavigationMenuElement.d.ts +0 -34
  802. package/ui/elements/NavigationMenuElement.js +0 -88
  803. package/ui/elements/NavigationMenuElement.js.map +0 -1
  804. package/ui/elements/PanelElement.d.ts +0 -3
  805. package/ui/elements/PanelElement.js +0 -4
  806. package/ui/elements/PanelElement.js.map +0 -1
  807. package/ui/elements/PlaceholderElement.d.ts +0 -6
  808. package/ui/elements/PlaceholderElement.js +0 -11
  809. package/ui/elements/PlaceholderElement.js.map +0 -1
  810. package/ui/elements/SmallButtonElement.d.ts +0 -8
  811. package/ui/elements/SmallButtonElement.js +0 -24
  812. package/ui/elements/SmallButtonElement.js.map +0 -1
  813. package/ui/elements/TypographyElement.d.ts +0 -14
  814. package/ui/elements/TypographyElement.js +0 -23
  815. package/ui/elements/TypographyElement.js.map +0 -1
  816. package/ui/elements/ViewElement.d.ts +0 -1
  817. package/ui/elements/ViewElement.js +0 -3
  818. package/ui/elements/ViewElement.js.map +0 -1
  819. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -7
  820. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -26
  821. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
  822. package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -44
  823. package/ui/elements/form/DynamicFieldsetElement.js +0 -97
  824. package/ui/elements/form/DynamicFieldsetElement.js.map +0 -1
  825. package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +0 -4
  826. package/ui/elements/form/FileManagerElement/EmptyStateElement.js +0 -10
  827. package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
  828. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -8
  829. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -47
  830. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
  831. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -14
  832. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -73
  833. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
  834. package/ui/elements/form/FileManagerElement/styled.d.ts +0 -23
  835. package/ui/elements/form/FileManagerElement/styled.js +0 -108
  836. package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
  837. package/ui/elements/form/FileManagerElement.d.ts +0 -25
  838. package/ui/elements/form/FileManagerElement.js +0 -46
  839. package/ui/elements/form/FileManagerElement.js.map +0 -1
  840. package/ui/elements/form/FormElement.d.ts +0 -22
  841. package/ui/elements/form/FormElement.js +0 -20
  842. package/ui/elements/form/FormElement.js.map +0 -1
  843. package/ui/elements/form/FormFieldElement.d.ts +0 -57
  844. package/ui/elements/form/FormFieldElement.js +0 -113
  845. package/ui/elements/form/FormFieldElement.js.map +0 -1
  846. package/ui/elements/form/HiddenElement.d.ts +0 -7
  847. package/ui/elements/form/HiddenElement.js +0 -25
  848. package/ui/elements/form/HiddenElement.js.map +0 -1
  849. package/ui/elements/form/InputElement.d.ts +0 -8
  850. package/ui/elements/form/InputElement.js +0 -32
  851. package/ui/elements/form/InputElement.js.map +0 -1
  852. package/ui/elements/form/PasswordElement.d.ts +0 -6
  853. package/ui/elements/form/PasswordElement.js +0 -29
  854. package/ui/elements/form/PasswordElement.js.map +0 -1
  855. package/ui/elements/form/README.md +0 -2
  856. package/ui/elements/form/SelectElement.d.ts +0 -16
  857. package/ui/elements/form/SelectElement.js +0 -42
  858. package/ui/elements/form/SelectElement.js.map +0 -1
  859. package/ui/elements/form/TextareaElement.d.ts +0 -16
  860. package/ui/elements/form/TextareaElement.js +0 -34
  861. package/ui/elements/form/TextareaElement.js.map +0 -1
  862. package/ui/views/AdminView/ContentElement.d.ts +0 -4
  863. package/ui/views/AdminView/ContentElement.js +0 -37
  864. package/ui/views/AdminView/ContentElement.js.map +0 -1
  865. package/ui/views/AdminView/HeaderElement.d.ts +0 -13
  866. package/ui/views/AdminView/HeaderElement.js +0 -68
  867. package/ui/views/AdminView/HeaderElement.js.map +0 -1
  868. package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -7
  869. package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -21
  870. package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
  871. package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -7
  872. package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -21
  873. package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
  874. package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -7
  875. package/ui/views/AdminView/HeaderSectionRightElement.js +0 -21
  876. package/ui/views/AdminView/HeaderSectionRightElement.js.map +0 -1
  877. package/ui/views/AdminView/components/Dialog.d.ts +0 -2
  878. package/ui/views/AdminView/components/Dialog.js +0 -41
  879. package/ui/views/AdminView/components/Dialog.js.map +0 -1
  880. package/ui/views/AdminView/components/Hamburger.d.ts +0 -3
  881. package/ui/views/AdminView/components/Hamburger.js +0 -23
  882. package/ui/views/AdminView/components/Hamburger.js.map +0 -1
  883. package/ui/views/FormView/FormContainerElement.d.ts +0 -13
  884. package/ui/views/FormView/FormContainerElement.js +0 -19
  885. package/ui/views/FormView/FormContainerElement.js.map +0 -1
  886. package/ui/views/FormView/FormContentElement.d.ts +0 -6
  887. package/ui/views/FormView/FormContentElement.js +0 -10
  888. package/ui/views/FormView/FormContentElement.js.map +0 -1
  889. package/ui/views/FormView/FormFooterElement.d.ts +0 -7
  890. package/ui/views/FormView/FormFooterElement.js +0 -14
  891. package/ui/views/FormView/FormFooterElement.js.map +0 -1
  892. package/ui/views/FormView/FormHeaderElement.d.ts +0 -15
  893. package/ui/views/FormView/FormHeaderElement.js +0 -30
  894. package/ui/views/FormView/FormHeaderElement.js.map +0 -1
  895. package/ui/views/FormView.d.ts +0 -40
  896. package/ui/views/FormView.js +0 -121
  897. package/ui/views/FormView.js.map +0 -1
  898. package/ui/views/OverlayView/ContentElement.d.ts +0 -7
  899. package/ui/views/OverlayView/ContentElement.js +0 -29
  900. package/ui/views/OverlayView/ContentElement.js.map +0 -1
  901. package/ui/views/OverlayView/HeaderElement.d.ts +0 -25
  902. package/ui/views/OverlayView/HeaderElement.js +0 -72
  903. package/ui/views/OverlayView/HeaderElement.js.map +0 -1
  904. package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -15
  905. package/ui/views/OverlayView/HeaderTitleElement.js +0 -25
  906. package/ui/views/OverlayView/HeaderTitleElement.js.map +0 -1
  907. package/ui/views/OverlayView/useOverlayView.d.ts +0 -5
  908. package/ui/views/OverlayView/useOverlayView.js +0 -34
  909. package/ui/views/OverlayView/useOverlayView.js.map +0 -1
  910. package/ui/views/OverlayView.d.ts +0 -30
  911. package/ui/views/OverlayView.js +0 -109
  912. package/ui/views/OverlayView.js.map +0 -1
  913. package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -12
  914. package/ui/views/SplitView/SplitViewPanelElement.js +0 -32
  915. package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
  916. package/ui/views/SplitView.d.ts +0 -21
  917. package/ui/views/SplitView.js +0 -86
  918. package/ui/views/SplitView.js.map +0 -1
  919. /package/base/Base/Tenant/{wby-logo.svg → wby-square.svg} +0 -0
  920. /package/{components/RichTextEditor/tools/image → features/security/AuthenticationContext}/types.js +0 -0
@@ -0,0 +1,26 @@
1
+ import { useEffect } from "react";
2
+ import { useContainer } from "@webiny/app";
3
+
4
+ // Extract the first parameter type from TParams tuple
5
+
6
+ // Conditional props based on whether feature requires options
7
+
8
+ function RegisterFeatureImpl({
9
+ feature,
10
+ options
11
+ }) {
12
+ const container = useContainer();
13
+ useEffect(() => {
14
+ // Cast feature.register to accept ...any[] to avoid type narrowing issues
15
+ const register = feature.register;
16
+ if (options !== undefined) {
17
+ register(container, options);
18
+ } else {
19
+ register(container);
20
+ }
21
+ }, [container, feature, options]);
22
+ return null;
23
+ }
24
+ export const RegisterFeature = RegisterFeatureImpl;
25
+
26
+ //# sourceMappingURL=RegisterFeature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useContainer","RegisterFeatureImpl","feature","options","container","register","undefined","RegisterFeature"],"sources":["RegisterFeature.tsx"],"sourcesContent":["import { useEffect } from \"react\";\nimport { useContainer } from \"@webiny/app\";\nimport type { FeatureDefinition } from \"@webiny/feature/admin\";\n\n// Extract the first parameter type from TParams tuple\ntype ExtractOptions<TParams extends any[]> = TParams extends [infer First, ...any[]]\n ? First\n : never;\n\n// Conditional props based on whether feature requires options\ntype RegisterFeatureProps<TParams extends any[]> = {\n feature: FeatureDefinition<any, TParams>;\n} & (TParams extends [] ? { options?: never } : { options: ExtractOptions<TParams> });\n\nfunction RegisterFeatureImpl<TParams extends any[]>({\n feature,\n options\n}: RegisterFeatureProps<TParams>) {\n const container = useContainer();\n useEffect(() => {\n // Cast feature.register to accept ...any[] to avoid type narrowing issues\n const register = feature.register as (container: any, ...args: any[]) => void;\n if (options !== undefined) {\n register(container, options);\n } else {\n register(container);\n }\n }, [container, feature, options]);\n return null;\n}\n\nexport const RegisterFeature = RegisterFeatureImpl as <TParams extends any[]>(\n props: RegisterFeatureProps<TParams>\n) => null;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,YAAY,QAAQ,aAAa;;AAG1C;;AAKA;;AAKA,SAASC,mBAAmBA,CAAwB;EAChDC,OAAO;EACPC;AAC2B,CAAC,EAAE;EAC9B,MAAMC,SAAS,GAAGJ,YAAY,CAAC,CAAC;EAChCD,SAAS,CAAC,MAAM;IACZ;IACA,MAAMM,QAAQ,GAAGH,OAAO,CAACG,QAAoD;IAC7E,IAAIF,OAAO,KAAKG,SAAS,EAAE;MACvBD,QAAQ,CAACD,SAAS,EAAED,OAAO,CAAC;IAChC,CAAC,MAAM;MACHE,QAAQ,CAACD,SAAS,CAAC;IACvB;EACJ,CAAC,EAAE,CAACA,SAAS,EAAEF,OAAO,EAAEC,OAAO,CAAC,CAAC;EACjC,OAAO,IAAI;AACf;AAEA,OAAO,MAAMI,eAAe,GAAGN,mBAEtB","ignoreList":[]}
@@ -1 +1 @@
1
- export { Panel, type PanelProps, PanelGroup, type PanelGroupProps, PanelResizeHandle, type PanelResizeHandleProps } from "react-resizable-panels";
1
+ export { Group as PanelGroup, type GroupProps as PanelGroupProps, Panel, type PanelProps, Separator as PanelResizeHandle, type Layout } from "react-resizable-panels";
@@ -1,3 +1,3 @@
1
- export { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
1
+ export { Group as PanelGroup, Panel, Separator as PanelResizeHandle } from "react-resizable-panels";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Panel","PanelGroup","PanelResizeHandle"],"sources":["index.tsx"],"sourcesContent":["export {\n Panel,\n type PanelProps,\n PanelGroup,\n type PanelGroupProps,\n PanelResizeHandle,\n type PanelResizeHandleProps\n} from \"react-resizable-panels\";\n"],"mappings":"AAAA,SACIA,KAAK,EAELC,UAAU,EAEVC,iBAAiB,QAEd,wBAAwB","ignoreList":[]}
1
+ {"version":3,"names":["Group","PanelGroup","Panel","Separator","PanelResizeHandle"],"sources":["index.tsx"],"sourcesContent":["export {\n Group as PanelGroup,\n type GroupProps as PanelGroupProps,\n Panel,\n type PanelProps,\n Separator as PanelResizeHandle,\n type Layout\n} from \"react-resizable-panels\";\n"],"mappings":"AAAA,SACIA,KAAK,IAAIC,UAAU,EAEnBC,KAAK,EAELC,SAAS,IAAIC,iBAAiB,QAE3B,wBAAwB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const LIST_ROLES: import("graphql").DocumentNode;
@@ -0,0 +1,18 @@
1
+ import gql from "graphql-tag";
2
+ export const LIST_ROLES = gql`
3
+ query ListRoles {
4
+ security {
5
+ roles: listRoles {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `;
17
+
18
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_ROLES"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_ROLES = gql`\n query ListRoles {\n security {\n roles: listRoles {\n data {\n id\n slug\n name\n description\n createdOn\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,UAAU,GAAGD,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { AutoCompleteProps } from "@webiny/ui/AutoComplete/index.js";
3
+ type RoleAutocompleteProps = Partial<AutoCompleteProps>;
4
+ export declare const RoleAutocomplete: (props: RoleAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { AutoComplete } from "@webiny/ui/AutoComplete/index.js";
3
+ import { LIST_ROLES } from "./graphql.js";
4
+ import { useQuery } from "@apollo/react-hooks";
5
+ export const RoleAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_ROLES);
10
+ const options = loading || !data ? [] : data.security.roles.data;
11
+ return /*#__PURE__*/React.createElement(AutoComplete, Object.assign({}, props, {
12
+ options: options,
13
+ valueProp: "id",
14
+ value: loading ? undefined : props.value
15
+ }));
16
+ };
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","AutoComplete","LIST_ROLES","useQuery","RoleAutocomplete","props","data","loading","options","security","roles","createElement","Object","assign","valueProp","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { AutoCompleteProps } from \"@webiny/ui/AutoComplete/index.js\";\nimport { AutoComplete } from \"@webiny/ui/AutoComplete/index.js\";\nimport { LIST_ROLES } from \"./graphql.js\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype RoleAutocompleteProps = Partial<AutoCompleteProps>;\nexport const RoleAutocomplete = (props: RoleAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_ROLES);\n\n const options = loading || !data ? [] : data.security.roles.data;\n\n return (\n <AutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,kCAAkC;AAC/D,SAASC,UAAU;AACnB,SAASC,QAAQ,QAAQ,qBAAqB;AAG9C,OAAO,MAAMC,gBAAgB,GAAIC,KAA4B,IAAK;EAC9D,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,UAAU,CAAC;EAE9C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,KAAK,CAACJ,IAAI;EAEhE,oBACIN,KAAA,CAAAW,aAAA,CAACV,YAAY,EAAAW,MAAA,CAAAC,MAAA,KACLR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,KAAK,EAAER,OAAO,GAAGS,SAAS,GAAGX,KAAK,CAACU;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const LIST_ROLES: import("graphql").DocumentNode;
@@ -0,0 +1,23 @@
1
+ import gql from "graphql-tag";
2
+ export const LIST_ROLES = gql`
3
+ query ListRoles {
4
+ security {
5
+ roles: listRoles {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ error {
14
+ data
15
+ message
16
+ code
17
+ }
18
+ }
19
+ }
20
+ }
21
+ `;
22
+
23
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_ROLES"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_ROLES = gql`\n query ListRoles {\n security {\n roles: listRoles {\n data {\n id\n slug\n name\n description\n createdOn\n }\n error {\n data\n message\n code\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,UAAU,GAAGD,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { MultiAutoCompleteProps } from "@webiny/ui/AutoComplete/index.js";
3
+ type RolesMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;
4
+ export declare const RolesMultiAutocomplete: (props: RolesMultiAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { MultiAutoComplete } from "@webiny/ui/AutoComplete/index.js";
3
+ import { LIST_ROLES } from "./graphql.js";
4
+ import { useQuery } from "@apollo/react-hooks";
5
+ export const RolesMultiAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_ROLES);
10
+ const options = loading || !data ? [] : data.security.roles.data;
11
+ return /*#__PURE__*/React.createElement(MultiAutoComplete, Object.assign({}, props, {
12
+ options: options,
13
+ valueProp: "id",
14
+ unique: true,
15
+ value: loading ? undefined : props.value
16
+ }));
17
+ };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","MultiAutoComplete","LIST_ROLES","useQuery","RolesMultiAutocomplete","props","data","loading","options","security","roles","createElement","Object","assign","valueProp","unique","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { MultiAutoCompleteProps } from \"@webiny/ui/AutoComplete/index.js\";\nimport { MultiAutoComplete } from \"@webiny/ui/AutoComplete/index.js\";\nimport { LIST_ROLES } from \"./graphql.js\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype RolesMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;\n\nexport const RolesMultiAutocomplete = (props: RolesMultiAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_ROLES);\n\n const options = loading || !data ? [] : data.security.roles.data;\n\n return (\n <MultiAutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n unique={true}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,UAAU;AACnB,SAASC,QAAQ,QAAQ,qBAAqB;AAI9C,OAAO,MAAMC,sBAAsB,GAAIC,KAAkC,IAAK;EAC1E,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,UAAU,CAAC;EAE9C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,KAAK,CAACJ,IAAI;EAEhE,oBACIN,KAAA,CAAAW,aAAA,CAACV,iBAAiB,EAAAW,MAAA,CAAAC,MAAA,KACVR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,MAAM,EAAE,IAAK;IACbC,KAAK,EAAET,OAAO,GAAGU,SAAS,GAAGZ,KAAK,CAACW;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -6,5 +6,4 @@ export interface SearchProps {
6
6
  inputPlaceholder?: string;
7
7
  dataTestId?: string;
8
8
  }
9
- declare const Search: ({ value, onChange, onEnter, dataTestId, inputPlaceholder }: SearchProps) => React.JSX.Element;
10
- export default Search;
9
+ export declare const SearchUI: ({ value, onChange, onEnter, dataTestId, inputPlaceholder }: SearchProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { ReactComponent as SearchIcon } from "@webiny/icons/search.svg";
3
3
  import { Icon, InputPrimitive } from "@webiny/admin-ui";
4
- const Search = ({
4
+ export const SearchUI = ({
5
5
  value,
6
6
  onChange,
7
7
  onEnter,
@@ -24,6 +24,5 @@ const Search = ({
24
24
  "data-testid": dataTestId
25
25
  });
26
26
  };
27
- export default Search;
28
27
 
29
28
  //# sourceMappingURL=SearchUI.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","ReactComponent","SearchIcon","Icon","InputPrimitive","Search","value","onChange","onEnter","dataTestId","inputPlaceholder","createElement","id","placeholder","autoComplete","startIcon","label","icon","variant","size"],"sources":["SearchUI.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { Icon, InputPrimitive } from \"@webiny/admin-ui\";\n\nexport interface SearchProps {\n value: string;\n onChange: (value: string) => void;\n onEnter?: () => any;\n inputPlaceholder?: string;\n dataTestId?: string;\n}\n\nconst Search = ({\n value,\n onChange,\n onEnter,\n dataTestId,\n inputPlaceholder = \"Search...\"\n}: SearchProps) => {\n return (\n <InputPrimitive\n id={\"search-input\"}\n placeholder={inputPlaceholder}\n value={value}\n onChange={onChange}\n onEnter={onEnter}\n autoComplete=\"off\"\n startIcon={<Icon label={\"Search\"} icon={<SearchIcon />} />}\n variant={\"ghost\"}\n size={\"md\"}\n data-testid={dataTestId}\n />\n );\n};\n\nexport default Search;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,IAAI,EAAEC,cAAc,QAAQ,kBAAkB;AAUvD,MAAMC,MAAM,GAAGA,CAAC;EACZC,KAAK;EACLC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,gBAAgB,GAAG;AACV,CAAC,KAAK;EACf,oBACIV,KAAA,CAAAW,aAAA,CAACP,cAAc;IACXQ,EAAE,EAAE,cAAe;IACnBC,WAAW,EAAEH,gBAAiB;IAC9BJ,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBM,YAAY,EAAC,KAAK;IAClBC,SAAS,eAAEf,KAAA,CAAAW,aAAA,CAACR,IAAI;MAACa,KAAK,EAAE,QAAS;MAACC,IAAI,eAAEjB,KAAA,CAAAW,aAAA,CAACT,UAAU,MAAE;IAAE,CAAE,CAAE;IAC3DgB,OAAO,EAAE,OAAQ;IACjBC,IAAI,EAAE,IAAK;IACX,eAAaV;EAAW,CAC3B,CAAC;AAEV,CAAC;AAED,eAAeJ,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["React","ReactComponent","SearchIcon","Icon","InputPrimitive","SearchUI","value","onChange","onEnter","dataTestId","inputPlaceholder","createElement","id","placeholder","autoComplete","startIcon","label","icon","variant","size"],"sources":["SearchUI.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { Icon, InputPrimitive } from \"@webiny/admin-ui\";\n\nexport interface SearchProps {\n value: string;\n onChange: (value: string) => void;\n onEnter?: () => any;\n inputPlaceholder?: string;\n dataTestId?: string;\n}\n\nexport const SearchUI = ({\n value,\n onChange,\n onEnter,\n dataTestId,\n inputPlaceholder = \"Search...\"\n}: SearchProps) => {\n return (\n <InputPrimitive\n id={\"search-input\"}\n placeholder={inputPlaceholder}\n value={value}\n onChange={onChange}\n onEnter={onEnter}\n autoComplete=\"off\"\n startIcon={<Icon label={\"Search\"} icon={<SearchIcon />} />}\n variant={\"ghost\"}\n size={\"md\"}\n data-testid={dataTestId}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,IAAI,EAAEC,cAAc,QAAQ,kBAAkB;AAUvD,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACrBC,KAAK;EACLC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,gBAAgB,GAAG;AACV,CAAC,KAAK;EACf,oBACIV,KAAA,CAAAW,aAAA,CAACP,cAAc;IACXQ,EAAE,EAAE,cAAe;IACnBC,WAAW,EAAEH,gBAAiB;IAC9BJ,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBM,YAAY,EAAC,KAAK;IAClBC,SAAS,eAAEf,KAAA,CAAAW,aAAA,CAACR,IAAI;MAACa,KAAK,EAAE,QAAS;MAACC,IAAI,eAAEjB,KAAA,CAAAW,aAAA,CAACT,UAAU,MAAE;IAAE,CAAE,CAAE;IAC3DgB,OAAO,EAAE,OAAQ;IACjBC,IAAI,EAAE,IAAK;IACX,eAAaV;EAAW,CAC3B,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "@webiny/admin-ui";
3
3
  declare const simpleFormInnerVariants: (props?: ({
4
- size?: "md" | "lg" | "full" | null | undefined;
4
+ size?: "full" | "md" | "lg" | null | undefined;
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  interface SimpleFormProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof simpleFormInnerVariants> {
7
7
  children: React.ReactNode;
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
2
  import { cn, cva, Grid, Heading, Icon } from "@webiny/admin-ui";
3
- const simpleFormInnerVariants = cva("wby-mx-auto", {
3
+ const simpleFormInnerVariants = cva("mx-auto", {
4
4
  variants: {
5
5
  size: {
6
- md: "wby-max-w-[640px]",
7
- lg: "wby-max-w-[800px]",
8
- full: "wby-max-w-full"
6
+ md: "max-w-[640px]",
7
+ lg: "max-w-[800px]",
8
+ full: "max-w-full"
9
9
  }
10
10
  },
11
11
  defaultVariants: {
@@ -19,17 +19,17 @@ export const SimpleForm = ({
19
19
  ...props
20
20
  }) => {
21
21
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
22
- className: cn(["webiny-data-list", "wby-mx-auto wby-p-lg", "wby-relative"], className)
22
+ className: cn(["webiny-data-list", "mx-auto p-lg", "relative"], className)
23
23
  }), /*#__PURE__*/React.createElement("div", {
24
24
  className: cn(simpleFormInnerVariants({
25
25
  size
26
26
  }))
27
27
  }, children));
28
28
  };
29
- const simpleFormHeaderVariants = cva("wby-p-md wby-pl-lg wby-border-sm wby-border-neutral-dimmed-darker", {
29
+ const simpleFormHeaderVariants = cva("p-md pl-lg border-sm border-neutral-dimmed-darker", {
30
30
  variants: {
31
31
  rounded: {
32
- true: "wby-rounded-t-3xl"
32
+ true: "rounded-t-3xl"
33
33
  }
34
34
  },
35
35
  defaultVariants: {
@@ -56,7 +56,7 @@ export const SimpleFormHeader = ({
56
56
  icon: icon
57
57
  }), /*#__PURE__*/React.createElement(Heading, {
58
58
  level: 4,
59
- className: "wby-truncate"
59
+ className: "truncate"
60
60
  }, title))), /*#__PURE__*/React.createElement(React.Fragment, null, children ? /*#__PURE__*/React.createElement(Grid.Column, {
61
61
  span: 6
62
62
  }, children) : null)));
@@ -66,7 +66,7 @@ export const SimpleFormFooter = ({
66
66
  className
67
67
  }) => {
68
68
  return /*#__PURE__*/React.createElement("div", {
69
- className: cn("wby-p-lg wby-pt-none wby-border-sm wby-border-t-none wby-border-neutral-dimmed-darker wby-rounded-b-3xl", "wby-flex wby-justify-end wby-gap-sm", className)
69
+ className: cn("p-lg pt-none border-sm border-t-none border-neutral-dimmed-darker rounded-b-3xl", "flex justify-end gap-sm", className)
70
70
  }, children);
71
71
  };
72
72
  export const SimpleFormContent = ({
@@ -74,7 +74,7 @@ export const SimpleFormContent = ({
74
74
  className
75
75
  }) => {
76
76
  return /*#__PURE__*/React.createElement("div", {
77
- className: cn("wby-p-lg wby-border-sm wby-border-y-none wby-border-neutral-dimmed-darker", className)
77
+ className: cn("p-lg border-sm border-y-none border-neutral-dimmed-darker", className)
78
78
  }, children);
79
79
  };
80
80
 
@@ -1 +1 @@
1
- {"version":3,"names":["React","cn","cva","Grid","Heading","Icon","simpleFormInnerVariants","variants","size","md","lg","full","defaultVariants","SimpleForm","children","className","props","createElement","Object","assign","simpleFormHeaderVariants","rounded","true","SimpleFormHeader","icon","title","Column","span","Fragment","label","level","SimpleFormFooter","SimpleFormContent"],"sources":["SimpleForm.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn, cva, Grid, Heading, Icon, type VariantProps } from \"@webiny/admin-ui\";\n\nconst simpleFormInnerVariants = cva(\"wby-mx-auto\", {\n variants: {\n size: {\n md: \"wby-max-w-[640px]\",\n lg: \"wby-max-w-[800px]\",\n full: \"wby-max-w-full\"\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\n\ninterface SimpleFormProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof simpleFormInnerVariants> {\n children: React.ReactNode;\n noElevation?: boolean;\n className?: string;\n}\n\nexport const SimpleForm = ({ children, className, size, ...props }: SimpleFormProps) => {\n return (\n <div\n {...props}\n className={cn([\"webiny-data-list\", \"wby-mx-auto wby-p-lg\", \"wby-relative\"], className)}\n >\n <div className={cn(simpleFormInnerVariants({ size }))}>{children}</div>\n </div>\n );\n};\n\nconst simpleFormHeaderVariants = cva(\n \"wby-p-md wby-pl-lg wby-border-sm wby-border-neutral-dimmed-darker\",\n {\n variants: {\n rounded: {\n true: \"wby-rounded-t-3xl\"\n }\n },\n defaultVariants: {\n rounded: true\n }\n }\n);\n\ninterface SimpleFormHeaderProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\">,\n VariantProps<typeof simpleFormHeaderVariants> {\n title: React.ReactNode;\n icon?: React.ReactElement<any>;\n children?: React.ReactNode;\n [\"data-testid\"]?: string;\n}\n\nexport const SimpleFormHeader = ({\n children,\n icon,\n title,\n className,\n rounded,\n ...props\n}: SimpleFormHeaderProps) => {\n return (\n <div\n className={cn(simpleFormHeaderVariants({ rounded }), className)}\n data-testid={props[\"data-testid\"]}\n >\n <Grid>\n <Grid.Column span={children ? 6 : 12}>\n <>\n {icon && <Icon label={title as string} icon={icon} />}\n <Heading level={4} className={\"wby-truncate\"}>\n {title}\n </Heading>\n </>\n </Grid.Column>\n <>{children ? <Grid.Column span={6}>{children}</Grid.Column> : null}</>\n </Grid>\n </div>\n );\n};\n\nexport interface SimpleFormFooterProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SimpleFormFooter = ({ children, className }: SimpleFormFooterProps) => {\n return (\n <div\n className={cn(\n \"wby-p-lg wby-pt-none wby-border-sm wby-border-t-none wby-border-neutral-dimmed-darker wby-rounded-b-3xl\",\n \"wby-flex wby-justify-end wby-gap-sm\",\n className\n )}\n >\n {children}\n </div>\n );\n};\n\ninterface SimpleFormContentProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SimpleFormContent = ({ children, className }: SimpleFormContentProps) => {\n return (\n <div\n className={cn(\n \"wby-p-lg wby-border-sm wby-border-y-none wby-border-neutral-dimmed-darker\",\n className\n )}\n >\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ants","size","md","lg","full","defaultVariants","SimpleForm","children","className","props","createElement","Object","assign","simpleFormHeaderVariants","rounded","true","SimpleFormHeader","icon","title","Column","span","Fragment","label","level","SimpleFormFooter","SimpleFormContent"],"sources":["SimpleForm.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn, cva, Grid, Heading, Icon, type VariantProps } from \"@webiny/admin-ui\";\n\nconst simpleFormInnerVariants = cva(\"mx-auto\", {\n variants: {\n size: {\n md: \"max-w-[640px]\",\n lg: \"max-w-[800px]\",\n full: \"max-w-full\"\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\n\ninterface SimpleFormProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof simpleFormInnerVariants> {\n children: React.ReactNode;\n noElevation?: boolean;\n className?: string;\n}\n\nexport const SimpleForm = ({ children, className, size, ...props }: SimpleFormProps) => {\n return (\n <div {...props} className={cn([\"webiny-data-list\", \"mx-auto p-lg\", \"relative\"], className)}>\n <div className={cn(simpleFormInnerVariants({ size }))}>{children}</div>\n </div>\n );\n};\n\nconst simpleFormHeaderVariants = cva(\"p-md pl-lg border-sm border-neutral-dimmed-darker\", {\n variants: {\n rounded: {\n true: \"rounded-t-3xl\"\n }\n },\n defaultVariants: {\n rounded: true\n }\n});\n\ninterface SimpleFormHeaderProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\">,\n VariantProps<typeof simpleFormHeaderVariants> {\n title: React.ReactNode;\n icon?: React.ReactElement<any>;\n children?: React.ReactNode;\n [\"data-testid\"]?: string;\n}\n\nexport const SimpleFormHeader = ({\n children,\n icon,\n title,\n className,\n rounded,\n ...props\n}: SimpleFormHeaderProps) => {\n return (\n <div\n className={cn(simpleFormHeaderVariants({ rounded }), className)}\n data-testid={props[\"data-testid\"]}\n >\n <Grid>\n <Grid.Column span={children ? 6 : 12}>\n <>\n {icon && <Icon label={title as string} icon={icon} />}\n <Heading level={4} className={\"truncate\"}>\n {title}\n </Heading>\n </>\n </Grid.Column>\n <>{children ? <Grid.Column span={6}>{children}</Grid.Column> : null}</>\n </Grid>\n </div>\n );\n};\n\nexport interface SimpleFormFooterProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SimpleFormFooter = ({ children, className }: SimpleFormFooterProps) => {\n return (\n <div\n className={cn(\n \"p-lg pt-none border-sm border-t-none border-neutral-dimmed-darker rounded-b-3xl\",\n \"flex justify-end gap-sm\",\n className\n )}\n >\n {children}\n </div>\n );\n};\n\ninterface SimpleFormContentProps {\n children: React.ReactNode;\n className?: string;\n}\n\nexport const SimpleFormContent = ({ children, className }: SimpleFormContentProps) => {\n return (\n <div className={cn(\"p-lg border-sm border-y-none border-neutral-dimmed-darker\", className)}>\n {children}\n </div>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,EAAE,EAAEC,GAAG,EAAEC,IAAI,EAAEC,OAAO,EAAEC,IAAI,QAA2B,kBAAkB;AAElF,MAAMC,uBAAuB,GAAGJ,GAAG,CAAC,SAAS,EAAE;EAC3CK,QAAQ,EAAE;IACNC,IAAI,EAAE;MACFC,EAAE,EAAE,eAAe;MACnBC,EAAE,EAAE,eAAe;MACnBC,IAAI,EAAE;IACV;EACJ,CAAC;EACDC,eAAe,EAAE;IACbJ,IAAI,EAAE;EACV;AACJ,CAAC,CAAC;AAUF,OAAO,MAAMK,UAAU,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,SAAS;EAAEP,IAAI;EAAE,GAAGQ;AAAuB,CAAC,KAAK;EACpF,oBACIhB,KAAA,CAAAiB,aAAA,QAAAC,MAAA,CAAAC,MAAA,KAASH,KAAK;IAAED,SAAS,EAAEd,EAAE,CAAC,CAAC,kBAAkB,EAAE,cAAc,EAAE,UAAU,CAAC,EAAEc,SAAS;EAAE,iBACvFf,KAAA,CAAAiB,aAAA;IAAKF,SAAS,EAAEd,EAAE,CAACK,uBAAuB,CAAC;MAAEE;IAAK,CAAC,CAAC;EAAE,GAAEM,QAAc,C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iC,CAAC,KAAK;EAChF,oBACIf,KAAA,CAAAiB,aAAA;IACIF,SAAS,EAAEd,EAAE,CACT,iFAAiF,EACjF,yBAAyB,EACzBc,SACJ;EAAE,GAEDD,QACA,CAAC;AAEd,CAAC;AAOD,OAAO,MAAMkB,iBAAiB,GAAGA,CAAC;EAAElB,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EAClF,oBACIf,KAAA,CAAAiB,aAAA;IAAKF,SAAS,EAAEd,EAAE,CAAC,2DAA2D,EAAEc,SAAS;EAAE,GACtFD,QACA,CAAC;AAEd,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from "./SimpleForm";
1
+ export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from "./SimpleForm.js";
@@ -1,3 +1,3 @@
1
- export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from "./SimpleForm";
1
+ export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from "./SimpleForm.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SimpleForm","SimpleFormHeader","SimpleFormFooter","SimpleFormContent"],"sources":["index.ts"],"sourcesContent":["export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from \"./SimpleForm\";\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["SimpleForm","SimpleFormHeader","SimpleFormFooter","SimpleFormContent"],"sources":["index.ts"],"sourcesContent":["export { SimpleForm, SimpleFormHeader, SimpleFormFooter, SimpleFormContent } from \"./SimpleForm.js\";\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,iBAAiB","ignoreList":[]}
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { css } from "emotion";
3
3
  import classNames from "classnames";
4
- import omit from "lodash/omit";
5
- import { Typography } from "@webiny/ui/Typography";
6
- import { FormElementMessage } from "@webiny/ui/FormElementMessage";
4
+ import omit from "lodash/omit.js";
5
+ import { Typography } from "@webiny/ui/Typography/index.js";
6
+ import { FormElementMessage } from "@webiny/ui/FormElementMessage/index.js";
7
7
  const inputStyle = css({
8
8
  boxSizing: "border-box",
9
9
  border: "1px solid var(--mdc-theme-on-background)",
@@ -1 +1 @@
1
- {"version":3,"names":["React","css","classNames","omit","Typography","FormElementMessage","inputStyle","boxSizing","border","width","height","padding","textAlign","minHeight","backgroundColor","transition","opacity","cursor","WebkitAppearance","margin","labelStyle","marginBottom","color","getValue","params","value","defaultValue","type","isNaN","InputField","className","onChange","onKeyDown","label","description","validation","isValid","props","createElement","Fragment","use","Object","assign","ev","target","toLowerCase","error","message","memo"],"sources":["InputField.tsx"],"sourcesContent":["import React from \"react\";\nimport { css } from \"emotion\";\nimport classNames from \"classnames\";\nimport omit from \"lodash/omit\";\nimport { Typography } from \"@webiny/ui/Typography\";\nimport { FormElementMessage } from \"@webiny/ui/FormElementMessage\";\n\nconst inputStyle = css({\n boxSizing: \"border-box\",\n border: \"1px solid var(--mdc-theme-on-background)\",\n width: \"100%\",\n height: \"100%\",\n padding: \"4px 8px\",\n textAlign: \"left\",\n minHeight: 32,\n backgroundColor: \"var(--mdc-theme-surface)\",\n transition: \"150ms all ease-in-out\",\n \"&:focus:not(:disabled)\": {\n backgroundColor: \"var(--mdc-theme-on-background)\"\n },\n \"&:hover:not(:disabled)\": {\n backgroundColor: \"var(--mdc-theme-on-background)\"\n },\n \"&:disabled\": {\n opacity: 0.5,\n cursor: \"not-allowed\"\n },\n\n \"&.text-center\": {\n textAlign: \"center\",\n padding: 4\n },\n\n \"&::-webkit-inner-spin-button\": {\n WebkitAppearance: \"none\",\n margin: 0\n },\n \"&::-webkit-outer-spin-button\": {\n WebkitAppearance: \"none\",\n margin: 0\n }\n});\n\nconst labelStyle = css({\n marginBottom: 8,\n padding: \"0px 8px\",\n \"& span\": {\n color: \"var(--mdc-theme-text-primary-on-background)\"\n }\n});\n\ninterface GetValueParams {\n value: string | number | undefined;\n defaultValue: string | number;\n type: \"number\" | \"string\";\n}\nconst getValue = (params: GetValueParams): string => {\n const { value, defaultValue, type } = params;\n if (type === \"number\") {\n return (isNaN(value as number) ? defaultValue : value) as string;\n }\n return (value || defaultValue) as string;\n};\n\nexport type OnKeyDownProps = React.SyntheticEvent<HTMLInputElement, Event> &\n React.KeyboardEvent<HTMLInputElement>;\n\ninterface InputBoxProps {\n value?: string | number;\n onChange?: (value: any) => void;\n onKeyDown?: (e: OnKeyDownProps) => any;\n defaultValue?: string | number;\n type?: \"string\" | \"number\";\n [key: string]: any;\n}\nconst InputField = ({\n className,\n value,\n onChange,\n onKeyDown,\n label,\n description,\n validation = { isValid: true },\n defaultValue = \"\",\n ...props\n}: InputBoxProps) => {\n return (\n <React.Fragment>\n {label && (\n <div className={labelStyle}>\n <Typography use={\"body2\"}>{label}</Typography>\n </div>\n )}\n <input\n className={classNames(inputStyle, className)}\n value={getValue({\n value,\n type: props.type || \"string\",\n defaultValue\n })}\n onKeyDown={onKeyDown}\n onChange={ev => {\n if (!onChange) {\n return;\n }\n onChange((ev.target.value || \"\").toLowerCase());\n }}\n {...omit(props, \"validate\")}\n />\n {validation.isValid === false && (\n <FormElementMessage error>{validation.message}</FormElementMessage>\n )}\n {validation.isValid !== false && description && (\n <FormElementMessage>{description}</FormElementMessage>\n )}\n </React.Fragment>\n );\n};\n\nexport default React.memo(InputField);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,SAAS;AAC7B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,aAAa;AAC9B,SAASC,UAAU,QAAQ,uBAAuB;AAClD,SAASC,kBAAkB,QAAQ,+BAA+B;AAElE,MAAMC,UAAU,GAAGL,GAAG,CAAC;EACnBM,SAAS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E;EACjB,GAAGW;AACQ,CAAC,KAAK;EACjB,oBACIrC,KAAA,CAAAsC,aAAA,CAACtC,KAAK,CAACuC,QAAQ,QACVN,KAAK,iBACFjC,KAAA,CAAAsC,aAAA;IAAKR,SAAS,EAAEV;EAAW,gBACvBpB,KAAA,CAAAsC,aAAA,CAAClC,UAAU;IAACoC,GAAG,EAAE;EAAQ,GAAEP,KAAkB,CAC5C,CACR,eACDjC,KAAA,CAAAsC,aAAA,UAAAG,MAAA,CAAAC,MAAA;IACIZ,SAAS,EAAE5B,UAAU,CAACI,UAAU,EAAEwB,SAAS,CAAE;IAC7CL,KAAK,EAAEF,QAAQ,CAAC;MACZE,KAAK;MACLE,IAAI,EAAEU,KAAK,CAACV,IAAI,IAAI,QAAQ;MAC5BD;IACJ,CAAC,CAAE;IACHM,SAAS,EAAEA,SAAU;IACrBD,QAAQ,EAAEY,EAAE,IAAI;MACZ,IAAI,CAACZ,QAAQ,EAAE;QACX;MACJ;MACAA,QAAQ,CAAC,CAACY,EAAE,CAACC,MAAM,CAACnB,KAAK,IAAI,EAAE,EAAEoB,WAAW,CAAC,CAAC,CAAC;IACnD;EAAE,GACE1C,IAAI,CAACkC,KAAK,EAAE,UAAU,CAAC,CAC9B,CAAC,EACDF,UAAU,CAACC,OAAO,KAAK,KAAK,iBACzBpC,KAAA,CAAAsC,aAAA,CAACjC,kBAAkB;IAACyC,KAAK;EAAA,GAAEX,UAAU,CAACY,OAA4B,CACrE,EACAZ,UAAU,CAACC,OAAO,KAAK,KAAK,IAAIF,WAAW,iBACxClC,KAAA,CAAAsC,aAAA,CAACjC,kBAAkB,QAAE6B,WAAgC,CAE7C,CAAC;AAEzB,CAAC;AAED,4BAAelC,KAAK,CAACgD,IAAI,CAACnB,UAAU,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","css","classNames","omit","Typography","FormElementMessage","inputStyle","boxSizing","border","width","height","padding","textAlign","minHeight","backgroundColor","transition","opacity","cursor","WebkitAppearance","margin","labelStyle","marginBottom","color","getValue","params","value","defaultValue","type","isNaN","InputField","className","onChange","onKeyDown","label","description","validation","isValid","props","createElement","Fragment","use","Object","assign","ev","target","toLowerCase","error","message","memo"],"sources":["InputField.tsx"],"sourcesContent":["import React from \"react\";\nimport { css } from \"emotion\";\nimport classNames from \"classnames\";\nimport omit from \"lodash/omit.js\";\nimport { Typography } from \"@webiny/ui/Typography/index.js\";\nimport { FormElementMessage } from \"@webiny/ui/FormElementMessage/index.js\";\n\nconst inputStyle = css({\n boxSizing: \"border-box\",\n border: \"1px solid var(--mdc-theme-on-background)\",\n width: \"100%\",\n height: \"100%\",\n padding: \"4px 8px\",\n textAlign: \"left\",\n minHeight: 32,\n backgroundColor: \"var(--mdc-theme-surface)\",\n transition: \"150ms all ease-in-out\",\n \"&:focus:not(:disabled)\": {\n backgroundColor: \"var(--mdc-theme-on-background)\"\n },\n \"&:hover:not(:disabled)\": {\n backgroundColor: \"var(--mdc-theme-on-background)\"\n },\n \"&:disabled\": {\n opacity: 0.5,\n cursor: \"not-allowed\"\n },\n\n \"&.text-center\": {\n textAlign: \"center\",\n padding: 4\n },\n\n \"&::-webkit-inner-spin-button\": {\n WebkitAppearance: \"none\",\n margin: 0\n },\n \"&::-webkit-outer-spin-button\": {\n WebkitAppearance: \"none\",\n margin: 0\n }\n});\n\nconst labelStyle = css({\n marginBottom: 8,\n padding: \"0px 8px\",\n \"& span\": {\n color: \"var(--mdc-theme-text-primary-on-background)\"\n }\n});\n\ninterface GetValueParams {\n value: string | number | undefined;\n defaultValue: string | number;\n type: \"number\" | \"string\";\n}\nconst getValue = (params: GetValueParams): string => {\n const { value, defaultValue, type } = params;\n if (type === \"number\") {\n return (isNaN(value as number) ? defaultValue : value) as string;\n }\n return (value || defaultValue) as string;\n};\n\nexport type OnKeyDownProps = React.SyntheticEvent<HTMLInputElement, Event> &\n React.KeyboardEvent<HTMLInputElement>;\n\ninterface InputBoxProps {\n value?: string | number;\n onChange?: (value: any) => void;\n onKeyDown?: (e: OnKeyDownProps) => any;\n defaultValue?: string | number;\n type?: \"string\" | \"number\";\n [key: string]: any;\n}\nconst InputField = ({\n className,\n value,\n onChange,\n onKeyDown,\n label,\n description,\n validation = { isValid: true },\n defaultValue = \"\",\n ...props\n}: InputBoxProps) => {\n return (\n <React.Fragment>\n {label && (\n <div className={labelStyle}>\n <Typography use={\"body2\"}>{label}</Typography>\n </div>\n )}\n <input\n className={classNames(inputStyle, className)}\n value={getValue({\n value,\n type: props.type || \"string\",\n defaultValue\n })}\n onKeyDown={onKeyDown}\n onChange={ev => {\n if (!onChange) {\n return;\n }\n onChange((ev.target.value || \"\").toLowerCase());\n }}\n {...omit(props, \"validate\")}\n />\n {validation.isValid === false && (\n <FormElementMessage error>{validation.message}</FormElementMessage>\n )}\n {validation.isValid !== false && description && (\n <FormElementMessage>{description}</FormElementMessage>\n )}\n </React.Fragment>\n );\n};\n\nexport default React.memo(InputField);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,SAAS;AAC7B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,SAASC,UAAU,QAAQ,gCAAgC;AAC3D,SAASC,kBAAkB,QAAQ,wCAAwC;AAE3E,MAAMC,UAAU,GAAGL,GAAG,CAAC;EACnBM,SAAS,EAAE,YAAY;EACvBC,MAAM,EAAE,0CAA0C;EAClDC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE,MAAM;EACjBC,SAAS,EAAE,EAAE;EACbC,eAAe,EAAE,0BAA0B;EAC3CC,UAAU,EAAE,uBAAuB;EACnC,wBAAwB,EAAE;IACtBD,eAAe,EAAE;EACrB,CAAC;EACD,wBAAwB,EAAE;IACtBA,eAAe,EAAE;EACrB,CAAC;EACD,YAAY,EAAE;IACVE,OAAO,EAAE,GAAG;IACZC,MAAM,EAAE;EACZ,CAAC;EAED,eAAe,E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AC;MACZE,KAAK;MACLE,IAAI,EAAEU,KAAK,CAACV,IAAI,IAAI,QAAQ;MAC5BD;IACJ,CAAC,CAAE;IACHM,SAAS,EAAEA,SAAU;IACrBD,QAAQ,EAAEY,EAAE,IAAI;MACZ,IAAI,CAACZ,QAAQ,EAAE;QACX;MACJ;MACAA,QAAQ,CAAC,CAACY,EAAE,CAACC,MAAM,CAACnB,KAAK,IAAI,EAAE,EAAEoB,WAAW,CAAC,CAAC,CAAC;IACnD;EAAE,GACE1C,IAAI,CAACkC,KAAK,EAAE,UAAU,CAAC,CAC9B,CAAC,EACDF,UAAU,CAACC,OAAO,KAAK,KAAK,iBACzBpC,KAAA,CAAAsC,aAAA,CAACjC,kBAAkB;IAACyC,KAAK;EAAA,GAAEX,UAAU,CAACY,OAA4B,CACrE,EACAZ,UAAU,CAACC,OAAO,KAAK,KAAK,IAAIF,WAAW,iBACxClC,KAAA,CAAAsC,aAAA,CAACjC,kBAAkB,QAAE6B,WAAgC,CAE7C,CAAC;AAEzB,CAAC;AAED,4BAAelC,KAAK,CAACgD,IAAI,CAACnB,UAAU,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import type { FileManagerFileItem } from "../index";
3
- import type { FormComponentProps } from "@webiny/ui/types";
2
+ import type { FileManagerFileItem } from "../index.js";
3
+ import type { FormComponentProps } from "@webiny/ui/types.js";
4
4
  import { type FilePickerProps } from "@webiny/admin-ui";
5
5
  export interface SingleImageUploadProps extends FormComponentProps {
6
6
  /**
@@ -33,7 +33,7 @@ export interface SingleImageUploadProps extends FormComponentProps {
33
33
  * It is marked as `optional` because this component is often used in conjunction with <Bind>, which injects the
34
34
  * `onChange` into its child element. In that case, that prop is not passed by the developer.
35
35
  */
36
- onChange?: (value: FileManagerFileItem | null) => void;
36
+ onChange?: (value: Pick<FileManagerFileItem, "id" | "src"> | null) => void;
37
37
  /**
38
38
  * Optional custom props, passed to the preview image.
39
39
  */
@@ -47,11 +47,6 @@ export interface SingleImageUploadProps extends FormComponentProps {
47
47
  * @deprecated Provide a custom `renderImagePreview` instead.
48
48
  */
49
49
  round?: boolean;
50
- /**
51
- * Define the properties that are returned on file(s) selection.
52
- * @deprecated Pick the desired file attributes in the `onChange` callback, or `beforeChange` on the `<Bind>` element.
53
- */
54
- onChangePick?: string[];
55
50
  /**
56
51
  * Render the image preview.
57
52
  */
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from "react";
2
- import { FileManager } from "./..";
2
+ import { FileManager } from "../index.js";
3
3
  import { FileItem, FilePicker } from "@webiny/admin-ui";
4
4
  const SingleImageUpload = props => {
5
5
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","FileManager","FileItem","FilePicker","SingleImageUpload","props","accept","className","description","disabled","includeFileMeta","label","maxSize","renderFilePreview","renderTrigger","validation","value","variant","type","onChange","id","src","createElement","images","render","showFileManager","Fragment","createFromUrl","onSelectItem","onRemoveItem"],"sources":["SingleImageUpload.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport type { FileManagerFileItem } from \"~/index\";\nimport { FileManager } from \"~/index\";\nimport type { FormComponentProps } from \"@webiny/ui/types\";\nimport { FileItem, FilePicker, type FilePickerProps } from \"@webiny/admin-ui\";\n\nexport interface SingleImageUploadProps extends FormComponentProps {\n /**\n * Accept types\n */\n accept?: string[];\n\n /**\n * Component label.\n */\n label?: string;\n\n /**\n * Is component disabled?\n */\n disabled?: boolean;\n\n /**\n * Description beneath the image.\n */\n description?: React.ReactNode;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * Define file's max allowed size (default is \"10mb\").\n * Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n */\n maxSize?: number | string;\n\n /**\n * onChange callback when a file is set or unset.\n * It is marked as `optional` because this component is often used in conjunction with <Bind>, which injects the\n * `onChange` into its child element. In that case, that prop is not passed by the developer.\n */\n onChange?: (value: FileManagerFileItem | null) => void;\n\n /**\n * Optional custom props, passed to the preview image.\n */\n imagePreviewProps?: any;\n\n /**\n * By default, file meta is not included in the data passed to `onChange`. If you need it, set this flag to true.\n */\n includeFileMeta?: boolean;\n\n /**\n * Is the wrapper round?\n * @deprecated Provide a custom `renderImagePreview` instead.\n */\n round?: boolean;\n\n /**\n * Define the properties that are returned on file(s) selection.\n * @deprecated Pick the desired file attributes in the `onChange` callback, or `beforeChange` on the `<Bind>` element.\n */\n onChangePick?: string[];\n\n /**\n * Render the image preview.\n */\n renderFilePreview?: FilePickerProps[\"renderFilePreview\"];\n\n /**\n * Render the trigger button.\n */\n renderTrigger?: FilePickerProps[\"renderTrigger\"];\n\n /**\n * Component type.\n */\n type?: FilePickerProps[\"type\"];\n\n /**\n * Component variant.\n */\n variant?: FilePickerProps[\"variant\"];\n}\n\nconst SingleImageUpload = (props: SingleImageUploadProps) => {\n const {\n accept,\n className,\n description,\n disabled,\n includeFileMeta = false,\n label,\n maxSize,\n renderFilePreview,\n renderTrigger,\n validation,\n value,\n variant,\n type\n } = props;\n\n const onChange = useCallback(\n (value: FileManagerFileItem | null) => {\n if (!props.onChange) {\n return;\n }\n\n if (value && !includeFileMeta) {\n props.onChange({ id: value.id, src: value.src });\n return;\n }\n\n if (value && includeFileMeta) {\n props.onChange(value);\n return;\n }\n\n props.onChange(null);\n },\n [props.onChange]\n );\n\n return (\n <FileManager\n onChange={onChange}\n accept={accept}\n images={!accept}\n maxSize={maxSize}\n render={({ showFileManager }) => (\n <>\n <FilePicker\n label={label}\n description={description}\n validation={validation}\n className={className}\n disabled={disabled}\n value={value ? FileItem.createFromUrl(value.src) : null}\n onSelectItem={showFileManager}\n onRemoveItem={() => onChange(null)}\n renderFilePreview={renderFilePreview}\n renderTrigger={renderTrigger}\n variant={variant}\n type={type}\n />\n </>\n )}\n />\n );\n};\n\nexport default SingleImageUpload;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAE1C,SAASC,WAAW;AAEpB,SAASC,QAAQ,EAAEC,UAAU,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,CAACyB,aAAa,CAACX,KAAK,CAACK,GAAG,CAAC,GAAG,IAAK;MACxDO,YAAY,EAAEH,eAAgB;MAC9BI,YAAY,EAAEA,CAAA,KAAMV,QAAQ,CAAC,IAAI,CAAE;MACnCN,iBAAiB,EAAEA,iBAAkB;MACrCC,aAAa,EAAEA,aAAc;MAC7BG,OAAO,EAAEA,OAAQ;MACjBC,IAAI,EAAEA;IAAK,CACd,CACH;EACJ,CACL,CAAC;AAEV,CAAC;AAED,eAAed,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","FileManager","FileItem","FilePicker","SingleImageUpload","props","accept","className","description","disabled","includeFileMeta","label","maxSize","renderFilePreview","renderTrigger","validation","value","variant","type","onChange","id","src","createElement","images","render","showFileManager","Fragment","createFromUrl","onSelectItem","onRemoveItem"],"sources":["SingleImageUpload.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport type { FileManagerFileItem } from \"~/index.js\";\nimport { FileManager } from \"~/index.js\";\nimport type { FormComponentProps } from \"@webiny/ui/types.js\";\nimport { FileItem, FilePicker, type FilePickerProps } from \"@webiny/admin-ui\";\n\nexport interface SingleImageUploadProps extends FormComponentProps {\n /**\n * Accept types\n */\n accept?: string[];\n\n /**\n * Component label.\n */\n label?: string;\n\n /**\n * Is component disabled?\n */\n disabled?: boolean;\n\n /**\n * Description beneath the image.\n */\n description?: React.ReactNode;\n\n /**\n * A className for the root element.\n */\n className?: string;\n\n /**\n * Define file's max allowed size (default is \"10mb\").\n * Uses \"bytes\" (https://www.npmjs.com/package/bytes) library to convert string notation to actual number.\n */\n maxSize?: number | string;\n\n /**\n * onChange callback when a file is set or unset.\n * It is marked as `optional` because this component is often used in conjunction with <Bind>, which injects the\n * `onChange` into its child element. In that case, that prop is not passed by the developer.\n */\n onChange?: (value: Pick<FileManagerFileItem, \"id\" | \"src\"> | null) => void;\n\n /**\n * Optional custom props, passed to the preview image.\n */\n imagePreviewProps?: any;\n\n /**\n * By default, file meta is not included in the data passed to `onChange`. If you need it, set this flag to true.\n */\n includeFileMeta?: boolean;\n\n /**\n * Is the wrapper round?\n * @deprecated Provide a custom `renderImagePreview` instead.\n */\n round?: boolean;\n\n /**\n * Render the image preview.\n */\n renderFilePreview?: FilePickerProps[\"renderFilePreview\"];\n\n /**\n * Render the trigger button.\n */\n renderTrigger?: FilePickerProps[\"renderTrigger\"];\n\n /**\n * Component type.\n */\n type?: FilePickerProps[\"type\"];\n\n /**\n * Component variant.\n */\n variant?: FilePickerProps[\"variant\"];\n}\n\nconst SingleImageUpload = (props: SingleImageUploadProps) => {\n const {\n accept,\n className,\n description,\n disabled,\n includeFileMeta = false,\n label,\n maxSize,\n renderFilePreview,\n renderTrigger,\n validation,\n value,\n variant,\n type\n } = props;\n\n const onChange = useCallback(\n (value: FileManagerFileItem | null) => {\n if (!props.onChange) {\n return;\n }\n\n if (value && !includeFileMeta) {\n props.onChange({ id: value.id, src: value.src });\n return;\n }\n\n if (value && includeFileMeta) {\n props.onChange(value);\n return;\n }\n\n props.onChange(null);\n },\n [props.onChange]\n );\n\n return (\n <FileManager\n onChange={onChange}\n accept={accept}\n images={!accept}\n maxSize={maxSize}\n render={({ showFileManager }) => (\n <>\n <FilePicker\n label={label}\n description={description}\n validation={validation}\n className={className}\n disabled={disabled}\n value={value ? FileItem.createFromUrl(value.src) : null}\n onSelectItem={showFileManager}\n onRemoveItem={() => onChange(null)}\n renderFilePreview={renderFilePreview}\n renderTrigger={renderTrigger}\n variant={variant}\n type={type}\n />\n </>\n )}\n />\n );\n};\n\nexport default SingleImageUpload;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAE1C,SAASC,WAAW;AAEpB,SAASC,QAAQ,EAAEC,UAAU,QAA8B,kBAAkB;AA8E7E,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EACzD,MAAM;IACFC,MAAM;IACNC,SAAS;IACTC,WAAW;IACXC,QAAQ;IACRC,eAAe,GAAG,KAAK;IACvBC,K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AAiB,EAAEA,iBAAkB;MACrCC,aAAa,EAAEA,aAAc;MAC7BG,OAAO,EAAEA,OAAQ;MACjBC,IAAI,EAAEA;IAAK,CACd,CACH;EACJ,CACL,CAAC;AAEV,CAAC;AAED,eAAed,iBAAiB","ignoreList":[]}
@@ -1,13 +1,13 @@
1
1
  import * as React from "react";
2
2
  import type { ColumnProps } from "@webiny/admin-ui";
3
- import type { PanelProps, PanelGroupProps } from "../ResizablePanels";
4
- interface SplitViewProps extends Omit<PanelGroupProps, "direction" | "id" | "autoSaveId"> {
5
- layoutId?: string | null;
3
+ import type { PanelProps, PanelGroupProps } from "../../components/ResizablePanels/index.js";
4
+ interface SplitViewProps extends Omit<PanelGroupProps, "id"> {
5
+ namespace?: string;
6
6
  }
7
- declare const SplitView: ({ children, className, layoutId, ...props }: SplitViewProps) => React.JSX.Element;
7
+ export declare const SplitView: ({ children, className, namespace, ...props }: SplitViewProps) => React.JSX.Element;
8
8
  interface SplitViewPanelProps extends Omit<PanelProps, "id"> {
9
9
  span?: ColumnProps["span"];
10
10
  }
11
- declare const LeftPanel: ({ children, className, ...props }: SplitViewPanelProps) => React.JSX.Element;
12
- declare const RightPanel: ({ children, className, ...props }: SplitViewPanelProps) => React.JSX.Element;
13
- export { SplitView, LeftPanel, RightPanel };
11
+ export declare const LeftPanel: ({ children, className, ...props }: SplitViewPanelProps) => React.JSX.Element;
12
+ export declare const RightPanel: ({ children, className, ...props }: SplitViewPanelProps) => React.JSX.Element;
13
+ export {};
@@ -1,17 +1,24 @@
1
1
  import * as React from "react";
2
2
  import { cn, Separator } from "@webiny/admin-ui";
3
- import { Panel, PanelGroup, PanelResizeHandle } from "../ResizablePanels";
4
- const SplitView = ({
3
+ import { Panel, PanelGroup, PanelResizeHandle } from "../ResizablePanels/index.js";
4
+ import { useLocalStorage, useLocalStorageValue } from "@webiny/app";
5
+ import { useCallback } from "react";
6
+ export const SplitView = ({
5
7
  children,
6
8
  className,
7
- layoutId,
9
+ namespace = "splitView",
8
10
  ...props
9
11
  }) => {
12
+ const localStorage = useLocalStorage();
13
+ const layout = useLocalStorageValue(namespace);
14
+ const saveLayout = useCallback(layout => {
15
+ localStorage.set(`${namespace}/panels`, layout);
16
+ }, [localStorage, namespace]);
10
17
  return /*#__PURE__*/React.createElement(PanelGroup, Object.assign({
11
- direction: "horizontal",
12
- id: "splitView",
13
- autoSaveId: layoutId,
14
- className: cn("webiny-split-view", className)
18
+ id: namespace,
19
+ defaultLayout: layout,
20
+ className: cn("webiny-split-view", className),
21
+ onLayoutChanged: saveLayout
15
22
  }, props), children);
16
23
  };
17
24
 
@@ -20,7 +27,7 @@ const getDefaultSize = span => {
20
27
  const spanValue = typeof span === "number" && span > 0 && span <= 12 ? span : 6;
21
28
  return spanValue / 12 * 100;
22
29
  };
23
- const LeftPanel = ({
30
+ export const LeftPanel = ({
24
31
  children,
25
32
  className,
26
33
  ...props
@@ -31,11 +38,13 @@ const LeftPanel = ({
31
38
  minSize: 10,
32
39
  id: "leftPanel",
33
40
  className: cn("webiny-split-view__right-panel", className)
34
- }, props), children), /*#__PURE__*/React.createElement(PanelResizeHandle, null, /*#__PURE__*/React.createElement(Separator, {
41
+ }, props), children), /*#__PURE__*/React.createElement(PanelResizeHandle, {
42
+ className: "outline-0"
43
+ }, /*#__PURE__*/React.createElement(Separator, {
35
44
  orientation: "vertical"
36
45
  })));
37
46
  };
38
- const RightPanel = ({
47
+ export const RightPanel = ({
39
48
  children,
40
49
  className,
41
50
  ...props
@@ -45,13 +54,12 @@ const RightPanel = ({
45
54
  defaultSize: defaultSize,
46
55
  minSize: 30,
47
56
  id: "rightPanel",
48
- className: cn("!wby-overflow-scroll webiny-split-view__right-panel", className)
57
+ className: cn("overflow-scroll! webiny-split-view__right-panel", className)
49
58
  }, props, {
50
59
  style: {
51
60
  overflowY: "scroll"
52
61
  }
53
62
  }), children);
54
63
  };
55
- export { SplitView, LeftPanel, RightPanel };
56
64
 
57
65
  //# sourceMappingURL=SplitView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","cn","Separator","Panel","PanelGroup","PanelResizeHandle","SplitView","children","className","layoutId","props","createElement","Object","assign","direction","id","autoSaveId","getDefaultSize","span","spanValue","LeftPanel","defaultSize","Fragment","minSize","orientation","RightPanel","style","overflowY"],"sources":["SplitView.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { ColumnProps } from \"@webiny/admin-ui\";\nimport { cn, Separator } from \"@webiny/admin-ui\";\nimport type { PanelProps, PanelGroupProps } from \"~/components/ResizablePanels\";\nimport { Panel, PanelGroup, PanelResizeHandle } from \"~/components/ResizablePanels\";\n\ninterface SplitViewProps extends Omit<PanelGroupProps, \"direction\" | \"id\" | \"autoSaveId\"> {\n layoutId?: string | null;\n}\n\nconst SplitView = ({ children, className, layoutId, ...props }: SplitViewProps) => {\n return (\n <PanelGroup\n direction=\"horizontal\"\n id=\"splitView\"\n autoSaveId={layoutId}\n className={cn(\"webiny-split-view\", className)}\n {...props}\n >\n {children}\n </PanelGroup>\n );\n};\n\n// Get the default size for the panel:\nconst getDefaultSize = (span: ColumnProps[\"span\"]) => {\n const spanValue = typeof span === \"number\" && span > 0 && span <= 12 ? span : 6;\n return (spanValue / 12) * 100;\n};\n\ninterface SplitViewPanelProps extends Omit<PanelProps, \"id\"> {\n span?: ColumnProps[\"span\"];\n}\n\nconst LeftPanel = ({ children, className, ...props }: SplitViewPanelProps) => {\n const defaultSize = props.defaultSize ?? getDefaultSize(props.span || 5);\n\n return (\n <>\n <Panel\n defaultSize={defaultSize}\n minSize={10}\n id=\"leftPanel\"\n className={cn(\"webiny-split-view__right-panel\", className)}\n {...props}\n >\n {children}\n </Panel>\n <PanelResizeHandle>\n <Separator orientation={\"vertical\"} />\n </PanelResizeHandle>\n </>\n );\n};\n\nconst RightPanel = ({ children, className, ...props }: SplitViewPanelProps) => {\n const defaultSize = props.defaultSize ?? getDefaultSize(props.span || 7);\n\n return (\n <Panel\n defaultSize={defaultSize}\n minSize={30}\n id=\"rightPanel\"\n className={cn(\"!wby-overflow-scroll webiny-split-view__right-panel\", className)}\n {...props}\n style={{ overflowY: \"scroll\" }}\n >\n {children}\n </Panel>\n );\n};\n\nexport { SplitView, LeftPanel, RightPanel };\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,EAAE,EAAEC,SAAS,QAAQ,kBAAkB;AAEhD,SAASC,KAAK,EAAEC,UAAU,EAAEC,iBAAiB;AAM7C,MAAMC,SAAS,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,SAAS;EAAEC,QAAQ;EAAE,GAAGC;AAAsB,CAAC,KAAK;EAC/E,oBACIV,KAAA,CAAAW,aAAA,CAACP,UAAU,EAAAQ,MAAA,CAAAC,MAAA;IACPC,SAAS,EAAC,YAAY;IACtBC,EAAE,EAAC,WAAW;IACdC,UAAU,EAAEP,QAAS;IACrBD,SAAS,EAAEP,EAAE,CAAC,mBAAmB,EAAEO,SAAS;EAAE,GAC1CE,KAAK,GAERH,QACO,CAAC;AAErB,CAAC;;AAED;AACA,MAAMU,cAAc,GAAIC,IAAyB,IAAK;EAClD,MAAMC,SAAS,GAAG,OAAOD,IAAI,KAAK,QAAQ,IAAIA,IAAI,GAAG,CAAC,IAAIA,IAAI,IAAI,EAAE,GAAGA,IAAI,GAAG,CAAC;EAC/E,OAAQC,SAAS,GAAG,EAAE,GAAI,GAAG;AACjC,CAAC;AAMD,MAAMC,SAAS,GAAGA,CAAC;EAAEb,QAAQ;EAAEC,SAAS;EAAE,GAAGE;AAA2B,CAAC,KAAK;EAC1E,MAAMW,WAAW,GAAGX,KAAK,CAACW,WAAW,IAAIJ,cAAc,CAACP,KAAK,CAACQ,IAAI,IAAI,CAAC,CAAC;EAExE,oBACIlB,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAsB,QAAA,qBACItB,KAAA,CAAAW,aAAA,CAACR,KAAK,EAAAS,MAAA,CAAAC,MAAA;IACFQ,WAAW,EAAEA,WAAY;IACzBE,OAAO,EAAE,EAAG;IACZR,EAAE,EAAC,WAAW;IACdP,SAAS,EAAEP,EAAE,CAAC,gCAAgC,EAAEO,SAAS;EAAE,GACvDE,KAAK,GAERH,QACE,CAAC,eACRP,KAAA,CAAAW,aAAA,CAACN,iBAAiB,qBACdL,KAAA,CAAAW,aAAA,CAACT,SAAS;IAACsB,WAAW,EAAE;EAAW,CAAE,CACtB,CACrB,CAAC;AAEX,CAAC;AAED,MAAMC,UAAU,GAAGA,CAAC;EAAElB,QAAQ;EAAEC,SAAS;EAAE,GAAGE;AAA2B,CAAC,KAAK;EAC3E,MAAMW,WAAW,GAAGX,KAAK,CAACW,WAAW,IAAIJ,cAAc,CAACP,KAAK,CAACQ,IAAI,IAAI,CAAC,CAAC;EAExE,oBACIlB,KAAA,CAAAW,aAAA,CAACR,KAAK,EAAAS,MAAA,CAAAC,MAAA;IACFQ,WAAW,EAAEA,WAAY;IACzBE,OAAO,EAAE,EAAG;IACZR,EAAE,EAAC,YAAY;IACfP,SAAS,EAAEP,EAAE,CAAC,qDAAqD,EAAEO,SAAS;EAAE,GAC5EE,KAAK;IACTgB,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAS;EAAE,IAE9BpB,QACE,CAAC;AAEhB,CAAC;AAED,SAASD,SAAS,EAAEc,SAAS,EAAEK,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["React","cn","Separator","Panel","PanelGroup","PanelResizeHandle","useLocalStorage","useLocalStorageValue","useCallback","SplitView","children","className","namespace","props","localStorage","layout","saveLayout","set","createElement","Object","assign","id","defaultLayout","onLayoutChanged","getDefaultSize","span","spanValue","LeftPanel","defaultSize","Fragment","minSize","orientation","RightPanel","style","overflowY"],"sources":["SplitView.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { ColumnProps } from \"@webiny/admin-ui\";\nimport { cn, Separator } from \"@webiny/admin-ui\";\nimport type { PanelProps, PanelGroupProps } from \"~/components/ResizablePanels/index.js\";\nimport {\n Panel,\n PanelGroup,\n PanelResizeHandle,\n type Layout\n} from \"~/components/ResizablePanels/index.js\";\nimport { useLocalStorage, useLocalStorageValue } from \"@webiny/app\";\nimport { useCallback } from \"react\";\n\ninterface SplitViewProps extends Omit<PanelGroupProps, \"id\"> {\n namespace?: string;\n}\n\nexport const SplitView = ({\n children,\n className,\n namespace = \"splitView\",\n ...props\n}: SplitViewProps) => {\n const localStorage = useLocalStorage();\n\n const layout = useLocalStorageValue<Layout>(namespace);\n\n const saveLayout = useCallback(\n (layout: Layout) => {\n localStorage.set(`${namespace}/panels`, layout);\n },\n [localStorage, namespace]\n );\n\n return (\n <PanelGroup\n id={namespace}\n defaultLayout={layout}\n className={cn(\"webiny-split-view\", className)}\n onLayoutChanged={saveLayout}\n {...props}\n >\n {children}\n </PanelGroup>\n );\n};\n\n// Get the default size for the panel:\nconst getDefaultSize = (span: ColumnProps[\"span\"]) => {\n const spanValue = typeof span === \"number\" && span > 0 && span <= 12 ? span : 6;\n return (spanValue / 12) * 100;\n};\n\ninterface SplitViewPanelProps extends Omit<PanelProps, \"id\"> {\n span?: ColumnProps[\"span\"];\n}\n\nexport const LeftPanel = ({ children, className, ...props }: SplitViewPanelProps) => {\n const defaultSize = props.defaultSize ?? getDefaultSize(props.span || 5);\n\n return (\n <>\n <Panel\n defaultSize={defaultSize}\n minSize={10}\n id=\"leftPanel\"\n className={cn(\"webiny-split-view__right-panel\", className)}\n {...props}\n >\n {children}\n </Panel>\n <PanelResizeHandle className={\"outline-0\"}>\n <Separator orientation={\"vertical\"} />\n </PanelResizeHandle>\n </>\n );\n};\n\nexport const RightPanel = ({ children, className, ...props }: SplitViewPanelProps) => {\n const defaultSize = props.defaultSize ?? getDefaultSize(props.span || 7);\n\n return (\n <Panel\n defaultSize={defaultSize}\n minSize={30}\n id=\"rightPanel\"\n className={cn(\"overflow-scroll! webiny-split-view__right-panel\", className)}\n {...props}\n style={{ overflowY: \"scroll\" }}\n >\n {children}\n </Panel>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,O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,IAAI,IAAI,CAAC,CAAC;EAExE,oBACIzB,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAA6B,QAAA,qBACI7B,KAAA,CAAAkB,aAAA,CAACf,KAAK,EAAAgB,MAAA,CAAAC,MAAA;IACFQ,WAAW,EAAEA,WAAY;IACzBE,OAAO,EAAE,EAAG;IACZT,EAAE,EAAC,WAAW;IACdV,SAAS,EAAEV,EAAE,CAAC,gCAAgC,EAAEU,SAAS;EAAE,GACvDE,KAAK,GAERH,QACE,CAAC,eACRV,KAAA,CAAAkB,aAAA,CAACb,iBAAiB;IAACM,SAAS,EAAE;EAAY,gBACtCX,KAAA,CAAAkB,aAAA,CAAChB,SAAS;IAAC6B,WAAW,EAAE;EAAW,CAAE,CACtB,CACrB,CAAC;AAEX,CAAC;AAED,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEtB,QAAQ;EAAEC,SAAS;EAAE,GAAGE;AAA2B,CAAC,KAAK;EAClF,MAAMe,WAAW,GAAGf,KAAK,CAACe,WAAW,IAAIJ,cAAc,CAACX,KAAK,CAACY,IAAI,IAAI,CAAC,CAAC;EAExE,oBACIzB,KAAA,CAAAkB,aAAA,CAACf,KAAK,EAAAgB,MAAA,CAAAC,MAAA;IACFQ,WAAW,EAAEA,WAAY;IACzBE,OAAO,EAAE,EAAG;IACZT,EAAE,EAAC,YAAY;IACfV,SAAS,EAAEV,EAAE,CAAC,iDAAiD,EAAEU,SAAS;EAAE,GACxEE,KAAK;IACToB,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAS;EAAE,IAE9BxB,QACE,CAAC;AAEhB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export { SplitView, LeftPanel, RightPanel } from "./SplitView";
1
+ export { SplitView, LeftPanel, RightPanel } from "./SplitView.js";
@@ -1,3 +1,3 @@
1
- export { SplitView, LeftPanel, RightPanel } from "./SplitView";
1
+ export { SplitView, LeftPanel, RightPanel } from "./SplitView.js";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SplitView","LeftPanel","RightPanel"],"sources":["index.ts"],"sourcesContent":["export { SplitView, LeftPanel, RightPanel } from \"./SplitView\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,SAAS,EAAEC,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["SplitView","LeftPanel","RightPanel"],"sources":["index.ts"],"sourcesContent":["export { SplitView, LeftPanel, RightPanel } from \"./SplitView.js\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,SAAS,EAAEC,UAAU","ignoreList":[]}