@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,96 @@
|
|
|
1
|
+
import { makeAutoObservable, runInAction } from "mobx";
|
|
2
|
+
import { minimatch } from "minimatch";
|
|
3
|
+
const anonymousData = {
|
|
4
|
+
id: "anonymous",
|
|
5
|
+
displayName: "Anonymous",
|
|
6
|
+
type: "admin",
|
|
7
|
+
roles: [],
|
|
8
|
+
teams: [],
|
|
9
|
+
permissions: [],
|
|
10
|
+
profile: {
|
|
11
|
+
external: false
|
|
12
|
+
},
|
|
13
|
+
currentTenant: {
|
|
14
|
+
id: "root",
|
|
15
|
+
name: "Root"
|
|
16
|
+
},
|
|
17
|
+
defaultTenant: {
|
|
18
|
+
id: "root",
|
|
19
|
+
name: "Root"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export class Identity {
|
|
23
|
+
constructor(data, identityType) {
|
|
24
|
+
this.data = data;
|
|
25
|
+
this.identityType = identityType;
|
|
26
|
+
makeAutoObservable(this);
|
|
27
|
+
}
|
|
28
|
+
static createAuthenticated(data) {
|
|
29
|
+
return new Identity(data, "authenticated");
|
|
30
|
+
}
|
|
31
|
+
static createAnonymous() {
|
|
32
|
+
return new Identity(anonymousData, "anonymous");
|
|
33
|
+
}
|
|
34
|
+
get isAuthenticated() {
|
|
35
|
+
return this.identityType === "authenticated";
|
|
36
|
+
}
|
|
37
|
+
get id() {
|
|
38
|
+
return this.data.id;
|
|
39
|
+
}
|
|
40
|
+
get type() {
|
|
41
|
+
return this.data.type;
|
|
42
|
+
}
|
|
43
|
+
get displayName() {
|
|
44
|
+
return this.data.displayName;
|
|
45
|
+
}
|
|
46
|
+
get roles() {
|
|
47
|
+
return this.data.roles ?? [];
|
|
48
|
+
}
|
|
49
|
+
get teams() {
|
|
50
|
+
return this.data.teams ?? [];
|
|
51
|
+
}
|
|
52
|
+
get profile() {
|
|
53
|
+
return this.data.profile;
|
|
54
|
+
}
|
|
55
|
+
get currentTenant() {
|
|
56
|
+
return this.data.currentTenant;
|
|
57
|
+
}
|
|
58
|
+
get defaultTenant() {
|
|
59
|
+
return this.data.defaultTenant;
|
|
60
|
+
}
|
|
61
|
+
getPermission(name, exact) {
|
|
62
|
+
const perms = this.data.permissions || [];
|
|
63
|
+
const exactMatch = perms.find(p => p.name === name);
|
|
64
|
+
if (exactMatch) {
|
|
65
|
+
return exactMatch;
|
|
66
|
+
} else if (exact) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Try matching using patterns
|
|
71
|
+
return perms.find(p => minimatch(name, p.name)) || null;
|
|
72
|
+
}
|
|
73
|
+
getPermissions(name) {
|
|
74
|
+
const permissions = this.data.permissions || [];
|
|
75
|
+
if (!name) {
|
|
76
|
+
return permissions;
|
|
77
|
+
}
|
|
78
|
+
return permissions.filter(current => {
|
|
79
|
+
const exactMatch = current.name === name;
|
|
80
|
+
if (exactMatch) {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Try matching using patterns.
|
|
85
|
+
return minimatch(name, current.name);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
update(updates) {
|
|
89
|
+
runInAction(() => {
|
|
90
|
+
this.data.displayName = updates.displayName || this.data.displayName;
|
|
91
|
+
this.data.profile = updates.profile || this.data.profile;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=Identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","runInAction","minimatch","anonymousData","id","displayName","type","roles","teams","permissions","profile","external","currentTenant","name","defaultTenant","Identity","constructor","data","identityType","createAuthenticated","createAnonymous","isAuthenticated","getPermission","exact","perms","exactMatch","find","p","getPermissions","filter","current","update","updates"],"sources":["Identity.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport { minimatch } from \"minimatch\";\nimport type { Tenant } from \"~/features/tenancy/abstractions.js\";\n\nexport interface IPermission {\n name: string;\n [key: string]: any;\n}\n\nexport interface IRole {\n id: string;\n slug: string;\n name: string;\n}\n\nexport interface ITeam {\n id: string;\n slug: string;\n name: string;\n}\n\nexport interface IProfile {\n external: boolean;\n email?: string;\n firstName?: string;\n lastName?: string;\n avatar?: {\n src?: string;\n };\n}\n\nexport interface IdentityData {\n id: string;\n type: string;\n displayName: string;\n roles: IRole[];\n teams: ITeam[];\n permissions: Identity.Permission[];\n profile: Identity.Profile;\n currentTenant: Tenant;\n defaultTenant: Tenant;\n}\n\nconst anonymousData: IdentityData = {\n id: \"anonymous\",\n displayName: \"Anonymous\",\n type: \"admin\",\n roles: [],\n teams: [],\n permissions: [],\n profile: {\n external: false\n },\n currentTenant: {\n id: \"root\",\n name: \"Root\"\n },\n defaultTenant: {\n id: \"root\",\n name: \"Root\"\n }\n};\n\nexport class Identity {\n private constructor(\n private data: Identity.Data,\n private identityType: \"anonymous\" | \"authenticated\"\n ) {\n makeAutoObservable(this);\n }\n\n static createAuthenticated(data: Identity.Data) {\n return new Identity(data, \"authenticated\");\n }\n\n static createAnonymous() {\n return new Identity(anonymousData, \"anonymous\");\n }\n\n get isAuthenticated(): boolean {\n return this.identityType === \"authenticated\";\n }\n\n get id() {\n return this.data.id;\n }\n\n get type() {\n return this.data.type;\n }\n\n get displayName() {\n return this.data.displayName;\n }\n\n get roles() {\n return this.data.roles ?? [];\n }\n\n get teams() {\n return this.data.teams ?? [];\n }\n\n get profile() {\n return this.data.profile;\n }\n\n get currentTenant() {\n return this.data.currentTenant;\n }\n\n get defaultTenant() {\n return this.data.defaultTenant;\n }\n\n getPermission<T extends Identity.Permission = Identity.Permission>(\n name: string,\n exact?: boolean\n ): T | null {\n const perms = (this.data.permissions || []) as T[];\n const exactMatch = perms.find(p => p.name === name);\n if (exactMatch) {\n return exactMatch as T;\n } else if (exact) {\n return null;\n }\n\n // Try matching using patterns\n return perms.find(p => minimatch(name, p.name)) || null;\n }\n\n getPermissions<T extends Identity.Permission = Identity.Permission>(name?: string): Array<T> {\n const permissions = this.data.permissions || [];\n if (!name) {\n return permissions as T[];\n }\n\n return permissions.filter(current => {\n const exactMatch = current.name === name;\n if (exactMatch) {\n return true;\n }\n\n // Try matching using patterns.\n return minimatch(name, current.name);\n }) as T[];\n }\n\n update(updates: Partial<Pick<Identity.Data, \"displayName\" | \"profile\">>) {\n runInAction(() => {\n this.data.displayName = updates.displayName || this.data.displayName;\n this.data.profile = updates.profile || this.data.profile;\n });\n }\n}\n\nexport namespace Identity {\n export type Data = IdentityData;\n export type Permission = IPermission;\n export type Profile = IProfile;\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,SAASC,SAAS,QAAQ,WAAW;AA0CrC,MAAMC,aAA2B,GAAG;EAChCC,EAAE,EAAE,WAAW;EACfC,WAAW,EAAE,WAAW;EACxBC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE,EAAE;EACTC,KAAK,EAAE,EAAE;EACTC,WAAW,EAAE,EAAE;EACfC,OAAO,EAAE;IACLC,QAAQ,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACXR,EAAE,EAAE,MAAM;IACVS,IAAI,EAAE;EACV,CAAC;EACDC,aAAa,EAAE;IACXV,EAAE,EAAE,MAAM;IACVS,IAAI,EAAE;EACV;AACJ,CAAC;AAED,OAAO,MAAME,QAAQ,CAAC;EACVC,WAAWA,CACPC,IAAmB,EACnBC,YAA2C,EACrD;IAAA,KAFUD,IAAmB,GAAnBA,IAAmB;IAAA,KACnBC,YAA2C,GAA3CA,YAA2C;IAEnDlB,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,OAAOmB,mBAAmBA,CAACF,IAAmB,EAAE;IAC5C,OAAO,IAAIF,QAAQ,CAACE,IAAI,EAAE,eAAe,CAAC;EAC9C;EAEA,OAAOG,eAAeA,CAAA,EAAG;IACrB,OAAO,IAAIL,QAAQ,CAACZ,aAAa,EAAE,WAAW,CAAC;EACnD;EAEA,IAAIkB,eAAeA,CAAA,EAAY;IAC3B,OAAO,IAAI,CAACH,YAAY,KAAK,eAAe;EAChD;EAEA,IAAId,EAAEA,CAAA,EAAG;IACL,OAAO,IAAI,CAACa,IAAI,CAACb,EAAE;EACvB;EAEA,IAAIE,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACW,IAAI,CAACX,IAAI;EACzB;EAEA,IAAID,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACY,IAAI,CAACZ,WAAW;EAChC;EAEA,IAAIE,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACU,IAAI,CAACV,KAAK,IAAI,EAAE;EAChC;EAEA,IAAIC,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACS,IAAI,CAACT,KAAK,IAAI,EAAE;EAChC;EAEA,IAAIE,OAAOA,CAAA,EAAG;IACV,OAAO,IAAI,CAACO,IAAI,CAACP,OAAO;EAC5B;EAEA,IAAIE,aAAaA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACK,IAAI,CAACL,aAAa;EAClC;EAEA,IAAIE,aAAaA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACG,IAAI,CAACH,aAAa;EAClC;EAEAQ,aAAaA,CACTT,IAAY,EACZU,KAAe,EACP;IACR,MAAMC,KAAK,GAAI,IAAI,CAACP,IAAI,CAACR,WAAW,IAAI,EAAU;IAClD,MAAMgB,UAAU,GAAGD,KAAK,CAACE,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACd,IAAI,KAAKA,IAAI,CAAC;IACnD,IAAIY,UAAU,EAAE;MACZ,OAAOA,UAAU;IACrB,CAAC,MAAM,IAAIF,KAAK,EAAE;MACd,OAAO,IAAI;IACf;;IAEA;IACA,OAAOC,KAAK,CAACE,IAAI,CAACC,CAAC,IAAIzB,SAAS,CAACW,IAAI,EAAEc,CAAC,CAACd,IAAI,CAAC,CAAC,IAAI,IAAI;EAC3D;EAEAe,cAAcA,CAAsDf,IAAa,EAAY;IACzF,MAAMJ,WAAW,GAAG,IAAI,CAACQ,IAAI,CAACR,WAAW,IAAI,EAAE;IAC/C,IAAI,CAACI,IAAI,EAAE;MACP,OAAOJ,WAAW;IACtB;IAEA,OAAOA,WAAW,CAACoB,MAAM,CAACC,OAAO,IAAI;MACjC,MAAML,UAAU,GAAGK,OAAO,CAACjB,IAAI,KAAKA,IAAI;MACxC,IAAIY,UAAU,EAAE;QACZ,OAAO,IAAI;MACf;;MAEA;MACA,OAAOvB,SAAS,CAACW,IAAI,EAAEiB,OAAO,CAACjB,IAAI,CAAC;IACxC,CAAC,CAAC;EACN;EAEAkB,MAAMA,CAACC,OAAgE,EAAE;IACrE/B,WAAW,CAAC,MAAM;MACd,IAAI,CAACgB,IAAI,CAACZ,WAAW,GAAG2B,OAAO,CAAC3B,WAAW,IAAI,IAAI,CAACY,IAAI,CAACZ,WAAW;MACpE,IAAI,CAACY,IAAI,CAACP,OAAO,GAAGsB,OAAO,CAACtB,OAAO,IAAI,IAAI,CAACO,IAAI,CAACP,OAAO;IAC5D,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EnvConfig } from "@webiny/app/features/envConfig/index.js";
|
|
2
|
+
import { NetworkErrorEvent, NetworkErrorEventHandler } from "@webiny/app/errors/index.js";
|
|
3
|
+
declare class ErrorOverlayNetworkErrorHandlerImpl implements NetworkErrorEventHandler.Interface {
|
|
4
|
+
private readonly debug;
|
|
5
|
+
constructor(envConfig: EnvConfig.Interface);
|
|
6
|
+
handle(event: NetworkErrorEvent): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ErrorOverlayNetworkErrorHandler: typeof ErrorOverlayNetworkErrorHandlerImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/app/features/eventPublisher").IEventHandler<NetworkErrorEvent>>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import createErrorOverlay from "@webiny/app/plugins/NetworkErrorLinkPlugin/createErrorOverlay.js";
|
|
3
|
+
import { ErrorOverlay } from "@webiny/app/plugins/NetworkErrorLinkPlugin/ErrorOverlay.js";
|
|
4
|
+
import { LocalAwsLambdaTimeoutMessage } from "@webiny/app/plugins/NetworkErrorLinkPlugin/LocalAwsLambdaTimeoutMessage.js";
|
|
5
|
+
import { GqlErrorOverlay } from "@webiny/app/plugins/NetworkErrorLinkPlugin/GqlErrorOverlay.js";
|
|
6
|
+
import { EnvConfig } from "@webiny/app/features/envConfig/index.js";
|
|
7
|
+
import { NetworkErrorEventHandler } from "@webiny/app/errors/index.js";
|
|
8
|
+
import { TenantIsDisabled } from "./TenantIsDisabled.js";
|
|
9
|
+
class ErrorOverlayNetworkErrorHandlerImpl {
|
|
10
|
+
constructor(envConfig) {
|
|
11
|
+
this.debug = envConfig.get("debug");
|
|
12
|
+
}
|
|
13
|
+
async handle(event) {
|
|
14
|
+
if (!this.debug) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const {
|
|
18
|
+
errorType,
|
|
19
|
+
query,
|
|
20
|
+
message,
|
|
21
|
+
code,
|
|
22
|
+
result
|
|
23
|
+
} = event.payload;
|
|
24
|
+
if (errorType === "timeout" && result?.code === "LOCAL_AWS_LAMBDA_TIMEOUT") {
|
|
25
|
+
createErrorOverlay({
|
|
26
|
+
element: /*#__PURE__*/React.createElement(ErrorOverlay, {
|
|
27
|
+
message: /*#__PURE__*/React.createElement(LocalAwsLambdaTimeoutMessage, null),
|
|
28
|
+
closeable: false
|
|
29
|
+
}),
|
|
30
|
+
closeable: false
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (code === "Tenancy/TenantDisabled") {
|
|
35
|
+
createErrorOverlay({
|
|
36
|
+
element: /*#__PURE__*/React.createElement(TenantIsDisabled, null),
|
|
37
|
+
closeable: false
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (query) {
|
|
42
|
+
createErrorOverlay({
|
|
43
|
+
element: /*#__PURE__*/React.createElement(GqlErrorOverlay, {
|
|
44
|
+
query: query,
|
|
45
|
+
networkError: {
|
|
46
|
+
message,
|
|
47
|
+
statusCode: event.payload.statusCode
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
} else {
|
|
52
|
+
createErrorOverlay({
|
|
53
|
+
element: /*#__PURE__*/React.createElement(ErrorOverlay, {
|
|
54
|
+
message: message,
|
|
55
|
+
closeable: true
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export const ErrorOverlayNetworkErrorHandler = NetworkErrorEventHandler.createImplementation({
|
|
62
|
+
implementation: ErrorOverlayNetworkErrorHandlerImpl,
|
|
63
|
+
dependencies: [EnvConfig]
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=ErrorOverlayNetworkErrorHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createErrorOverlay","ErrorOverlay","LocalAwsLambdaTimeoutMessage","GqlErrorOverlay","EnvConfig","NetworkErrorEventHandler","TenantIsDisabled","ErrorOverlayNetworkErrorHandlerImpl","constructor","envConfig","debug","get","handle","event","errorType","query","message","code","result","payload","element","createElement","closeable","networkError","statusCode","ErrorOverlayNetworkErrorHandler","createImplementation","implementation","dependencies"],"sources":["ErrorOverlayNetworkErrorHandler.tsx"],"sourcesContent":["import React from \"react\";\nimport createErrorOverlay from \"@webiny/app/plugins/NetworkErrorLinkPlugin/createErrorOverlay.js\";\nimport { ErrorOverlay } from \"@webiny/app/plugins/NetworkErrorLinkPlugin/ErrorOverlay.js\";\nimport { LocalAwsLambdaTimeoutMessage } from \"@webiny/app/plugins/NetworkErrorLinkPlugin/LocalAwsLambdaTimeoutMessage.js\";\nimport { GqlErrorOverlay } from \"@webiny/app/plugins/NetworkErrorLinkPlugin/GqlErrorOverlay.js\";\nimport { EnvConfig } from \"@webiny/app/features/envConfig/index.js\";\nimport { NetworkErrorEvent, NetworkErrorEventHandler } from \"@webiny/app/errors/index.js\";\nimport { TenantIsDisabled } from \"~/errors/TenantIsDisabled.js\";\n\nclass ErrorOverlayNetworkErrorHandlerImpl implements NetworkErrorEventHandler.Interface {\n private readonly debug: boolean;\n\n constructor(envConfig: EnvConfig.Interface) {\n this.debug = envConfig.get(\"debug\");\n }\n\n async handle(event: NetworkErrorEvent): Promise<void> {\n if (!this.debug) {\n return;\n }\n\n const { errorType, query, message, code, result } = event.payload;\n\n if (errorType === \"timeout\" && result?.code === \"LOCAL_AWS_LAMBDA_TIMEOUT\") {\n createErrorOverlay({\n element: (\n <ErrorOverlay message={<LocalAwsLambdaTimeoutMessage />} closeable={false} />\n ),\n closeable: false\n });\n return;\n }\n\n if (code === \"Tenancy/TenantDisabled\") {\n createErrorOverlay({\n element: <TenantIsDisabled />,\n closeable: false\n });\n return;\n }\n\n if (query) {\n createErrorOverlay({\n element: (\n <GqlErrorOverlay\n query={query}\n networkError={{ message, statusCode: event.payload.statusCode } as any}\n />\n )\n });\n } else {\n createErrorOverlay({\n element: <ErrorOverlay message={message} closeable={true} />\n });\n }\n }\n}\n\nexport const ErrorOverlayNetworkErrorHandler = NetworkErrorEventHandler.createImplementation({\n implementation: ErrorOverlayNetworkErrorHandlerImpl,\n dependencies: [EnvConfig]\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,kBAAkB,MAAM,kEAAkE;AACjG,SAASC,YAAY,QAAQ,4DAA4D;AACzF,SAASC,4BAA4B,QAAQ,4EAA4E;AACzH,SAASC,eAAe,QAAQ,+DAA+D;AAC/F,SAASC,SAAS,QAAQ,yCAAyC;AACnE,SAA4BC,wBAAwB,QAAQ,6BAA6B;AACzF,SAASC,gBAAgB;AAEzB,MAAMC,mCAAmC,CAA+C;EAGpFC,WAAWA,CAACC,SAA8B,EAAE;IACxC,IAAI,CAACC,KAAK,GAAGD,SAAS,CAACE,GAAG,CAAC,OAAO,CAAC;EACvC;EAEA,MAAMC,MAAMA,CAACC,KAAwB,EAAiB;IAClD,IAAI,CAAC,IAAI,CAACH,KAAK,EAAE;MACb;IACJ;IAEA,MAAM;MAAEI,SAAS;MAAEC,KAAK;MAAEC,OAAO;MAAEC,IAAI;MAAEC;IAAO,CAAC,GAAGL,KAAK,CAACM,OAAO;IAEjE,IAAIL,SAAS,KAAK,SAAS,IAAII,MAAM,EAAED,IAAI,KAAK,0BAA0B,EAAE;MACxEjB,kBAAkB,CAAC;QACfoB,OAAO,eACHrB,KAAA,CAAAsB,aAAA,CAACpB,YAAY;UAACe,OAAO,eAAEjB,KAAA,CAAAsB,aAAA,CAACnB,4BAA4B,MAAE,CAAE;UAACoB,SAAS,EAAE;QAAM,CAAE,CAC/E;QACDA,SAAS,EAAE;MACf,CAAC,CAAC;MACF;IACJ;IAEA,IAAIL,IAAI,KAAK,wBAAwB,EAAE;MACnCjB,kBAAkB,CAAC;QACfoB,OAAO,eAAErB,KAAA,CAAAsB,aAAA,CAACf,gBAAgB,MAAE,CAAC;QAC7BgB,SAAS,EAAE;MACf,CAAC,CAAC;MACF;IACJ;IAEA,IAAIP,KAAK,EAAE;MACPf,kBAAkB,CAAC;QACfoB,OAAO,eACHrB,KAAA,CAAAsB,aAAA,CAAClB,eAAe;UACZY,KAAK,EAAEA,KAAM;UACbQ,YAAY,EAAE;YAAEP,OAAO;YAAEQ,UAAU,EAAEX,KAAK,CAACM,OAAO,CAACK;UAAW;QAAS,CAC1E;MAET,CAAC,CAAC;IACN,CAAC,MAAM;MACHxB,kBAAkB,CAAC;QACfoB,OAAO,eAAErB,KAAA,CAAAsB,aAAA,CAACpB,YAAY;UAACe,OAAO,EAAEA,OAAQ;UAACM,SAAS,EAAE;QAAK,CAAE;MAC/D,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMG,+BAA+B,GAAGpB,wBAAwB,CAACqB,oBAAoB,CAAC;EACzFC,cAAc,EAAEpB,mCAAmC;EACnDqB,YAAY,EAAE,CAACxB,SAAS;AAC5B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Card, Text } from "@webiny/admin-ui";
|
|
3
|
+
export const TenantIsDisabled = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
5
|
+
className: "absolute flex w-full h-screen bg-neutral-light",
|
|
6
|
+
style: {
|
|
7
|
+
top: 0,
|
|
8
|
+
left: 0
|
|
9
|
+
}
|
|
10
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "m-auto max-w-1/2"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
13
|
+
title: "Your account is currently unavailable",
|
|
14
|
+
padding: "md",
|
|
15
|
+
elevation: "medium",
|
|
16
|
+
cornerSize: "md",
|
|
17
|
+
variant: "accent"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
19
|
+
as: "div"
|
|
20
|
+
}, "Access to this workspace has been paused. If you believe this is a mistake, please reach out to your organization's administrator for help."))));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=TenantIsDisabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Card","Text","TenantIsDisabled","createElement","className","style","top","left","title","padding","elevation","cornerSize","variant","as"],"sources":["TenantIsDisabled.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Card, Text } from \"@webiny/admin-ui\";\n\nexport const TenantIsDisabled = () => {\n return (\n <div className=\"absolute flex w-full h-screen bg-neutral-light\" style={{ top: 0, left: 0 }}>\n <div className=\"m-auto max-w-1/2\">\n <Card\n title=\"Your account is currently unavailable\"\n padding=\"md\"\n elevation=\"medium\"\n cornerSize={\"md\"}\n variant={\"accent\"}\n >\n <Text as={\"div\"}>\n Access to this workspace has been paused. If you believe this is a mistake,\n please reach out to your organization's administrator for help.\n </Text>\n </Card>\n </div>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAE7C,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EAClC,oBACIH,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAC,gDAAgD;IAACC,KAAK,EAAE;MAAEC,GAAG,EAAE,CAAC;MAAEC,IAAI,EAAE;IAAE;EAAE,gBACvFR,KAAA,CAAAI,aAAA;IAAKC,SAAS,EAAC;EAAkB,gBAC7BL,KAAA,CAAAI,aAAA,CAACH,IAAI;IACDQ,KAAK,EAAC,uCAAuC;IAC7CC,OAAO,EAAC,IAAI;IACZC,SAAS,EAAC,QAAQ;IAClBC,UAAU,EAAE,IAAK;IACjBC,OAAO,EAAE;EAAS,gBAElBb,KAAA,CAAAI,aAAA,CAACF,IAAI;IAACY,EAAE,EAAE;EAAM,GAAC,6IAGX,CACJ,CACL,CACJ,CAAC;AAEd,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BuildParam, BuildParams } from "../../features/buildParams/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BuildParam","BuildParams"],"sources":["build-params.ts"],"sourcesContent":["export { BuildParam, BuildParams } from \"~/features/buildParams/index.js\";\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdminConfig } from "../../config/AdminConfig.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AdminConfig"],"sources":["configs.ts"],"sourcesContent":["export { AdminConfig } from \"~/config/AdminConfig.js\";\n"],"mappings":"AAAA,SAASA,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Bind } from "@webiny/form";
|
|
2
|
+
export { Form } from "@webiny/form";
|
|
3
|
+
export { UnsetOnUnmount } from "@webiny/form";
|
|
4
|
+
export { useBind } from "@webiny/form";
|
|
5
|
+
export { useBindPrefix } from "@webiny/form";
|
|
6
|
+
export { useGenerateSlug } from "@webiny/form";
|
|
7
|
+
export { useForm } from "@webiny/form";
|
|
8
|
+
export type { FormAPI as FormApi, FormOnSubmit, GenericFormData } from "@webiny/form";
|
|
9
|
+
export { validation } from "@webiny/validation";
|
|
10
|
+
export { Validation } from "@webiny/validation";
|
|
11
|
+
export { ValidationError } from "@webiny/validation";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Bind } from "@webiny/form";
|
|
2
|
+
export { Form } from "@webiny/form";
|
|
3
|
+
export { UnsetOnUnmount } from "@webiny/form";
|
|
4
|
+
export { useBind } from "@webiny/form";
|
|
5
|
+
export { useBindPrefix } from "@webiny/form";
|
|
6
|
+
export { useGenerateSlug } from "@webiny/form";
|
|
7
|
+
export { useForm } from "@webiny/form";
|
|
8
|
+
export { validation } from "@webiny/validation";
|
|
9
|
+
export { Validation } from "@webiny/validation";
|
|
10
|
+
export { ValidationError } from "@webiny/validation";
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Bind","Form","UnsetOnUnmount","useBind","useBindPrefix","useGenerateSlug","useForm","validation","Validation","ValidationError"],"sources":["form.ts"],"sourcesContent":["export { Bind } from \"@webiny/form\";\nexport { Form } from \"@webiny/form\";\nexport { UnsetOnUnmount } from \"@webiny/form\";\nexport { useBind } from \"@webiny/form\";\nexport { useBindPrefix } from \"@webiny/form\";\nexport { useGenerateSlug } from \"@webiny/form\";\nexport { useForm } from \"@webiny/form\";\nexport type { FormAPI as FormApi, FormOnSubmit, GenericFormData } from \"@webiny/form\";\nexport { validation } from \"@webiny/validation\";\nexport { Validation } from \"@webiny/validation\";\nexport { ValidationError } from \"@webiny/validation\";\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,cAAc,QAAQ,cAAc;AAC7C,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,aAAa,QAAQ,cAAc;AAC5C,SAASC,eAAe,QAAQ,cAAc;AAC9C,SAASC,OAAO,QAAQ,cAAc;AAEtC,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,eAAe,QAAQ,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { LogInUseCase } from "../../features/security/LogIn/index.js";
|
|
2
|
+
export { LogOutUseCase } from "../../features/security/LogOut/index.js";
|
|
3
|
+
export { AuthenticationContext } from "../../features/security/AuthenticationContext/index.js";
|
|
4
|
+
export { IdentityContext } from "../../features/security/IdentityContext/index.js";
|
|
5
|
+
export { useAuthentication } from "../../presentation/security/hooks/useAuthentication.js";
|
|
6
|
+
export { useIdentity } from "../../presentation/security/hooks/useIdentity.js";
|
|
7
|
+
export { HasPermissionComponent } from "../../presentation/security/components/HasPermission.js";
|
|
8
|
+
export { LoginScreenComponent } from "../../base/ui/LoginScreen.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { LogInUseCase } from "../../features/security/LogIn/index.js";
|
|
2
|
+
export { LogOutUseCase } from "../../features/security/LogOut/index.js";
|
|
3
|
+
export { AuthenticationContext } from "../../features/security/AuthenticationContext/index.js";
|
|
4
|
+
export { IdentityContext } from "../../features/security/IdentityContext/index.js";
|
|
5
|
+
export { useAuthentication } from "../../presentation/security/hooks/useAuthentication.js";
|
|
6
|
+
export { useIdentity } from "../../presentation/security/hooks/useIdentity.js";
|
|
7
|
+
export { HasPermissionComponent } from "../../presentation/security/components/HasPermission.js";
|
|
8
|
+
export { LoginScreenComponent } from "../../base/ui/LoginScreen.js";
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=security.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LogInUseCase","LogOutUseCase","AuthenticationContext","IdentityContext","useAuthentication","useIdentity","HasPermissionComponent","LoginScreenComponent"],"sources":["security.ts"],"sourcesContent":["export { LogInUseCase } from \"~/features/security/LogIn/index.js\";\nexport { LogOutUseCase } from \"~/features/security/LogOut/index.js\";\nexport { AuthenticationContext } from \"~/features/security/AuthenticationContext/index.js\";\nexport { IdentityContext } from \"~/features/security/IdentityContext/index.js\";\nexport { useAuthentication } from \"~/presentation/security/hooks/useAuthentication.js\";\nexport { useIdentity } from \"~/presentation/security/hooks/useIdentity.js\";\nexport { HasPermissionComponent } from \"~/presentation/security/components/HasPermission.js\";\nexport { LoginScreenComponent } from \"~/base/ui/LoginScreen.js\";\n"],"mappings":"AAAA,SAASA,YAAY;AACrB,SAASC,aAAa;AACtB,SAASC,qBAAqB;AAC9B,SAASC,eAAe;AACxB,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AACpB,SAASC,sBAAsB;AAC/B,SAASC,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TenantContext","useTenantContext"],"sources":["tenancy.ts"],"sourcesContent":["export { TenantContext } from \"~/features/tenancy/abstractions.js\";\nexport { useTenantContext } from \"~/presentation/tenancy/useTenantContext.js\";\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { useDialogs } from "../../components/Dialogs/useDialogs.js";
|
|
2
|
+
export { Logo } from "../../base/ui/Logo.js";
|
|
3
|
+
export { TenantSelector } from "../../base/ui/TenantSelector.js";
|
|
4
|
+
export { LexicalEditor } from "../../components/LexicalEditor/LexicalEditor.js";
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useDialogs","Logo","TenantSelector","LexicalEditor"],"sources":["ui.ts"],"sourcesContent":["export { useDialogs } from \"~/components/Dialogs/useDialogs.js\";\nexport { Logo } from \"~/base/ui/Logo.js\";\nexport { TenantSelector } from \"~/base/ui/TenantSelector.js\";\nexport { LexicalEditor } from \"~/components/LexicalEditor/LexicalEditor.js\";\n"],"mappings":"AAAA,SAASA,UAAU;AACnB,SAASC,IAAI;AACb,SAASC,cAAc;AACvB,SAASC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createPermissionSchema } from "../permissions/index.js";
|
|
2
|
+
export { createHasPermission } from "../permissions/index.js";
|
|
3
|
+
export { createUsePermissions } from "../permissions/index.js";
|
|
4
|
+
export { RegisterFeature } from "../components/RegisterFeature.js";
|
|
5
|
+
export { BuildParam, BuildParams } from "../features/buildParams/index.js";
|
|
6
|
+
export { AdminConfig } from "../config/AdminConfig.js";
|
|
7
|
+
export { Routes } from "../routes.js";
|
package/exports/admin.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createPermissionSchema } from "../permissions/index.js";
|
|
2
|
+
export { createHasPermission } from "../permissions/index.js";
|
|
3
|
+
export { createUsePermissions } from "../permissions/index.js";
|
|
4
|
+
export { RegisterFeature } from "../components/RegisterFeature.js";
|
|
5
|
+
export { BuildParam, BuildParams } from "../features/buildParams/index.js";
|
|
6
|
+
export { AdminConfig } from "../config/AdminConfig.js";
|
|
7
|
+
export { Routes } from "../routes.js";
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createPermissionSchema","createHasPermission","createUsePermissions","RegisterFeature","BuildParam","BuildParams","AdminConfig","Routes"],"sources":["admin.ts"],"sourcesContent":["export { createPermissionSchema } from \"~/permissions/index.js\";\nexport { createHasPermission } from \"~/permissions/index.js\";\nexport { createUsePermissions } from \"~/permissions/index.js\";\nexport { RegisterFeature } from \"~/components/RegisterFeature.js\";\nexport { BuildParam, BuildParams } from \"~/features/buildParams/index.js\";\nexport { AdminConfig } from \"~/config/AdminConfig.js\";\nexport { Routes } from \"~/routes.js\";\n"],"mappings":"AAAA,SAASA,sBAAsB;AAC/B,SAASC,mBAAmB;AAC5B,SAASC,oBAAoB;AAC7B,SAASC,eAAe;AACxB,SAASC,UAAU,EAAEC,WAAW;AAChC,SAASC,WAAW;AACpB,SAASC,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createAbstraction","ApolloClient"],"sources":["abstraction.ts"],"sourcesContent":["import type { ApolloClient as IApolloClient } from \"apollo-client\";\nimport { createAbstraction } from \"@webiny/feature/admin\";\n\nexport const ApolloClient = createAbstraction<IApolloClient<any>>(\"ApolloClient\");\n\nexport namespace ApolloClient {\n export type Interface = IApolloClient<any>;\n}\n"],"mappings":"AACA,SAASA,iBAAiB,QAAQ,uBAAuB;AAEzD,OAAO,MAAMC,YAAY,GAAGD,iBAAiB,CAAqB,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { setContext } from "apollo-link-context";
|
|
2
|
+
import { ApolloLinkPlugin } from "@webiny/app";
|
|
3
|
+
import { plugins } from "@webiny/plugins";
|
|
4
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
5
|
+
import { ApolloClient } from "./abstraction.js";
|
|
6
|
+
import { AuthenticationContext } from "../security/AuthenticationContext/index.js";
|
|
7
|
+
export const ApolloClientFeature = createFeature({
|
|
8
|
+
name: "ApolloClient",
|
|
9
|
+
register(container, apolloClient) {
|
|
10
|
+
container.registerInstance(ApolloClient, apolloClient);
|
|
11
|
+
plugins.register(new ApolloLinkPlugin(() => {
|
|
12
|
+
return setContext(async (_, {
|
|
13
|
+
headers
|
|
14
|
+
}) => {
|
|
15
|
+
// If "Authorization" header is already set, don't overwrite it.
|
|
16
|
+
if (headers && headers.Authorization) {
|
|
17
|
+
return {
|
|
18
|
+
headers
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const authContext = container.resolve(AuthenticationContext);
|
|
22
|
+
const idToken = await authContext.getIdToken();
|
|
23
|
+
if (!idToken) {
|
|
24
|
+
return {
|
|
25
|
+
headers
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
headers: {
|
|
30
|
+
...headers,
|
|
31
|
+
Authorization: `Bearer ${idToken}`
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["setContext","ApolloLinkPlugin","plugins","createFeature","ApolloClient","AuthenticationContext","ApolloClientFeature","name","register","container","apolloClient","registerInstance","_","headers","Authorization","authContext","resolve","idToken","getIdToken"],"sources":["feature.ts"],"sourcesContent":["import { setContext } from \"apollo-link-context\";\nimport { ApolloLinkPlugin } from \"@webiny/app\";\nimport { plugins } from \"@webiny/plugins\";\nimport { createFeature } from \"@webiny/feature/admin\";\nimport { ApolloClient } from \"./abstraction.js\";\nimport { AuthenticationContext } from \"~/features/security/AuthenticationContext/index.js\";\n\nexport const ApolloClientFeature = createFeature({\n name: \"ApolloClient\",\n register(container, apolloClient: ApolloClient.Interface) {\n container.registerInstance(ApolloClient, apolloClient);\n\n plugins.register(\n new ApolloLinkPlugin(() => {\n return setContext(async (_, { headers }) => {\n // If \"Authorization\" header is already set, don't overwrite it.\n if (headers && headers.Authorization) {\n return { headers };\n }\n\n const authContext = container.resolve(AuthenticationContext);\n const idToken = await authContext.getIdToken();\n\n if (!idToken) {\n return { headers };\n }\n\n return {\n headers: {\n ...headers,\n Authorization: `Bearer ${idToken}`\n }\n };\n });\n })\n );\n }\n});\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,qBAAqB;AAChD,SAASC,gBAAgB,QAAQ,aAAa;AAC9C,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,YAAY;AACrB,SAASC,qBAAqB;AAE9B,OAAO,MAAMC,mBAAmB,GAAGH,aAAa,CAAC;EAC7CI,IAAI,EAAE,cAAc;EACpBC,QAAQA,CAACC,SAAS,EAAEC,YAAoC,EAAE;IACtDD,SAAS,CAACE,gBAAgB,CAACP,YAAY,EAAEM,YAAY,CAAC;IAEtDR,OAAO,CAACM,QAAQ,CACZ,IAAIP,gBAAgB,CAAC,MAAM;MACvB,OAAOD,UAAU,CAAC,OAAOY,CAAC,EAAE;QAAEC;MAAQ,CAAC,KAAK;QACxC;QACA,IAAIA,OAAO,IAAIA,OAAO,CAACC,aAAa,EAAE;UAClC,OAAO;YAAED;UAAQ,CAAC;QACtB;QAEA,MAAME,WAAW,GAAGN,SAAS,CAACO,OAAO,CAACX,qBAAqB,CAAC;QAC5D,MAAMY,OAAO,GAAG,MAAMF,WAAW,CAACG,UAAU,CAAC,CAAC;QAE9C,IAAI,CAACD,OAAO,EAAE;UACV,OAAO;YAAEJ;UAAQ,CAAC;QACtB;QAEA,OAAO;UACHA,OAAO,EAAE;YACL,GAAGA,OAAO;YACVC,aAAa,EAAE,UAAUG,OAAO;UACpC;QACJ,CAAC;MACL,CAAC,CAAC;IACN,CAAC,CACL,CAAC;EACL;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BuildParam, BuildParams as BuildParamsAbstraction } from "./abstractions.js";
|
|
2
|
+
export declare class BuildParamsImpl implements BuildParamsAbstraction.Interface {
|
|
3
|
+
private params;
|
|
4
|
+
constructor(params: BuildParam.Interface[]);
|
|
5
|
+
get<T = any>(key: string): T | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const BuildParams: typeof BuildParamsImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IBuildParams>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BuildParam, BuildParams as BuildParamsAbstraction } from "./abstractions.js";
|
|
2
|
+
export class BuildParamsImpl {
|
|
3
|
+
constructor(params) {
|
|
4
|
+
this.params = params;
|
|
5
|
+
}
|
|
6
|
+
get(key) {
|
|
7
|
+
const param = this.params.find(p => p.key === key);
|
|
8
|
+
return param ? param.value : null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export const BuildParams = BuildParamsAbstraction.createImplementation({
|
|
12
|
+
implementation: BuildParamsImpl,
|
|
13
|
+
dependencies: [[BuildParam, {
|
|
14
|
+
multiple: true
|
|
15
|
+
}]]
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=BuildParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BuildParam","BuildParams","BuildParamsAbstraction","BuildParamsImpl","constructor","params","get","key","param","find","p","value","createImplementation","implementation","dependencies","multiple"],"sources":["BuildParams.ts"],"sourcesContent":["import { BuildParam, BuildParams as BuildParamsAbstraction } from \"./abstractions.js\";\n\nexport class BuildParamsImpl implements BuildParamsAbstraction.Interface {\n constructor(private params: BuildParam.Interface[]) {}\n\n get<T = any>(key: string): T | null {\n const param = this.params.find(p => p.key === key);\n return param ? param.value : null;\n }\n}\n\nexport const BuildParams = BuildParamsAbstraction.createImplementation({\n implementation: BuildParamsImpl,\n dependencies: [[BuildParam, { multiple: true }]]\n});\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW,IAAIC,sBAAsB;AAE1D,OAAO,MAAMC,eAAe,CAA6C;EACrEC,WAAWA,CAASC,MAA8B,EAAE;IAAA,KAAhCA,MAA8B,GAA9BA,MAA8B;EAAG;EAErDC,GAAGA,CAAUC,GAAW,EAAY;IAChC,MAAMC,KAAK,GAAG,IAAI,CAACH,MAAM,CAACI,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACH,GAAG,KAAKA,GAAG,CAAC;IAClD,OAAOC,KAAK,GAAGA,KAAK,CAACG,KAAK,GAAG,IAAI;EACrC;AACJ;AAEA,OAAO,MAAMV,WAAW,GAAGC,sBAAsB,CAACU,oBAAoB,CAAC;EACnEC,cAAc,EAAEV,eAAe;EAC/BW,YAAY,EAAE,CAAC,CAACd,UAAU,EAAE;IAAEe,QAAQ,EAAE;EAAK,CAAC,CAAC;AACnD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IBuildParam {
|
|
2
|
+
key: string;
|
|
3
|
+
value: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const BuildParam: import("@webiny/di").Abstraction<IBuildParam>;
|
|
6
|
+
export declare namespace BuildParam {
|
|
7
|
+
type Interface = IBuildParam;
|
|
8
|
+
}
|
|
9
|
+
export interface IBuildParams {
|
|
10
|
+
get<T = any>(key: string): T | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const BuildParams: import("@webiny/di").Abstraction<IBuildParams>;
|
|
13
|
+
export declare namespace BuildParams {
|
|
14
|
+
type Interface = IBuildParams;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createAbstraction","BuildParam","BuildParams"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IBuildParam {\n key: string;\n value: any;\n}\n\nexport const BuildParam = createAbstraction<IBuildParam>(\"BuildParam\");\n\nexport namespace BuildParam {\n export type Interface = IBuildParam;\n}\n\nexport interface IBuildParams {\n get<T = any>(key: string): T | null;\n}\n\nexport const BuildParams = createAbstraction<IBuildParams>(\"BuildParams\");\n\nexport namespace BuildParams {\n export type Interface = IBuildParams;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,uBAAuB;AAOzD,OAAO,MAAMC,UAAU,GAAGD,iBAAiB,CAAc,YAAY,CAAC;AAUtE,OAAO,MAAME,WAAW,GAAGF,iBAAiB,CAAe,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BuildParamsFeature: import("@webiny/feature/admin").FeatureDefinition<any, []>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { BuildParams } from "./BuildParams.js";
|
|
3
|
+
export const BuildParamsFeature = createFeature({
|
|
4
|
+
name: "BuildParamsFeature",
|
|
5
|
+
register(container) {
|
|
6
|
+
container.register(BuildParams);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFeature","BuildParams","BuildParamsFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { Container } from \"@webiny/di\";\nimport { BuildParams } from \"./BuildParams.js\";\n\nexport const BuildParamsFeature = createFeature({\n name: \"BuildParamsFeature\",\n register(container: Container) {\n container.register(BuildParams);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AAErD,SAASC,WAAW;AAEpB,OAAO,MAAMC,kBAAkB,GAAGF,aAAa,CAAC;EAC5CG,IAAI,EAAE,oBAAoB;EAC1BC,QAAQA,CAACC,SAAoB,EAAE;IAC3BA,SAAS,CAACD,QAAQ,CAACH,WAAW,CAAC;EACnC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BuildParam","BuildParams","BuildParamsImplementation"],"sources":["index.ts"],"sourcesContent":["export { BuildParam, BuildParams } from \"./abstractions.js\";\nexport { BuildParams as BuildParamsImplementation } from \"./BuildParams.js\";\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW;AAChC,SAASA,WAAW,IAAIC,yBAAyB","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthenticationContext as Abstraction, InternalIdTokenProvider } from "./abstractions.js";
|
|
2
|
+
declare class AuthenticationContextImpl implements Abstraction.Interface {
|
|
3
|
+
private idTokenProvider;
|
|
4
|
+
private logoutCallback;
|
|
5
|
+
constructor(idTokenProvider: InternalIdTokenProvider.Interface);
|
|
6
|
+
clear(): Promise<void>;
|
|
7
|
+
getIdToken: Abstraction.IdTokenProvider;
|
|
8
|
+
getLogoutCallback(): Abstraction.LogoutCallback;
|
|
9
|
+
setIdTokenProvider(provider: Abstraction.IdTokenProvider): void;
|
|
10
|
+
setLogoutCallback(callback: Abstraction.LogoutCallback): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const AuthenticationContext: typeof AuthenticationContextImpl & {
|
|
13
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IAuthenticationContext>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AuthenticationContext as Abstraction, InternalIdTokenProvider } from "./abstractions.js";
|
|
2
|
+
const noop = () => undefined;
|
|
3
|
+
class AuthenticationContextImpl {
|
|
4
|
+
logoutCallback = noop;
|
|
5
|
+
constructor(idTokenProvider) {
|
|
6
|
+
this.idTokenProvider = idTokenProvider;
|
|
7
|
+
}
|
|
8
|
+
async clear() {
|
|
9
|
+
await this.logoutCallback();
|
|
10
|
+
this.idTokenProvider.setTokenProvider(noop);
|
|
11
|
+
this.logoutCallback = noop;
|
|
12
|
+
}
|
|
13
|
+
getIdToken = () => {
|
|
14
|
+
return this.idTokenProvider.getTokenProvider()();
|
|
15
|
+
};
|
|
16
|
+
getLogoutCallback() {
|
|
17
|
+
return this.logoutCallback;
|
|
18
|
+
}
|
|
19
|
+
setIdTokenProvider(provider) {
|
|
20
|
+
this.idTokenProvider.setTokenProvider(provider);
|
|
21
|
+
}
|
|
22
|
+
setLogoutCallback(callback) {
|
|
23
|
+
this.logoutCallback = callback;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export const AuthenticationContext = Abstraction.createImplementation({
|
|
27
|
+
implementation: AuthenticationContextImpl,
|
|
28
|
+
dependencies: [InternalIdTokenProvider]
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=AuthenticationContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthenticationContext","Abstraction","InternalIdTokenProvider","noop","undefined","AuthenticationContextImpl","logoutCallback","constructor","idTokenProvider","clear","setTokenProvider","getIdToken","getTokenProvider","getLogoutCallback","setIdTokenProvider","provider","setLogoutCallback","callback","createImplementation","implementation","dependencies"],"sources":["AuthenticationContext.ts"],"sourcesContent":["import { AuthenticationContext as Abstraction, InternalIdTokenProvider } from \"./abstractions.js\";\n\nconst noop = () => undefined;\n\nclass AuthenticationContextImpl implements Abstraction.Interface {\n private logoutCallback: Abstraction.LogoutCallback = noop;\n\n constructor(private idTokenProvider: InternalIdTokenProvider.Interface) {}\n\n async clear(): Promise<void> {\n await this.logoutCallback();\n this.idTokenProvider.setTokenProvider(noop);\n this.logoutCallback = noop;\n }\n\n getIdToken: Abstraction.IdTokenProvider = () => {\n return this.idTokenProvider.getTokenProvider()();\n };\n\n getLogoutCallback(): Abstraction.LogoutCallback {\n return this.logoutCallback;\n }\n\n setIdTokenProvider(provider: Abstraction.IdTokenProvider): void {\n this.idTokenProvider.setTokenProvider(provider);\n }\n\n setLogoutCallback(callback: Abstraction.LogoutCallback): void {\n this.logoutCallback = callback;\n }\n}\n\nexport const AuthenticationContext = Abstraction.createImplementation({\n implementation: AuthenticationContextImpl,\n dependencies: [InternalIdTokenProvider]\n});\n"],"mappings":"AAAA,SAASA,qBAAqB,IAAIC,WAAW,EAAEC,uBAAuB;AAEtE,MAAMC,IAAI,GAAGA,CAAA,KAAMC,SAAS;AAE5B,MAAMC,yBAAyB,CAAkC;EACrDC,cAAc,GAA+BH,IAAI;EAEzDI,WAAWA,CAASC,eAAkD,EAAE;IAAA,KAApDA,eAAkD,GAAlDA,eAAkD;EAAG;EAEzE,MAAMC,KAAKA,CAAA,EAAkB;IACzB,MAAM,IAAI,CAACH,cAAc,CAAC,CAAC;IAC3B,IAAI,CAACE,eAAe,CAACE,gBAAgB,CAACP,IAAI,CAAC;IAC3C,IAAI,CAACG,cAAc,GAAGH,IAAI;EAC9B;EAEAQ,UAAU,GAAgCA,CAAA,KAAM;IAC5C,OAAO,IAAI,CAACH,eAAe,CAACI,gBAAgB,CAAC,CAAC,CAAC,CAAC;EACpD,CAAC;EAEDC,iBAAiBA,CAAA,EAA+B;IAC5C,OAAO,IAAI,CAACP,cAAc;EAC9B;EAEAQ,kBAAkBA,CAACC,QAAqC,EAAQ;IAC5D,IAAI,CAACP,eAAe,CAACE,gBAAgB,CAACK,QAAQ,CAAC;EACnD;EAEAC,iBAAiBA,CAACC,QAAoC,EAAQ;IAC1D,IAAI,CAACX,cAAc,GAAGW,QAAQ;EAClC;AACJ;AAEA,OAAO,MAAMjB,qBAAqB,GAAGC,WAAW,CAACiB,oBAAoB,CAAC;EAClEC,cAAc,EAAEd,yBAAyB;EACzCe,YAAY,EAAE,CAAClB,uBAAuB;AAC1C,CAAC,CAAC","ignoreList":[]}
|