@webiny/app-admin 0.0.0-unstable.b14eaecf38 → 0.0.0-unstable.b9b64acb6d

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 (1156) hide show
  1. package/README.md +7 -17
  2. package/assets/icons/file_download.svg +1 -0
  3. package/assets/icons/file_upload.svg +1 -0
  4. package/base/Admin.d.ts +5 -2
  5. package/base/Admin.js +45 -40
  6. package/base/Admin.js.map +1 -1
  7. package/base/Base/LexicalPreset.d.ts +2 -0
  8. package/base/Base/LexicalPreset.js +67 -0
  9. package/base/Base/LexicalPreset.js.map +1 -0
  10. package/base/Base/Menus/SupportMenuItems.d.ts +2 -0
  11. package/base/Base/Menus/SupportMenuItems.js +18 -0
  12. package/base/Base/Menus/SupportMenuItems.js.map +1 -0
  13. package/base/Base/Menus/WebinyVersion.d.ts +2 -0
  14. package/base/Base/Menus/WebinyVersion.js +24 -0
  15. package/base/Base/Menus/WebinyVersion.js.map +1 -0
  16. package/base/Base/Menus.d.ts +2 -0
  17. package/base/Base/Menus.js +124 -0
  18. package/base/Base/Menus.js.map +1 -0
  19. package/base/Base/RoutesConfig.d.ts +2 -0
  20. package/base/Base/RoutesConfig.js +30 -0
  21. package/base/Base/RoutesConfig.js.map +1 -0
  22. package/base/Base/Tenant/wby-horizontal.svg +23 -0
  23. package/base/Base/Tenant/wby-square.svg +3 -0
  24. package/base/Base/Tenant.d.ts +2 -0
  25. package/base/Base/Tenant.js +24 -0
  26. package/base/Base/Tenant.js.map +1 -0
  27. package/base/Base/UserMenu/ExitTenant.d.ts +20 -0
  28. package/base/Base/UserMenu/ExitTenant.js +37 -0
  29. package/base/Base/UserMenu/ExitTenant.js.map +1 -0
  30. package/base/Base/UserMenu/SignOut.d.ts +2 -0
  31. package/base/Base/UserMenu/SignOut.js +19 -0
  32. package/base/Base/UserMenu/SignOut.js.map +1 -0
  33. package/base/Base/UserMenu/UserInfo.d.ts +6 -0
  34. package/base/Base/UserMenu/UserInfo.js +43 -0
  35. package/base/Base/UserMenu/UserInfo.js.map +1 -0
  36. package/base/Base/UserMenu.d.ts +2 -0
  37. package/base/Base/UserMenu.js +21 -0
  38. package/base/Base/UserMenu.js.map +1 -0
  39. package/base/Base.d.ts +1 -1
  40. package/base/Base.js +11 -71
  41. package/base/Base.js.map +1 -1
  42. package/base/TelemetryAdminAppStart.d.ts +1 -0
  43. package/base/TelemetryAdminAppStart.js +19 -0
  44. package/base/TelemetryAdminAppStart.js.map +1 -0
  45. package/base/WebinyVersion.d.ts +2 -0
  46. package/base/WebinyVersion.js +24 -0
  47. package/base/WebinyVersion.js.map +1 -0
  48. package/base/createRootContainer.d.ts +2 -0
  49. package/base/createRootContainer.js +55 -0
  50. package/base/createRootContainer.js.map +1 -0
  51. package/base/plugins/AddGraphQLQuerySelection.d.ts +2 -3
  52. package/base/plugins/AddGraphQLQuerySelection.js +13 -22
  53. package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
  54. package/base/providers/AdminUiStateProvider.d.ts +1 -0
  55. package/base/providers/AdminUiStateProvider.js +14 -0
  56. package/base/providers/AdminUiStateProvider.js.map +1 -0
  57. package/base/providers/ApolloProvider.d.ts +5 -2
  58. package/base/providers/ApolloProvider.js +10 -18
  59. package/base/providers/ApolloProvider.js.map +1 -1
  60. package/base/providers/UiProviders.d.ts +1 -0
  61. package/base/providers/UiProviders.js +35 -0
  62. package/base/providers/UiProviders.js.map +1 -0
  63. package/base/providers/UiStateProvider.d.ts +1 -2
  64. package/base/providers/UiStateProvider.js +12 -16
  65. package/base/providers/UiStateProvider.js.map +1 -1
  66. package/base/ui/Brand.d.ts +39 -2
  67. package/base/ui/Brand.js +7 -14
  68. package/base/ui/Brand.js.map +1 -1
  69. package/base/ui/CenteredView.d.ts +21 -1
  70. package/base/ui/CenteredView.js +14 -34
  71. package/base/ui/CenteredView.js.map +1 -1
  72. package/base/ui/Dashboard.d.ts +39 -2
  73. package/base/ui/Dashboard.js +7 -14
  74. package/base/ui/Dashboard.js.map +1 -1
  75. package/base/ui/FileManager.d.ts +36 -29
  76. package/base/ui/FileManager.js +57 -52
  77. package/base/ui/FileManager.js.map +1 -1
  78. package/base/ui/Layout.d.ts +40 -2
  79. package/base/ui/Layout.js +10 -18
  80. package/base/ui/Layout.js.map +1 -1
  81. package/base/ui/LoginScreen.d.ts +40 -2
  82. package/base/ui/LoginScreen.js +22 -17
  83. package/base/ui/LoginScreen.js.map +1 -1
  84. package/base/ui/Logo.d.ts +38 -7
  85. package/base/ui/Logo.js +7 -29
  86. package/base/ui/Logo.js.map +1 -1
  87. package/base/ui/Navigation.d.ts +39 -23
  88. package/base/ui/Navigation.js +14 -146
  89. package/base/ui/Navigation.js.map +1 -1
  90. package/base/ui/NotFound.d.ts +39 -2
  91. package/base/ui/NotFound.js +7 -14
  92. package/base/ui/NotFound.js.map +1 -1
  93. package/base/ui/Tags.d.ts +2 -2
  94. package/base/ui/Tags.js +16 -18
  95. package/base/ui/Tags.js.map +1 -1
  96. package/base/ui/TenantSelector.d.ts +39 -0
  97. package/base/ui/TenantSelector.js +8 -0
  98. package/base/ui/TenantSelector.js.map +1 -0
  99. package/base/ui/UserMenu/UserMenu.d.ts +39 -0
  100. package/base/ui/UserMenu/UserMenu.js +8 -0
  101. package/base/ui/UserMenu/UserMenu.js.map +1 -0
  102. package/base/ui/UserMenu/UserMenuHandle.d.ts +39 -0
  103. package/base/ui/UserMenu/UserMenuHandle.js +8 -0
  104. package/base/ui/UserMenu/UserMenuHandle.js.map +1 -0
  105. package/base/ui/UserMenu/UserMenuItem.d.ts +81 -0
  106. package/base/ui/UserMenu/UserMenuItem.js +19 -0
  107. package/base/ui/UserMenu/UserMenuItem.js.map +1 -0
  108. package/base/ui/UserMenu/UserMenuLink.d.ts +81 -0
  109. package/base/ui/UserMenu/UserMenuLink.js +19 -0
  110. package/base/ui/UserMenu/UserMenuLink.js.map +1 -0
  111. package/base/ui/UserMenu/UserMenuSeparator.d.ts +42 -0
  112. package/base/ui/UserMenu/UserMenuSeparator.js +9 -0
  113. package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -0
  114. package/base/ui/UserMenu.d.ts +79 -29
  115. package/base/ui/UserMenu.js +16 -110
  116. package/base/ui/UserMenu.js.map +1 -1
  117. package/components/AdminLayout.d.ts +2 -1
  118. package/components/AdminLayout.js +9 -14
  119. package/components/AdminLayout.js.map +1 -1
  120. package/components/BulkActions/Worker.d.ts +82 -0
  121. package/components/BulkActions/Worker.js +126 -0
  122. package/components/BulkActions/Worker.js.map +1 -0
  123. package/components/BulkActions/index.d.ts +2 -0
  124. package/components/BulkActions/index.js +4 -0
  125. package/components/BulkActions/index.js.map +1 -0
  126. package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +5 -0
  127. package/components/BulkActions/useDialogWithReport/DialogMessage.js +23 -0
  128. package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -0
  129. package/components/BulkActions/useDialogWithReport/index.d.ts +1 -0
  130. package/components/BulkActions/useDialogWithReport/index.js +3 -0
  131. package/components/BulkActions/useDialogWithReport/index.js.map +1 -0
  132. package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +19 -0
  133. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +51 -0
  134. package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -0
  135. package/components/Buttons/Buttons.d.ts +24 -0
  136. package/components/Buttons/Buttons.js +77 -0
  137. package/components/Buttons/Buttons.js.map +1 -0
  138. package/components/Buttons/Buttons.styles.d.ts +4 -0
  139. package/components/Buttons/Buttons.styles.js +17 -0
  140. package/components/Buttons/Buttons.styles.js.map +1 -0
  141. package/components/Buttons/index.d.ts +2 -0
  142. package/components/Buttons/index.js +4 -0
  143. package/components/Buttons/index.js.map +1 -0
  144. package/components/Buttons/useButtons.d.ts +14 -0
  145. package/components/Buttons/useButtons.js +24 -0
  146. package/components/Buttons/useButtons.js.map +1 -0
  147. package/components/DeveloperMode/DeveloperMode.d.ts +11 -0
  148. package/components/DeveloperMode/DeveloperMode.js +17 -0
  149. package/components/DeveloperMode/DeveloperMode.js.map +1 -0
  150. package/components/DeveloperMode/index.d.ts +2 -0
  151. package/components/DeveloperMode/index.js +3 -0
  152. package/components/DeveloperMode/index.js.map +1 -0
  153. package/components/Dialogs/Dialog.d.ts +21 -0
  154. package/components/Dialogs/Dialog.js +62 -0
  155. package/components/Dialogs/Dialog.js.map +1 -0
  156. package/components/Dialogs/DialogsContext.d.ts +38 -0
  157. package/components/Dialogs/DialogsContext.js +132 -0
  158. package/components/Dialogs/DialogsContext.js.map +1 -0
  159. package/components/Dialogs/useDialogs.d.ts +2 -0
  160. package/components/Dialogs/useDialogs.js +11 -0
  161. package/components/Dialogs/useDialogs.js.map +1 -0
  162. package/components/EmptyView.d.ts +4 -4
  163. package/components/EmptyView.js +30 -58
  164. package/components/EmptyView.js.map +1 -1
  165. package/components/Filters/Filters.d.ts +16 -0
  166. package/components/Filters/Filters.js +21 -0
  167. package/components/Filters/Filters.js.map +1 -0
  168. package/components/Filters/FiltersToggle.d.ts +7 -0
  169. package/components/Filters/FiltersToggle.js +26 -0
  170. package/components/Filters/FiltersToggle.js.map +1 -0
  171. package/components/Filters/index.d.ts +2 -0
  172. package/components/Filters/index.js +4 -0
  173. package/components/Filters/index.js.map +1 -0
  174. package/components/FloatingActionButton.d.ts +4 -1
  175. package/components/FloatingActionButton.js +9 -14
  176. package/components/FloatingActionButton.js.map +1 -1
  177. package/components/FloatingPanel.d.ts +13 -0
  178. package/components/FloatingPanel.js +94 -0
  179. package/components/FloatingPanel.js.map +1 -0
  180. package/components/IconPicker/IconPicker.d.ts +13 -0
  181. package/components/IconPicker/IconPicker.js +39 -0
  182. package/components/IconPicker/IconPicker.js.map +1 -0
  183. package/components/IconPicker/IconPickerComponent.d.ts +17 -0
  184. package/components/IconPicker/IconPickerComponent.js +81 -0
  185. package/components/IconPicker/IconPickerComponent.js.map +1 -0
  186. package/components/IconPicker/IconPickerPresenter.d.ts +53 -0
  187. package/components/IconPicker/IconPickerPresenter.js +77 -0
  188. package/components/IconPicker/IconPickerPresenter.js.map +1 -0
  189. package/components/IconPicker/IconPickerPresenter.test.d.ts +1 -0
  190. package/components/IconPicker/IconPickerPresenter.test.js +110 -0
  191. package/components/IconPicker/IconPickerPresenter.test.js.map +1 -0
  192. package/components/IconPicker/IconPickerPresenterProvider.d.ts +9 -0
  193. package/components/IconPicker/IconPickerPresenterProvider.js +19 -0
  194. package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -0
  195. package/components/IconPicker/IconPickerTab.d.ts +33 -0
  196. package/components/IconPicker/IconPickerTab.js +159 -0
  197. package/components/IconPicker/IconPickerTab.js.map +1 -0
  198. package/components/IconPicker/IconRenderer.d.ts +34 -0
  199. package/components/IconPicker/IconRenderer.js +27 -0
  200. package/components/IconPicker/IconRenderer.js.map +1 -0
  201. package/components/IconPicker/IconRepository.d.ts +19 -0
  202. package/components/IconPicker/IconRepository.js +47 -0
  203. package/components/IconPicker/IconRepository.js.map +1 -0
  204. package/components/IconPicker/IconRepository.test.d.ts +1 -0
  205. package/components/IconPicker/IconRepository.test.js +67 -0
  206. package/components/IconPicker/IconRepository.test.js.map +1 -0
  207. package/components/IconPicker/IconRepositoryFactory.d.ts +9 -0
  208. package/components/IconPicker/IconRepositoryFactory.js +17 -0
  209. package/components/IconPicker/IconRepositoryFactory.js.map +1 -0
  210. package/components/IconPicker/Loading.d.ts +14 -0
  211. package/components/IconPicker/Loading.js +50 -0
  212. package/components/IconPicker/Loading.js.map +1 -0
  213. package/components/IconPicker/components/IconPickerCell.d.ts +12 -0
  214. package/components/IconPicker/components/IconPickerCell.js +27 -0
  215. package/components/IconPicker/components/IconPickerCell.js.map +1 -0
  216. package/components/IconPicker/components/IconPickerContent.d.ts +11 -0
  217. package/components/IconPicker/components/IconPickerContent.js +41 -0
  218. package/components/IconPicker/components/IconPickerContent.js.map +1 -0
  219. package/components/IconPicker/components/IconPickerRow.d.ts +4 -0
  220. package/components/IconPicker/components/IconPickerRow.js +14 -0
  221. package/components/IconPicker/components/IconPickerRow.js.map +1 -0
  222. package/components/IconPicker/components/IconPickerTrigger.d.ts +13 -0
  223. package/components/IconPicker/components/IconPickerTrigger.js +52 -0
  224. package/components/IconPicker/components/IconPickerTrigger.js.map +1 -0
  225. package/components/IconPicker/components/index.d.ts +4 -0
  226. package/components/IconPicker/components/index.js +6 -0
  227. package/components/IconPicker/components/index.js.map +1 -0
  228. package/components/IconPicker/config/Emojis.d.ts +2 -0
  229. package/components/IconPicker/config/Emojis.js +24 -0
  230. package/components/IconPicker/config/Emojis.js.map +1 -0
  231. package/components/IconPicker/config/FontAwesomeIcons.d.ts +2 -0
  232. package/components/IconPicker/config/FontAwesomeIcons.js +61 -0
  233. package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -0
  234. package/components/IconPicker/config/IconPackProvider.d.ts +7 -0
  235. package/components/IconPicker/config/IconPackProvider.js +23 -0
  236. package/components/IconPicker/config/IconPackProvider.js.map +1 -0
  237. package/components/IconPicker/config/IconType.d.ts +32 -0
  238. package/components/IconPicker/config/IconType.js +89 -0
  239. package/components/IconPicker/config/IconType.js.map +1 -0
  240. package/components/IconPicker/config/index.d.ts +31 -0
  241. package/components/IconPicker/config/index.js +45 -0
  242. package/components/IconPicker/config/index.js.map +1 -0
  243. package/components/IconPicker/defaultIcon.d.ts +6 -0
  244. package/components/IconPicker/defaultIcon.js +8 -0
  245. package/components/IconPicker/defaultIcon.js.map +1 -0
  246. package/components/IconPicker/index.d.ts +7 -0
  247. package/components/IconPicker/index.js +8 -0
  248. package/components/IconPicker/index.js.map +1 -0
  249. package/components/IconPicker/plugins/customPlugin.d.ts +2 -0
  250. package/components/IconPicker/plugins/customPlugin.js +127 -0
  251. package/components/IconPicker/plugins/customPlugin.js.map +1 -0
  252. package/components/IconPicker/plugins/emojisPlugin.d.ts +2 -0
  253. package/components/IconPicker/plugins/emojisPlugin.js +127 -0
  254. package/components/IconPicker/plugins/emojisPlugin.js.map +1 -0
  255. package/components/IconPicker/plugins/graphql.d.ts +20 -0
  256. package/components/IconPicker/plugins/graphql.js +27 -0
  257. package/components/IconPicker/plugins/graphql.js.map +1 -0
  258. package/components/IconPicker/plugins/iconsPlugin.d.ts +2 -0
  259. package/components/IconPicker/plugins/iconsPlugin.js +115 -0
  260. package/components/IconPicker/plugins/iconsPlugin.js.map +1 -0
  261. package/components/IconPicker/types.d.ts +22 -0
  262. package/components/IconPicker/types.js +10 -0
  263. package/components/IconPicker/types.js.map +1 -0
  264. package/components/LexicalEditor/LexicalEditor.d.ts +12 -0
  265. package/components/LexicalEditor/LexicalEditor.js +40 -0
  266. package/components/LexicalEditor/LexicalEditor.js.map +1 -0
  267. package/components/LexicalEditor/LexicalLinkForm.d.ts +6 -0
  268. package/components/LexicalEditor/LexicalLinkForm.js +92 -0
  269. package/components/LexicalEditor/LexicalLinkForm.js.map +1 -0
  270. package/components/LexicalEditor/index.d.ts +3 -0
  271. package/components/LexicalEditor/index.js +5 -0
  272. package/components/LexicalEditor/index.js.map +1 -0
  273. package/components/LexicalEditor/lexicalValueWithHtml.d.ts +7 -0
  274. package/components/LexicalEditor/lexicalValueWithHtml.js +36 -0
  275. package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -0
  276. package/components/MultiImageUpload.d.ts +1 -1
  277. package/components/MultiImageUpload.js +14 -32
  278. package/components/MultiImageUpload.js.map +1 -1
  279. package/components/NavigationPrompt.d.ts +27 -0
  280. package/components/NavigationPrompt.js +39 -0
  281. package/components/NavigationPrompt.js.map +1 -0
  282. package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -0
  283. package/components/NotAuthorizedError/NotAuthorizedError.js +20 -0
  284. package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
  285. package/components/NotAuthorizedError/SecureRouteError.svg +1 -0
  286. package/components/NotAuthorizedError/index.d.ts +1 -0
  287. package/components/NotAuthorizedError/index.js +3 -0
  288. package/components/NotAuthorizedError/index.js.map +1 -0
  289. package/components/OptionsMenu/OptionsMenu.d.ts +10 -0
  290. package/components/OptionsMenu/OptionsMenu.js +23 -0
  291. package/components/OptionsMenu/OptionsMenu.js.map +1 -0
  292. package/components/OptionsMenu/OptionsMenuItem.d.ts +10 -0
  293. package/components/OptionsMenu/OptionsMenuItem.js +17 -0
  294. package/components/OptionsMenu/OptionsMenuItem.js.map +1 -0
  295. package/components/OptionsMenu/OptionsMenuLink.d.ts +12 -0
  296. package/components/OptionsMenu/OptionsMenuLink.js +17 -0
  297. package/components/OptionsMenu/OptionsMenuLink.js.map +1 -0
  298. package/components/OptionsMenu/index.d.ts +4 -0
  299. package/components/OptionsMenu/index.js +6 -0
  300. package/components/OptionsMenu/index.js.map +1 -0
  301. package/components/OptionsMenu/useOptionsMenuItem.d.ts +13 -0
  302. package/components/OptionsMenu/useOptionsMenuItem.js +23 -0
  303. package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -0
  304. package/components/OverlayLayout/OverlayLayout.d.ts +6 -17
  305. package/components/OverlayLayout/OverlayLayout.js +43 -154
  306. package/components/OverlayLayout/OverlayLayout.js.map +1 -1
  307. package/components/OverlayLayout/components/OverlayBackdrop.d.ts +7 -0
  308. package/components/OverlayLayout/components/OverlayBackdrop.js +15 -0
  309. package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -0
  310. package/components/OverlayLayout/components/OverlayContent.d.ts +6 -0
  311. package/components/OverlayLayout/components/OverlayContent.js +21 -0
  312. package/components/OverlayLayout/components/OverlayContent.js.map +1 -0
  313. package/components/OverlayLayout/components/OverlayHeader.d.ts +13 -0
  314. package/components/OverlayLayout/components/OverlayHeader.js +44 -0
  315. package/components/OverlayLayout/components/OverlayHeader.js.map +1 -0
  316. package/components/OverlayLayout/components/OverlayRoot.d.ts +9 -0
  317. package/components/OverlayLayout/components/OverlayRoot.js +19 -0
  318. package/components/OverlayLayout/components/OverlayRoot.js.map +1 -0
  319. package/components/OverlayLayout/components/index.d.ts +4 -0
  320. package/components/OverlayLayout/components/index.js +6 -0
  321. package/components/OverlayLayout/components/index.js.map +1 -0
  322. package/components/OverlayLayout/index.d.ts +1 -1
  323. package/components/OverlayLayout/index.js +2 -15
  324. package/components/OverlayLayout/index.js.map +1 -1
  325. package/components/Permissions/CannotUseAaclAlert.d.ts +2 -0
  326. package/components/Permissions/CannotUseAaclAlert.js +14 -0
  327. package/components/Permissions/CannotUseAaclAlert.js.map +1 -0
  328. package/components/Permissions/Permissions.d.ts +2 -4
  329. package/components/Permissions/Permissions.js +46 -50
  330. package/components/Permissions/Permissions.js.map +1 -1
  331. package/components/Permissions/PermissionsGroup.d.ts +6 -0
  332. package/components/Permissions/PermissionsGroup.js +18 -0
  333. package/components/Permissions/PermissionsGroup.js.map +1 -0
  334. package/components/Permissions/StyledComponents.d.ts +2 -3
  335. package/components/Permissions/StyledComponents.js +14 -28
  336. package/components/Permissions/StyledComponents.js.map +1 -1
  337. package/components/Permissions/index.d.ts +4 -2
  338. package/components/Permissions/index.js +5 -26
  339. package/components/Permissions/index.js.map +1 -1
  340. package/components/RegisterFeature.d.ts +11 -0
  341. package/components/RegisterFeature.js +26 -0
  342. package/components/RegisterFeature.js.map +1 -0
  343. package/components/ResizablePanels/index.d.ts +1 -0
  344. package/components/ResizablePanels/index.js +3 -0
  345. package/components/ResizablePanels/index.js.map +1 -0
  346. package/components/RoleAutocomplete/graphql.d.ts +1 -0
  347. package/components/RoleAutocomplete/graphql.js +18 -0
  348. package/components/RoleAutocomplete/graphql.js.map +1 -0
  349. package/components/RoleAutocomplete/index.d.ts +5 -0
  350. package/components/RoleAutocomplete/index.js +18 -0
  351. package/components/RoleAutocomplete/index.js.map +1 -0
  352. package/components/RolesMultiAutocomplete/graphql.d.ts +1 -0
  353. package/components/RolesMultiAutocomplete/graphql.js +23 -0
  354. package/components/RolesMultiAutocomplete/graphql.js.map +1 -0
  355. package/components/RolesMultiAutocomplete/index.d.ts +5 -0
  356. package/components/RolesMultiAutocomplete/index.js +19 -0
  357. package/components/RolesMultiAutocomplete/index.js.map +1 -0
  358. package/components/SearchUI.d.ts +2 -2
  359. package/components/SearchUI.js +24 -69
  360. package/components/SearchUI.js.map +1 -1
  361. package/components/SimpleForm/SimpleForm.d.ts +19 -8
  362. package/components/SimpleForm/SimpleForm.js +74 -70
  363. package/components/SimpleForm/SimpleForm.js.map +1 -1
  364. package/components/SimpleForm/index.d.ts +1 -1
  365. package/components/SimpleForm/index.js +2 -29
  366. package/components/SimpleForm/index.js.map +1 -1
  367. package/components/SimpleUI/InputField.d.ts +3 -3
  368. package/components/SimpleUI/InputField.js +43 -50
  369. package/components/SimpleUI/InputField.js.map +1 -1
  370. package/components/SingleImageUpload.d.ts +21 -8
  371. package/components/SingleImageUpload.js +41 -77
  372. package/components/SingleImageUpload.js.map +1 -1
  373. package/components/SplitView/SplitView.d.ts +11 -9
  374. package/components/SplitView/SplitView.js +61 -72
  375. package/components/SplitView/SplitView.js.map +1 -1
  376. package/components/SplitView/index.d.ts +1 -1
  377. package/components/SplitView/index.js +2 -23
  378. package/components/SplitView/index.js.map +1 -1
  379. package/components/StateInspector.d.ts +8 -0
  380. package/components/StateInspector.js +36 -0
  381. package/components/StateInspector.js.map +1 -0
  382. package/components/TeamAutocomplete/graphql.d.ts +1 -0
  383. package/components/TeamAutocomplete/graphql.js +18 -0
  384. package/components/TeamAutocomplete/graphql.js.map +1 -0
  385. package/components/TeamAutocomplete/index.d.ts +5 -0
  386. package/components/TeamAutocomplete/index.js +18 -0
  387. package/components/TeamAutocomplete/index.js.map +1 -0
  388. package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
  389. package/components/TeamsMultiAutocomplete/graphql.js +23 -0
  390. package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
  391. package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
  392. package/components/TeamsMultiAutocomplete/index.js +19 -0
  393. package/components/TeamsMultiAutocomplete/index.js.map +1 -0
  394. package/components/Wcp.d.ts +17 -0
  395. package/components/Wcp.js +41 -0
  396. package/components/Wcp.js.map +1 -0
  397. package/components/index.d.ts +30 -1
  398. package/components/index.js +30 -11
  399. package/components/index.js.map +1 -1
  400. package/config/AdminConfig/Dashboard.d.ts +3 -0
  401. package/config/AdminConfig/Dashboard.js +6 -0
  402. package/config/AdminConfig/Dashboard.js.map +1 -0
  403. package/config/AdminConfig/LexicalTheme/Color.d.ts +11 -0
  404. package/config/AdminConfig/LexicalTheme/Color.js +45 -0
  405. package/config/AdminConfig/LexicalTheme/Color.js.map +1 -0
  406. package/config/AdminConfig/LexicalTheme/Typography.d.ts +30 -0
  407. package/config/AdminConfig/LexicalTheme/Typography.js +79 -0
  408. package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -0
  409. package/config/AdminConfig/LexicalTheme.d.ts +9 -0
  410. package/config/AdminConfig/LexicalTheme.js +8 -0
  411. package/config/AdminConfig/LexicalTheme.js.map +1 -0
  412. package/config/AdminConfig/Logo.d.ts +24 -0
  413. package/config/AdminConfig/Logo.js +21 -0
  414. package/config/AdminConfig/Logo.js.map +1 -0
  415. package/config/AdminConfig/Menu/MenuGroup.d.ts +62 -0
  416. package/config/AdminConfig/Menu/MenuGroup.js +14 -0
  417. package/config/AdminConfig/Menu/MenuGroup.js.map +1 -0
  418. package/config/AdminConfig/Menu/MenuItem.d.ts +43 -0
  419. package/config/AdminConfig/Menu/MenuItem.js +14 -0
  420. package/config/AdminConfig/Menu/MenuItem.js.map +1 -0
  421. package/config/AdminConfig/Menu/MenuLink.d.ts +43 -0
  422. package/config/AdminConfig/Menu/MenuLink.js +24 -0
  423. package/config/AdminConfig/Menu/MenuLink.js.map +1 -0
  424. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +43 -0
  425. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +13 -0
  426. package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -0
  427. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +24 -0
  428. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +13 -0
  429. package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -0
  430. package/config/AdminConfig/Menu/SupportMenu.d.ts +72 -0
  431. package/config/AdminConfig/Menu/SupportMenu.js +49 -0
  432. package/config/AdminConfig/Menu/SupportMenu.js.map +1 -0
  433. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +40 -0
  434. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +7 -0
  435. package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -0
  436. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +40 -0
  437. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +7 -0
  438. package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -0
  439. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -0
  440. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +3 -0
  441. package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -0
  442. package/config/AdminConfig/Menu/UserMenu/types.d.ts +7 -0
  443. package/config/AdminConfig/Menu/UserMenu/types.js +3 -0
  444. package/config/AdminConfig/Menu/UserMenu/types.js.map +1 -0
  445. package/config/AdminConfig/Menu/UserMenu.d.ts +129 -0
  446. package/config/AdminConfig/Menu/UserMenu.js +61 -0
  447. package/config/AdminConfig/Menu/UserMenu.js.map +1 -0
  448. package/config/AdminConfig/Menu/types.d.ts +7 -0
  449. package/config/AdminConfig/Menu/types.js +3 -0
  450. package/config/AdminConfig/Menu/types.js.map +1 -0
  451. package/config/AdminConfig/Menu.d.ts +352 -0
  452. package/config/AdminConfig/Menu.js +85 -0
  453. package/config/AdminConfig/Menu.js.map +1 -0
  454. package/config/AdminConfig/Route.d.ts +3 -0
  455. package/config/AdminConfig/Route.js +8 -0
  456. package/config/AdminConfig/Route.js.map +1 -0
  457. package/config/AdminConfig/Security.d.ts +3 -0
  458. package/config/AdminConfig/Security.js +6 -0
  459. package/config/AdminConfig/Security.js.map +1 -0
  460. package/config/AdminConfig/SecurityPermissions.d.ts +17 -0
  461. package/config/AdminConfig/SecurityPermissions.js +31 -0
  462. package/config/AdminConfig/SecurityPermissions.js.map +1 -0
  463. package/config/AdminConfig/Tenant/TenantLogo.d.ts +24 -0
  464. package/config/AdminConfig/Tenant/TenantLogo.js +24 -0
  465. package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -0
  466. package/config/AdminConfig/Tenant/TenantName.d.ts +23 -0
  467. package/config/AdminConfig/Tenant/TenantName.js +19 -0
  468. package/config/AdminConfig/Tenant/TenantName.js.map +1 -0
  469. package/config/AdminConfig/Tenant.d.ts +49 -0
  470. package/config/AdminConfig/Tenant.js +14 -0
  471. package/config/AdminConfig/Tenant.js.map +1 -0
  472. package/config/AdminConfig/Theme/assignColor.d.ts +2 -0
  473. package/config/AdminConfig/Theme/assignColor.js +22 -0
  474. package/config/AdminConfig/Theme/assignColor.js.map +1 -0
  475. package/config/AdminConfig/Theme/consts.d.ts +2 -0
  476. package/config/AdminConfig/Theme/consts.js +4 -0
  477. package/config/AdminConfig/Theme/consts.js.map +1 -0
  478. package/config/AdminConfig/Theme/types.d.ts +3 -0
  479. package/config/AdminConfig/Theme/types.js +3 -0
  480. package/config/AdminConfig/Theme/types.js.map +1 -0
  481. package/config/AdminConfig/Theme.d.ts +16 -0
  482. package/config/AdminConfig/Theme.js +22 -0
  483. package/config/AdminConfig/Theme.js.map +1 -0
  484. package/config/AdminConfig/Title.d.ts +23 -0
  485. package/config/AdminConfig/Title.js +16 -0
  486. package/config/AdminConfig/Title.js.map +1 -0
  487. package/config/AdminConfig/Widget.d.ts +15 -0
  488. package/config/AdminConfig/Widget.js +36 -0
  489. package/config/AdminConfig/Widget.js.map +1 -0
  490. package/config/AdminConfig.d.ts +486 -0
  491. package/config/AdminConfig.js +73 -0
  492. package/config/AdminConfig.js.map +1 -0
  493. package/config/createAdminConfig.d.ts +57 -0
  494. package/config/createAdminConfig.js +94 -0
  495. package/config/createAdminConfig.js.map +1 -0
  496. package/css/tokens.css +379 -0
  497. package/css/typography.css +70 -0
  498. package/domain/Identity.d.ts +59 -0
  499. package/domain/Identity.js +96 -0
  500. package/domain/Identity.js.map +1 -0
  501. package/errors/ErrorOverlayNetworkErrorHandler.d.ts +11 -0
  502. package/errors/ErrorOverlayNetworkErrorHandler.js +66 -0
  503. package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -0
  504. package/errors/TenantIsDisabled.d.ts +2 -0
  505. package/errors/TenantIsDisabled.js +23 -0
  506. package/errors/TenantIsDisabled.js.map +1 -0
  507. package/exports/admin/build-params.d.ts +1 -0
  508. package/exports/admin/build-params.js +3 -0
  509. package/exports/admin/build-params.js.map +1 -0
  510. package/exports/admin/configs.d.ts +1 -0
  511. package/exports/admin/configs.js +3 -0
  512. package/exports/admin/configs.js.map +1 -0
  513. package/exports/admin/form.d.ts +11 -0
  514. package/exports/admin/form.js +12 -0
  515. package/exports/admin/form.js.map +1 -0
  516. package/exports/admin/security.d.ts +8 -0
  517. package/exports/admin/security.js +10 -0
  518. package/exports/admin/security.js.map +1 -0
  519. package/exports/admin/tenancy.d.ts +2 -0
  520. package/exports/admin/tenancy.js +4 -0
  521. package/exports/admin/tenancy.js.map +1 -0
  522. package/exports/admin/ui.d.ts +4 -0
  523. package/exports/admin/ui.js +6 -0
  524. package/exports/admin/ui.js.map +1 -0
  525. package/exports/admin.d.ts +7 -0
  526. package/exports/admin.js +9 -0
  527. package/exports/admin.js.map +1 -0
  528. package/features/apolloClient/abstraction.d.ts +5 -0
  529. package/features/apolloClient/abstraction.js +4 -0
  530. package/features/apolloClient/abstraction.js.map +1 -0
  531. package/features/apolloClient/feature.d.ts +2 -0
  532. package/features/apolloClient/feature.js +39 -0
  533. package/features/apolloClient/feature.js.map +1 -0
  534. package/features/buildParams/BuildParams.d.ts +9 -0
  535. package/features/buildParams/BuildParams.js +18 -0
  536. package/features/buildParams/BuildParams.js.map +1 -0
  537. package/features/buildParams/abstractions.d.ts +15 -0
  538. package/features/buildParams/abstractions.js +5 -0
  539. package/features/buildParams/abstractions.js.map +1 -0
  540. package/features/buildParams/feature.d.ts +1 -0
  541. package/features/buildParams/feature.js +10 -0
  542. package/features/buildParams/feature.js.map +1 -0
  543. package/features/buildParams/index.d.ts +2 -0
  544. package/features/buildParams/index.js +4 -0
  545. package/features/buildParams/index.js.map +1 -0
  546. package/features/security/AuthenticationContext/AuthenticationContext.d.ts +15 -0
  547. package/features/security/AuthenticationContext/AuthenticationContext.js +31 -0
  548. package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -0
  549. package/features/security/AuthenticationContext/GraphQLClientDecorator.d.ts +12 -0
  550. package/features/security/AuthenticationContext/GraphQLClientDecorator.js +30 -0
  551. package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -0
  552. package/features/security/AuthenticationContext/InternalIdTokenProvider.d.ts +10 -0
  553. package/features/security/AuthenticationContext/InternalIdTokenProvider.js +17 -0
  554. package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -0
  555. package/features/security/AuthenticationContext/abstractions.d.ts +26 -0
  556. package/features/security/AuthenticationContext/abstractions.js +5 -0
  557. package/features/security/AuthenticationContext/abstractions.js.map +1 -0
  558. package/features/security/AuthenticationContext/feature.d.ts +3 -0
  559. package/features/security/AuthenticationContext/feature.js +20 -0
  560. package/features/security/AuthenticationContext/feature.js.map +1 -0
  561. package/features/security/AuthenticationContext/index.d.ts +1 -0
  562. package/features/security/AuthenticationContext/index.js +3 -0
  563. package/features/security/AuthenticationContext/index.js.map +1 -0
  564. package/features/security/AuthenticationContext/types.d.ts +11 -0
  565. package/features/security/AuthenticationContext/types.js +3 -0
  566. package/features/security/AuthenticationContext/types.js.map +1 -0
  567. package/features/security/IdentityContext/IdentityContext.d.ts +13 -0
  568. package/features/security/IdentityContext/IdentityContext.js +24 -0
  569. package/features/security/IdentityContext/IdentityContext.js.map +1 -0
  570. package/features/security/IdentityContext/abstractions.d.ts +10 -0
  571. package/features/security/IdentityContext/abstractions.js +4 -0
  572. package/features/security/IdentityContext/abstractions.js.map +1 -0
  573. package/features/security/IdentityContext/feature.d.ts +3 -0
  574. package/features/security/IdentityContext/feature.js +16 -0
  575. package/features/security/IdentityContext/feature.js.map +1 -0
  576. package/features/security/IdentityContext/index.d.ts +2 -0
  577. package/features/security/IdentityContext/index.js +4 -0
  578. package/features/security/IdentityContext/index.js.map +1 -0
  579. package/features/security/LogIn/IdentityMapper.d.ts +9 -0
  580. package/features/security/LogIn/IdentityMapper.js +13 -0
  581. package/features/security/LogIn/IdentityMapper.js.map +1 -0
  582. package/features/security/LogIn/LogInGateway.d.ts +11 -0
  583. package/features/security/LogIn/LogInGateway.js +27 -0
  584. package/features/security/LogIn/LogInGateway.js.map +1 -0
  585. package/features/security/LogIn/LogInRepository.d.ts +14 -0
  586. package/features/security/LogIn/LogInRepository.js +19 -0
  587. package/features/security/LogIn/LogInRepository.js.map +1 -0
  588. package/features/security/LogIn/LogInUseCase.d.ts +15 -0
  589. package/features/security/LogIn/LogInUseCase.js +40 -0
  590. package/features/security/LogIn/LogInUseCase.js.map +1 -0
  591. package/features/security/LogIn/abstractions.d.ts +48 -0
  592. package/features/security/LogIn/abstractions.js +19 -0
  593. package/features/security/LogIn/abstractions.js.map +1 -0
  594. package/features/security/LogIn/createLoginMutation.d.ts +1 -0
  595. package/features/security/LogIn/createLoginMutation.js +49 -0
  596. package/features/security/LogIn/createLoginMutation.js.map +1 -0
  597. package/features/security/LogIn/feature.d.ts +3 -0
  598. package/features/security/LogIn/feature.js +22 -0
  599. package/features/security/LogIn/feature.js.map +1 -0
  600. package/features/security/LogIn/index.d.ts +1 -0
  601. package/features/security/LogIn/index.js +3 -0
  602. package/features/security/LogIn/index.js.map +1 -0
  603. package/features/security/LogOut/LogOutUseCase.d.ts +13 -0
  604. package/features/security/LogOut/LogOutUseCase.js +23 -0
  605. package/features/security/LogOut/LogOutUseCase.js.map +1 -0
  606. package/features/security/LogOut/abstractions.d.ts +7 -0
  607. package/features/security/LogOut/abstractions.js +4 -0
  608. package/features/security/LogOut/abstractions.js.map +1 -0
  609. package/features/security/LogOut/feature.d.ts +3 -0
  610. package/features/security/LogOut/feature.js +16 -0
  611. package/features/security/LogOut/feature.js.map +1 -0
  612. package/features/security/LogOut/index.d.ts +2 -0
  613. package/features/security/LogOut/index.js +4 -0
  614. package/features/security/LogOut/index.js.map +1 -0
  615. package/features/security/SecurityFeature.d.ts +1 -0
  616. package/features/security/SecurityFeature.js +16 -0
  617. package/features/security/SecurityFeature.js.map +1 -0
  618. package/features/telemetry/TelemetryService.d.ts +6 -0
  619. package/features/telemetry/TelemetryService.js +20 -0
  620. package/features/telemetry/TelemetryService.js.map +1 -0
  621. package/features/telemetry/abstractions.d.ts +7 -0
  622. package/features/telemetry/abstractions.js +4 -0
  623. package/features/telemetry/abstractions.js.map +1 -0
  624. package/features/telemetry/feature.d.ts +3 -0
  625. package/features/telemetry/feature.js +16 -0
  626. package/features/telemetry/feature.js.map +1 -0
  627. package/features/telemetry/index.d.ts +2 -0
  628. package/features/telemetry/index.js +4 -0
  629. package/features/telemetry/index.js.map +1 -0
  630. package/features/tenancy/GraphQLClientDecorator.d.ts +12 -0
  631. package/features/tenancy/GraphQLClientDecorator.js +27 -0
  632. package/features/tenancy/GraphQLClientDecorator.js.map +1 -0
  633. package/features/tenancy/TenantContext.d.ts +17 -0
  634. package/features/tenancy/TenantContext.js +61 -0
  635. package/features/tenancy/TenantContext.js.map +1 -0
  636. package/features/tenancy/abstractions.d.ts +14 -0
  637. package/features/tenancy/abstractions.js +4 -0
  638. package/features/tenancy/abstractions.js.map +1 -0
  639. package/features/tenancy/feature.d.ts +5 -0
  640. package/features/tenancy/feature.js +41 -0
  641. package/features/tenancy/feature.js.map +1 -0
  642. package/features/tenancy/types.d.ts +4 -0
  643. package/features/tenancy/types.js +3 -0
  644. package/features/tenancy/types.js.map +1 -0
  645. package/features/wcp/ReactLicense.d.ts +19 -0
  646. package/features/wcp/ReactLicense.js +46 -0
  647. package/features/wcp/ReactLicense.js.map +1 -0
  648. package/features/wcp/WcpGateway.d.ts +10 -0
  649. package/features/wcp/WcpGateway.js +73 -0
  650. package/features/wcp/WcpGateway.js.map +1 -0
  651. package/features/wcp/WcpService.d.ts +20 -0
  652. package/features/wcp/WcpService.js +84 -0
  653. package/features/wcp/WcpService.js.map +1 -0
  654. package/features/wcp/abstractions.d.ts +19 -0
  655. package/features/wcp/abstractions.js +5 -0
  656. package/features/wcp/abstractions.js.map +1 -0
  657. package/features/wcp/feature.d.ts +3 -0
  658. package/features/wcp/feature.js +18 -0
  659. package/features/wcp/feature.js.map +1 -0
  660. package/features/wcp/types.d.ts +21 -0
  661. package/features/wcp/types.js +3 -0
  662. package/features/wcp/types.js.map +1 -0
  663. package/hooks/index.d.ts +11 -0
  664. package/hooks/index.js +13 -0
  665. package/hooks/index.js.map +1 -0
  666. package/hooks/useConfirmationDialog.d.ts +5 -3
  667. package/hooks/useConfirmationDialog.js +28 -34
  668. package/hooks/useConfirmationDialog.js.map +1 -1
  669. package/hooks/useDialog.d.ts +21 -2
  670. package/hooks/useDialog.js +18 -22
  671. package/hooks/useDialog.js.map +1 -1
  672. package/hooks/useIsMounted.d.ts +3 -0
  673. package/hooks/useIsMounted.js +15 -0
  674. package/hooks/useIsMounted.js.map +1 -0
  675. package/hooks/useKeyHandler.d.ts +8 -0
  676. package/hooks/useKeyHandler.js +64 -0
  677. package/hooks/useKeyHandler.js.map +1 -0
  678. package/hooks/useModKey.d.ts +1 -0
  679. package/hooks/useModKey.js +29 -0
  680. package/hooks/useModKey.js.map +1 -0
  681. package/hooks/useShiftKey.d.ts +1 -0
  682. package/hooks/useShiftKey.js +33 -0
  683. package/hooks/useShiftKey.js.map +1 -0
  684. package/hooks/useSnackbar.d.ts +1 -0
  685. package/hooks/useSnackbar.js +25 -26
  686. package/hooks/useSnackbar.js.map +1 -1
  687. package/hooks/useStateIfMounted.d.ts +1 -0
  688. package/hooks/useStateIfMounted.js +16 -0
  689. package/hooks/useStateIfMounted.js.map +1 -0
  690. package/hooks/useStateWithCallback.d.ts +5 -0
  691. package/hooks/useStateWithCallback.js +18 -0
  692. package/hooks/useStateWithCallback.js.map +1 -0
  693. package/hooks/useToggler.d.ts +7 -0
  694. package/hooks/useToggler.js +15 -0
  695. package/hooks/useToggler.js.map +1 -0
  696. package/index.d.ts +34 -32
  697. package/index.js +45 -312
  698. package/index.js.map +1 -1
  699. package/lexical.css +2 -0
  700. package/package.json +64 -50
  701. package/permissions/PermissionRenderer.d.ts +6 -0
  702. package/permissions/PermissionRenderer.js +219 -0
  703. package/permissions/PermissionRenderer.js.map +1 -0
  704. package/permissions/PermissionValueContext.d.ts +11 -0
  705. package/permissions/PermissionValueContext.js +23 -0
  706. package/permissions/PermissionValueContext.js.map +1 -0
  707. package/permissions/createHasPermission.d.ts +3 -0
  708. package/permissions/createHasPermission.js +36 -0
  709. package/permissions/createHasPermission.js.map +1 -0
  710. package/permissions/createPermissionSchema.d.ts +2 -0
  711. package/permissions/createPermissionSchema.js +8 -0
  712. package/permissions/createPermissionSchema.js.map +1 -0
  713. package/permissions/index.d.ts +8 -0
  714. package/permissions/index.js +8 -0
  715. package/permissions/index.js.map +1 -0
  716. package/permissions/types.d.ts +242 -0
  717. package/permissions/types.js +3 -0
  718. package/permissions/types.js.map +1 -0
  719. package/permissions/usePermissionForm.d.ts +17 -0
  720. package/permissions/usePermissionForm.js +256 -0
  721. package/permissions/usePermissionForm.js.map +1 -0
  722. package/permissions/usePermissions.d.ts +3 -0
  723. package/permissions/usePermissions.js +180 -0
  724. package/permissions/usePermissions.js.map +1 -0
  725. package/plugins/MenuPlugin.d.ts +1 -1
  726. package/plugins/MenuPlugin.js +17 -41
  727. package/plugins/MenuPlugin.js.map +1 -1
  728. package/presentation/installation/components/SystemInstaller/SystemInstaller.d.ts +8 -0
  729. package/presentation/installation/components/SystemInstaller/SystemInstaller.js +70 -0
  730. package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -0
  731. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.d.ts +2 -0
  732. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +17 -0
  733. package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -0
  734. package/presentation/installation/components/SystemInstaller/index.d.ts +1 -0
  735. package/presentation/installation/components/SystemInstaller/index.js +3 -0
  736. package/presentation/installation/components/SystemInstaller/index.js.map +1 -0
  737. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +8 -0
  738. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +32 -0
  739. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -0
  740. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.d.ts +1 -0
  741. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +15 -0
  742. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -0
  743. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.d.ts +7 -0
  744. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +69 -0
  745. package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -0
  746. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.d.ts +7 -0
  747. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +95 -0
  748. package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -0
  749. package/presentation/installation/components/SystemInstaller/steps/Center.d.ts +4 -0
  750. package/presentation/installation/components/SystemInstaller/steps/Center.js +10 -0
  751. package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -0
  752. package/presentation/installation/components/SystemInstaller/steps/Container.d.ts +8 -0
  753. package/presentation/installation/components/SystemInstaller/steps/Container.js +28 -0
  754. package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -0
  755. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.d.ts +11 -0
  756. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +58 -0
  757. package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -0
  758. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.d.ts +7 -0
  759. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +21 -0
  760. package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -0
  761. package/presentation/installation/components/SystemInstaller/steps/introduction.svg +154 -0
  762. package/presentation/installation/components/SystemInstaller/steps/referralSources.d.ts +1 -0
  763. package/presentation/installation/components/SystemInstaller/steps/referralSources.js +3 -0
  764. package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -0
  765. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +10 -0
  766. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +63 -0
  767. package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -0
  768. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.d.ts +24 -0
  769. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +138 -0
  770. package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -0
  771. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.d.ts +11 -0
  772. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +30 -0
  773. package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -0
  774. package/presentation/installation/presenters/SystemInstaller/abstractions.d.ts +59 -0
  775. package/presentation/installation/presenters/SystemInstaller/abstractions.js +6 -0
  776. package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -0
  777. package/presentation/installation/presenters/SystemInstaller/feature.d.ts +3 -0
  778. package/presentation/installation/presenters/SystemInstaller/feature.js +20 -0
  779. package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -0
  780. package/presentation/installation/presenters/SystemInstaller/index.d.ts +3 -0
  781. package/presentation/installation/presenters/SystemInstaller/index.js +4 -0
  782. package/presentation/installation/presenters/SystemInstaller/index.js.map +1 -0
  783. package/presentation/security/components/HasPermission.d.ts +10 -0
  784. package/presentation/security/components/HasPermission.js +31 -0
  785. package/presentation/security/components/HasPermission.js.map +1 -0
  786. package/presentation/security/components/SecureRoute.d.ts +7 -0
  787. package/presentation/security/components/SecureRoute.js +16 -0
  788. package/presentation/security/components/SecureRoute.js.map +1 -0
  789. package/presentation/security/hooks/useAuthentication.d.ts +9 -0
  790. package/presentation/security/hooks/useAuthentication.js +24 -0
  791. package/presentation/security/hooks/useAuthentication.js.map +1 -0
  792. package/presentation/security/hooks/useIdentity.d.ts +6 -0
  793. package/presentation/security/hooks/useIdentity.js +25 -0
  794. package/presentation/security/hooks/useIdentity.js.map +1 -0
  795. package/presentation/security/hooks/useSecurity.d.ts +10 -0
  796. package/presentation/security/hooks/useSecurity.js +28 -0
  797. package/presentation/security/hooks/useSecurity.js.map +1 -0
  798. package/presentation/tenancy/TenancyProvider.d.ts +6 -0
  799. package/presentation/tenancy/TenancyProvider.js +43 -0
  800. package/presentation/tenancy/TenancyProvider.js.map +1 -0
  801. package/presentation/tenancy/createTenancyProvider.d.ts +1 -0
  802. package/presentation/tenancy/createTenancyProvider.js +14 -0
  803. package/presentation/tenancy/createTenancyProvider.js.map +1 -0
  804. package/presentation/tenancy/useTenantContext.d.ts +5 -0
  805. package/presentation/tenancy/useTenantContext.js +24 -0
  806. package/presentation/tenancy/useTenantContext.js.map +1 -0
  807. package/presentation/wcp/WcpProvider.d.ts +7 -0
  808. package/presentation/wcp/WcpProvider.js +26 -0
  809. package/presentation/wcp/WcpProvider.js.map +1 -0
  810. package/presentation/wcp/useWcp.d.ts +2 -0
  811. package/presentation/wcp/useWcp.js +18 -0
  812. package/presentation/wcp/useWcp.js.map +1 -0
  813. package/routes.d.ts +6 -0
  814. package/routes.js +17 -0
  815. package/routes.js.map +1 -0
  816. package/styles.scss +7 -2
  817. package/types.d.ts +6 -86
  818. package/types.js +2 -4
  819. package/types.js.map +1 -1
  820. package/assets/images/icons.png +0 -0
  821. package/assets/images/icons_retina.png +0 -0
  822. package/assets/images/swich.png +0 -0
  823. package/base/providers/TelemetryProvider.d.ts +0 -2
  824. package/base/providers/TelemetryProvider.js +0 -31
  825. package/base/providers/TelemetryProvider.js.map +0 -1
  826. package/base/providers/ViewCompositionProvider.d.ts +0 -17
  827. package/base/providers/ViewCompositionProvider.js +0 -57
  828. package/base/providers/ViewCompositionProvider.js.map +0 -1
  829. package/base/ui/LocaleSelector.d.ts +0 -2
  830. package/base/ui/LocaleSelector.js +0 -15
  831. package/base/ui/LocaleSelector.js.map +0 -1
  832. package/base/ui/Menu.d.ts +0 -31
  833. package/base/ui/Menu.js +0 -137
  834. package/base/ui/Menu.js.map +0 -1
  835. package/base/ui/Search.d.ts +0 -19
  836. package/base/ui/Search.js +0 -63
  837. package/base/ui/Search.js.map +0 -1
  838. package/components/AppInstaller/AppInstaller.d.ts +0 -7
  839. package/components/AppInstaller/AppInstaller.js +0 -117
  840. package/components/AppInstaller/AppInstaller.js.map +0 -1
  841. package/components/AppInstaller/Sidebar.d.ts +0 -9
  842. package/components/AppInstaller/Sidebar.js +0 -145
  843. package/components/AppInstaller/Sidebar.js.map +0 -1
  844. package/components/AppInstaller/assets/sign-in-divider.svg +0 -19
  845. package/components/AppInstaller/index.d.ts +0 -2
  846. package/components/AppInstaller/index.js +0 -22
  847. package/components/AppInstaller/index.js.map +0 -1
  848. package/components/AppInstaller/styled.d.ts +0 -21
  849. package/components/AppInstaller/styled.js +0 -87
  850. package/components/AppInstaller/styled.js.map +0 -1
  851. package/components/AppInstaller/useInstaller.d.ts +0 -25
  852. package/components/AppInstaller/useInstaller.js +0 -210
  853. package/components/AppInstaller/useInstaller.js.map +0 -1
  854. package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +0 -6
  855. package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +0 -55
  856. package/components/FileManager/BottomInfoBar/SupportedFileTypes.js.map +0 -1
  857. package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +0 -6
  858. package/components/FileManager/BottomInfoBar/UploadStatus.js +0 -60
  859. package/components/FileManager/BottomInfoBar/UploadStatus.js.map +0 -1
  860. package/components/FileManager/BottomInfoBar.d.ts +0 -5
  861. package/components/FileManager/BottomInfoBar.js +0 -60
  862. package/components/FileManager/BottomInfoBar.js.map +0 -1
  863. package/components/FileManager/DropFilesHere.d.ts +0 -10
  864. package/components/FileManager/DropFilesHere.js +0 -76
  865. package/components/FileManager/DropFilesHere.js.map +0 -1
  866. package/components/FileManager/File.d.ts +0 -17
  867. package/components/FileManager/File.js +0 -155
  868. package/components/FileManager/File.js.map +0 -1
  869. package/components/FileManager/FileDetails/Name.d.ts +0 -8
  870. package/components/FileManager/FileDetails/Name.js +0 -138
  871. package/components/FileManager/FileDetails/Name.js.map +0 -1
  872. package/components/FileManager/FileDetails/Tags.d.ts +0 -10
  873. package/components/FileManager/FileDetails/Tags.js +0 -339
  874. package/components/FileManager/FileDetails/Tags.js.map +0 -1
  875. package/components/FileManager/FileDetails.d.ts +0 -24
  876. package/components/FileManager/FileDetails.js +0 -474
  877. package/components/FileManager/FileDetails.js.map +0 -1
  878. package/components/FileManager/FileManagerContext.d.ts +0 -42
  879. package/components/FileManager/FileManagerContext.js +0 -224
  880. package/components/FileManager/FileManagerContext.js.map +0 -1
  881. package/components/FileManager/FileManagerView.d.ts +0 -18
  882. package/components/FileManager/FileManagerView.js +0 -721
  883. package/components/FileManager/FileManagerView.js.map +0 -1
  884. package/components/FileManager/LeftSidebar.d.ts +0 -10
  885. package/components/FileManager/LeftSidebar.js +0 -127
  886. package/components/FileManager/LeftSidebar.js.map +0 -1
  887. package/components/FileManager/NoPermissionView.d.ts +0 -3
  888. package/components/FileManager/NoPermissionView.js +0 -87
  889. package/components/FileManager/NoPermissionView.js.map +0 -1
  890. package/components/FileManager/NoResults.d.ts +0 -3
  891. package/components/FileManager/NoResults.js +0 -28
  892. package/components/FileManager/NoResults.js.map +0 -1
  893. package/components/FileManager/getFileTypePlugin.d.ts +0 -4
  894. package/components/FileManager/getFileTypePlugin.js +0 -57
  895. package/components/FileManager/getFileTypePlugin.js.map +0 -1
  896. package/components/FileManager/getFileUploader.d.ts +0 -3
  897. package/components/FileManager/getFileUploader.js +0 -20
  898. package/components/FileManager/getFileUploader.js.map +0 -1
  899. package/components/FileManager/graphql.d.ts +0 -96
  900. package/components/FileManager/graphql.js +0 -58
  901. package/components/FileManager/graphql.js.map +0 -1
  902. package/components/FileManager/icons/content_copy-black-24px.svg +0 -1
  903. package/components/FileManager/icons/delete.svg +0 -12
  904. package/components/FileManager/icons/privacy_tip-24px.svg +0 -10
  905. package/components/FileManager/icons/round-check_box-24px.svg +0 -4
  906. package/components/FileManager/icons/round-check_box_outline_blank-24px.svg +0 -4
  907. package/components/FileManager/icons/round-cloud_download-24px.svg +0 -4
  908. package/components/FileManager/icons/round-cloud_upload-24px.svg +0 -4
  909. package/components/FileManager/icons/round-description-24px.svg +0 -4
  910. package/components/FileManager/icons/round-edit-24px.svg +0 -4
  911. package/components/FileManager/icons/round-info-24px.svg +0 -4
  912. package/components/FileManager/icons/round-label-24px.svg +0 -4
  913. package/components/FileManager/icons/round-more_vert-24px.svg +0 -4
  914. package/components/FileManager/icons/round-search-24px.svg +0 -20
  915. package/components/FileManager/outputFileSelectionError.d.ts +0 -7
  916. package/components/FileManager/outputFileSelectionError.js +0 -54
  917. package/components/FileManager/outputFileSelectionError.js.map +0 -1
  918. package/components/FileManager/types.d.ts +0 -21
  919. package/components/FileManager/types.js +0 -5
  920. package/components/FileManager/types.js.map +0 -1
  921. package/components/FileManager.d.ts +0 -67
  922. package/components/FileManager.js +0 -144
  923. package/components/FileManager.js.map +0 -1
  924. package/components/OverlayLayout/icons/close.svg +0 -13
  925. package/components/OverlayLayout/icons/navigate_before.svg +0 -16
  926. package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
  927. package/components/RichTextEditor/RichTextEditor.js +0 -23
  928. package/components/RichTextEditor/RichTextEditor.js.map +0 -1
  929. package/components/RichTextEditor/index.d.ts +0 -2
  930. package/components/RichTextEditor/index.js +0 -19
  931. package/components/RichTextEditor/index.js.map +0 -1
  932. package/components/RichTextEditor/styles.scss +0 -96
  933. package/components/RichTextEditor/tools/header/index.d.ts +0 -229
  934. package/components/RichTextEditor/tools/header/index.js +0 -691
  935. package/components/RichTextEditor/tools/header/index.js.map +0 -1
  936. package/components/RichTextEditor/tools/header/styles.scss +0 -48
  937. package/components/RichTextEditor/tools/image/index.d.ts +0 -124
  938. package/components/RichTextEditor/tools/image/index.js +0 -244
  939. package/components/RichTextEditor/tools/image/index.js.map +0 -1
  940. package/components/RichTextEditor/tools/image/styles.scss +0 -90
  941. package/components/RichTextEditor/tools/image/svgs.d.ts +0 -6
  942. package/components/RichTextEditor/tools/image/svgs.js +0 -12
  943. package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
  944. package/components/RichTextEditor/tools/image/tunes.d.ts +0 -57
  945. package/components/RichTextEditor/tools/image/tunes.js +0 -129
  946. package/components/RichTextEditor/tools/image/tunes.js.map +0 -1
  947. package/components/RichTextEditor/tools/image/types.d.ts +0 -29
  948. package/components/RichTextEditor/tools/image/types.js +0 -5
  949. package/components/RichTextEditor/tools/image/types.js.map +0 -1
  950. package/components/RichTextEditor/tools/image/ui.d.ts +0 -122
  951. package/components/RichTextEditor/tools/image/ui.js +0 -278
  952. package/components/RichTextEditor/tools/image/ui.js.map +0 -1
  953. package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -209
  954. package/components/RichTextEditor/tools/paragraph/index.js +0 -488
  955. package/components/RichTextEditor/tools/paragraph/index.js.map +0 -1
  956. package/components/RichTextEditor/tools/paragraph/styles.scss +0 -29
  957. package/components/RichTextEditor/tools/textColor/index.d.ts +0 -64
  958. package/components/RichTextEditor/tools/textColor/index.js +0 -245
  959. package/components/RichTextEditor/tools/textColor/index.js.map +0 -1
  960. package/components/RichTextEditor/tools/textColor/styles.scss +0 -21
  961. package/components/RichTextEditor/tools/utils.d.ts +0 -19
  962. package/components/RichTextEditor/tools/utils.js +0 -31
  963. package/components/RichTextEditor/tools/utils.js.map +0 -1
  964. package/components/Routes.d.ts +0 -6
  965. package/components/Routes.js +0 -42
  966. package/components/Routes.js.map +0 -1
  967. package/plugins/FileManagerFileTypePlugin.d.ts +0 -33
  968. package/plugins/FileManagerFileTypePlugin.js +0 -63
  969. package/plugins/FileManagerFileTypePlugin.js.map +0 -1
  970. package/plugins/PermissionRendererPlugin.d.ts +0 -22
  971. package/plugins/PermissionRendererPlugin.js +0 -43
  972. package/plugins/PermissionRendererPlugin.js.map +0 -1
  973. package/plugins/fileManager/fileDefault.d.ts +0 -2
  974. package/plugins/fileManager/fileDefault.js +0 -34
  975. package/plugins/fileManager/fileDefault.js.map +0 -1
  976. package/plugins/fileManager/fileImage/DeleteAction.d.ts +0 -7
  977. package/plugins/fileManager/fileImage/DeleteAction.js +0 -83
  978. package/plugins/fileManager/fileImage/DeleteAction.js.map +0 -1
  979. package/plugins/fileManager/fileImage/EditAction.d.ts +0 -10
  980. package/plugins/fileManager/fileImage/EditAction.js +0 -179
  981. package/plugins/fileManager/fileImage/EditAction.js.map +0 -1
  982. package/plugins/fileManager/fileImage/index.d.ts +0 -2
  983. package/plugins/fileManager/fileImage/index.js +0 -46
  984. package/plugins/fileManager/fileImage/index.js.map +0 -1
  985. package/plugins/fileManager/icons/edit.svg +0 -17
  986. package/plugins/fileManager/icons/round-description-24px.svg +0 -1
  987. package/plugins/fileManager/index.d.ts +0 -2
  988. package/plugins/fileManager/index.js +0 -21
  989. package/plugins/fileManager/index.js.map +0 -1
  990. package/plugins/globalSearch/SearchBar.d.ts +0 -15
  991. package/plugins/globalSearch/SearchBar.js +0 -225
  992. package/plugins/globalSearch/SearchBar.js.map +0 -1
  993. package/plugins/globalSearch/SearchBarDropdown.d.ts +0 -23
  994. package/plugins/globalSearch/SearchBarDropdown.js +0 -83
  995. package/plugins/globalSearch/SearchBarDropdown.js.map +0 -1
  996. package/plugins/globalSearch/icons/round-search-24px.svg +0 -20
  997. package/plugins/globalSearch/index.d.ts +0 -7
  998. package/plugins/globalSearch/index.js +0 -16
  999. package/plugins/globalSearch/index.js.map +0 -1
  1000. package/plugins/globalSearch/styled.d.ts +0 -20
  1001. package/plugins/globalSearch/styled.js +0 -131
  1002. package/plugins/globalSearch/styled.js.map +0 -1
  1003. package/plugins/uiLayoutRenderer/index.d.ts +0 -2
  1004. package/plugins/uiLayoutRenderer/index.js +0 -61
  1005. package/plugins/uiLayoutRenderer/index.js.map +0 -1
  1006. package/styles/material-theme-assignments.scss +0 -350
  1007. package/styles/material.scss +0 -43
  1008. package/styles/theme.scss +0 -76
  1009. package/ui/UIElement.d.ts +0 -2
  1010. package/ui/UIElement.js +0 -18
  1011. package/ui/UIElement.js.map +0 -1
  1012. package/ui/UILayout.d.ts +0 -1
  1013. package/ui/UILayout.js +0 -18
  1014. package/ui/UILayout.js.map +0 -1
  1015. package/ui/UIRenderer.d.ts +0 -2
  1016. package/ui/UIRenderer.js +0 -12
  1017. package/ui/UIRenderer.js.map +0 -1
  1018. package/ui/UIView.d.ts +0 -2
  1019. package/ui/UIView.js +0 -24
  1020. package/ui/UIView.js.map +0 -1
  1021. package/ui/elements/AccordionElement.d.ts +0 -27
  1022. package/ui/elements/AccordionElement.js +0 -84
  1023. package/ui/elements/AccordionElement.js.map +0 -1
  1024. package/ui/elements/ButtonElement.d.ts +0 -24
  1025. package/ui/elements/ButtonElement.js +0 -86
  1026. package/ui/elements/ButtonElement.js.map +0 -1
  1027. package/ui/elements/ButtonGroupElement.d.ts +0 -6
  1028. package/ui/elements/ButtonGroupElement.js +0 -48
  1029. package/ui/elements/ButtonGroupElement.js.map +0 -1
  1030. package/ui/elements/GenericElement.d.ts +0 -1
  1031. package/ui/elements/GenericElement.js +0 -16
  1032. package/ui/elements/GenericElement.js.map +0 -1
  1033. package/ui/elements/LabelElement.d.ts +0 -16
  1034. package/ui/elements/LabelElement.js +0 -46
  1035. package/ui/elements/LabelElement.js.map +0 -1
  1036. package/ui/elements/NavigationMenuElement.d.ts +0 -33
  1037. package/ui/elements/NavigationMenuElement.js +0 -144
  1038. package/ui/elements/NavigationMenuElement.js.map +0 -1
  1039. package/ui/elements/PanelElement.d.ts +0 -3
  1040. package/ui/elements/PanelElement.js +0 -22
  1041. package/ui/elements/PanelElement.js.map +0 -1
  1042. package/ui/elements/PlaceholderElement.d.ts +0 -6
  1043. package/ui/elements/PlaceholderElement.js +0 -33
  1044. package/ui/elements/PlaceholderElement.js.map +0 -1
  1045. package/ui/elements/SmallButtonElement.d.ts +0 -6
  1046. package/ui/elements/SmallButtonElement.js +0 -45
  1047. package/ui/elements/SmallButtonElement.js.map +0 -1
  1048. package/ui/elements/TypographyElement.d.ts +0 -13
  1049. package/ui/elements/TypographyElement.js +0 -48
  1050. package/ui/elements/TypographyElement.js.map +0 -1
  1051. package/ui/elements/ViewElement.d.ts +0 -1
  1052. package/ui/elements/ViewElement.js +0 -16
  1053. package/ui/elements/ViewElement.js.map +0 -1
  1054. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -6
  1055. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -44
  1056. package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
  1057. package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -43
  1058. package/ui/elements/form/DynamicFieldsetElement.js +0 -135
  1059. package/ui/elements/form/DynamicFieldsetElement.js.map +0 -1
  1060. package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +0 -4
  1061. package/ui/elements/form/FileManagerElement/EmptyStateElement.js +0 -26
  1062. package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
  1063. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -7
  1064. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -73
  1065. package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
  1066. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -13
  1067. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -104
  1068. package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
  1069. package/ui/elements/form/FileManagerElement/styled.d.ts +0 -27
  1070. package/ui/elements/form/FileManagerElement/styled.js +0 -115
  1071. package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
  1072. package/ui/elements/form/FileManagerElement.d.ts +0 -24
  1073. package/ui/elements/form/FileManagerElement.js +0 -88
  1074. package/ui/elements/form/FileManagerElement.js.map +0 -1
  1075. package/ui/elements/form/FormElement.d.ts +0 -21
  1076. package/ui/elements/form/FormElement.js +0 -45
  1077. package/ui/elements/form/FormElement.js.map +0 -1
  1078. package/ui/elements/form/FormFieldElement.d.ts +0 -56
  1079. package/ui/elements/form/FormFieldElement.js +0 -173
  1080. package/ui/elements/form/FormFieldElement.js.map +0 -1
  1081. package/ui/elements/form/HiddenElement.d.ts +0 -6
  1082. package/ui/elements/form/HiddenElement.js +0 -47
  1083. package/ui/elements/form/HiddenElement.js.map +0 -1
  1084. package/ui/elements/form/InputElement.d.ts +0 -7
  1085. package/ui/elements/form/InputElement.js +0 -54
  1086. package/ui/elements/form/InputElement.js.map +0 -1
  1087. package/ui/elements/form/PasswordElement.d.ts +0 -6
  1088. package/ui/elements/form/PasswordElement.js +0 -51
  1089. package/ui/elements/form/PasswordElement.js.map +0 -1
  1090. package/ui/elements/form/README.md +0 -2
  1091. package/ui/elements/form/SelectElement.d.ts +0 -15
  1092. package/ui/elements/form/SelectElement.js +0 -69
  1093. package/ui/elements/form/SelectElement.js.map +0 -1
  1094. package/ui/elements/form/TextareaElement.d.ts +0 -15
  1095. package/ui/elements/form/TextareaElement.js +0 -55
  1096. package/ui/elements/form/TextareaElement.js.map +0 -1
  1097. package/ui/views/AdminView/ContentElement.d.ts +0 -4
  1098. package/ui/views/AdminView/ContentElement.js +0 -54
  1099. package/ui/views/AdminView/ContentElement.js.map +0 -1
  1100. package/ui/views/AdminView/HeaderElement.d.ts +0 -13
  1101. package/ui/views/AdminView/HeaderElement.js +0 -104
  1102. package/ui/views/AdminView/HeaderElement.js.map +0 -1
  1103. package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -6
  1104. package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -42
  1105. package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
  1106. package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -6
  1107. package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -42
  1108. package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
  1109. package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -6
  1110. package/ui/views/AdminView/HeaderSectionRightElement.js +0 -42
  1111. package/ui/views/AdminView/HeaderSectionRightElement.js.map +0 -1
  1112. package/ui/views/AdminView/components/Dialog.d.ts +0 -2
  1113. package/ui/views/AdminView/components/Dialog.js +0 -46
  1114. package/ui/views/AdminView/components/Dialog.js.map +0 -1
  1115. package/ui/views/AdminView/components/Hamburger.d.ts +0 -3
  1116. package/ui/views/AdminView/components/Hamburger.js +0 -31
  1117. package/ui/views/AdminView/components/Hamburger.js.map +0 -1
  1118. package/ui/views/AdminView/components/Snackbar.d.ts +0 -3
  1119. package/ui/views/AdminView/components/Snackbar.js +0 -32
  1120. package/ui/views/AdminView/components/Snackbar.js.map +0 -1
  1121. package/ui/views/FormView/FormContainerElement.d.ts +0 -12
  1122. package/ui/views/FormView/FormContainerElement.js +0 -50
  1123. package/ui/views/FormView/FormContainerElement.js.map +0 -1
  1124. package/ui/views/FormView/FormContentElement.d.ts +0 -3
  1125. package/ui/views/FormView/FormContentElement.js +0 -22
  1126. package/ui/views/FormView/FormContentElement.js.map +0 -1
  1127. package/ui/views/FormView/FormFooterElement.d.ts +0 -6
  1128. package/ui/views/FormView/FormFooterElement.js +0 -49
  1129. package/ui/views/FormView/FormFooterElement.js.map +0 -1
  1130. package/ui/views/FormView/FormHeaderElement.d.ts +0 -14
  1131. package/ui/views/FormView/FormHeaderElement.js +0 -81
  1132. package/ui/views/FormView/FormHeaderElement.js.map +0 -1
  1133. package/ui/views/FormView.d.ts +0 -40
  1134. package/ui/views/FormView.js +0 -167
  1135. package/ui/views/FormView.js.map +0 -1
  1136. package/ui/views/OverlayView/ContentElement.d.ts +0 -6
  1137. package/ui/views/OverlayView/ContentElement.js +0 -42
  1138. package/ui/views/OverlayView/ContentElement.js.map +0 -1
  1139. package/ui/views/OverlayView/HeaderElement.d.ts +0 -24
  1140. package/ui/views/OverlayView/HeaderElement.js +0 -112
  1141. package/ui/views/OverlayView/HeaderElement.js.map +0 -1
  1142. package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -13
  1143. package/ui/views/OverlayView/HeaderTitleElement.js +0 -51
  1144. package/ui/views/OverlayView/HeaderTitleElement.js.map +0 -1
  1145. package/ui/views/OverlayView/useOverlayView.d.ts +0 -5
  1146. package/ui/views/OverlayView/useOverlayView.js +0 -44
  1147. package/ui/views/OverlayView/useOverlayView.js.map +0 -1
  1148. package/ui/views/OverlayView.d.ts +0 -29
  1149. package/ui/views/OverlayView.js +0 -165
  1150. package/ui/views/OverlayView.js.map +0 -1
  1151. package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -11
  1152. package/ui/views/SplitView/SplitViewPanelElement.js +0 -71
  1153. package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
  1154. package/ui/views/SplitView.d.ts +0 -21
  1155. package/ui/views/SplitView.js +0 -122
  1156. package/ui/views/SplitView.js.map +0 -1
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"@webiny/app\";\nexport type { HigherOrderComponent, ProviderProps, ComposeProps } from \"@webiny/app\";\n// UI components\nexport * from \"./base/ui/Tags\";\nexport * from \"./base/ui/Menu\";\nexport * from \"./base/ui/Layout\";\nexport * from \"./base/ui/LocaleSelector\";\nexport type { LayoutProps } from \"./base/ui/Layout\";\nexport * from \"./base/ui/Navigation\";\nexport type { MenuItemsProps } from \"./base/ui/Navigation\";\nexport * from \"./base/ui/Brand\";\nexport * from \"./base/ui/Logo\";\nexport * from \"./base/ui/Search\";\nexport type { SearchOptionData, SearchOptionProps } from \"./base/ui/Search\";\nexport * from \"./base/ui/UserMenu\";\nexport type { UserMenuItemProps } from \"./base/ui/UserMenu\";\nexport * from \"./base/ui/LoginScreen\";\nexport * from \"./base/ui/CenteredView\";\nexport * from \"./base/ui/Dashboard\";\nexport * from \"./base/ui/NotFound\";\n\n// Base admin app\nexport { Admin } from \"./base/Admin\";\nexport type { AdminProps } from \"./base/Admin\";\nexport { useViewComposition } from \"./base/providers/ViewCompositionProvider\";\nexport type { ViewCompositionContext, ViewElement } from \"./base/providers/ViewCompositionProvider\";\n\n// Plugins\nexport * from \"./base/plugins/AddGraphQLQuerySelection\";\nexport * from \"./plugins/PermissionRendererPlugin\";\n\n// Components\nexport { AppInstaller } from \"./components/AppInstaller\";\nexport { OverlayLayout, OverlayLayoutProps } from \"./components/OverlayLayout\";\nexport {\n default as SingleImageUpload,\n SingleImageUploadProps\n} from \"./components/SingleImageUpload\";\n\nexport { FileManager, FileManagerRenderer } from \"./base/ui/FileManager\";\nexport type {\n FileManagerProps,\n FileManagerRendererProps,\n FileManagerFileItem,\n FileManagerOnChange\n} from \"./base/ui/FileManager\";\n\n// Hooks\nexport * from \"./hooks/useSnackbar\";\nexport * from \"./hooks/useConfirmationDialog\";\nexport * from \"./hooks/useDialog\";\nexport { useWcp } from \"@webiny/app-wcp\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;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AA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA"}
1
+ {"version":3,"names":["Admin","HasPermission","SecureRoute","FileManager","FileManagerRenderer","SystemInstallerProvider","BuildParamsFeature","useWcp","useTenantContext","useIdentity","useAuthentication","useSecurity"],"sources":["index.ts"],"sourcesContent":["export * from \"@webiny/app\";\nexport type { HigherOrderComponent, ProviderProps, ComposeProps } from \"@webiny/app\";\n// UI components\nexport * from \"./base/ui/Tags.js\";\nexport * from \"./base/ui/Layout.js\";\nexport * from \"./base/ui/TenantSelector.js\";\nexport type { LayoutProps } from \"./base/ui/Layout.js\";\nexport * from \"./base/ui/Navigation.js\";\nexport * from \"./base/ui/Brand.js\";\nexport * from \"./base/ui/Logo.js\";\nexport * from \"./base/ui/UserMenu.js\";\nexport * from \"./base/ui/LoginScreen.js\";\nexport * from \"./base/ui/CenteredView.js\";\nexport * from \"./base/ui/Dashboard.js\";\nexport * from \"./base/ui/NotFound.js\";\n\n// Base admin app\nexport { Admin } from \"./base/Admin.js\";\nexport * from \"./config/AdminConfig.js\";\n\nexport type { AdminProps } from \"./base/Admin.js\";\n\n// Plugins\nexport * from \"./base/plugins/AddGraphQLQuerySelection.js\";\n\n// Permissions\nexport * from \"./permissions/index.js\";\n\n// Components\nexport * from \"./components/index.js\";\nexport type { RichTextValueWithHtml } from \"./components/index.js\";\nexport { HasPermission } from \"./presentation/security/components/HasPermission.js\";\nexport { SecureRoute } from \"./presentation/security/components/SecureRoute.js\";\n\nexport { FileManager, FileManagerRenderer } from \"./base/ui/FileManager.js\";\nexport type {\n FileManagerProps,\n FileManagerRendererProps,\n FileManagerFileItem,\n FileManagerOnChange\n} from \"./base/ui/FileManager.js\";\n\nexport { SystemInstallerProvider } from \"./presentation/installation/components/SystemInstaller/index.js\";\n\n// Feature types\nexport type { AaclPermission } from \"./features/wcp/types.js\";\nexport type { Tenant } from \"./features/tenancy/types.js\";\n\n// Features\nexport { BuildParamsFeature } from \"./features/buildParams/feature.js\";\n\n// Hooks\nexport * from \"./hooks/index.js\";\nexport { useWcp } from \"./presentation/wcp/useWcp.js\";\nexport { useTenantContext } from \"./presentation/tenancy/useTenantContext.js\";\nexport { useIdentity } from \"./presentation/security/hooks/useIdentity.js\";\nexport { useAuthentication } from \"./presentation/security/hooks/useAuthentication.js\";\n// Legacy hook for easier migration\nexport { useSecurity } from \"./presentation/security/hooks/useSecurity.js\";\n\nexport * from \"@webiny/app/renderApp.js\";\n"],"mappings":"AAAA,cAAc,aAAa;AAE3B;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAASA,KAAK;AACd;AAIA;AACA;;AAEA;AACA;;AAEA;AACA;AAEA,SAASC,aAAa;AACtB,SAASC,WAAW;AAEpB,SAASC,WAAW,EAAEC,mBAAmB;AAQzC,SAASC,uBAAuB;;AAEhC;;AAIA;AACA,SAASC,kBAAkB;;AAE3B;AACA;AACA,SAASC,MAAM;AACf,SAASC,gBAAgB;AACzB,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B;AACA,SAASC,WAAW;AAEpB,cAAc,0BAA0B","ignoreList":[]}
package/lexical.css ADDED
@@ -0,0 +1,2 @@
1
+ @import "./css/typography.css";
2
+ @import "./css/tokens.css";
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "0.0.0-unstable.b14eaecf38",
3
+ "version": "0.0.0-unstable.b9b64acb6d",
4
+ "type": "module",
4
5
  "main": "index.js",
5
6
  "description": "A collection of plugins that together form a complete admin interface, customizable and extensible with Webiny apps and plugins.",
6
7
  "repository": {
@@ -12,81 +13,94 @@
12
13
  "dependencies": {
13
14
  "@apollo/react-components": "3.1.5",
14
15
  "@apollo/react-hooks": "3.1.5",
15
- "@babel/runtime": "7.20.13",
16
- "@editorjs/editorjs": "2.26.5",
17
- "@emotion/react": "11.10.6",
16
+ "@emotion/react": "11.10.8",
18
17
  "@emotion/styled": "11.10.6",
19
- "@material-design-icons/svg": "0.14.3",
18
+ "@iconify/json": "2.2.445",
19
+ "@monaco-editor/react": "4.7.0",
20
20
  "@svgr/webpack": "6.5.1",
21
21
  "@types/mime": "2.0.3",
22
- "@types/react": "17.0.39",
23
- "@webiny/app": "0.0.0-unstable.b14eaecf38",
24
- "@webiny/app-security": "0.0.0-unstable.b14eaecf38",
25
- "@webiny/app-wcp": "0.0.0-unstable.b14eaecf38",
26
- "@webiny/form": "0.0.0-unstable.b14eaecf38",
27
- "@webiny/plugins": "0.0.0-unstable.b14eaecf38",
28
- "@webiny/react-composition": "0.0.0-unstable.b14eaecf38",
29
- "@webiny/react-router": "0.0.0-unstable.b14eaecf38",
30
- "@webiny/telemetry": "0.0.0-unstable.b14eaecf38",
31
- "@webiny/ui": "0.0.0-unstable.b14eaecf38",
32
- "@webiny/ui-composer": "0.0.0-unstable.b14eaecf38",
33
- "@webiny/validation": "0.0.0-unstable.b14eaecf38",
22
+ "@types/react": "18.2.79",
23
+ "@webiny/admin-ui": "0.0.0-unstable.b9b64acb6d",
24
+ "@webiny/app": "0.0.0-unstable.b9b64acb6d",
25
+ "@webiny/di": "0.2.3",
26
+ "@webiny/feature": "0.0.0-unstable.b9b64acb6d",
27
+ "@webiny/form": "0.0.0-unstable.b9b64acb6d",
28
+ "@webiny/icons": "0.0.0-unstable.b9b64acb6d",
29
+ "@webiny/lexical-converter": "0.0.0-unstable.b9b64acb6d",
30
+ "@webiny/lexical-editor": "0.0.0-unstable.b9b64acb6d",
31
+ "@webiny/lexical-theme": "0.0.0-unstable.b9b64acb6d",
32
+ "@webiny/plugins": "0.0.0-unstable.b9b64acb6d",
33
+ "@webiny/react-composition": "0.0.0-unstable.b9b64acb6d",
34
+ "@webiny/react-properties": "0.0.0-unstable.b9b64acb6d",
35
+ "@webiny/telemetry": "0.0.0-unstable.b9b64acb6d",
36
+ "@webiny/ui": "0.0.0-unstable.b9b64acb6d",
37
+ "@webiny/utils": "0.0.0-unstable.b9b64acb6d",
38
+ "@webiny/validation": "0.0.0-unstable.b9b64acb6d",
39
+ "@webiny/wcp": "0.0.0-unstable.b9b64acb6d",
34
40
  "apollo-cache": "1.3.5",
35
41
  "apollo-client": "2.6.10",
36
42
  "apollo-link": "1.2.14",
43
+ "apollo-link-context": "1.0.20",
37
44
  "apollo-utilities": "1.3.4",
38
- "classnames": "2.3.2",
39
- "dot-prop-immutable": "2.1.1",
40
- "downshift": "3.4.8",
45
+ "classnames": "2.5.1",
41
46
  "emotion": "10.0.27",
42
- "graphlib": "2.1.8",
43
- "graphql": "15.8.0",
44
- "lodash": "4.17.21",
45
- "nanoid": "3.3.4",
47
+ "graphql": "16.13.0",
48
+ "graphql-tag": "2.12.6",
49
+ "history": "5.3.0",
50
+ "is-hotkey": "0.2.0",
51
+ "lodash": "4.17.23",
52
+ "markdown-to-jsx": "9.7.6",
53
+ "minimatch": "10.2.4",
54
+ "mobx": "6.15.0",
55
+ "mobx-react-lite": "3.4.3",
56
+ "monaco-editor": "0.53.0",
46
57
  "prop-types": "15.8.1",
47
- "react": "17.0.2",
48
- "react-dom": "17.0.2",
49
- "react-hotkeyz": "1.0.4",
58
+ "react": "18.2.0",
59
+ "react-dom": "18.2.0",
60
+ "react-draggable": "4.5.0",
61
+ "react-resizable": "3.1.3",
62
+ "react-resizable-panels": "4.7.0",
50
63
  "react-transition-group": "4.4.5",
51
- "store": "2.0.12"
64
+ "react-virtualized": "9.22.6",
65
+ "reset-css": "5.0.2",
66
+ "tinycolor2": "1.6.0",
67
+ "unicode-emoji-json": "0.8.0"
52
68
  },
53
69
  "devDependencies": {
54
- "@babel/cli": "^7.19.3",
55
- "@babel/core": "^7.19.3",
56
- "@babel/plugin-proposal-class-properties": "^7.18.6",
57
- "@babel/preset-env": "^7.19.4",
58
- "@babel/preset-react": "^7.18.6",
59
- "@babel/preset-typescript": "^7.18.6",
60
- "@types/bytes": "^3.1.1",
61
- "@types/graphlib": "^2.1.8",
62
- "@types/store": "^2.0.2",
63
- "@webiny/cli": "^0.0.0-unstable.b14eaecf38",
64
- "@webiny/project-utils": "^0.0.0-unstable.b14eaecf38",
65
- "babel-plugin-emotion": "^9.2.8",
66
- "babel-plugin-lodash": "^3.3.4",
67
- "rimraf": "^3.0.2",
68
- "ttypescript": "^1.5.12",
69
- "typescript": "4.7.4"
70
+ "@emotion/babel-plugin": "11.13.5",
71
+ "@testing-library/react": "15.0.7",
72
+ "@types/bytes": "3.1.5",
73
+ "@types/graphlib": "2.1.12",
74
+ "@types/is-hotkey": "0.1.10",
75
+ "@types/react-resizable": "3.0.8",
76
+ "@types/react-transition-group": "4.4.12",
77
+ "@types/store": "2.0.5",
78
+ "@types/tinycolor2": "1.4.6",
79
+ "@webiny/build-tools": "0.0.0-unstable.b9b64acb6d",
80
+ "rimraf": "6.1.3",
81
+ "typescript": "5.9.3",
82
+ "vitest": "4.0.18"
70
83
  },
71
84
  "publishConfig": {
72
85
  "access": "public",
73
86
  "directory": "dist"
74
87
  },
75
- "scripts": {
76
- "build": "yarn webiny run build",
77
- "watch": "yarn webiny run watch"
78
- },
79
88
  "adio": {
80
89
  "ignore": {
81
90
  "dependencies": [
82
91
  "@svgr/webpack",
92
+ "@iconify/json",
93
+ "unicode-emoji-json",
83
94
  "@emotion/react",
84
- "@types/mime"
95
+ "@types/mime",
96
+ "reset-css",
97
+ "unicode-emoji-json",
98
+ "monaco-editor"
85
99
  ],
86
100
  "peerDependencies": [
87
101
  "react-dom"
88
102
  ]
89
103
  }
90
104
  },
91
- "gitHead": "b14eaecf387253ed23cb96f8d31b7d16b5061936"
105
+ "gitHead": "b9b64acb6df55b308cfb277533fa07e0a6402546"
92
106
  }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { PermissionSchema } from "./types.js";
3
+ export interface PermissionRendererProps {
4
+ schema: PermissionSchema;
5
+ }
6
+ export declare const PermissionRenderer: ({ schema }: PermissionRendererProps) => React.JSX.Element;
@@ -0,0 +1,219 @@
1
+ import React, { Fragment, useCallback, useMemo } from "react";
2
+ import { CheckboxGroup, Grid, Select } from "@webiny/admin-ui";
3
+ import { Form } from "@webiny/form";
4
+ import { CannotUseAaclAlert, PermissionInfo, PermissionsGroup } from "../components/Permissions/index.js";
5
+ import { usePermissionForm } from "./usePermissionForm.js";
6
+ import { usePermissionValue } from "./PermissionValueContext.js";
7
+ import { useAuthentication } from "../exports/admin/security.js";
8
+ const NO_ACCESS = "no";
9
+ const FULL_ACCESS = "full";
10
+ const READ_ONLY_ACCESS = "read-only";
11
+ const CUSTOM_ACCESS = "custom";
12
+ const RWD_OPTIONS = [{
13
+ value: "r",
14
+ label: "Read"
15
+ }, {
16
+ value: "rw",
17
+ label: "Read, write"
18
+ }, {
19
+ value: "rwd",
20
+ label: "Read, write, delete"
21
+ }];
22
+ const PW_OPTIONS = [{
23
+ value: "p",
24
+ label: "Publish"
25
+ }, {
26
+ value: "u",
27
+ label: "Unpublish"
28
+ }];
29
+ function hasAction(entity, name) {
30
+ return entity.actions?.some(a => a.name === name) ?? false;
31
+ }
32
+ function buildScopeOptions(entity) {
33
+ const options = [{
34
+ value: NO_ACCESS,
35
+ label: "No access"
36
+ }];
37
+ if (entity.scopes.includes("full")) {
38
+ options.push({
39
+ value: FULL_ACCESS,
40
+ label: "Full access"
41
+ });
42
+ }
43
+ if (entity.scopes.includes("own")) {
44
+ options.push({
45
+ value: "own",
46
+ label: "Only entries created by the user"
47
+ });
48
+ }
49
+ return options;
50
+ }
51
+ const BUILTIN_ACTIONS = new Set(["rwd", "pw"]);
52
+ function getCustomActions(entity) {
53
+ return (entity.actions ?? []).filter(a => !BUILTIN_ACTIONS.has(a.name));
54
+ }
55
+ function EntitySection({
56
+ entity,
57
+ data,
58
+ cannotUseAAcl,
59
+ Bind,
60
+ setValue
61
+ }) {
62
+ const scopeField = `${entity.id}AccessScope`;
63
+ const currentScope = data[scopeField];
64
+ const scopeDisabled = cannotUseAAcl || !currentScope || currentScope === NO_ACCESS;
65
+ const customActions = useMemo(() => getCustomActions(entity), [entity]);
66
+
67
+ // Derive the selected values array from individual boolean form fields.
68
+ const customActionsValue = useMemo(() => {
69
+ return customActions.filter(a => data[`${entity.id}Action_${a.name}`]).map(a => a.name);
70
+ }, [data, customActions, entity.id]);
71
+ const onCustomActionsChange = useCallback(selected => {
72
+ const selectedSet = new Set(selected);
73
+ for (const action of customActions) {
74
+ setValue(`${entity.id}Action_${action.name}`, selectedSet.has(action.name));
75
+ }
76
+ }, [customActions, entity.id, setValue]);
77
+ const columns = [/*#__PURE__*/React.createElement(Grid.Column, {
78
+ span: 12,
79
+ key: "access"
80
+ }, /*#__PURE__*/React.createElement(Bind, {
81
+ name: scopeField,
82
+ beforeChange: (value, cb) => {
83
+ if (value === "own" && hasAction(entity, "rwd")) {
84
+ setValue(`${entity.id}RWD`, "rwd");
85
+ }
86
+ cb(value);
87
+ }
88
+ }, /*#__PURE__*/React.createElement(Select, {
89
+ label: "Access Scope",
90
+ disabled: cannotUseAAcl,
91
+ options: buildScopeOptions(entity)
92
+ })))];
93
+ if (hasAction(entity, "rwd")) {
94
+ columns.push(/*#__PURE__*/React.createElement(Grid.Column, {
95
+ span: 12,
96
+ key: "rwd"
97
+ }, /*#__PURE__*/React.createElement(Bind, {
98
+ name: `${entity.id}RWD`
99
+ }, /*#__PURE__*/React.createElement(Select, {
100
+ label: "Primary Actions",
101
+ disabled: scopeDisabled || currentScope === "own",
102
+ options: RWD_OPTIONS
103
+ }))));
104
+ }
105
+ if (hasAction(entity, "pw")) {
106
+ columns.push(/*#__PURE__*/React.createElement(Grid.Column, {
107
+ span: 12,
108
+ key: "pw"
109
+ }, /*#__PURE__*/React.createElement(Bind, {
110
+ name: `${entity.id}PW`
111
+ }, /*#__PURE__*/React.createElement(CheckboxGroup, {
112
+ label: "Publishing actions",
113
+ description: "Publishing-related actions that can be performed on entries.",
114
+ items: PW_OPTIONS.map(opt => ({
115
+ ...opt,
116
+ disabled: scopeDisabled
117
+ }))
118
+ }))));
119
+ }
120
+ if (customActions.length > 0) {
121
+ columns.push(/*#__PURE__*/React.createElement(Grid.Column, {
122
+ span: 12,
123
+ key: "other"
124
+ }, /*#__PURE__*/React.createElement(CheckboxGroup, {
125
+ label: "Other Actions",
126
+ value: customActionsValue,
127
+ onChange: onCustomActionsChange,
128
+ items: customActions.map(action => ({
129
+ value: action.name,
130
+ label: action.label || action.name,
131
+ disabled: scopeDisabled
132
+ }))
133
+ })));
134
+ }
135
+ return /*#__PURE__*/React.createElement(PermissionsGroup, {
136
+ title: entity.title || entity.id
137
+ }, /*#__PURE__*/React.createElement(Grid, null, columns));
138
+ }
139
+ export const PermissionRenderer = ({
140
+ schema
141
+ }) => {
142
+ const {
143
+ value,
144
+ onChange
145
+ } = usePermissionValue();
146
+ const {
147
+ identity
148
+ } = useAuthentication();
149
+ const cannotUseAAcl = useMemo(() => {
150
+ return !identity.getPermission("aacl", true);
151
+ }, []);
152
+ const {
153
+ formData,
154
+ onFormChange
155
+ } = usePermissionForm(schema, {
156
+ value,
157
+ onChange
158
+ });
159
+ const entities = schema.entities || [];
160
+ const hasEntities = entities.length > 0;
161
+ const accessLevelOptions = useMemo(() => {
162
+ const options = [{
163
+ value: NO_ACCESS,
164
+ label: "No access"
165
+ }];
166
+ if (schema.readOnlyAccess) {
167
+ options.push({
168
+ value: READ_ONLY_ACCESS,
169
+ label: "Read-only access"
170
+ });
171
+ }
172
+ options.push({
173
+ value: FULL_ACCESS,
174
+ label: "Full access"
175
+ });
176
+ if (hasEntities) {
177
+ options.push({
178
+ value: CUSTOM_ACCESS,
179
+ label: "Custom access"
180
+ });
181
+ }
182
+ return options;
183
+ }, [schema, hasEntities]);
184
+ return /*#__PURE__*/React.createElement(Form, {
185
+ data: formData,
186
+ onChange: onFormChange
187
+ }, ({
188
+ data,
189
+ Bind,
190
+ setValue
191
+ }) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Grid, {
192
+ className: "pt-md"
193
+ }, /*#__PURE__*/React.createElement(Grid.Column, {
194
+ span: 12
195
+ }, data.accessLevel === CUSTOM_ACCESS && cannotUseAAcl && /*#__PURE__*/React.createElement(CannotUseAaclAlert, null))), /*#__PURE__*/React.createElement(Grid, {
196
+ className: "pt-md"
197
+ }, /*#__PURE__*/React.createElement(Grid.Column, {
198
+ span: 6
199
+ }, /*#__PURE__*/React.createElement(PermissionInfo, {
200
+ title: "Access Level"
201
+ })), /*#__PURE__*/React.createElement(Grid.Column, {
202
+ span: 6
203
+ }, /*#__PURE__*/React.createElement(Bind, {
204
+ name: "accessLevel"
205
+ }, /*#__PURE__*/React.createElement(Select, {
206
+ options: accessLevelOptions
207
+ })))), data.accessLevel === CUSTOM_ACCESS && hasEntities && /*#__PURE__*/React.createElement("div", {
208
+ className: "mt-lg"
209
+ }, entities.map(entity => /*#__PURE__*/React.createElement(EntitySection, {
210
+ key: entity.id,
211
+ entity: entity,
212
+ data: data,
213
+ cannotUseAAcl: cannotUseAAcl,
214
+ Bind: Bind,
215
+ setValue: setValue
216
+ })))));
217
+ };
218
+
219
+ //# sourceMappingURL=PermissionRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Fragment","useCallback","useMemo","CheckboxGroup","Grid","Select","Form","CannotUseAaclAlert","PermissionInfo","PermissionsGroup","usePermissionForm","usePermissionValue","useAuthentication","NO_ACCESS","FULL_ACCESS","READ_ONLY_ACCESS","CUSTOM_ACCESS","RWD_OPTIONS","value","label","PW_OPTIONS","hasAction","entity","name","actions","some","a","buildScopeOptions","options","scopes","includes","push","BUILTIN_ACTIONS","Set","getCustomActions","filter","has","EntitySection","data","cannotUseAAcl","Bind","setValue","scopeField","id","currentScope","scopeDisabled","customActions","customActionsValue","map","onCustomActionsChange","selected","selectedSet","action","columns","createElement","Column","span","key","beforeChange","cb","disabled","description","items","opt","length","onChange","title","PermissionRenderer","schema","identity","getPermission","formData","onFormChange","entities","hasEntities","accessLevelOptions","readOnlyAccess","className","accessLevel"],"sources":["PermissionRenderer.tsx"],"sourcesContent":["import React, { Fragment, useCallback, useMemo } from \"react\";\nimport { CheckboxGroup, Grid, Select } from \"@webiny/admin-ui\";\nimport { Form } from \"@webiny/form\";\nimport type { BindComponent } from \"@webiny/form\";\nimport {\n CannotUseAaclAlert,\n PermissionInfo,\n PermissionsGroup\n} from \"../components/Permissions/index.js\";\nimport { usePermissionForm } from \"./usePermissionForm.js\";\nimport type { AaclPermission } from \"../features/wcp/types.js\";\nimport type { ActionDefinition, PermissionSchema, EntityDefinition } from \"./types.js\";\nimport { usePermissionValue } from \"./PermissionValueContext.js\";\nimport { useAuthentication } from \"~/exports/admin/security.js\";\n\nexport interface PermissionRendererProps {\n schema: PermissionSchema;\n}\n\nconst NO_ACCESS = \"no\";\nconst FULL_ACCESS = \"full\";\nconst READ_ONLY_ACCESS = \"read-only\";\nconst CUSTOM_ACCESS = \"custom\";\n\nconst RWD_OPTIONS = [\n { value: \"r\", label: \"Read\" },\n { value: \"rw\", label: \"Read, write\" },\n { value: \"rwd\", label: \"Read, write, delete\" }\n];\n\nconst PW_OPTIONS = [\n { value: \"p\", label: \"Publish\" },\n { value: \"u\", label: \"Unpublish\" }\n];\n\nfunction hasAction(entity: EntityDefinition, name: string): boolean {\n return entity.actions?.some(a => a.name === name) ?? false;\n}\n\nfunction buildScopeOptions(entity: EntityDefinition) {\n const options = [{ value: NO_ACCESS, label: \"No access\" }];\n\n if (entity.scopes.includes(\"full\")) {\n options.push({ value: FULL_ACCESS, label: \"Full access\" });\n }\n\n if (entity.scopes.includes(\"own\")) {\n options.push({ value: \"own\", label: \"Only entries created by the user\" });\n }\n\n return options;\n}\n\nconst BUILTIN_ACTIONS = new Set([\"rwd\", \"pw\"]);\n\nfunction getCustomActions(entity: EntityDefinition): ActionDefinition[] {\n return (entity.actions ?? []).filter(a => !BUILTIN_ACTIONS.has(a.name));\n}\n\ninterface EntitySectionProps {\n entity: EntityDefinition;\n data: Record<string, any>;\n cannotUseAAcl: boolean;\n Bind: BindComponent;\n setValue: (name: string, value: any) => void;\n}\n\nfunction EntitySection({ entity, data, cannotUseAAcl, Bind, setValue }: EntitySectionProps) {\n const scopeField = `${entity.id}AccessScope`;\n const currentScope = data[scopeField];\n const scopeDisabled = cannotUseAAcl || !currentScope || currentScope === NO_ACCESS;\n const customActions = useMemo(() => getCustomActions(entity), [entity]);\n\n // Derive the selected values array from individual boolean form fields.\n const customActionsValue = useMemo(() => {\n return customActions.filter(a => data[`${entity.id}Action_${a.name}`]).map(a => a.name);\n }, [data, customActions, entity.id]);\n\n const onCustomActionsChange = useCallback(\n (selected: string[]) => {\n const selectedSet = new Set(selected);\n for (const action of customActions) {\n setValue(`${entity.id}Action_${action.name}`, selectedSet.has(action.name));\n }\n },\n [customActions, entity.id, setValue]\n );\n\n const columns = [\n <Grid.Column span={12} key={\"access\"}>\n <Bind\n name={scopeField}\n beforeChange={(value: string, cb: (v: string) => void) => {\n if (value === \"own\" && hasAction(entity, \"rwd\")) {\n setValue(`${entity.id}RWD`, \"rwd\");\n }\n cb(value);\n }}\n >\n <Select\n label={\"Access Scope\"}\n disabled={cannotUseAAcl}\n options={buildScopeOptions(entity)}\n />\n </Bind>\n </Grid.Column>\n ];\n\n if (hasAction(entity, \"rwd\")) {\n columns.push(\n <Grid.Column span={12} key={\"rwd\"}>\n <Bind name={`${entity.id}RWD`}>\n <Select\n label={\"Primary Actions\"}\n disabled={scopeDisabled || currentScope === \"own\"}\n options={RWD_OPTIONS}\n />\n </Bind>\n </Grid.Column>\n );\n }\n\n if (hasAction(entity, \"pw\")) {\n columns.push(\n <Grid.Column span={12} key={\"pw\"}>\n <Bind name={`${entity.id}PW`}>\n <CheckboxGroup\n label={\"Publishing actions\"}\n description={\"Publishing-related actions that can be performed on entries.\"}\n items={PW_OPTIONS.map(opt => ({\n ...opt,\n disabled: scopeDisabled\n }))}\n />\n </Bind>\n </Grid.Column>\n );\n }\n\n if (customActions.length > 0) {\n columns.push(\n <Grid.Column span={12} key={\"other\"}>\n <CheckboxGroup\n label={\"Other Actions\"}\n value={customActionsValue}\n onChange={onCustomActionsChange}\n items={customActions.map(action => ({\n value: action.name,\n label: action.label || action.name,\n disabled: scopeDisabled\n }))}\n />\n </Grid.Column>\n );\n }\n\n return (\n <PermissionsGroup title={entity.title || entity.id}>\n <Grid>{columns}</Grid>\n </PermissionsGroup>\n );\n}\n\nexport const PermissionRenderer = ({ schema }: PermissionRendererProps) => {\n const { value, onChange } = usePermissionValue();\n const { identity } = useAuthentication();\n\n const cannotUseAAcl = useMemo(() => {\n return !identity.getPermission<AaclPermission>(\"aacl\", true);\n }, []);\n\n const { formData, onFormChange } = usePermissionForm(schema, { value, onChange });\n\n const entities = schema.entities || [];\n const hasEntities = entities.length > 0;\n\n const accessLevelOptions = useMemo(() => {\n const options = [{ value: NO_ACCESS, label: \"No access\" }];\n\n if (schema.readOnlyAccess) {\n options.push({ value: READ_ONLY_ACCESS, label: \"Read-only access\" });\n }\n\n options.push({ value: FULL_ACCESS, label: \"Full access\" });\n\n if (hasEntities) {\n options.push({ value: CUSTOM_ACCESS, label: \"Custom access\" });\n }\n\n return options;\n }, [schema, hasEntities]);\n\n return (\n <Form data={formData} onChange={onFormChange}>\n {({ data, Bind, setValue }) => (\n <Fragment>\n <Grid className={\"pt-md\"}>\n <Grid.Column span={12}>\n {data.accessLevel === CUSTOM_ACCESS && cannotUseAAcl && (\n <CannotUseAaclAlert />\n )}\n </Grid.Column>\n </Grid>\n <Grid className={\"pt-md\"}>\n <Grid.Column span={6}>\n <PermissionInfo title={\"Access Level\"} />\n </Grid.Column>\n <Grid.Column span={6}>\n <Bind name={\"accessLevel\"}>\n <Select options={accessLevelOptions} />\n </Bind>\n </Grid.Column>\n </Grid>\n {data.accessLevel === CUSTOM_ACCESS && hasEntities && (\n <div className={\"mt-lg\"}>\n {entities.map(entity => (\n <EntitySection\n key={entity.id}\n entity={entity}\n data={data}\n cannotUseAAcl={cannotUseAAcl}\n Bind={Bind}\n setValue={setValue}\n />\n ))}\n </div>\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IAACuB,OAAO,EAAE+C;EAAmB,CAAE,CACpC,CACG,CACX,CAAC,EACNrC,IAAI,CAACwC,WAAW,KAAK9D,aAAa,IAAI0D,WAAW,iBAC9C3E,KAAA,CAAAuD,aAAA;IAAKuB,SAAS,EAAE;EAAQ,GACnBJ,QAAQ,CAACzB,GAAG,CAAC1B,MAAM,iBAChBvB,KAAA,CAAAuD,aAAA,CAACjB,aAAa;IACVoB,GAAG,EAAEnC,MAAM,CAACqB,EAAG;IACfrB,MAAM,EAAEA,MAAO;IACfgB,IAAI,EAAEA,IAAK;IACXC,aAAa,EAAEA,aAAc;IAC7BC,IAAI,EAAEA,IAAK;IACXC,QAAQ,EAAEA;EAAS,CACtB,CACJ,CACA,CAEH,CAEZ,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { Permission } from "./types.js";
3
+ interface PermissionValueContextValue {
4
+ value: Permission[];
5
+ onChange: (value: Permission[]) => void;
6
+ }
7
+ export declare const PermissionValueProvider: ({ value, onChange, children }: PermissionValueContextValue & {
8
+ children: React.ReactNode;
9
+ }) => React.JSX.Element;
10
+ export declare function usePermissionValue(): PermissionValueContextValue;
11
+ export {};
@@ -0,0 +1,23 @@
1
+ import React, { useContext } from "react";
2
+ const PermissionValueContext = /*#__PURE__*/React.createContext(null);
3
+ export const PermissionValueProvider = ({
4
+ value,
5
+ onChange,
6
+ children
7
+ }) => {
8
+ return /*#__PURE__*/React.createElement(PermissionValueContext.Provider, {
9
+ value: {
10
+ value,
11
+ onChange
12
+ }
13
+ }, children);
14
+ };
15
+ export function usePermissionValue() {
16
+ const ctx = useContext(PermissionValueContext);
17
+ if (!ctx) {
18
+ throw new Error("usePermissionValue must be used within a PermissionValueProvider");
19
+ }
20
+ return ctx;
21
+ }
22
+
23
+ //# sourceMappingURL=PermissionValueContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useContext","PermissionValueContext","createContext","PermissionValueProvider","value","onChange","children","createElement","Provider","usePermissionValue","ctx","Error"],"sources":["PermissionValueContext.tsx"],"sourcesContent":["import React, { useContext } from \"react\";\nimport type { Permission } from \"./types.js\";\n\ninterface PermissionValueContextValue {\n value: Permission[];\n onChange: (value: Permission[]) => void;\n}\n\nconst PermissionValueContext = React.createContext<PermissionValueContextValue | null>(null);\n\nexport const PermissionValueProvider = ({\n value,\n onChange,\n children\n}: PermissionValueContextValue & { children: React.ReactNode }) => {\n return (\n <PermissionValueContext.Provider value={{ value, onChange }}>\n {children}\n </PermissionValueContext.Provider>\n );\n};\n\nexport function usePermissionValue(): PermissionValueContextValue {\n const ctx = useContext(PermissionValueContext);\n if (!ctx) {\n throw new Error(\"usePermissionValue must be used within a PermissionValueProvider\");\n }\n return ctx;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAQzC,MAAMC,sBAAsB,gBAAGF,KAAK,CAACG,aAAa,CAAqC,IAAI,CAAC;AAE5F,OAAO,MAAMC,uBAAuB,GAAGA,CAAC;EACpCC,KAAK;EACLC,QAAQ;EACRC;AACyD,CAAC,KAAK;EAC/D,oBACIP,KAAA,CAAAQ,aAAA,CAACN,sBAAsB,CAACO,QAAQ;IAACJ,KAAK,EAAE;MAAEA,KAAK;MAAEC;IAAS;EAAE,GACvDC,QAC4B,CAAC;AAE1C,CAAC;AAED,OAAO,SAASG,kBAAkBA,CAAA,EAAgC;EAC9D,MAAMC,GAAG,GAAGV,UAAU,CAACC,sBAAsB,CAAC;EAC9C,IAAI,CAACS,GAAG,EAAE;IACN,MAAM,IAAIC,KAAK,CAAC,kEAAkE,CAAC;EACvF;EACA,OAAOD,GAAG;AACd","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { PermissionSchemaConfig, HasPermissionProps } from "./types.js";
3
+ export declare function createHasPermission<const S extends PermissionSchemaConfig>(schema: S): React.FC<HasPermissionProps<S>>;
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import { createUsePermissions } from "./usePermissions.js";
3
+ const BUILT_IN_ACTIONS = {
4
+ read: "canRead",
5
+ create: "canCreate",
6
+ edit: "canEdit",
7
+ delete: "canDelete",
8
+ publish: "canPublish",
9
+ unpublish: "canUnpublish"
10
+ };
11
+ export function createHasPermission(schema) {
12
+ const usePermissions = createUsePermissions(schema);
13
+ return function HasPermission({
14
+ children,
15
+ ...props
16
+ }) {
17
+ const permissions = usePermissions();
18
+ const action = props.action;
19
+ const entities = props.entity ? [props.entity] : props.any ?? props.all ?? [];
20
+ const requireAll = !!props.all;
21
+ const check = entityId => {
22
+ if (!action) {
23
+ return permissions.canAccess(entityId);
24
+ }
25
+ const method = BUILT_IN_ACTIONS[action];
26
+ if (method) {
27
+ return permissions[method](entityId);
28
+ }
29
+ return permissions.canAction(action, entityId);
30
+ };
31
+ const allowed = requireAll ? entities.every(check) : entities.some(check);
32
+ return allowed ? /*#__PURE__*/React.createElement(React.Fragment, null, children) : null;
33
+ };
34
+ }
35
+
36
+ //# sourceMappingURL=createHasPermission.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","createUsePermissions","BUILT_IN_ACTIONS","read","create","edit","delete","publish","unpublish","createHasPermission","schema","usePermissions","HasPermission","children","props","permissions","action","entities","entity","any","all","requireAll","check","entityId","canAccess","method","canAction","allowed","every","some","createElement","Fragment"],"sources":["createHasPermission.tsx"],"sourcesContent":["import React from \"react\";\nimport { createUsePermissions } from \"./usePermissions.js\";\nimport type { PermissionSchemaConfig, HasPermissionProps } from \"./types.js\";\n\nconst BUILT_IN_ACTIONS: Record<string, string> = {\n read: \"canRead\",\n create: \"canCreate\",\n edit: \"canEdit\",\n delete: \"canDelete\",\n publish: \"canPublish\",\n unpublish: \"canUnpublish\"\n};\n\nexport function createHasPermission<const S extends PermissionSchemaConfig>(\n schema: S\n): React.FC<HasPermissionProps<S>> {\n const usePermissions = createUsePermissions(schema);\n\n return function HasPermission({ children, ...props }) {\n const permissions = usePermissions();\n\n const action = props.action as string | undefined;\n const entities: string[] = props.entity ? [props.entity] : (props.any ?? props.all ?? []);\n const requireAll = !!props.all;\n\n const check = (entityId: string): boolean => {\n if (!action) {\n return permissions.canAccess(entityId as any);\n }\n const method = BUILT_IN_ACTIONS[action];\n if (method) {\n return (permissions as any)[method](entityId);\n }\n return permissions.canAction(action as any, entityId as any);\n };\n\n const allowed = requireAll ? entities.every(check) : entities.some(check);\n\n return allowed ? <>{children}</> : null;\n };\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,oBAAoB;AAG7B,MAAMC,gBAAwC,GAAG;EAC7CC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,WAAW;EACnBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,WAAW;EACnBC,OAAO,EAAE,YAAY;EACrBC,SAAS,EAAE;AACf,CAAC;AAED,OAAO,SAASC,mBAAmBA,CAC/BC,MAAS,EACsB;EAC/B,MAAMC,cAAc,GAAGV,oBAAoB,CAACS,MAAM,CAAC;EAEnD,OAAO,SAASE,aAAaA,CAAC;IAAEC,QAAQ;IAAE,GAAGC;EAAM,CAAC,EAAE;IAClD,MAAMC,WAAW,GAAGJ,cAAc,CAAC,CAAC;IAEpC,MAAMK,MAAM,GAAGF,KAAK,CAACE,MAA4B;IACjD,MAAMC,QAAkB,GAAGH,KAAK,CAACI,MAAM,GAAG,CAACJ,KAAK,CAACI,MAAM,CAAC,GAAIJ,KAAK,CAACK,GAAG,IAAIL,KAAK,CAACM,GAAG,IAAI,EAAG;IACzF,MAAMC,UAAU,GAAG,CAAC,CAACP,KAAK,CAACM,GAAG;IAE9B,MAAME,KAAK,GAAIC,QAAgB,IAAc;MACzC,IAAI,CAACP,MAAM,EAAE;QACT,OAAOD,WAAW,CAACS,SAAS,CAACD,QAAe,CAAC;MACjD;MACA,MAAME,MAAM,GAAGvB,gBAAgB,CAACc,MAAM,CAAC;MACvC,IAAIS,MAAM,EAAE;QACR,OAAQV,WAAW,CAASU,MAAM,CAAC,CAACF,QAAQ,CAAC;MACjD;MACA,OAAOR,WAAW,CAACW,SAAS,CAACV,MAAM,EAASO,QAAe,CAAC;IAChE,CAAC;IAED,MAAMI,OAAO,GAAGN,UAAU,GAAGJ,QAAQ,CAACW,KAAK,CAACN,KAAK,CAAC,GAAGL,QAAQ,CAACY,IAAI,CAACP,KAAK,CAAC;IAEzE,OAAOK,OAAO,gBAAG3B,KAAA,CAAA8B,aAAA,CAAA9B,KAAA,CAAA+B,QAAA,QAAGlB,QAAW,CAAC,GAAG,IAAI;EAC3C,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import type { PermissionSchemaConfig } from "./types.js";
2
+ export declare function createPermissionSchema<const T extends PermissionSchemaConfig>(config: T): T;
@@ -0,0 +1,8 @@
1
+ export function createPermissionSchema(config) {
2
+ return {
3
+ ...config,
4
+ entities: config.entities ?? []
5
+ };
6
+ }
7
+
8
+ //# sourceMappingURL=createPermissionSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createPermissionSchema","config","entities"],"sources":["createPermissionSchema.ts"],"sourcesContent":["import type { PermissionSchemaConfig } from \"./types.js\";\n\nexport function createPermissionSchema<const T extends PermissionSchemaConfig>(config: T): T {\n return {\n ...config,\n entities: config.entities ?? []\n };\n}\n"],"mappings":"AAEA,OAAO,SAASA,sBAAsBA,CAAyCC,MAAS,EAAK;EACzF,OAAO;IACH,GAAGA,MAAM;IACTC,QAAQ,EAAED,MAAM,CAACC,QAAQ,IAAI;EACjC,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ export { createPermissionSchema } from "./createPermissionSchema.js";
2
+ export { createUsePermissions } from "./usePermissions.js";
3
+ export { usePermissionForm, deserializePermissions, serializePermissions } from "./usePermissionForm.js";
4
+ export { PermissionRenderer } from "./PermissionRenderer.js";
5
+ export type { PermissionRendererProps } from "./PermissionRenderer.js";
6
+ export { usePermissionValue, PermissionValueProvider } from "./PermissionValueContext.js";
7
+ export { createHasPermission } from "./createHasPermission.js";
8
+ export type { Permission, ActionDefinition, EntityDefinition, OwnableItem, PermissionSchemaConfig, PermissionSchema, UsePermissionFormOptions, UsePermissionFormResult, UsePermissionsResult, PermissionRendererConfig, HasPermissionAction, HasPermissionProps } from "./types.js";
@@ -0,0 +1,8 @@
1
+ export { createPermissionSchema } from "./createPermissionSchema.js";
2
+ export { createUsePermissions } from "./usePermissions.js";
3
+ export { usePermissionForm, deserializePermissions, serializePermissions } from "./usePermissionForm.js";
4
+ export { PermissionRenderer } from "./PermissionRenderer.js";
5
+ export { usePermissionValue, PermissionValueProvider } from "./PermissionValueContext.js";
6
+ export { createHasPermission } from "./createHasPermission.js";
7
+
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createPermissionSchema","createUsePermissions","usePermissionForm","deserializePermissions","serializePermissions","PermissionRenderer","usePermissionValue","PermissionValueProvider","createHasPermission"],"sources":["index.ts"],"sourcesContent":["export { createPermissionSchema } from \"./createPermissionSchema.js\";\nexport { createUsePermissions } from \"./usePermissions.js\";\nexport {\n usePermissionForm,\n deserializePermissions,\n serializePermissions\n} from \"./usePermissionForm.js\";\nexport { PermissionRenderer } from \"./PermissionRenderer.js\";\nexport type { PermissionRendererProps } from \"./PermissionRenderer.js\";\nexport { usePermissionValue, PermissionValueProvider } from \"./PermissionValueContext.js\";\nexport { createHasPermission } from \"./createHasPermission.js\";\nexport type {\n Permission,\n ActionDefinition,\n EntityDefinition,\n OwnableItem,\n PermissionSchemaConfig,\n PermissionSchema,\n UsePermissionFormOptions,\n UsePermissionFormResult,\n UsePermissionsResult,\n PermissionRendererConfig,\n HasPermissionAction,\n HasPermissionProps\n} from \"./types.js\";\n"],"mappings":"AAAA,SAASA,sBAAsB;AAC/B,SAASC,oBAAoB;AAC7B,SACIC,iBAAiB,EACjBC,sBAAsB,EACtBC,oBAAoB;AAExB,SAASC,kBAAkB;AAE3B,SAASC,kBAAkB,EAAEC,uBAAuB;AACpD,SAASC,mBAAmB","ignoreList":[]}