@webiny/app-admin 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -17
- package/base/Admin.d.ts +5 -2
- package/base/Admin.js +34 -16
- package/base/Admin.js.map +1 -1
- package/base/Base/LexicalPreset.d.ts +2 -0
- package/base/Base/LexicalPreset.js +67 -0
- package/base/Base/LexicalPreset.js.map +1 -0
- package/base/Base/Menus/SupportMenuItems.d.ts +2 -2
- package/base/Base/Menus/SupportMenuItems.js +2 -4
- package/base/Base/Menus/SupportMenuItems.js.map +1 -1
- package/base/Base/Menus/WebinyVersion.js +4 -4
- package/base/Base/Menus/WebinyVersion.js.map +1 -1
- package/base/Base/Menus.js +37 -42
- package/base/Base/Menus.js.map +1 -1
- package/base/Base/RoutesConfig.d.ts +2 -0
- package/base/Base/RoutesConfig.js +30 -0
- package/base/Base/RoutesConfig.js.map +1 -0
- package/base/Base/Tenant/wby-horizontal.svg +23 -0
- package/base/Base/Tenant.js +14 -9
- package/base/Base/Tenant.js.map +1 -1
- package/base/Base/UserMenu/ExitTenant.d.ts +20 -0
- package/base/Base/UserMenu/ExitTenant.js +37 -0
- package/base/Base/UserMenu/ExitTenant.js.map +1 -0
- package/base/Base/UserMenu/SignOut.d.ts +2 -0
- package/base/Base/UserMenu/SignOut.js +19 -0
- package/base/Base/UserMenu/SignOut.js.map +1 -0
- package/base/Base/UserMenu/UserInfo.d.ts +6 -0
- package/base/Base/UserMenu/UserInfo.js +43 -0
- package/base/Base/UserMenu/UserInfo.js.map +1 -0
- package/base/Base/UserMenu.d.ts +2 -0
- package/base/Base/UserMenu.js +21 -0
- package/base/Base/UserMenu.js.map +1 -0
- package/base/Base.js +6 -8
- package/base/Base.js.map +1 -1
- package/base/TelemetryAdminAppStart.d.ts +1 -0
- package/base/TelemetryAdminAppStart.js +19 -0
- package/base/TelemetryAdminAppStart.js.map +1 -0
- package/base/WebinyVersion.js +4 -4
- package/base/WebinyVersion.js.map +1 -1
- package/base/createRootContainer.d.ts +2 -0
- package/base/createRootContainer.js +55 -0
- package/base/createRootContainer.js.map +1 -0
- package/base/plugins/AddGraphQLQuerySelection.js +1 -1
- package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
- package/base/providers/AdminUiStateProvider.js +1 -1
- package/base/providers/AdminUiStateProvider.js.map +1 -1
- package/base/providers/ApolloProvider.d.ts +1 -1
- package/base/providers/ApolloProvider.js +2 -5
- package/base/providers/ApolloProvider.js.map +1 -1
- package/base/providers/UiProviders.js +24 -3
- package/base/providers/UiProviders.js.map +1 -1
- package/base/providers/UiStateProvider.js +1 -1
- package/base/providers/UiStateProvider.js.map +1 -1
- package/base/ui/CenteredView.d.ts +1 -1
- package/base/ui/CenteredView.js +2 -2
- package/base/ui/CenteredView.js.map +1 -1
- package/base/ui/FileManager.d.ts +9 -21
- package/base/ui/FileManager.js +18 -12
- package/base/ui/FileManager.js.map +1 -1
- package/base/ui/LoginScreen.d.ts +19 -0
- package/base/ui/LoginScreen.js +2 -1
- package/base/ui/LoginScreen.js.map +1 -1
- package/base/ui/Navigation.js +1 -1
- package/base/ui/Navigation.js.map +1 -1
- package/base/ui/UserMenu/UserMenuItem.d.ts +5 -5
- package/base/ui/UserMenu/UserMenuItem.js +1 -1
- package/base/ui/UserMenu/UserMenuItem.js.map +1 -1
- package/base/ui/UserMenu/UserMenuLink.d.ts +5 -5
- package/base/ui/UserMenu/UserMenuLink.js +1 -1
- package/base/ui/UserMenu/UserMenuLink.js.map +1 -1
- package/base/ui/UserMenu/UserMenuSeparator.d.ts +8 -8
- package/base/ui/UserMenu/UserMenuSeparator.js +1 -1
- package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -1
- package/base/ui/UserMenu.d.ts +3 -3
- package/base/ui/UserMenu.js +3 -3
- package/base/ui/UserMenu.js.map +1 -1
- package/components/AdminLayout.js +1 -1
- package/components/AdminLayout.js.map +1 -1
- package/components/BulkActions/Worker.d.ts +0 -1
- package/components/BulkActions/Worker.js +1 -1
- package/components/BulkActions/Worker.js.map +1 -1
- package/components/BulkActions/index.d.ts +2 -2
- package/components/BulkActions/index.js +2 -2
- package/components/BulkActions/index.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/DialogMessage.js +2 -2
- package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/index.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/index.js +1 -1
- package/components/BulkActions/useDialogWithReport/index.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +1 -1
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +2 -2
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -1
- package/components/Buttons/Buttons.d.ts +1 -1
- package/components/Buttons/Buttons.js +4 -4
- package/components/Buttons/Buttons.js.map +1 -1
- package/components/Buttons/Buttons.styles.d.ts +2 -3
- package/components/Buttons/Buttons.styles.js +1 -2
- package/components/Buttons/Buttons.styles.js.map +1 -1
- package/components/Buttons/index.d.ts +2 -2
- package/components/Buttons/index.js +2 -2
- package/components/Buttons/index.js.map +1 -1
- package/components/Buttons/useButtons.d.ts +1 -1
- package/components/Buttons/useButtons.js +1 -1
- package/components/Buttons/useButtons.js.map +1 -1
- package/components/DeveloperMode/DeveloperMode.d.ts +11 -0
- package/components/DeveloperMode/DeveloperMode.js +17 -0
- package/components/DeveloperMode/DeveloperMode.js.map +1 -0
- package/components/DeveloperMode/index.d.ts +2 -0
- package/components/DeveloperMode/index.js +3 -0
- package/components/DeveloperMode/index.js.map +1 -0
- package/components/Dialogs/Dialog.js +2 -2
- package/components/Dialogs/Dialog.js.map +1 -1
- package/components/Dialogs/DialogsContext.d.ts +1 -6
- package/components/Dialogs/DialogsContext.js +14 -23
- package/components/Dialogs/DialogsContext.js.map +1 -1
- package/components/Dialogs/useDialogs.d.ts +1 -2
- package/components/Dialogs/useDialogs.js +1 -2
- package/components/Dialogs/useDialogs.js.map +1 -1
- package/components/EmptyView.d.ts +1 -2
- package/components/EmptyView.js +6 -7
- package/components/EmptyView.js.map +1 -1
- package/components/Filters/Filters.d.ts +1 -1
- package/components/Filters/Filters.js +2 -2
- package/components/Filters/Filters.js.map +1 -1
- package/components/Filters/index.d.ts +2 -2
- package/components/Filters/index.js +2 -2
- package/components/Filters/index.js.map +1 -1
- package/components/FloatingActionButton.js +1 -1
- package/components/FloatingActionButton.js.map +1 -1
- package/components/FloatingPanel.js +4 -6
- package/components/FloatingPanel.js.map +1 -1
- package/components/IconPicker/IconPicker.d.ts +3 -3
- package/components/IconPicker/IconPicker.js +6 -6
- package/components/IconPicker/IconPicker.js.map +1 -1
- package/components/IconPicker/IconPickerComponent.d.ts +3 -3
- package/components/IconPicker/IconPickerComponent.js +4 -4
- package/components/IconPicker/IconPickerComponent.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.d.ts +3 -3
- package/components/IconPicker/IconPickerPresenter.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.test.js +3 -2
- package/components/IconPicker/IconPickerPresenter.test.js.map +1 -1
- package/components/IconPicker/IconPickerPresenterProvider.d.ts +1 -1
- package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -1
- package/components/IconPicker/IconPickerTab.d.ts +1 -1
- package/components/IconPicker/IconPickerTab.js +10 -10
- package/components/IconPicker/IconPickerTab.js.map +1 -1
- package/components/IconPicker/IconRenderer.d.ts +1 -1
- package/components/IconPicker/IconRenderer.js.map +1 -1
- package/components/IconPicker/IconRepository.d.ts +2 -2
- package/components/IconPicker/IconRepository.js +2 -2
- package/components/IconPicker/IconRepository.js.map +1 -1
- package/components/IconPicker/IconRepository.test.js +2 -1
- package/components/IconPicker/IconRepository.test.js.map +1 -1
- package/components/IconPicker/IconRepositoryFactory.d.ts +2 -2
- package/components/IconPicker/IconRepositoryFactory.js +1 -1
- package/components/IconPicker/IconRepositoryFactory.js.map +1 -1
- package/components/IconPicker/components/IconPickerCell.d.ts +2 -2
- package/components/IconPicker/components/IconPickerCell.js +3 -3
- package/components/IconPicker/components/IconPickerCell.js.map +1 -1
- package/components/IconPicker/components/IconPickerContent.d.ts +1 -1
- package/components/IconPicker/components/IconPickerContent.js +4 -4
- package/components/IconPicker/components/IconPickerContent.js.map +1 -1
- package/components/IconPicker/components/IconPickerRow.js +1 -1
- package/components/IconPicker/components/IconPickerRow.js.map +1 -1
- package/components/IconPicker/components/IconPickerTrigger.d.ts +1 -1
- package/components/IconPicker/components/IconPickerTrigger.js +7 -7
- package/components/IconPicker/components/IconPickerTrigger.js.map +1 -1
- package/components/IconPicker/components/index.d.ts +4 -4
- package/components/IconPicker/components/index.js +4 -4
- package/components/IconPicker/components/index.js.map +1 -1
- package/components/IconPicker/config/Emojis.js +1 -1
- package/components/IconPicker/config/Emojis.js.map +1 -1
- package/components/IconPicker/config/FontAwesomeIcons.js +1 -1
- package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -1
- package/components/IconPicker/config/IconPackProvider.d.ts +1 -1
- package/components/IconPicker/config/IconPackProvider.js.map +1 -1
- package/components/IconPicker/config/IconType.js +2 -2
- package/components/IconPicker/config/IconType.js.map +1 -1
- package/components/IconPicker/config/index.d.ts +3 -3
- package/components/IconPicker/config/index.js +7 -7
- package/components/IconPicker/config/index.js.map +1 -1
- package/components/IconPicker/index.d.ts +7 -7
- package/components/IconPicker/index.js +6 -6
- package/components/IconPicker/index.js.map +1 -1
- package/components/IconPicker/plugins/customPlugin.js +19 -24
- package/components/IconPicker/plugins/customPlugin.js.map +1 -1
- package/components/IconPicker/plugins/emojisPlugin.js +9 -9
- package/components/IconPicker/plugins/emojisPlugin.js.map +1 -1
- package/components/IconPicker/plugins/iconsPlugin.js +4 -4
- package/components/IconPicker/plugins/iconsPlugin.js.map +1 -1
- package/components/IconPicker/types.js.map +1 -1
- package/components/LexicalEditor/LexicalEditor.d.ts +9 -5
- package/components/LexicalEditor/LexicalEditor.js +32 -21
- package/components/LexicalEditor/LexicalEditor.js.map +1 -1
- package/components/LexicalEditor/LexicalLinkForm.d.ts +6 -0
- package/components/LexicalEditor/LexicalLinkForm.js +92 -0
- package/components/LexicalEditor/LexicalLinkForm.js.map +1 -0
- package/components/LexicalEditor/index.d.ts +3 -1
- package/components/LexicalEditor/index.js +3 -1
- package/components/LexicalEditor/index.js.map +1 -1
- package/components/LexicalEditor/lexicalValueWithHtml.d.ts +7 -0
- package/components/LexicalEditor/lexicalValueWithHtml.js +36 -0
- package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -0
- package/components/NavigationPrompt.d.ts +27 -0
- package/components/NavigationPrompt.js +39 -0
- package/components/NavigationPrompt.js.map +1 -0
- package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -0
- package/components/NotAuthorizedError/NotAuthorizedError.js +20 -0
- package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
- package/components/NotAuthorizedError/SecureRouteError.svg +1 -0
- package/components/NotAuthorizedError/index.d.ts +1 -0
- package/components/NotAuthorizedError/index.js +3 -0
- package/components/NotAuthorizedError/index.js.map +1 -0
- package/components/OptionsMenu/OptionsMenu.js +1 -1
- package/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/components/OptionsMenu/index.d.ts +4 -4
- package/components/OptionsMenu/index.js +4 -4
- package/components/OptionsMenu/index.js.map +1 -1
- package/components/OptionsMenu/useOptionsMenuItem.d.ts +2 -2
- package/components/OptionsMenu/useOptionsMenuItem.js +2 -2
- package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -1
- package/components/OverlayLayout/OverlayLayout.d.ts +1 -1
- package/components/OverlayLayout/OverlayLayout.js +8 -11
- package/components/OverlayLayout/OverlayLayout.js.map +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.js +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -1
- package/components/OverlayLayout/components/OverlayContent.js +1 -1
- package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
- package/components/OverlayLayout/components/OverlayHeader.js +3 -3
- package/components/OverlayLayout/components/OverlayHeader.js.map +1 -1
- package/components/OverlayLayout/components/OverlayRoot.js +1 -1
- package/components/OverlayLayout/components/OverlayRoot.js.map +1 -1
- package/components/OverlayLayout/components/index.d.ts +4 -4
- package/components/OverlayLayout/components/index.js +4 -4
- package/components/OverlayLayout/components/index.js.map +1 -1
- package/components/OverlayLayout/index.d.ts +1 -1
- package/components/OverlayLayout/index.js +1 -1
- package/components/OverlayLayout/index.js.map +1 -1
- package/components/Permissions/Permissions.d.ts +1 -3
- package/components/Permissions/Permissions.js +37 -31
- package/components/Permissions/Permissions.js.map +1 -1
- package/components/Permissions/PermissionsGroup.js +2 -2
- package/components/Permissions/PermissionsGroup.js.map +1 -1
- package/components/Permissions/StyledComponents.js +1 -1
- package/components/Permissions/StyledComponents.js.map +1 -1
- package/components/Permissions/index.d.ts +4 -4
- package/components/Permissions/index.js +4 -4
- package/components/Permissions/index.js.map +1 -1
- package/components/RegisterFeature.d.ts +11 -0
- package/components/RegisterFeature.js +26 -0
- package/components/RegisterFeature.js.map +1 -0
- package/components/ResizablePanels/index.d.ts +1 -1
- package/components/ResizablePanels/index.js +1 -1
- package/components/ResizablePanels/index.js.map +1 -1
- package/components/RoleAutocomplete/graphql.d.ts +1 -0
- package/components/RoleAutocomplete/graphql.js +18 -0
- package/components/RoleAutocomplete/graphql.js.map +1 -0
- package/components/RoleAutocomplete/index.d.ts +5 -0
- package/components/RoleAutocomplete/index.js +18 -0
- package/components/RoleAutocomplete/index.js.map +1 -0
- package/components/RolesMultiAutocomplete/graphql.d.ts +1 -0
- package/components/RolesMultiAutocomplete/graphql.js +23 -0
- package/components/RolesMultiAutocomplete/graphql.js.map +1 -0
- package/components/RolesMultiAutocomplete/index.d.ts +5 -0
- package/components/RolesMultiAutocomplete/index.js +19 -0
- package/components/RolesMultiAutocomplete/index.js.map +1 -0
- package/components/SearchUI.d.ts +1 -2
- package/components/SearchUI.js +1 -2
- package/components/SearchUI.js.map +1 -1
- package/components/SimpleForm/SimpleForm.d.ts +1 -1
- package/components/SimpleForm/SimpleForm.js +10 -10
- package/components/SimpleForm/SimpleForm.js.map +1 -1
- package/components/SimpleForm/index.d.ts +1 -1
- package/components/SimpleForm/index.js +1 -1
- package/components/SimpleForm/index.js.map +1 -1
- package/components/SimpleUI/InputField.js +3 -3
- package/components/SimpleUI/InputField.js.map +1 -1
- package/components/SingleImageUpload.d.ts +3 -8
- package/components/SingleImageUpload.js +1 -1
- package/components/SingleImageUpload.js.map +1 -1
- package/components/SplitView/SplitView.d.ts +7 -7
- package/components/SplitView/SplitView.js +20 -12
- package/components/SplitView/SplitView.js.map +1 -1
- package/components/SplitView/index.d.ts +1 -1
- package/components/SplitView/index.js +1 -1
- package/components/SplitView/index.js.map +1 -1
- package/components/StateInspector.js +1 -1
- package/components/StateInspector.js.map +1 -1
- package/components/TeamAutocomplete/graphql.d.ts +1 -0
- package/components/TeamAutocomplete/graphql.js +18 -0
- package/components/TeamAutocomplete/graphql.js.map +1 -0
- package/components/TeamAutocomplete/index.d.ts +5 -0
- package/components/TeamAutocomplete/index.js +18 -0
- package/components/TeamAutocomplete/index.js.map +1 -0
- package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
- package/components/TeamsMultiAutocomplete/graphql.js +23 -0
- package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
- package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
- package/components/TeamsMultiAutocomplete/index.js +19 -0
- package/components/TeamsMultiAutocomplete/index.js.map +1 -0
- package/components/Wcp.d.ts +4 -0
- package/components/Wcp.js +16 -2
- package/components/Wcp.js.map +1 -1
- package/components/index.d.ts +30 -3
- package/components/index.js +29 -3
- package/components/index.js.map +1 -1
- package/config/AdminConfig/Dashboard.d.ts +3 -0
- package/config/AdminConfig/Dashboard.js +6 -0
- package/config/AdminConfig/Dashboard.js.map +1 -0
- package/config/AdminConfig/LexicalTheme/Color.d.ts +11 -0
- package/config/AdminConfig/LexicalTheme/Color.js +45 -0
- package/config/AdminConfig/LexicalTheme/Color.js.map +1 -0
- package/config/AdminConfig/LexicalTheme/Typography.d.ts +30 -0
- package/config/AdminConfig/LexicalTheme/Typography.js +79 -0
- package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -0
- package/config/AdminConfig/LexicalTheme.d.ts +9 -0
- package/config/AdminConfig/LexicalTheme.js +8 -0
- package/config/AdminConfig/LexicalTheme.js.map +1 -0
- package/config/AdminConfig/Logo.d.ts +24 -0
- package/config/AdminConfig/Logo.js +21 -0
- package/config/AdminConfig/Logo.js.map +1 -0
- package/config/AdminConfig/Menu/MenuGroup.d.ts +10 -10
- package/config/AdminConfig/Menu/MenuGroup.js +1 -1
- package/config/AdminConfig/Menu/MenuGroup.js.map +1 -1
- package/config/AdminConfig/Menu/MenuItem.d.ts +9 -9
- package/config/AdminConfig/Menu/MenuItem.js +1 -1
- package/config/AdminConfig/Menu/MenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/MenuLink.d.ts +14 -14
- package/config/AdminConfig/Menu/MenuLink.js +10 -4
- package/config/AdminConfig/Menu/MenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +2 -2
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu.d.ts +15 -15
- package/config/AdminConfig/Menu/SupportMenu.js +3 -3
- package/config/AdminConfig/Menu/SupportMenu.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +14 -15
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +14 -15
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu.d.ts +31 -31
- package/config/AdminConfig/Menu/UserMenu.js +4 -4
- package/config/AdminConfig/Menu/UserMenu.js.map +1 -1
- package/config/AdminConfig/Menu.d.ts +105 -103
- package/config/AdminConfig/Menu.js +17 -7
- package/config/AdminConfig/Menu.js.map +1 -1
- package/config/AdminConfig/Route.d.ts +1 -1
- package/config/AdminConfig/Route.js +2 -2
- package/config/AdminConfig/Route.js.map +1 -1
- package/config/AdminConfig/Security.d.ts +3 -0
- package/config/AdminConfig/Security.js +6 -0
- package/config/AdminConfig/Security.js.map +1 -0
- package/config/AdminConfig/SecurityPermissions.d.ts +17 -0
- package/config/AdminConfig/SecurityPermissions.js +31 -0
- package/config/AdminConfig/SecurityPermissions.js.map +1 -0
- package/config/AdminConfig/Tenant/TenantLogo.d.ts +8 -7
- package/config/AdminConfig/Tenant/TenantLogo.js +14 -6
- package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -1
- package/config/AdminConfig/Tenant/TenantName.d.ts +1 -1
- package/config/AdminConfig/Tenant/TenantName.js +5 -2
- package/config/AdminConfig/Tenant/TenantName.js.map +1 -1
- package/config/AdminConfig/Tenant.d.ts +14 -31
- package/config/AdminConfig/Tenant.js +4 -13
- package/config/AdminConfig/Tenant.js.map +1 -1
- package/config/AdminConfig/Theme/assignColor.d.ts +1 -1
- package/config/AdminConfig/Theme/assignColor.js +1 -1
- package/config/AdminConfig/Theme/assignColor.js.map +1 -1
- package/config/AdminConfig/Theme/types.d.ts +1 -1
- package/config/AdminConfig/Theme/types.js.map +1 -1
- package/config/AdminConfig/Theme.d.ts +1 -1
- package/config/AdminConfig/Theme.js +1 -1
- package/config/AdminConfig/Theme.js.map +1 -1
- package/config/AdminConfig/Title.d.ts +23 -0
- package/config/AdminConfig/Title.js +16 -0
- package/config/AdminConfig/Title.js.map +1 -0
- package/config/AdminConfig/Widget.d.ts +15 -0
- package/config/AdminConfig/Widget.js +36 -0
- package/config/AdminConfig/Widget.js.map +1 -0
- package/config/AdminConfig.d.ts +202 -150
- package/config/AdminConfig.js +35 -9
- package/config/AdminConfig.js.map +1 -1
- package/config/createAdminConfig.js.map +1 -1
- package/css/tokens.css +379 -0
- package/css/typography.css +70 -0
- package/domain/Identity.d.ts +59 -0
- package/domain/Identity.js +96 -0
- package/domain/Identity.js.map +1 -0
- package/errors/ErrorOverlayNetworkErrorHandler.d.ts +11 -0
- package/errors/ErrorOverlayNetworkErrorHandler.js +66 -0
- package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -0
- package/errors/TenantIsDisabled.d.ts +2 -0
- package/errors/TenantIsDisabled.js +23 -0
- package/errors/TenantIsDisabled.js.map +1 -0
- package/exports/admin/build-params.d.ts +1 -0
- package/exports/admin/build-params.js +3 -0
- package/exports/admin/build-params.js.map +1 -0
- package/exports/admin/configs.d.ts +1 -0
- package/exports/admin/configs.js +3 -0
- package/exports/admin/configs.js.map +1 -0
- package/exports/admin/form.d.ts +11 -0
- package/exports/admin/form.js +12 -0
- package/exports/admin/form.js.map +1 -0
- package/exports/admin/security.d.ts +8 -0
- package/exports/admin/security.js +10 -0
- package/exports/admin/security.js.map +1 -0
- package/exports/admin/tenancy.d.ts +2 -0
- package/exports/admin/tenancy.js +4 -0
- package/exports/admin/tenancy.js.map +1 -0
- package/exports/admin/ui.d.ts +4 -0
- package/exports/admin/ui.js +6 -0
- package/exports/admin/ui.js.map +1 -0
- package/exports/admin.d.ts +7 -0
- package/exports/admin.js +9 -0
- package/exports/admin.js.map +1 -0
- package/features/apolloClient/abstraction.d.ts +5 -0
- package/features/apolloClient/abstraction.js +4 -0
- package/features/apolloClient/abstraction.js.map +1 -0
- package/features/apolloClient/feature.d.ts +2 -0
- package/features/apolloClient/feature.js +39 -0
- package/features/apolloClient/feature.js.map +1 -0
- package/features/buildParams/BuildParams.d.ts +9 -0
- package/features/buildParams/BuildParams.js +18 -0
- package/features/buildParams/BuildParams.js.map +1 -0
- package/features/buildParams/abstractions.d.ts +15 -0
- package/features/buildParams/abstractions.js +5 -0
- package/features/buildParams/abstractions.js.map +1 -0
- package/features/buildParams/feature.d.ts +1 -0
- package/features/buildParams/feature.js +10 -0
- package/features/buildParams/feature.js.map +1 -0
- package/features/buildParams/index.d.ts +2 -0
- package/features/buildParams/index.js +4 -0
- package/features/buildParams/index.js.map +1 -0
- package/features/security/AuthenticationContext/AuthenticationContext.d.ts +15 -0
- package/features/security/AuthenticationContext/AuthenticationContext.js +31 -0
- package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.d.ts +12 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js +30 -0
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.d.ts +10 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js +17 -0
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -0
- package/features/security/AuthenticationContext/abstractions.d.ts +26 -0
- package/features/security/AuthenticationContext/abstractions.js +5 -0
- package/features/security/AuthenticationContext/abstractions.js.map +1 -0
- package/features/security/AuthenticationContext/feature.d.ts +3 -0
- package/features/security/AuthenticationContext/feature.js +20 -0
- package/features/security/AuthenticationContext/feature.js.map +1 -0
- package/features/security/AuthenticationContext/index.d.ts +1 -0
- package/features/security/AuthenticationContext/index.js +3 -0
- package/features/security/AuthenticationContext/index.js.map +1 -0
- package/features/security/AuthenticationContext/types.d.ts +11 -0
- package/features/security/AuthenticationContext/types.js.map +1 -0
- package/features/security/IdentityContext/IdentityContext.d.ts +13 -0
- package/features/security/IdentityContext/IdentityContext.js +24 -0
- package/features/security/IdentityContext/IdentityContext.js.map +1 -0
- package/features/security/IdentityContext/abstractions.d.ts +10 -0
- package/features/security/IdentityContext/abstractions.js +4 -0
- package/features/security/IdentityContext/abstractions.js.map +1 -0
- package/features/security/IdentityContext/feature.d.ts +3 -0
- package/features/security/IdentityContext/feature.js +16 -0
- package/features/security/IdentityContext/feature.js.map +1 -0
- package/features/security/IdentityContext/index.d.ts +2 -0
- package/features/security/IdentityContext/index.js +4 -0
- package/features/security/IdentityContext/index.js.map +1 -0
- package/features/security/LogIn/IdentityMapper.d.ts +9 -0
- package/features/security/LogIn/IdentityMapper.js +13 -0
- package/features/security/LogIn/IdentityMapper.js.map +1 -0
- package/features/security/LogIn/LogInGateway.d.ts +11 -0
- package/features/security/LogIn/LogInGateway.js +27 -0
- package/features/security/LogIn/LogInGateway.js.map +1 -0
- package/features/security/LogIn/LogInRepository.d.ts +14 -0
- package/features/security/LogIn/LogInRepository.js +19 -0
- package/features/security/LogIn/LogInRepository.js.map +1 -0
- package/features/security/LogIn/LogInUseCase.d.ts +15 -0
- package/features/security/LogIn/LogInUseCase.js +40 -0
- package/features/security/LogIn/LogInUseCase.js.map +1 -0
- package/features/security/LogIn/abstractions.d.ts +48 -0
- package/features/security/LogIn/abstractions.js +19 -0
- package/features/security/LogIn/abstractions.js.map +1 -0
- package/features/security/LogIn/createLoginMutation.d.ts +1 -0
- package/features/security/LogIn/createLoginMutation.js +49 -0
- package/features/security/LogIn/createLoginMutation.js.map +1 -0
- package/features/security/LogIn/feature.d.ts +3 -0
- package/features/security/LogIn/feature.js +22 -0
- package/features/security/LogIn/feature.js.map +1 -0
- package/features/security/LogIn/index.d.ts +1 -0
- package/features/security/LogIn/index.js +3 -0
- package/features/security/LogIn/index.js.map +1 -0
- package/features/security/LogOut/LogOutUseCase.d.ts +13 -0
- package/features/security/LogOut/LogOutUseCase.js +23 -0
- package/features/security/LogOut/LogOutUseCase.js.map +1 -0
- package/features/security/LogOut/abstractions.d.ts +7 -0
- package/features/security/LogOut/abstractions.js +4 -0
- package/features/security/LogOut/abstractions.js.map +1 -0
- package/features/security/LogOut/feature.d.ts +3 -0
- package/features/security/LogOut/feature.js +16 -0
- package/features/security/LogOut/feature.js.map +1 -0
- package/features/security/LogOut/index.d.ts +2 -0
- package/features/security/LogOut/index.js +4 -0
- package/features/security/LogOut/index.js.map +1 -0
- package/features/security/SecurityFeature.d.ts +1 -0
- package/features/security/SecurityFeature.js +16 -0
- package/features/security/SecurityFeature.js.map +1 -0
- package/features/telemetry/TelemetryService.d.ts +6 -0
- package/features/telemetry/TelemetryService.js +20 -0
- package/features/telemetry/TelemetryService.js.map +1 -0
- package/features/telemetry/abstractions.d.ts +7 -0
- package/features/telemetry/abstractions.js +4 -0
- package/features/telemetry/abstractions.js.map +1 -0
- package/features/telemetry/feature.d.ts +3 -0
- package/features/telemetry/feature.js +16 -0
- package/features/telemetry/feature.js.map +1 -0
- package/features/telemetry/index.d.ts +2 -0
- package/features/telemetry/index.js +4 -0
- package/features/telemetry/index.js.map +1 -0
- package/features/tenancy/GraphQLClientDecorator.d.ts +12 -0
- package/features/tenancy/GraphQLClientDecorator.js +27 -0
- package/features/tenancy/GraphQLClientDecorator.js.map +1 -0
- package/features/tenancy/TenantContext.d.ts +17 -0
- package/features/tenancy/TenantContext.js +61 -0
- package/features/tenancy/TenantContext.js.map +1 -0
- package/features/tenancy/abstractions.d.ts +14 -0
- package/features/tenancy/abstractions.js +4 -0
- package/features/tenancy/abstractions.js.map +1 -0
- package/features/tenancy/feature.d.ts +5 -0
- package/features/tenancy/feature.js +41 -0
- package/features/tenancy/feature.js.map +1 -0
- package/features/tenancy/types.d.ts +4 -0
- package/features/tenancy/types.js +3 -0
- package/features/tenancy/types.js.map +1 -0
- package/features/wcp/ReactLicense.d.ts +19 -0
- package/features/wcp/ReactLicense.js +46 -0
- package/features/wcp/ReactLicense.js.map +1 -0
- package/features/wcp/WcpGateway.d.ts +10 -0
- package/features/wcp/WcpGateway.js +73 -0
- package/features/wcp/WcpGateway.js.map +1 -0
- package/features/wcp/WcpService.d.ts +20 -0
- package/features/wcp/WcpService.js +84 -0
- package/features/wcp/WcpService.js.map +1 -0
- package/features/wcp/abstractions.d.ts +19 -0
- package/features/wcp/abstractions.js +5 -0
- package/features/wcp/abstractions.js.map +1 -0
- package/features/wcp/feature.d.ts +3 -0
- package/features/wcp/feature.js +18 -0
- package/features/wcp/feature.js.map +1 -0
- package/features/wcp/types.d.ts +21 -0
- package/features/wcp/types.js +3 -0
- package/features/wcp/types.js.map +1 -0
- package/hooks/index.d.ts +11 -10
- package/hooks/index.js +11 -10
- package/hooks/index.js.map +1 -1
- package/hooks/useConfirmationDialog.js +3 -3
- package/hooks/useConfirmationDialog.js.map +1 -1
- package/hooks/useDialog.js +1 -1
- package/hooks/useDialog.js.map +1 -1
- package/hooks/useKeyHandler.js +1 -1
- package/hooks/useKeyHandler.js.map +1 -1
- package/hooks/useModKey.js +1 -2
- package/hooks/useModKey.js.map +1 -1
- package/hooks/useShiftKey.js +1 -1
- package/hooks/useShiftKey.js.map +1 -1
- package/hooks/useStateIfMounted.d.ts +0 -1
- package/hooks/useStateIfMounted.js +1 -1
- package/hooks/useStateIfMounted.js.map +1 -1
- package/hooks/useToggler.d.ts +7 -0
- package/hooks/useToggler.js +15 -0
- package/hooks/useToggler.js.map +1 -0
- package/index.d.ts +34 -45
- package/index.js +36 -43
- package/index.js.map +1 -1
- package/lexical.css +2 -0
- package/package.json +42 -47
- package/permissions/PermissionRenderer.d.ts +6 -0
- package/permissions/PermissionRenderer.js +219 -0
- package/permissions/PermissionRenderer.js.map +1 -0
- package/permissions/PermissionValueContext.d.ts +11 -0
- package/permissions/PermissionValueContext.js +23 -0
- package/permissions/PermissionValueContext.js.map +1 -0
- package/permissions/createHasPermission.d.ts +3 -0
- package/permissions/createHasPermission.js +36 -0
- package/permissions/createHasPermission.js.map +1 -0
- package/permissions/createPermissionSchema.d.ts +2 -0
- package/permissions/createPermissionSchema.js +8 -0
- package/permissions/createPermissionSchema.js.map +1 -0
- package/permissions/index.d.ts +8 -0
- package/permissions/index.js +8 -0
- package/permissions/index.js.map +1 -0
- package/permissions/types.d.ts +242 -0
- package/permissions/types.js +3 -0
- package/permissions/types.js.map +1 -0
- package/permissions/usePermissionForm.d.ts +17 -0
- package/permissions/usePermissionForm.js +256 -0
- package/permissions/usePermissionForm.js.map +1 -0
- package/permissions/usePermissions.d.ts +3 -0
- package/permissions/usePermissions.js +180 -0
- package/permissions/usePermissions.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js +70 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.d.ts +2 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +17 -0
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/index.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/index.js +3 -0
- package/presentation/installation/components/SystemInstaller/index.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +32 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +15 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +69 -0
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +95 -0
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.d.ts +4 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.js +10 -0
- package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.d.ts +8 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.js +28 -0
- package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.d.ts +11 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +58 -0
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.d.ts +7 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +21 -0
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/introduction.svg +154 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.d.ts +1 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js +3 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.d.ts +10 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +63 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.d.ts +24 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +138 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.d.ts +11 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +30 -0
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.d.ts +59 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.js +6 -0
- package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/feature.d.ts +3 -0
- package/presentation/installation/presenters/SystemInstaller/feature.js +20 -0
- package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -0
- package/presentation/installation/presenters/SystemInstaller/index.d.ts +3 -0
- package/presentation/installation/presenters/SystemInstaller/index.js +4 -0
- package/presentation/installation/presenters/SystemInstaller/index.js.map +1 -0
- package/presentation/security/components/HasPermission.d.ts +10 -0
- package/presentation/security/components/HasPermission.js +31 -0
- package/presentation/security/components/HasPermission.js.map +1 -0
- package/presentation/security/components/SecureRoute.d.ts +7 -0
- package/presentation/security/components/SecureRoute.js +16 -0
- package/presentation/security/components/SecureRoute.js.map +1 -0
- package/presentation/security/hooks/useAuthentication.d.ts +9 -0
- package/presentation/security/hooks/useAuthentication.js +24 -0
- package/presentation/security/hooks/useAuthentication.js.map +1 -0
- package/presentation/security/hooks/useIdentity.d.ts +6 -0
- package/presentation/security/hooks/useIdentity.js +25 -0
- package/presentation/security/hooks/useIdentity.js.map +1 -0
- package/presentation/security/hooks/useSecurity.d.ts +10 -0
- package/presentation/security/hooks/useSecurity.js +28 -0
- package/presentation/security/hooks/useSecurity.js.map +1 -0
- package/presentation/tenancy/TenancyProvider.d.ts +6 -0
- package/presentation/tenancy/TenancyProvider.js +43 -0
- package/presentation/tenancy/TenancyProvider.js.map +1 -0
- package/presentation/tenancy/createTenancyProvider.d.ts +1 -0
- package/presentation/tenancy/createTenancyProvider.js +14 -0
- package/presentation/tenancy/createTenancyProvider.js.map +1 -0
- package/presentation/tenancy/useTenantContext.d.ts +5 -0
- package/presentation/tenancy/useTenantContext.js +24 -0
- package/presentation/tenancy/useTenantContext.js.map +1 -0
- package/presentation/wcp/WcpProvider.d.ts +7 -0
- package/presentation/wcp/WcpProvider.js +26 -0
- package/presentation/wcp/WcpProvider.js.map +1 -0
- package/presentation/wcp/useWcp.d.ts +2 -0
- package/presentation/wcp/useWcp.js +18 -0
- package/presentation/wcp/useWcp.js.map +1 -0
- package/routes.d.ts +6 -0
- package/routes.js +17 -0
- package/routes.js.map +1 -0
- package/types.d.ts +3 -76
- package/types.js +1 -5
- package/types.js.map +1 -1
- package/base/Base/Routes.d.ts +0 -2
- package/base/Base/Routes.js +0 -24
- package/base/Base/Routes.js.map +0 -1
- package/base/providers/TelemetryProvider.d.ts +0 -1
- package/base/providers/TelemetryProvider.js +0 -22
- package/base/providers/TelemetryProvider.js.map +0 -1
- package/base/providers/ViewCompositionProvider.d.ts +0 -21
- package/base/providers/ViewCompositionProvider.js +0 -47
- package/base/providers/ViewCompositionProvider.js.map +0 -1
- package/base/ui/LocaleSelector.d.ts +0 -39
- package/base/ui/LocaleSelector.js +0 -8
- package/base/ui/LocaleSelector.js.map +0 -1
- package/components/AppInstaller/AppInstaller.d.ts +0 -11
- package/components/AppInstaller/AppInstaller.js +0 -113
- package/components/AppInstaller/AppInstaller.js.map +0 -1
- package/components/AppInstaller/Sidebar.d.ts +0 -9
- package/components/AppInstaller/Sidebar.js +0 -108
- package/components/AppInstaller/Sidebar.js.map +0 -1
- package/components/AppInstaller/assets/sign-in-divider.svg +0 -19
- package/components/AppInstaller/index.d.ts +0 -2
- package/components/AppInstaller/index.js +0 -17
- package/components/AppInstaller/index.js.map +0 -1
- package/components/AppInstaller/styled.d.ts +0 -19
- package/components/AppInstaller/styled.js +0 -75
- package/components/AppInstaller/styled.js.map +0 -1
- package/components/AppInstaller/useInstaller.d.ts +0 -25
- package/components/AppInstaller/useInstaller.js +0 -169
- package/components/AppInstaller/useInstaller.js.map +0 -1
- package/components/Dialogs/CustomDialog.d.ts +0 -17
- package/components/Dialogs/CustomDialog.js +0 -48
- package/components/Dialogs/CustomDialog.js.map +0 -1
- package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
- package/components/RichTextEditor/RichTextEditor.js +0 -16
- package/components/RichTextEditor/RichTextEditor.js.map +0 -1
- package/components/RichTextEditor/index.d.ts +0 -2
- package/components/RichTextEditor/index.js +0 -4
- package/components/RichTextEditor/index.js.map +0 -1
- package/components/RichTextEditor/styles.scss +0 -96
- package/components/RichTextEditor/tools/header/index.d.ts +0 -228
- package/components/RichTextEditor/tools/header/index.js +0 -615
- package/components/RichTextEditor/tools/header/index.js.map +0 -1
- package/components/RichTextEditor/tools/header/styles.scss +0 -48
- package/components/RichTextEditor/tools/image/index.d.ts +0 -122
- package/components/RichTextEditor/tools/image/index.js +0 -202
- package/components/RichTextEditor/tools/image/index.js.map +0 -1
- package/components/RichTextEditor/tools/image/styles.scss +0 -90
- package/components/RichTextEditor/tools/image/svgs.d.ts +0 -6
- package/components/RichTextEditor/tools/image/svgs.js +0 -7
- package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
- package/components/RichTextEditor/tools/image/tunes.d.ts +0 -55
- package/components/RichTextEditor/tools/image/tunes.js +0 -103
- package/components/RichTextEditor/tools/image/tunes.js.map +0 -1
- package/components/RichTextEditor/tools/image/types.d.ts +0 -29
- package/components/RichTextEditor/tools/image/types.js.map +0 -1
- package/components/RichTextEditor/tools/image/ui.d.ts +0 -120
- package/components/RichTextEditor/tools/image/ui.js +0 -245
- package/components/RichTextEditor/tools/image/ui.js.map +0 -1
- package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -208
- package/components/RichTextEditor/tools/paragraph/index.js +0 -435
- package/components/RichTextEditor/tools/paragraph/index.js.map +0 -1
- package/components/RichTextEditor/tools/paragraph/styles.scss +0 -29
- package/components/RichTextEditor/tools/textColor/index.d.ts +0 -61
- package/components/RichTextEditor/tools/textColor/index.js +0 -197
- package/components/RichTextEditor/tools/textColor/index.js.map +0 -1
- package/components/RichTextEditor/tools/textColor/styles.scss +0 -21
- package/components/RichTextEditor/tools/utils.d.ts +0 -19
- package/components/RichTextEditor/tools/utils.js +0 -24
- package/components/RichTextEditor/tools/utils.js.map +0 -1
- package/components/Routes.d.ts +0 -6
- package/components/Routes.js +0 -34
- package/components/Routes.js.map +0 -1
- package/plugins/PermissionRendererPlugin.d.ts +0 -22
- package/plugins/PermissionRendererPlugin.js +0 -19
- package/plugins/PermissionRendererPlugin.js.map +0 -1
- package/plugins/uiLayoutRenderer/index.d.ts +0 -2
- package/plugins/uiLayoutRenderer/index.js +0 -53
- package/plugins/uiLayoutRenderer/index.js.map +0 -1
- package/ui/UIElement.d.ts +0 -2
- package/ui/UIElement.js +0 -3
- package/ui/UIElement.js.map +0 -1
- package/ui/UILayout.d.ts +0 -1
- package/ui/UILayout.js +0 -3
- package/ui/UILayout.js.map +0 -1
- package/ui/UIRenderer.d.ts +0 -2
- package/ui/UIRenderer.js +0 -3
- package/ui/UIRenderer.js.map +0 -1
- package/ui/UIView.d.ts +0 -2
- package/ui/UIView.js +0 -3
- package/ui/UIView.js.map +0 -1
- package/ui/elements/AccordionElement.d.ts +0 -28
- package/ui/elements/AccordionElement.js +0 -48
- package/ui/elements/AccordionElement.js.map +0 -1
- package/ui/elements/ButtonElement.d.ts +0 -25
- package/ui/elements/ButtonElement.js +0 -52
- package/ui/elements/ButtonElement.js.map +0 -1
- package/ui/elements/ButtonGroupElement.d.ts +0 -7
- package/ui/elements/ButtonGroupElement.js +0 -29
- package/ui/elements/ButtonGroupElement.js.map +0 -1
- package/ui/elements/GenericElement.d.ts +0 -1
- package/ui/elements/GenericElement.js +0 -3
- package/ui/elements/GenericElement.js.map +0 -1
- package/ui/elements/LabelElement.d.ts +0 -17
- package/ui/elements/LabelElement.js +0 -23
- package/ui/elements/LabelElement.js.map +0 -1
- package/ui/elements/NavigationMenuElement.d.ts +0 -34
- package/ui/elements/NavigationMenuElement.js +0 -88
- package/ui/elements/NavigationMenuElement.js.map +0 -1
- package/ui/elements/PanelElement.d.ts +0 -3
- package/ui/elements/PanelElement.js +0 -4
- package/ui/elements/PanelElement.js.map +0 -1
- package/ui/elements/PlaceholderElement.d.ts +0 -6
- package/ui/elements/PlaceholderElement.js +0 -11
- package/ui/elements/PlaceholderElement.js.map +0 -1
- package/ui/elements/SmallButtonElement.d.ts +0 -8
- package/ui/elements/SmallButtonElement.js +0 -24
- package/ui/elements/SmallButtonElement.js.map +0 -1
- package/ui/elements/TypographyElement.d.ts +0 -14
- package/ui/elements/TypographyElement.js +0 -23
- package/ui/elements/TypographyElement.js.map +0 -1
- package/ui/elements/ViewElement.d.ts +0 -1
- package/ui/elements/ViewElement.js +0 -3
- package/ui/elements/ViewElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -7
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -26
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -44
- package/ui/elements/form/DynamicFieldsetElement.js +0 -97
- package/ui/elements/form/DynamicFieldsetElement.js.map +0 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +0 -4
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +0 -10
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -8
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -47
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -14
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -73
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/styled.d.ts +0 -23
- package/ui/elements/form/FileManagerElement/styled.js +0 -108
- package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
- package/ui/elements/form/FileManagerElement.d.ts +0 -25
- package/ui/elements/form/FileManagerElement.js +0 -46
- package/ui/elements/form/FileManagerElement.js.map +0 -1
- package/ui/elements/form/FormElement.d.ts +0 -22
- package/ui/elements/form/FormElement.js +0 -20
- package/ui/elements/form/FormElement.js.map +0 -1
- package/ui/elements/form/FormFieldElement.d.ts +0 -57
- package/ui/elements/form/FormFieldElement.js +0 -113
- package/ui/elements/form/FormFieldElement.js.map +0 -1
- package/ui/elements/form/HiddenElement.d.ts +0 -7
- package/ui/elements/form/HiddenElement.js +0 -25
- package/ui/elements/form/HiddenElement.js.map +0 -1
- package/ui/elements/form/InputElement.d.ts +0 -8
- package/ui/elements/form/InputElement.js +0 -32
- package/ui/elements/form/InputElement.js.map +0 -1
- package/ui/elements/form/PasswordElement.d.ts +0 -6
- package/ui/elements/form/PasswordElement.js +0 -29
- package/ui/elements/form/PasswordElement.js.map +0 -1
- package/ui/elements/form/README.md +0 -2
- package/ui/elements/form/SelectElement.d.ts +0 -16
- package/ui/elements/form/SelectElement.js +0 -42
- package/ui/elements/form/SelectElement.js.map +0 -1
- package/ui/elements/form/TextareaElement.d.ts +0 -16
- package/ui/elements/form/TextareaElement.js +0 -34
- package/ui/elements/form/TextareaElement.js.map +0 -1
- package/ui/views/AdminView/ContentElement.d.ts +0 -4
- package/ui/views/AdminView/ContentElement.js +0 -37
- package/ui/views/AdminView/ContentElement.js.map +0 -1
- package/ui/views/AdminView/HeaderElement.d.ts +0 -13
- package/ui/views/AdminView/HeaderElement.js +0 -68
- package/ui/views/AdminView/HeaderElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -7
- package/ui/views/AdminView/HeaderSectionRightElement.js +0 -21
- package/ui/views/AdminView/HeaderSectionRightElement.js.map +0 -1
- package/ui/views/AdminView/components/Dialog.d.ts +0 -2
- package/ui/views/AdminView/components/Dialog.js +0 -41
- package/ui/views/AdminView/components/Dialog.js.map +0 -1
- package/ui/views/AdminView/components/Hamburger.d.ts +0 -3
- package/ui/views/AdminView/components/Hamburger.js +0 -23
- package/ui/views/AdminView/components/Hamburger.js.map +0 -1
- package/ui/views/FormView/FormContainerElement.d.ts +0 -13
- package/ui/views/FormView/FormContainerElement.js +0 -19
- package/ui/views/FormView/FormContainerElement.js.map +0 -1
- package/ui/views/FormView/FormContentElement.d.ts +0 -6
- package/ui/views/FormView/FormContentElement.js +0 -10
- package/ui/views/FormView/FormContentElement.js.map +0 -1
- package/ui/views/FormView/FormFooterElement.d.ts +0 -7
- package/ui/views/FormView/FormFooterElement.js +0 -14
- package/ui/views/FormView/FormFooterElement.js.map +0 -1
- package/ui/views/FormView/FormHeaderElement.d.ts +0 -15
- package/ui/views/FormView/FormHeaderElement.js +0 -30
- package/ui/views/FormView/FormHeaderElement.js.map +0 -1
- package/ui/views/FormView.d.ts +0 -40
- package/ui/views/FormView.js +0 -121
- package/ui/views/FormView.js.map +0 -1
- package/ui/views/OverlayView/ContentElement.d.ts +0 -7
- package/ui/views/OverlayView/ContentElement.js +0 -29
- package/ui/views/OverlayView/ContentElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderElement.d.ts +0 -25
- package/ui/views/OverlayView/HeaderElement.js +0 -72
- package/ui/views/OverlayView/HeaderElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -15
- package/ui/views/OverlayView/HeaderTitleElement.js +0 -25
- package/ui/views/OverlayView/HeaderTitleElement.js.map +0 -1
- package/ui/views/OverlayView/useOverlayView.d.ts +0 -5
- package/ui/views/OverlayView/useOverlayView.js +0 -34
- package/ui/views/OverlayView/useOverlayView.js.map +0 -1
- package/ui/views/OverlayView.d.ts +0 -30
- package/ui/views/OverlayView.js +0 -109
- package/ui/views/OverlayView.js.map +0 -1
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -12
- package/ui/views/SplitView/SplitViewPanelElement.js +0 -32
- package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
- package/ui/views/SplitView.d.ts +0 -21
- package/ui/views/SplitView.js +0 -86
- package/ui/views/SplitView.js.map +0 -1
- /package/base/Base/Tenant/{wby-logo.svg → wby-square.svg} +0 -0
- /package/{components/RichTextEditor/tools/image → features/security/AuthenticationContext}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useCallback","hasAction","entity","name","actions","some","a","resolveFullAccess","schema","prefix","fullAccess","resolveReadOnlyAccess","readOnlyAccess","undefined","rwd","deserializePermissions","value","Array","isArray","accessLevel","p","fullAccessName","hasFullAccess","ownPermissions","filter","startsWith","length","data","entities","perm","find","permission","own","id","action","pw","split","serializePermissions","formData","currentValue","filtered","readOnlyPermissions","entityMap","Map","set","resolvedScopes","scope","resolvedScope","dependsOn","parentScope","get","has","delete","parentEntity","parentRwd","includes","requires","permissions","join","push","usePermissionForm","options","onChange","deserialize","extra","onFormChange","result","serialize","nonSchemaPermissions"],"sources":["usePermissionForm.ts"],"sourcesContent":["import { useMemo, useCallback } from \"react\";\nimport type {\n Permission,\n PermissionSchema,\n EntityDefinition,\n UsePermissionFormOptions,\n UsePermissionFormResult\n} from \"./types.js\";\n\nfunction hasAction(entity: EntityDefinition, name: string): boolean {\n return entity.actions?.some(a => a.name === name) ?? false;\n}\n\n/** Resolve fullAccess config into a concrete Permission object. */\nfunction resolveFullAccess(schema: PermissionSchema): Permission {\n const name = `${schema.prefix}.*`;\n if (schema.fullAccess === true) {\n return { name };\n }\n return { name, ...schema.fullAccess };\n}\n\n/** Resolve readOnlyAccess config into a concrete Permission[]. */\nfunction resolveReadOnlyAccess(schema: PermissionSchema): Permission[] | undefined {\n if (!schema.readOnlyAccess) {\n return undefined;\n }\n if (schema.readOnlyAccess === true) {\n return [{ name: `${schema.prefix}.*`, rwd: \"r\" }];\n }\n return schema.readOnlyAccess;\n}\n\n/**\n * Deserialize Permission[] into form data based on the schema.\n */\nfunction deserializePermissions(\n schema: PermissionSchema,\n value: Permission[]\n): Record<string, any> {\n if (!Array.isArray(value)) {\n return { accessLevel: \"no\" };\n }\n\n // Check for read-only access by looking for the synthetic marker permission.\n if (value.some(p => p.name === `$${schema.prefix}.readonly`)) {\n return { accessLevel: \"read-only\" };\n }\n\n // Check for full access: either wildcard or the schema's fullAccess permission.\n const fullAccessName = `${schema.prefix}.*`;\n const hasFullAccess = value.some(p => p.name === \"*\" || p.name === fullAccessName);\n if (hasFullAccess) {\n return { accessLevel: \"full\" };\n }\n\n // Filter permissions that belong to this schema's prefix.\n const ownPermissions = value.filter(p => p.name.startsWith(schema.prefix));\n if (ownPermissions.length === 0) {\n return { accessLevel: \"no\" };\n }\n\n // Custom access level — extract per-entity form fields.\n const data: Record<string, any> = { accessLevel: \"custom\" };\n const entities = schema.entities || [];\n\n for (const entity of entities) {\n const perm = ownPermissions.find(p => p.name === entity.permission);\n if (!perm) {\n continue;\n }\n\n // Access scope: \"own\" if perm.own === true, else \"full\".\n if (perm.own === true) {\n data[`${entity.id}AccessScope`] = \"own\";\n } else {\n data[`${entity.id}AccessScope`] = \"full\";\n }\n\n // Process actions.\n for (const action of entity.actions ?? []) {\n if (action.name === \"rwd\") {\n data[`${entity.id}RWD`] = perm.rwd || \"r\";\n } else if (action.name === \"pw\") {\n data[`${entity.id}PW`] = perm.pw ? perm.pw.split(\"\") : [];\n } else {\n // Custom boolean action.\n data[`${entity.id}Action_${action.name}`] = perm[action.name] === true;\n }\n }\n }\n\n return data;\n}\n\n/**\n * Serialize form data into Permission[] based on the schema.\n */\nfunction serializePermissions(\n schema: PermissionSchema,\n formData: Record<string, any>,\n currentValue: Permission[]\n): Permission[] {\n // Start by filtering out all permissions belonging to this schema's prefix.\n const filtered = Array.isArray(currentValue)\n ? currentValue.filter(\n p => !p.name.startsWith(schema.prefix) && !p.name.startsWith(`$${schema.prefix}`)\n )\n : [];\n\n if (formData.accessLevel === \"no\" || !formData.accessLevel) {\n return filtered;\n }\n\n if (formData.accessLevel === \"full\") {\n return [...filtered, resolveFullAccess(schema)];\n }\n\n const readOnlyPermissions = resolveReadOnlyAccess(schema);\n if (formData.accessLevel === \"read-only\" && readOnlyPermissions) {\n return [...filtered, { name: `$${schema.prefix}.readonly` }, ...readOnlyPermissions];\n }\n\n const entities = schema.entities || [];\n\n // Custom access — build entity permissions.\n // First, build a map of entity definitions by ID for dependency lookups.\n const entityMap = new Map<string, EntityDefinition>();\n for (const entity of entities) {\n entityMap.set(entity.id, entity);\n }\n\n // Resolve cascading \"own\" scopes: if a parent is \"own\", children must be \"own\" too.\n const resolvedScopes = new Map<string, string>();\n for (const entity of entities) {\n const scope = formData[`${entity.id}AccessScope`];\n if (!scope || scope === \"no\") {\n continue;\n }\n\n let resolvedScope = scope;\n\n // If this entity depends on a parent and the parent scope is \"own\",\n // force this entity's scope to \"own\" as well.\n if (entity.dependsOn) {\n const parentScope = resolvedScopes.get(entity.dependsOn.entity);\n if (parentScope === \"own\") {\n resolvedScope = \"own\";\n }\n }\n\n resolvedScopes.set(entity.id, resolvedScope);\n }\n\n // Prune resolved scopes based on dependencies (must run before building permissions\n // so that transitive dependencies are properly pruned).\n for (const entity of entities) {\n if (!entity.dependsOn || !resolvedScopes.has(entity.id)) {\n continue;\n }\n\n const parentScope = resolvedScopes.get(entity.dependsOn.entity);\n if (!parentScope) {\n // Parent entity is not enabled — prune child.\n resolvedScopes.delete(entity.id);\n continue;\n }\n\n const parentEntity = entityMap.get(entity.dependsOn.entity);\n if (parentEntity && hasAction(parentEntity, \"rwd\")) {\n const parentRwd =\n parentScope === \"own\" ? \"rwd\" : formData[`${entity.dependsOn.entity}RWD`] || \"r\";\n if (!parentRwd.includes(entity.dependsOn.requires)) {\n // Parent doesn't have the required action — prune child.\n resolvedScopes.delete(entity.id);\n }\n }\n }\n\n // Build permissions from the pruned resolved scopes.\n const permissions: Permission[] = [];\n\n for (const entity of entities) {\n const scope = resolvedScopes.get(entity.id);\n if (!scope) {\n continue;\n }\n\n const perm: Permission = {\n name: entity.permission\n };\n\n if (scope === \"own\") {\n perm.own = true;\n if (hasAction(entity, \"rwd\")) {\n perm.rwd = \"rwd\";\n }\n } else if (hasAction(entity, \"rwd\")) {\n perm.rwd = formData[`${entity.id}RWD`] || \"r\";\n }\n\n // Process non-rwd actions.\n for (const action of entity.actions ?? []) {\n if (action.name === \"rwd\") {\n continue; // Already handled above.\n }\n\n if (action.name === \"pw\") {\n const pw: string[] = formData[`${entity.id}PW`] || [];\n if (pw.length > 0) {\n perm.pw = pw.join(\"\");\n }\n } else {\n // Custom boolean action.\n if (formData[`${entity.id}Action_${action.name}`]) {\n perm[action.name] = true;\n }\n }\n }\n\n permissions.push(perm);\n }\n\n return [...filtered, ...permissions];\n}\n\n/**\n * Hook that bridges a permission schema with a Form component.\n *\n * Handles bidirectional transformation between Permission[] and form data,\n * with optional custom serialize/deserialize callbacks for app-specific needs.\n */\nexport function usePermissionForm(\n schema: PermissionSchema,\n options: UsePermissionFormOptions\n): UsePermissionFormResult {\n const { value, onChange } = options;\n\n const formData = useMemo(() => {\n let data = deserializePermissions(schema, value);\n\n // Merge custom deserialized data if provided.\n if (options.deserialize) {\n const extra = options.deserialize(Array.isArray(value) ? value : []);\n data = { ...data, ...extra };\n }\n\n return data;\n }, []);\n\n const onFormChange = useCallback(\n (data: Record<string, any>) => {\n let result = serializePermissions(schema, data, value);\n\n // Apply custom serializer if provided.\n if (options.serialize) {\n result = options.serialize(\n data,\n result.filter(p => p.name.startsWith(schema.prefix))\n );\n // Re-add non-schema permissions that were filtered out.\n const nonSchemaPermissions = Array.isArray(value)\n ? value.filter(\n p =>\n !p.name.startsWith(schema.prefix) &&\n !p.name.startsWith(`$${schema.prefix}`)\n )\n : [];\n result = [...nonSchemaPermissions, ...result];\n }\n\n onChange(result);\n },\n [value]\n );\n\n return { formData, onFormChange };\n}\n\n// Export the pure functions for unit testing.\nexport { deserializePermissions, serializePermissions };\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAS5C,SAASC,SAASA,CAACC,MAAwB,EAAEC,IAAY,EAAW;EAChE,OAAOD,MAAM,CAACE,OAAO,EAAEC,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACH,IAAI,KAAKA,IAAI,CAAC,IAAI,KAAK;AAC9D;;AAEA;AACA,SAASI,iBAAiBA,CAACC,MAAwB,EAAc;EAC7D,MAAML,IAAI,GAAG,GAAGK,MAAM,CAACC,MAAM,IAAI;EACjC,IAAID,MAAM,CAACE,UAAU,KAAK,IAAI,EAAE;IAC5B,OAAO;MAAEP;IAAK,CAAC;EACnB;EACA,OAAO;IAAEA,IAAI;IAAE,GAAGK,MAAM,CAACE;EAAW,CAAC;AACzC;;AAEA;AACA,SAASC,qBAAqBA,CAACH,MAAwB,EAA4B;EAC/E,IAAI,CAACA,MAAM,CAACI,cAAc,EAAE;IACxB,OAAOC,SAAS;EACpB;EACA,IAAIL,MAAM,CAACI,cAAc,KAAK,IAAI,EAAE;IAChC,OAAO,CAAC;MAAET,IAAI,EAAE,GAAGK,MAAM,CAACC,MAAM,IAAI;MAAEK,GAAG,EAAE;IAAI,CAAC,CAAC;EACrD;EACA,OAAON,MAAM,CAACI,cAAc;AAChC;;AAEA;AACA;AACA;AACA,SAASG,sBAAsBA,CAC3BP,MAAwB,EACxBQ,KAAmB,EACA;EACnB,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACvB,OAAO;MAAEG,WAAW,EAAE;IAAK,CAAC;EAChC;;EAEA;EACA,IAAI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 @@
|
|
|
1
|
+
import { useIdentity } from "../presentation/security/hooks/useIdentity.js";
|
|
2
|
+
// Module-level cache: schema -> identityId -> result.
|
|
3
|
+
const cache = new WeakMap();
|
|
4
|
+
function buildEntityMap(schema) {
|
|
5
|
+
const map = new Map();
|
|
6
|
+
for (const entity of schema.entities ?? []) {
|
|
7
|
+
const actions = new Set();
|
|
8
|
+
for (const action of entity.actions ?? []) {
|
|
9
|
+
actions.add(action.name);
|
|
10
|
+
}
|
|
11
|
+
map.set(entity.id, {
|
|
12
|
+
permission: entity.permission,
|
|
13
|
+
actions,
|
|
14
|
+
hasOwn: entity.scopes.includes("own")
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return map;
|
|
18
|
+
}
|
|
19
|
+
function getEntity(entityMap, entityId) {
|
|
20
|
+
const entity = entityMap.get(entityId);
|
|
21
|
+
if (!entity) {
|
|
22
|
+
throw new Error(`Unknown entity "${entityId}" in permission schema.`);
|
|
23
|
+
}
|
|
24
|
+
return entity;
|
|
25
|
+
}
|
|
26
|
+
function buildResult(schema, identity) {
|
|
27
|
+
const fullAccessName = `${schema.prefix}.*`;
|
|
28
|
+
const hasFullAccess = !!identity.getPermission(fullAccessName);
|
|
29
|
+
const entityMap = buildEntityMap(schema);
|
|
30
|
+
const canAccess = entityId => {
|
|
31
|
+
if (hasFullAccess) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
const entity = getEntity(entityMap, entityId);
|
|
35
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
36
|
+
return permissions.length > 0;
|
|
37
|
+
};
|
|
38
|
+
const canRead = entityId => {
|
|
39
|
+
if (hasFullAccess) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
const entity = getEntity(entityMap, entityId);
|
|
43
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
44
|
+
if (!permissions.length) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return permissions.some(permission => {
|
|
48
|
+
if (typeof permission.rwd !== "string") {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
return permission.rwd.includes("r");
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const canCreate = entityId => {
|
|
55
|
+
if (hasFullAccess) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
const entity = getEntity(entityMap, entityId);
|
|
59
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
60
|
+
if (!permissions.length) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return permissions.some(permission => {
|
|
64
|
+
if (typeof permission.rwd !== "string") {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
return permission.rwd.includes("w");
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const canEdit = (entityId, item) => {
|
|
71
|
+
if (hasFullAccess) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
const entity = getEntity(entityMap, entityId);
|
|
75
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
76
|
+
if (!permissions.length) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return permissions.some(permission => {
|
|
80
|
+
if (permission.own) {
|
|
81
|
+
if (!item?.createdBy) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
return item.createdBy.id === identity.id;
|
|
85
|
+
}
|
|
86
|
+
if (typeof permission.rwd !== "string") {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return permission.rwd.includes("w");
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
const canDelete = (entityId, item) => {
|
|
93
|
+
if (hasFullAccess) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
const entity = getEntity(entityMap, entityId);
|
|
97
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
98
|
+
if (!permissions.length) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return permissions.some(permission => {
|
|
102
|
+
if (permission.own) {
|
|
103
|
+
return item?.createdBy?.id === identity.id;
|
|
104
|
+
}
|
|
105
|
+
if (typeof permission.rwd !== "string") {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
return permission.rwd.includes("d");
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
const canPublish = entityId => {
|
|
112
|
+
if (hasFullAccess) {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
const entity = getEntity(entityMap, entityId);
|
|
116
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
117
|
+
if (!permissions.length) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
return permissions.some(permission => {
|
|
121
|
+
return permission.pw?.includes("p");
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
const canUnpublish = entityId => {
|
|
125
|
+
if (hasFullAccess) {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
const entity = getEntity(entityMap, entityId);
|
|
129
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
130
|
+
if (!permissions.length) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
return permissions.some(permission => {
|
|
134
|
+
return permission.pw?.includes("u");
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
const canAction = (action, entityId) => {
|
|
138
|
+
if (hasFullAccess) {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
const entity = getEntity(entityMap, entityId);
|
|
142
|
+
const permissions = identity.getPermissions(entity.permission);
|
|
143
|
+
if (!permissions.length) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
return permissions.some(permission => {
|
|
147
|
+
return permission[action] === true;
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
canAccess,
|
|
152
|
+
canRead,
|
|
153
|
+
canCreate,
|
|
154
|
+
canEdit,
|
|
155
|
+
canDelete,
|
|
156
|
+
canPublish,
|
|
157
|
+
canUnpublish,
|
|
158
|
+
canAction
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
export function createUsePermissions(schema) {
|
|
162
|
+
return function usePermissions() {
|
|
163
|
+
const {
|
|
164
|
+
identity
|
|
165
|
+
} = useIdentity();
|
|
166
|
+
let byIdentityId = cache.get(schema);
|
|
167
|
+
if (!byIdentityId) {
|
|
168
|
+
byIdentityId = new Map();
|
|
169
|
+
cache.set(schema, byIdentityId);
|
|
170
|
+
}
|
|
171
|
+
let result = byIdentityId.get(identity.id);
|
|
172
|
+
if (!result) {
|
|
173
|
+
result = buildResult(schema, identity);
|
|
174
|
+
byIdentityId.set(identity.id, result);
|
|
175
|
+
}
|
|
176
|
+
return result;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
//# sourceMappingURL=usePermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useIdentity","cache","WeakMap","buildEntityMap","schema","map","Map","entity","entities","actions","Set","action","add","name","set","id","permission","hasOwn","scopes","includes","getEntity","entityMap","entityId","get","Error","buildResult","identity","fullAccessName","prefix","hasFullAccess","getPermission","canAccess","permissions","getPermissions","length","canRead","some","rwd","canCreate","canEdit","item","own","createdBy","canDelete","canPublish","pw","canUnpublish","canAction","createUsePermissions","usePermissions","byIdentityId","result"],"sources":["usePermissions.ts"],"sourcesContent":["import { useIdentity } from \"~/presentation/security/hooks/useIdentity.js\";\nimport type { Identity } from \"~/domain/Identity.js\";\nimport type { PermissionSchemaConfig } from \"./types.js\";\nimport type { OwnableItem } from \"./types.js\";\nimport type { UsePermissionsResult } from \"./types.js\";\n\ninterface EntityLookup {\n permission: string;\n actions: Set<string>;\n hasOwn: boolean;\n}\n\n// Module-level cache: schema -> identityId -> result.\nconst cache = new WeakMap<PermissionSchemaConfig, Map<string, UsePermissionsResult<any>>>();\n\nfunction buildEntityMap(schema: PermissionSchemaConfig): Map<string, EntityLookup> {\n const map = new Map<string, EntityLookup>();\n for (const entity of schema.entities ?? []) {\n const actions = new Set<string>();\n for (const action of entity.actions ?? []) {\n actions.add(action.name);\n }\n map.set(entity.id, {\n permission: entity.permission,\n actions,\n hasOwn: entity.scopes.includes(\"own\")\n });\n }\n return map;\n}\n\nfunction getEntity(entityMap: Map<string, EntityLookup>, entityId: string): EntityLookup {\n const entity = entityMap.get(entityId);\n if (!entity) {\n throw new Error(`Unknown entity \"${entityId}\" in permission schema.`);\n }\n return entity;\n}\n\nfunction buildResult<S extends PermissionSchemaConfig>(\n schema: S,\n identity: Identity\n): UsePermissionsResult<S> {\n const fullAccessName = `${schema.prefix}.*`;\n const hasFullAccess = !!identity.getPermission(fullAccessName);\n const entityMap = buildEntityMap(schema);\n\n const canAccess = (entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n return permissions.length > 0;\n };\n\n const canRead = (entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n if (typeof permission.rwd !== \"string\") {\n return true;\n }\n return permission.rwd.includes(\"r\");\n });\n };\n\n const canCreate = (entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n if (typeof permission.rwd !== \"string\") {\n return true;\n }\n return permission.rwd.includes(\"w\");\n });\n };\n\n const canEdit = (entityId: string, item?: OwnableItem): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n if (permission.own) {\n if (!item?.createdBy) {\n return true;\n }\n return item.createdBy.id === identity.id;\n }\n if (typeof permission.rwd !== \"string\") {\n return true;\n }\n return permission.rwd.includes(\"w\");\n });\n };\n\n const canDelete = (entityId: string, item?: OwnableItem): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n if (permission.own) {\n return item?.createdBy?.id === identity.id;\n }\n if (typeof permission.rwd !== \"string\") {\n return true;\n }\n return permission.rwd.includes(\"d\");\n });\n };\n\n const canPublish = (entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n return permission.pw?.includes(\"p\");\n });\n };\n\n const canUnpublish = (entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n return permission.pw?.includes(\"u\");\n });\n };\n\n const canAction = (action: string, entityId: string): boolean => {\n if (hasFullAccess) {\n return true;\n }\n const entity = getEntity(entityMap, entityId);\n const permissions = identity.getPermissions(entity.permission);\n if (!permissions.length) {\n return false;\n }\n return permissions.some(permission => {\n return permission[action] === true;\n });\n };\n\n return {\n canAccess,\n canRead,\n canCreate,\n canEdit,\n canDelete,\n canPublish,\n canUnpublish,\n canAction\n } as UsePermissionsResult<S>;\n}\n\nexport function createUsePermissions<const S extends PermissionSchemaConfig>(\n schema: S\n): () => UsePermissionsResult<S> {\n return function usePermissions(): UsePermissionsResult<S> {\n const { identity } = useIdentity();\n\n let byIdentityId = cache.get(schema);\n if (!byIdentityId) {\n byIdentityId = new Map();\n cache.set(schema, byIdentityId);\n }\n\n let result = byIdentityId.get(identity.id) as UsePermissionsResult<S> | undefined;\n if (!result) {\n result = buildResult(schema, identity);\n byIdentityId.set(identity.id, result as UsePermissionsResult<any>);\n }\n\n return result;\n };\n}\n"],"mappings":"AAAA,SAASA,WAAW;AAYpB;AACA,MAAMC,KAA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AC1B,MAAM,CAACS,UAAU,CAAC;IAC9D,IAAI,CAACgB,WAAW,CAACE,MAAM,EAAE;MACrB,OAAO,KAAK;IAChB;IACA,OAAOF,WAAW,CAACI,IAAI,CAACpB,UAAU,IAAI;MAClC,OAAOA,UAAU,CAACL,MAAM,CAAC,KAAK,IAAI;IACtC,CAAC,CAAC;EACN,CAAC;EAED,OAAO;IACHoB,SAAS;IACTI,OAAO;IACPG,SAAS;IACTC,OAAO;IACPI,SAAS;IACTC,UAAU;IACVE,YAAY;IACZC;EACJ,CAAC;AACL;AAEA,OAAO,SAASC,oBAAoBA,CAChC5C,MAAS,EACoB;EAC7B,OAAO,SAAS6C,cAAcA,CAAA,EAA4B;IACtD,MAAM;MAAEvB;IAAS,CAAC,GAAG1B,WAAW,CAAC,CAAC;IAElC,IAAIkD,YAAY,GAAGjD,KAAK,CAACsB,GAAG,CAACnB,MAAM,CAAC;IACpC,IAAI,CAAC8C,YAAY,EAAE;MACfA,YAAY,GAAG,IAAI5C,GAAG,CAAC,CAAC;MACxBL,KAAK,CAACa,GAAG,CAACV,MAAM,EAAE8C,YAAY,CAAC;IACnC;IAEA,IAAIC,MAAM,GAAGD,YAAY,CAAC3B,GAAG,CAACG,QAAQ,CAACX,EAAE,CAAwC;IACjF,IAAI,CAACoC,MAAM,EAAE;MACTA,MAAM,GAAG1B,WAAW,CAACrB,MAAM,EAAEsB,QAAQ,CAAC;MACtCwB,YAAY,CAACpC,GAAG,CAACY,QAAQ,CAACX,EAAE,EAAEoC,MAAmC,CAAC;IACtE;IAEA,OAAOA,MAAM;EACjB,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { useFeature } from "@webiny/app";
|
|
4
|
+
import { OverlayLoader, ProgressItemState, SteppedProgress, Text } from "@webiny/admin-ui";
|
|
5
|
+
import { SystemInstallerFeature } from "../../presenters/SystemInstaller/feature.js";
|
|
6
|
+
import { LoginScreen } from "../../../../base/ui/LoginScreen.js";
|
|
7
|
+
import { Tags } from "../../../../base/ui/Tags.js";
|
|
8
|
+
import { Logo } from "../../../../base/ui/Logo.js";
|
|
9
|
+
import { IntroductionStep } from "./steps/IntroductionStep.js";
|
|
10
|
+
import { BasicInfoStep } from "./steps/BasicInfoStep.js";
|
|
11
|
+
import { AdminUserStep } from "./steps/AdminUserStep.js";
|
|
12
|
+
import { FinishSetupStep } from "./steps/FinishSetup.js";
|
|
13
|
+
const stateMap = {
|
|
14
|
+
idle: ProgressItemState.IDLE,
|
|
15
|
+
current: ProgressItemState.IN_PROGRESS,
|
|
16
|
+
completed: ProgressItemState.COMPLETED_AFFIRMATIVE
|
|
17
|
+
};
|
|
18
|
+
export const SystemInstaller = observer(({
|
|
19
|
+
children
|
|
20
|
+
}) => {
|
|
21
|
+
const {
|
|
22
|
+
presenter
|
|
23
|
+
} = useFeature(SystemInstallerFeature);
|
|
24
|
+
const vm = presenter.vm;
|
|
25
|
+
if (vm.loading) {
|
|
26
|
+
return /*#__PURE__*/React.createElement(OverlayLoader, {
|
|
27
|
+
text: "Preparing system..."
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (vm.startUsing) {
|
|
31
|
+
return /*#__PURE__*/React.createElement(LoginScreen, null, children);
|
|
32
|
+
}
|
|
33
|
+
return /*#__PURE__*/React.createElement(Tags, {
|
|
34
|
+
tags: {
|
|
35
|
+
installer: true
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "bg-neutral-light h-screen w-[312px] p-xl"
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "w-[240px] p-"
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "mb-lg"
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Logo, null)), /*#__PURE__*/React.createElement(Text, {
|
|
44
|
+
as: "div",
|
|
45
|
+
size: "md",
|
|
46
|
+
className: "text-neutral-strong mb-lg"
|
|
47
|
+
}, "Follow these steps to create your very first Webiny project:"), /*#__PURE__*/React.createElement(SteppedProgress, {
|
|
48
|
+
items: vm.steps.map(step => ({
|
|
49
|
+
id: step.name,
|
|
50
|
+
label: step.label,
|
|
51
|
+
state: stateMap[step.state]
|
|
52
|
+
}))
|
|
53
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "flex h-screen w-full justify-center"
|
|
55
|
+
}, vm.currentStep === "introduction" ? /*#__PURE__*/React.createElement(IntroductionStep, {
|
|
56
|
+
nextStep: presenter.nextStep
|
|
57
|
+
}) : null, vm.currentStep === "basic-info" ? /*#__PURE__*/React.createElement(BasicInfoStep, {
|
|
58
|
+
nextStep: presenter.nextStep
|
|
59
|
+
}) : null, vm.currentStep === "admin-account" ? /*#__PURE__*/React.createElement(AdminUserStep, {
|
|
60
|
+
nextStep: presenter.nextStep
|
|
61
|
+
}) : null, vm.currentStep === "finish" ? /*#__PURE__*/React.createElement(FinishSetupStep, {
|
|
62
|
+
error: vm.error,
|
|
63
|
+
installing: vm.installing,
|
|
64
|
+
isInstalled: vm.isInstalled,
|
|
65
|
+
finishInstallation: presenter.finishInstallation,
|
|
66
|
+
installSystem: presenter.installSystem
|
|
67
|
+
}) : null));
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=SystemInstaller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","observer","useFeature","OverlayLoader","ProgressItemState","SteppedProgress","Text","SystemInstallerFeature","LoginScreen","Tags","Logo","IntroductionStep","BasicInfoStep","AdminUserStep","FinishSetupStep","stateMap","idle","IDLE","current","IN_PROGRESS","completed","COMPLETED_AFFIRMATIVE","SystemInstaller","children","presenter","vm","loading","createElement","text","startUsing","tags","installer","className","as","size","items","steps","map","step","id","name","label","state","currentStep","nextStep","error","installing","isInstalled","finishInstallation","installSystem"],"sources":["SystemInstaller.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { useFeature } from \"@webiny/app\";\nimport { OverlayLoader, ProgressItemState, SteppedProgress, Text } from \"@webiny/admin-ui\";\nimport { SystemInstallerFeature } from \"~/presentation/installation/presenters/SystemInstaller/feature.js\";\nimport { LoginScreen } from \"~/base/ui/LoginScreen.js\";\nimport { Tags } from \"~/base/ui/Tags.js\";\nimport { Logo } from \"~/base/ui/Logo.js\";\nimport { IntroductionStep } from \"./steps/IntroductionStep.js\";\nimport { BasicInfoStep } from \"./steps/BasicInfoStep.js\";\nimport { AdminUserStep } from \"./steps/AdminUserStep.js\";\nimport { FinishSetupStep } from \"~/presentation/installation/components/SystemInstaller/steps/FinishSetup.js\";\n\ninterface SystemInstallerProps {\n children: React.ReactNode;\n}\n\nconst stateMap = {\n idle: ProgressItemState.IDLE,\n current: ProgressItemState.IN_PROGRESS,\n completed: ProgressItemState.COMPLETED_AFFIRMATIVE\n};\n\nexport const SystemInstaller = observer(({ children }: SystemInstallerProps) => {\n const { presenter } = useFeature(SystemInstallerFeature);\n\n const vm = presenter.vm;\n\n if (vm.loading) {\n return <OverlayLoader text={\"Preparing system...\"} />;\n }\n\n if (vm.startUsing) {\n return <LoginScreen>{children}</LoginScreen>;\n }\n\n return (\n <Tags tags={{ installer: true }}>\n <div className={\"bg-neutral-light h-screen w-[312px] p-xl\"}>\n <div className={\"w-[240px] p-\"}>\n <div className={\"mb-lg\"}>\n <Logo />\n </div>\n <Text as=\"div\" size={\"md\"} className={\"text-neutral-strong mb-lg\"}>\n Follow these steps to create your very first Webiny project:\n </Text>\n <SteppedProgress\n items={vm.steps.map(step => ({\n id: step.name,\n label: step.label,\n state: stateMap[step.state]\n }))}\n />\n </div>\n </div>\n <div className={\"flex h-screen w-full justify-center\"}>\n {vm.currentStep === \"introduction\" ? (\n <IntroductionStep nextStep={presenter.nextStep} />\n ) : null}\n {vm.currentStep === \"basic-info\" ? (\n <BasicInfoStep nextStep={presenter.nextStep} />\n ) : null}\n {vm.currentStep === \"admin-account\" ? (\n <AdminUserStep nextStep={presenter.nextStep} />\n ) : null}\n {vm.currentStep === \"finish\" ? (\n <FinishSetupStep\n error={vm.error}\n installing={vm.installing}\n isInstalled={vm.isInstalled}\n finishInstallation={presenter.finishInstallation}\n installSystem={presenter.installSystem}\n />\n ) : null}\n </div>\n </Tags>\n );\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,aAAa,EAAEC,iBAAiB,EAAEC,eAAe,EAAEC,IAAI,QAAQ,kBAAkB;AAC1F,SAASC,sBAAsB;AAC/B,SAASC,WAAW;AACpB,SAASC,IAAI;AACb,SAASC,IAAI;AACb,SAASC,gBAAgB;AACzB,SAASC,aAAa;AACtB,SAASC,aAAa;AACtB,SAASC,eAAe;AAMxB,MAAMC,QAAQ,GAAG;EACbC,IAAI,EAAEZ,iBAAiB,CAACa,IAAI;EAC5BC,OAAO,EAAEd,iBAAiB,CAACe,WAAW;EACtCC,SAAS,EAAEhB,iBAAiB,CAACiB;AACjC,CAAC;AAED,OAAO,MAAMC,eAAe,GAAGrB,QAAQ,CAAC,CAAC;EAAEsB;AAA+B,CAAC,KAAK;EAC5E,MAAM;IAAEC;EAAU,CAAC,GAAGtB,UAAU,CAACK,sBAAsB,CAAC;EAExD,MAAMkB,EAAE,GAAGD,SAAS,CAACC,EAAE;EAEvB,IAAIA,EAAE,CAACC,OAAO,EAAE;IACZ,oBAAO1B,KAAA,CAAA2B,aAAA,CAACxB,aAAa;MAACyB,IAAI,EAAE;IAAsB,CAAE,CAAC;EACzD;EAEA,IAAIH,EAAE,CAACI,UAAU,EAAE;IACf,oBAAO7B,KAAA,CAAA2B,aAAA,CAACnB,WAAW,QAAEe,QAAsB,CAAC;EAChD;EAEA,oBACIvB,KAAA,CAAA2B,aAAA,CAAClB,IAAI;IAACqB,IAAI,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Q,gBACxB3C,KAAA,CAAA2B,aAAA,CAACb,eAAe;IACZ+B,KAAK,EAAEpB,EAAE,CAACoB,KAAM;IAChBC,UAAU,EAAErB,EAAE,CAACqB,UAAW;IAC1BC,WAAW,EAAEtB,EAAE,CAACsB,WAAY;IAC5BC,kBAAkB,EAAExB,SAAS,CAACwB,kBAAmB;IACjDC,aAAa,EAAEzB,SAAS,CAACyB;EAAc,CAC1C,CAAC,GACF,IACH,CACH,CAAC;AAEf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createProvider, Provider } from "../../../../index.js";
|
|
3
|
+
import { SystemInstaller } from "./SystemInstaller.js";
|
|
4
|
+
const SystemInstallerHoc = createProvider(Original => {
|
|
5
|
+
return function SystemInstallerProvider({
|
|
6
|
+
children
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/React.createElement(SystemInstaller, null, /*#__PURE__*/React.createElement(Original, null, children));
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
export const SystemInstallerProvider = () => {
|
|
12
|
+
return /*#__PURE__*/React.createElement(Provider, {
|
|
13
|
+
hoc: SystemInstallerHoc
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=SystemInstallerProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createProvider","Provider","SystemInstaller","SystemInstallerHoc","Original","SystemInstallerProvider","children","createElement","hoc"],"sources":["SystemInstallerProvider.tsx"],"sourcesContent":["import React from \"react\";\nimport { createProvider, Provider } from \"~/index.js\";\nimport { SystemInstaller } from \"./SystemInstaller.js\";\n\nconst SystemInstallerHoc = createProvider(Original => {\n return function SystemInstallerProvider({ children }) {\n return (\n <SystemInstaller>\n <Original>{children}</Original>\n </SystemInstaller>\n );\n };\n});\n\nexport const SystemInstallerProvider = () => {\n return <Provider hoc={SystemInstallerHoc} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,EAAEC,QAAQ;AACjC,SAASC,eAAe;AAExB,MAAMC,kBAAkB,GAAGH,cAAc,CAACI,QAAQ,IAAI;EAClD,OAAO,SAASC,uBAAuBA,CAAC;IAAEC;EAAS,CAAC,EAAE;IAClD,oBACIP,KAAA,CAAAQ,aAAA,CAACL,eAAe,qBACZH,KAAA,CAAAQ,aAAA,CAACH,QAAQ,QAAEE,QAAmB,CACjB,CAAC;EAE1B,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,MAAMD,uBAAuB,GAAGA,CAAA,KAAM;EACzC,oBAAON,KAAA,CAAAQ,aAAA,CAACN,QAAQ;IAACO,GAAG,EAAEL;EAAmB,CAAE,CAAC;AAChD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SystemInstallerProvider } from "./SystemInstallerProvider.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SystemInstallerProvider"],"sources":["index.ts"],"sourcesContent":["export { SystemInstallerProvider } from \"./SystemInstallerProvider.js\";\n"],"mappings":"AAAA,SAASA,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface PasswordPolicy {
|
|
2
|
+
minimumLength?: number;
|
|
3
|
+
requireLowercase?: boolean;
|
|
4
|
+
requireNumbers?: boolean;
|
|
5
|
+
requireSymbols?: boolean;
|
|
6
|
+
requireUppercase?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const createPasswordValidator: (policy: PasswordPolicy) => (value?: string) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ValidationError } from "@webiny/validation";
|
|
2
|
+
export const createPasswordValidator = policy => value => {
|
|
3
|
+
if (!value) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TODO @ts-refactor
|
|
8
|
+
* @pavel expl
|
|
9
|
+
*/
|
|
10
|
+
value = value + "";
|
|
11
|
+
const requireSymbols = /([=+\-^$*.\[\]{}()?"!@#%&/,><':;|_~`])+/;
|
|
12
|
+
const requireNumber = /[0-9]/;
|
|
13
|
+
const requireLowercase = /[a-z]/;
|
|
14
|
+
const requireUppercase = /[A-Z]/;
|
|
15
|
+
if (policy.minimumLength !== undefined && value.length < policy.minimumLength) {
|
|
16
|
+
throw new ValidationError(`Value requires at least ${policy.minimumLength} characters.`);
|
|
17
|
+
}
|
|
18
|
+
if (policy.requireLowercase && !requireLowercase.test(value)) {
|
|
19
|
+
throw new ValidationError("Value must contain a lowercase character.");
|
|
20
|
+
}
|
|
21
|
+
if (policy.requireNumbers && !requireNumber.test(value)) {
|
|
22
|
+
throw new ValidationError("Value must contain a number.");
|
|
23
|
+
}
|
|
24
|
+
if (policy.requireUppercase && !requireUppercase.test(value)) {
|
|
25
|
+
throw new ValidationError("Value must contain an uppercase character.");
|
|
26
|
+
}
|
|
27
|
+
if (policy.requireSymbols && !requireSymbols.test(value)) {
|
|
28
|
+
throw new ValidationError("Value must contain a special character.");
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=createPasswordValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ValidationError","createPasswordValidator","policy","value","requireSymbols","requireNumber","requireLowercase","requireUppercase","minimumLength","undefined","length","test","requireNumbers"],"sources":["createPasswordValidator.ts"],"sourcesContent":["import { ValidationError } from \"@webiny/validation\";\n\nexport interface PasswordPolicy {\n minimumLength?: number;\n requireLowercase?: boolean;\n requireNumbers?: boolean;\n requireSymbols?: boolean;\n requireUppercase?: boolean;\n}\n\nexport const createPasswordValidator =\n (policy: PasswordPolicy) =>\n (value?: string): void => {\n if (!value) {\n return;\n }\n /**\n * TODO @ts-refactor\n * @pavel expl\n */\n value = value + \"\";\n\n const requireSymbols = /([=+\\-^$*.\\[\\]{}()?\"!@#%&/,><':;|_~`])+/;\n const requireNumber = /[0-9]/;\n const requireLowercase = /[a-z]/;\n const requireUppercase = /[A-Z]/;\n\n if (policy.minimumLength !== undefined && value.length < policy.minimumLength) {\n throw new ValidationError(\n `Value requires at least ${policy.minimumLength} characters.`\n );\n }\n\n if (policy.requireLowercase && !requireLowercase.test(value)) {\n throw new ValidationError(\"Value must contain a lowercase character.\");\n }\n\n if (policy.requireNumbers && !requireNumber.test(value)) {\n throw new ValidationError(\"Value must contain a number.\");\n }\n\n if (policy.requireUppercase && !requireUppercase.test(value)) {\n throw new ValidationError(\"Value must contain an uppercase character.\");\n }\n\n if (policy.requireSymbols && !requireSymbols.test(value)) {\n throw new ValidationError(\"Value must contain a special character.\");\n }\n };\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AAUpD,OAAO,MAAMC,uBAAuB,GAC/BC,MAAsB,IACtBC,KAAc,IAAW;EACtB,IAAI,CAACA,KAAK,EAAE;IACR;EACJ;EACA;AACR;AACA;AACA;EACQA,KAAK,GAAGA,KAAK,GAAG,EAAE;EAElB,MAAMC,cAAc,GAAG,yCAAyC;EAChE,MAAMC,aAAa,GAAG,OAAO;EAC7B,MAAMC,gBAAgB,GAAG,OAAO;EAChC,MAAMC,gBAAgB,GAAG,OAAO;EAEhC,IAAIL,MAAM,CAACM,aAAa,KAAKC,SAAS,IAAIN,KAAK,CAACO,MAAM,GAAGR,MAAM,CAACM,aAAa,EAAE;IAC3E,MAAM,IAAIR,eAAe,CACrB,2BAA2BE,MAAM,CAACM,aAAa,cACnD,CAAC;EACL;EAEA,IAAIN,MAAM,CAACI,gBAAgB,IAAI,CAACA,gBAAgB,CAACK,IAAI,CAACR,KAAK,CAAC,EAAE;IAC1D,MAAM,IAAIH,eAAe,CAAC,2CAA2C,CAAC;EAC1E;EAEA,IAAIE,MAAM,CAACU,cAAc,IAAI,CAACP,aAAa,CAACM,IAAI,CAACR,KAAK,CAAC,EAAE;IACrD,MAAM,IAAIH,eAAe,CAAC,8BAA8B,CAAC;EAC7D;EAEA,IAAIE,MAAM,CAACK,gBAAgB,IAAI,CAACA,gBAAgB,CAACI,IAAI,CAACR,KAAK,CAAC,EAAE;IAC1D,MAAM,IAAIH,eAAe,CAAC,4CAA4C,CAAC;EAC3E;EAEA,IAAIE,MAAM,CAACE,cAAc,IAAI,CAACA,cAAc,CAACO,IAAI,CAACR,KAAK,CAAC,EAAE;IACtD,MAAM,IAAIH,eAAe,CAAC,yCAAyC,CAAC;EACxE;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePasswordValidator(): (value?: string) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { config as appConfig } from "@webiny/app/config.js";
|
|
3
|
+
import { createPasswordValidator } from "./createPasswordValidator.js";
|
|
4
|
+
export function usePasswordValidator() {
|
|
5
|
+
let envPasswordValidatorPolicy;
|
|
6
|
+
try {
|
|
7
|
+
envPasswordValidatorPolicy = JSON.parse(process.env.REACT_APP_USER_POOL_PASSWORD_POLICY);
|
|
8
|
+
} catch {
|
|
9
|
+
// Do nothing.
|
|
10
|
+
}
|
|
11
|
+
const passwordValidatorPolicy = appConfig.getKey("USER_POOL_PASSWORD_POLICY", envPasswordValidatorPolicy);
|
|
12
|
+
return useMemo(() => createPasswordValidator(passwordValidatorPolicy), [passwordValidatorPolicy]);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=usePasswordValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","config","appConfig","createPasswordValidator","usePasswordValidator","envPasswordValidatorPolicy","JSON","parse","process","env","REACT_APP_USER_POOL_PASSWORD_POLICY","passwordValidatorPolicy","getKey"],"sources":["usePasswordValidator.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport { config as appConfig } from \"@webiny/app/config.js\";\nimport { createPasswordValidator, type PasswordPolicy } from \"./createPasswordValidator.js\";\n\nexport function usePasswordValidator() {\n let envPasswordValidatorPolicy;\n try {\n envPasswordValidatorPolicy = JSON.parse(\n process.env.REACT_APP_USER_POOL_PASSWORD_POLICY as string\n );\n } catch {\n // Do nothing.\n }\n\n const passwordValidatorPolicy = appConfig.getKey<PasswordPolicy>(\n \"USER_POOL_PASSWORD_POLICY\",\n envPasswordValidatorPolicy\n );\n\n return useMemo(\n () => createPasswordValidator(passwordValidatorPolicy),\n [passwordValidatorPolicy]\n );\n}\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,MAAM,IAAIC,SAAS,QAAQ,uBAAuB;AAC3D,SAASC,uBAAuB;AAEhC,OAAO,SAASC,oBAAoBA,CAAA,EAAG;EACnC,IAAIC,0BAA0B;EAC9B,IAAI;IACAA,0BAA0B,GAAGC,IAAI,CAACC,KAAK,CACnCC,OAAO,CAACC,GAAG,CAACC,mCAChB,CAAC;EACL,CAAC,CAAC,MAAM;IACJ;EAAA;EAGJ,MAAMC,uBAAuB,GAAGT,SAAS,CAACU,MAAM,CAC5C,2BAA2B,EAC3BP,0BACJ,CAAC;EAED,OAAOL,OAAO,CACV,MAAMG,uBAAuB,CAACQ,uBAAuB,CAAC,EACtD,CAACA,uBAAuB,CAC5B,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ISystemInstallerPresenter } from "../../../../../presentation/installation/presenters/SystemInstaller/abstractions.js";
|
|
3
|
+
interface StepProps {
|
|
4
|
+
nextStep: ISystemInstallerPresenter["nextStep"];
|
|
5
|
+
}
|
|
6
|
+
export declare const AdminUserStep: ({ nextStep }: StepProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Grid, Input } from "@webiny/admin-ui";
|
|
3
|
+
import { Bind, Form, useForm } from "@webiny/form";
|
|
4
|
+
import { validation } from "@webiny/validation";
|
|
5
|
+
import { Center } from "./Center.js";
|
|
6
|
+
import { Container } from "./Container.js";
|
|
7
|
+
import { usePasswordValidator } from "./AdminUserStep/usePasswordValidator.js";
|
|
8
|
+
export const AdminUserStep = ({
|
|
9
|
+
nextStep
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
12
|
+
title: "Admin account",
|
|
13
|
+
message: "This is the account you’ll use to access and manage your Webiny instance."
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Center, null, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
style: {
|
|
16
|
+
width: 400
|
|
17
|
+
}
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
19
|
+
onSubmit: data => nextStep(data)
|
|
20
|
+
}, () => /*#__PURE__*/React.createElement(AdminUserInputs, null)))));
|
|
21
|
+
};
|
|
22
|
+
const AdminUserInputs = () => {
|
|
23
|
+
const form = useForm();
|
|
24
|
+
const passwordValidator = usePasswordValidator();
|
|
25
|
+
return /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
26
|
+
span: 6
|
|
27
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
28
|
+
name: "Cognito.firstName",
|
|
29
|
+
validators: validation.create("required")
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
31
|
+
label: "First name"
|
|
32
|
+
}))), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
33
|
+
span: 6
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
35
|
+
name: "Cognito.lastName",
|
|
36
|
+
validators: validation.create("required")
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
38
|
+
label: "Last name"
|
|
39
|
+
}))), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
40
|
+
span: 12
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
42
|
+
name: "Cognito.email",
|
|
43
|
+
beforeChange: (value, cb) => cb(value.toLowerCase()),
|
|
44
|
+
validators: validation.create("required,email")
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
46
|
+
label: "Your email",
|
|
47
|
+
autoComplete: "new-password"
|
|
48
|
+
}))), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
49
|
+
span: 12
|
|
50
|
+
}, /*#__PURE__*/React.createElement(Bind, {
|
|
51
|
+
name: "Cognito.password",
|
|
52
|
+
validators: [passwordValidator, validation.create("required")]
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
54
|
+
label: "Choose password",
|
|
55
|
+
type: "password",
|
|
56
|
+
autoComplete: "new-password"
|
|
57
|
+
}))), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
58
|
+
span: 12
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
60
|
+
containerClassName: "w-full",
|
|
61
|
+
className: "w-full",
|
|
62
|
+
variant: "primary",
|
|
63
|
+
size: "lg",
|
|
64
|
+
text: "Next step",
|
|
65
|
+
onClick: form.submit
|
|
66
|
+
})));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=AdminUserStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","Grid","Input","Bind","Form","useForm","validation","Center","Container","usePasswordValidator","AdminUserStep","nextStep","createElement","title","message","style","width","onSubmit","data","AdminUserInputs","form","passwordValidator","Column","span","name","validators","create","label","beforeChange","value","cb","toLowerCase","autoComplete","type","containerClassName","className","variant","size","text","onClick","submit"],"sources":["AdminUserStep.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button, Grid, Input } from \"@webiny/admin-ui\";\nimport { Bind, Form, useForm } from \"@webiny/form\";\nimport { validation } from \"@webiny/validation\";\nimport { Center } from \"./Center.js\";\nimport { Container } from \"./Container.js\";\nimport type { ISystemInstallerPresenter } from \"~/presentation/installation/presenters/SystemInstaller/abstractions.js\";\nimport { usePasswordValidator } from \"./AdminUserStep/usePasswordValidator.js\";\n\ninterface StepProps {\n nextStep: ISystemInstallerPresenter[\"nextStep\"];\n}\n\nexport const AdminUserStep = ({ nextStep }: StepProps) => {\n return (\n <Container\n title={\"Admin account\"}\n message={\"This is the account you’ll use to access and manage your Webiny instance.\"}\n >\n <Center>\n <div style={{ width: 400 }}>\n <Form onSubmit={data => nextStep(data)}>{() => <AdminUserInputs />}</Form>\n </div>\n </Center>\n </Container>\n );\n};\n\nconst AdminUserInputs = () => {\n const form = useForm();\n const passwordValidator = usePasswordValidator();\n\n return (\n <Grid>\n <Grid.Column span={6}>\n <Bind name={\"Cognito.firstName\"} validators={validation.create(\"required\")}>\n <Input label={\"First name\"} />\n </Bind>\n </Grid.Column>\n <Grid.Column span={6}>\n <Bind name={\"Cognito.lastName\"} validators={validation.create(\"required\")}>\n <Input label={\"Last name\"} />\n </Bind>\n </Grid.Column>\n <Grid.Column span={12}>\n <Bind\n name={\"Cognito.email\"}\n beforeChange={(value: string, cb) => cb(value.toLowerCase())}\n validators={validation.create(\"required,email\")}\n >\n <Input label={\"Your email\"} autoComplete={\"new-password\"} />\n </Bind>\n </Grid.Column>\n <Grid.Column span={12}>\n <Bind\n name={\"Cognito.password\"}\n validators={[passwordValidator, validation.create(\"required\")]}\n >\n <Input\n label={\"Choose password\"}\n type={\"password\"}\n autoComplete={\"new-password\"}\n />\n </Bind>\n </Grid.Column>\n\n <Grid.Column span={12}>\n <Button\n containerClassName={\"w-full\"}\n className={\"w-full\"}\n variant={\"primary\"}\n size={\"lg\"}\n text={\"Next step\"}\n onClick={form.submit}\n />\n </Grid.Column>\n </Grid>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AACtD,SAASC,IAAI,EAAEC,IAAI,EAAEC,OAAO,QAAQ,cAAc;AAClD,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,MAAM;AACf,SAASC,SAAS;AAElB,SAASC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,CAC1B,CACG,CAAC,eACd5B,KAAA,CAAAa,aAAA,CAACX,IAAI,CAACqB,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClBxB,KAAA,CAAAa,aAAA,CAACT,IAAI;IACDqB,IAAI,EAAE,eAAgB;IACtBI,YAAY,EAAEA,CAACC,KAAa,EAAEC,EAAE,KAAKA,EAAE,CAACD,KAAK,CAACE,WAAW,CAAC,CAAC,CAAE;IAC7DN,UAAU,EAAEnB,UAAU,CAACoB,MAAM,CAAC,gBAAgB;EAAE,gBAEhD3B,KAAA,CAAAa,aAAA,CAACV,KAAK;IAACyB,KAAK,EAAE,YAAa;IAACK,YAAY,EAAE;EAAe,CAAE,CACzD,CACG,CAAC,eACdjC,KAAA,CAAAa,aAAA,CAACX,IAAI,CAACqB,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClBxB,KAAA,CAAAa,aAAA,CAACT,IAAI;IACDqB,IAAI,EAAE,kBAAmB;IACzBC,UAAU,EAAE,CAACJ,iBAAiB,EAAEf,UAAU,CAACoB,MAAM,CAAC,UAAU,CAAC;EAAE,gBAE/D3B,KAAA,CAAAa,aAAA,CAACV,KAAK;IACFyB,KAAK,EAAE,iBAAkB;IACzBM,IAAI,EAAE,UAAW;IACjBD,YAAY,EAAE;EAAe,CAChC,CACC,CACG,CAAC,eAEdjC,KAAA,CAAAa,aAAA,CAACX,IAAI,CAACqB,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClBxB,KAAA,CAAAa,aAAA,CAACZ,MAAM;IACHkC,kBAAkB,EAAE,QAAS;IAC7BC,SAAS,EAAE,QAAS;IACpBC,OAAO,EAAE,SAAU;IACnBC,IAAI,EAAE,IAAK;IACXC,IAAI,EAAE,WAAY;IAClBC,OAAO,EAAEnB,IAAI,CAACoB;EAAO,CACxB,CACQ,CACX,CAAC;AAEf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ISystemInstallerPresenter } from "../../../../../presentation/installation/presenters/SystemInstaller/abstractions.js";
|
|
3
|
+
interface StepProps {
|
|
4
|
+
nextStep: ISystemInstallerPresenter["nextStep"];
|
|
5
|
+
}
|
|
6
|
+
export declare const BasicInfoStep: ({ nextStep }: StepProps) => React.JSX.Element;
|
|
7
|
+
export {};
|