@webiny/app-admin 0.0.0-unstable.aa00eecd97 → 0.0.0-unstable.ac6ebf63c6
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/assets/icons/file_download.svg +1 -0
- package/assets/icons/file_upload.svg +1 -0
- package/base/Admin.d.ts +5 -2
- package/base/Admin.js +43 -40
- package/base/Admin.js.map +1 -1
- package/base/Base/LexicalPreset/LinkEditForm.d.ts +6 -0
- package/base/Base/LexicalPreset/LinkEditForm.js +63 -0
- package/base/Base/LexicalPreset/LinkEditForm.js.map +1 -0
- package/base/Base/LexicalPreset.d.ts +2 -0
- package/base/Base/LexicalPreset.js +68 -0
- package/base/Base/LexicalPreset.js.map +1 -0
- package/base/Base/Menus/SupportMenuItems.d.ts +2 -0
- package/base/Base/Menus/SupportMenuItems.js +18 -0
- package/base/Base/Menus/SupportMenuItems.js.map +1 -0
- package/base/Base/Menus/WebinyVersion.d.ts +2 -0
- package/base/Base/Menus/WebinyVersion.js +24 -0
- package/base/Base/Menus/WebinyVersion.js.map +1 -0
- package/base/Base/Menus.d.ts +2 -0
- package/base/Base/Menus.js +114 -0
- package/base/Base/Menus.js.map +1 -0
- 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/wby-square.svg +3 -0
- package/base/Base/Tenant.d.ts +2 -0
- package/base/Base/Tenant.js +24 -0
- package/base/Base/Tenant.js.map +1 -0
- 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.d.ts +1 -1
- package/base/Base.js +12 -71
- 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.d.ts +2 -0
- package/base/WebinyVersion.js +24 -0
- package/base/WebinyVersion.js.map +1 -0
- package/base/createRootContainer.d.ts +2 -0
- package/base/createRootContainer.js +55 -0
- package/base/createRootContainer.js.map +1 -0
- package/base/plugins/AddGraphQLQuerySelection.d.ts +2 -3
- package/base/plugins/AddGraphQLQuerySelection.js +13 -22
- package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
- package/base/providers/AdminUiStateProvider.d.ts +1 -0
- package/base/providers/AdminUiStateProvider.js +14 -0
- package/base/providers/AdminUiStateProvider.js.map +1 -0
- package/base/providers/ApolloProvider.d.ts +5 -2
- package/base/providers/ApolloProvider.js +10 -18
- package/base/providers/ApolloProvider.js.map +1 -1
- package/base/providers/UiProviders.d.ts +1 -0
- package/base/providers/UiProviders.js +35 -0
- package/base/providers/UiProviders.js.map +1 -0
- package/base/providers/UiStateProvider.d.ts +1 -2
- package/base/providers/UiStateProvider.js +12 -16
- package/base/providers/UiStateProvider.js.map +1 -1
- package/base/ui/Brand.d.ts +39 -2
- package/base/ui/Brand.js +7 -14
- package/base/ui/Brand.js.map +1 -1
- package/base/ui/CenteredView.d.ts +21 -1
- package/base/ui/CenteredView.js +14 -34
- package/base/ui/CenteredView.js.map +1 -1
- package/base/ui/Dashboard.d.ts +39 -2
- package/base/ui/Dashboard.js +7 -14
- package/base/ui/Dashboard.js.map +1 -1
- package/base/ui/FileManager.d.ts +35 -28
- package/base/ui/FileManager.js +57 -52
- package/base/ui/FileManager.js.map +1 -1
- package/base/ui/Layout.d.ts +40 -2
- package/base/ui/Layout.js +10 -18
- package/base/ui/Layout.js.map +1 -1
- package/base/ui/LoginScreen.d.ts +40 -2
- package/base/ui/LoginScreen.js +22 -17
- package/base/ui/LoginScreen.js.map +1 -1
- package/base/ui/Logo.d.ts +38 -7
- package/base/ui/Logo.js +7 -29
- package/base/ui/Logo.js.map +1 -1
- package/base/ui/Navigation.d.ts +39 -23
- package/base/ui/Navigation.js +14 -146
- package/base/ui/Navigation.js.map +1 -1
- package/base/ui/NotFound.d.ts +39 -2
- package/base/ui/NotFound.js +7 -14
- package/base/ui/NotFound.js.map +1 -1
- package/base/ui/Tags.d.ts +2 -2
- package/base/ui/Tags.js +16 -18
- package/base/ui/Tags.js.map +1 -1
- package/base/ui/TenantSelector.d.ts +39 -0
- package/base/ui/TenantSelector.js +8 -0
- package/base/ui/TenantSelector.js.map +1 -0
- package/base/ui/UserMenu/UserMenu.d.ts +39 -0
- package/base/ui/UserMenu/UserMenu.js +8 -0
- package/base/ui/UserMenu/UserMenu.js.map +1 -0
- package/base/ui/UserMenu/UserMenuHandle.d.ts +39 -0
- package/base/ui/UserMenu/UserMenuHandle.js +8 -0
- package/base/ui/UserMenu/UserMenuHandle.js.map +1 -0
- package/base/ui/UserMenu/UserMenuItem.d.ts +81 -0
- package/base/ui/UserMenu/UserMenuItem.js +19 -0
- package/base/ui/UserMenu/UserMenuItem.js.map +1 -0
- package/base/ui/UserMenu/UserMenuLink.d.ts +81 -0
- package/base/ui/UserMenu/UserMenuLink.js +19 -0
- package/base/ui/UserMenu/UserMenuLink.js.map +1 -0
- package/base/ui/UserMenu/UserMenuSeparator.d.ts +42 -0
- package/base/ui/UserMenu/UserMenuSeparator.js +9 -0
- package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -0
- package/base/ui/UserMenu.d.ts +79 -29
- package/base/ui/UserMenu.js +16 -110
- package/base/ui/UserMenu.js.map +1 -1
- package/components/AdminLayout.d.ts +2 -1
- package/components/AdminLayout.js +9 -14
- package/components/AdminLayout.js.map +1 -1
- package/components/BulkActions/Worker.d.ts +82 -0
- package/components/BulkActions/Worker.js +126 -0
- package/components/BulkActions/Worker.js.map +1 -0
- package/components/BulkActions/index.d.ts +2 -0
- package/components/BulkActions/index.js +4 -0
- package/components/BulkActions/index.js.map +1 -0
- package/components/BulkActions/useDialogWithReport/DialogMessage.d.ts +5 -0
- package/components/BulkActions/useDialogWithReport/DialogMessage.js +23 -0
- package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -0
- package/components/BulkActions/useDialogWithReport/index.d.ts +1 -0
- package/components/BulkActions/useDialogWithReport/index.js +3 -0
- package/components/BulkActions/useDialogWithReport/index.js.map +1 -0
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.d.ts +19 -0
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +51 -0
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -0
- package/components/Buttons/Buttons.d.ts +24 -0
- package/components/Buttons/Buttons.js +77 -0
- package/components/Buttons/Buttons.js.map +1 -0
- package/components/Buttons/Buttons.styles.d.ts +4 -0
- package/components/Buttons/Buttons.styles.js +17 -0
- package/components/Buttons/Buttons.styles.js.map +1 -0
- package/components/Buttons/index.d.ts +2 -0
- package/components/Buttons/index.js +4 -0
- package/components/Buttons/index.js.map +1 -0
- package/components/Buttons/useButtons.d.ts +14 -0
- package/components/Buttons/useButtons.js +24 -0
- package/components/Buttons/useButtons.js.map +1 -0
- package/components/Dialogs/Dialog.d.ts +21 -0
- package/components/Dialogs/Dialog.js +62 -0
- package/components/Dialogs/Dialog.js.map +1 -0
- package/components/Dialogs/DialogsContext.d.ts +38 -0
- package/components/Dialogs/DialogsContext.js +132 -0
- package/components/Dialogs/DialogsContext.js.map +1 -0
- package/components/Dialogs/useDialogs.d.ts +2 -0
- package/components/Dialogs/useDialogs.js +11 -0
- package/components/Dialogs/useDialogs.js.map +1 -0
- package/components/EmptyView.d.ts +4 -4
- package/components/EmptyView.js +30 -58
- package/components/EmptyView.js.map +1 -1
- package/components/Filters/Filters.d.ts +16 -0
- package/components/Filters/Filters.js +21 -0
- package/components/Filters/Filters.js.map +1 -0
- package/components/Filters/FiltersToggle.d.ts +7 -0
- package/components/Filters/FiltersToggle.js +26 -0
- package/components/Filters/FiltersToggle.js.map +1 -0
- package/components/Filters/index.d.ts +2 -0
- package/components/Filters/index.js +4 -0
- package/components/Filters/index.js.map +1 -0
- package/components/FloatingActionButton.d.ts +4 -1
- package/components/FloatingActionButton.js +9 -14
- package/components/FloatingActionButton.js.map +1 -1
- package/components/FloatingPanel.d.ts +13 -0
- package/components/FloatingPanel.js +94 -0
- package/components/FloatingPanel.js.map +1 -0
- package/components/IconPicker/IconPicker.d.ts +13 -0
- package/components/IconPicker/IconPicker.js +39 -0
- package/components/IconPicker/IconPicker.js.map +1 -0
- package/components/IconPicker/IconPickerComponent.d.ts +17 -0
- package/components/IconPicker/IconPickerComponent.js +81 -0
- package/components/IconPicker/IconPickerComponent.js.map +1 -0
- package/components/IconPicker/IconPickerPresenter.d.ts +53 -0
- package/components/IconPicker/IconPickerPresenter.js +77 -0
- package/components/IconPicker/IconPickerPresenter.js.map +1 -0
- package/components/IconPicker/IconPickerPresenter.test.d.ts +1 -0
- package/components/IconPicker/IconPickerPresenter.test.js +110 -0
- package/components/IconPicker/IconPickerPresenter.test.js.map +1 -0
- package/components/IconPicker/IconPickerPresenterProvider.d.ts +9 -0
- package/components/IconPicker/IconPickerPresenterProvider.js +19 -0
- package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -0
- package/components/IconPicker/IconPickerTab.d.ts +33 -0
- package/components/IconPicker/IconPickerTab.js +159 -0
- package/components/IconPicker/IconPickerTab.js.map +1 -0
- package/components/IconPicker/IconRenderer.d.ts +34 -0
- package/components/IconPicker/IconRenderer.js +27 -0
- package/components/IconPicker/IconRenderer.js.map +1 -0
- package/components/IconPicker/IconRepository.d.ts +19 -0
- package/components/IconPicker/IconRepository.js +47 -0
- package/components/IconPicker/IconRepository.js.map +1 -0
- package/components/IconPicker/IconRepository.test.d.ts +1 -0
- package/components/IconPicker/IconRepository.test.js +67 -0
- package/components/IconPicker/IconRepository.test.js.map +1 -0
- package/components/IconPicker/IconRepositoryFactory.d.ts +9 -0
- package/components/IconPicker/IconRepositoryFactory.js +17 -0
- package/components/IconPicker/IconRepositoryFactory.js.map +1 -0
- package/components/IconPicker/Loading.d.ts +14 -0
- package/components/IconPicker/Loading.js +50 -0
- package/components/IconPicker/Loading.js.map +1 -0
- package/components/IconPicker/components/IconPickerCell.d.ts +12 -0
- package/components/IconPicker/components/IconPickerCell.js +27 -0
- package/components/IconPicker/components/IconPickerCell.js.map +1 -0
- package/components/IconPicker/components/IconPickerContent.d.ts +11 -0
- package/components/IconPicker/components/IconPickerContent.js +41 -0
- package/components/IconPicker/components/IconPickerContent.js.map +1 -0
- package/components/IconPicker/components/IconPickerRow.d.ts +4 -0
- package/components/IconPicker/components/IconPickerRow.js +14 -0
- package/components/IconPicker/components/IconPickerRow.js.map +1 -0
- package/components/IconPicker/components/IconPickerTrigger.d.ts +13 -0
- package/components/IconPicker/components/IconPickerTrigger.js +52 -0
- package/components/IconPicker/components/IconPickerTrigger.js.map +1 -0
- package/components/IconPicker/components/index.d.ts +4 -0
- package/components/IconPicker/components/index.js +6 -0
- package/components/IconPicker/components/index.js.map +1 -0
- package/components/IconPicker/config/Emojis.d.ts +2 -0
- package/components/IconPicker/config/Emojis.js +24 -0
- package/components/IconPicker/config/Emojis.js.map +1 -0
- package/components/IconPicker/config/FontAwesomeIcons.d.ts +2 -0
- package/components/IconPicker/config/FontAwesomeIcons.js +61 -0
- package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -0
- package/components/IconPicker/config/IconPackProvider.d.ts +7 -0
- package/components/IconPicker/config/IconPackProvider.js +23 -0
- package/components/IconPicker/config/IconPackProvider.js.map +1 -0
- package/components/IconPicker/config/IconType.d.ts +32 -0
- package/components/IconPicker/config/IconType.js +89 -0
- package/components/IconPicker/config/IconType.js.map +1 -0
- package/components/IconPicker/config/index.d.ts +31 -0
- package/components/IconPicker/config/index.js +45 -0
- package/components/IconPicker/config/index.js.map +1 -0
- package/components/IconPicker/defaultIcon.d.ts +6 -0
- package/components/IconPicker/defaultIcon.js +8 -0
- package/components/IconPicker/defaultIcon.js.map +1 -0
- package/components/IconPicker/index.d.ts +7 -0
- package/components/IconPicker/index.js +8 -0
- package/components/IconPicker/index.js.map +1 -0
- package/components/IconPicker/plugins/customPlugin.d.ts +2 -0
- package/components/IconPicker/plugins/customPlugin.js +127 -0
- package/components/IconPicker/plugins/customPlugin.js.map +1 -0
- package/components/IconPicker/plugins/emojisPlugin.d.ts +2 -0
- package/components/IconPicker/plugins/emojisPlugin.js +127 -0
- package/components/IconPicker/plugins/emojisPlugin.js.map +1 -0
- package/components/IconPicker/plugins/graphql.d.ts +20 -0
- package/components/IconPicker/plugins/graphql.js +27 -0
- package/components/IconPicker/plugins/graphql.js.map +1 -0
- package/components/IconPicker/plugins/iconsPlugin.d.ts +2 -0
- package/components/IconPicker/plugins/iconsPlugin.js +115 -0
- package/components/IconPicker/plugins/iconsPlugin.js.map +1 -0
- package/components/IconPicker/types.d.ts +22 -0
- package/components/IconPicker/types.js +10 -0
- package/components/IconPicker/types.js.map +1 -0
- package/components/LexicalEditor/LexicalEditor.d.ts +12 -0
- package/components/LexicalEditor/LexicalEditor.js +40 -0
- package/components/LexicalEditor/LexicalEditor.js.map +1 -0
- package/components/LexicalEditor/index.d.ts +2 -0
- package/components/LexicalEditor/index.js +4 -0
- package/components/LexicalEditor/index.js.map +1 -0
- 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/MultiImageUpload.d.ts +1 -1
- package/components/MultiImageUpload.js +14 -32
- package/components/MultiImageUpload.js.map +1 -1
- 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.d.ts +10 -0
- package/components/OptionsMenu/OptionsMenu.js +23 -0
- package/components/OptionsMenu/OptionsMenu.js.map +1 -0
- package/components/OptionsMenu/OptionsMenuItem.d.ts +10 -0
- package/components/OptionsMenu/OptionsMenuItem.js +17 -0
- package/components/OptionsMenu/OptionsMenuItem.js.map +1 -0
- package/components/OptionsMenu/OptionsMenuLink.d.ts +12 -0
- package/components/OptionsMenu/OptionsMenuLink.js +17 -0
- package/components/OptionsMenu/OptionsMenuLink.js.map +1 -0
- package/components/OptionsMenu/index.d.ts +4 -0
- package/components/OptionsMenu/index.js +6 -0
- package/components/OptionsMenu/index.js.map +1 -0
- package/components/OptionsMenu/useOptionsMenuItem.d.ts +13 -0
- package/components/OptionsMenu/useOptionsMenuItem.js +23 -0
- package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -0
- package/components/OverlayLayout/OverlayLayout.d.ts +6 -17
- package/components/OverlayLayout/OverlayLayout.js +43 -154
- package/components/OverlayLayout/OverlayLayout.js.map +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.d.ts +7 -0
- package/components/OverlayLayout/components/OverlayBackdrop.js +15 -0
- package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -0
- package/components/OverlayLayout/components/OverlayContent.d.ts +6 -0
- package/components/OverlayLayout/components/OverlayContent.js +21 -0
- package/components/OverlayLayout/components/OverlayContent.js.map +1 -0
- package/components/OverlayLayout/components/OverlayHeader.d.ts +13 -0
- package/components/OverlayLayout/components/OverlayHeader.js +44 -0
- package/components/OverlayLayout/components/OverlayHeader.js.map +1 -0
- package/components/OverlayLayout/components/OverlayRoot.d.ts +9 -0
- package/components/OverlayLayout/components/OverlayRoot.js +19 -0
- package/components/OverlayLayout/components/OverlayRoot.js.map +1 -0
- package/components/OverlayLayout/components/index.d.ts +4 -0
- package/components/OverlayLayout/components/index.js +6 -0
- package/components/OverlayLayout/components/index.js.map +1 -0
- package/components/OverlayLayout/index.d.ts +1 -1
- package/components/OverlayLayout/index.js +2 -15
- package/components/OverlayLayout/index.js.map +1 -1
- package/components/Permissions/CannotUseAaclAlert.d.ts +2 -0
- package/components/Permissions/CannotUseAaclAlert.js +14 -0
- package/components/Permissions/CannotUseAaclAlert.js.map +1 -0
- package/components/Permissions/Permissions.d.ts +3 -3
- package/components/Permissions/Permissions.js +39 -49
- package/components/Permissions/Permissions.js.map +1 -1
- package/components/Permissions/PermissionsGroup.d.ts +6 -0
- package/components/Permissions/PermissionsGroup.js +18 -0
- package/components/Permissions/PermissionsGroup.js.map +1 -0
- package/components/Permissions/StyledComponents.d.ts +2 -3
- package/components/Permissions/StyledComponents.js +14 -28
- package/components/Permissions/StyledComponents.js.map +1 -1
- package/components/Permissions/index.d.ts +4 -2
- package/components/Permissions/index.js +5 -26
- 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 -0
- package/components/ResizablePanels/index.js +3 -0
- package/components/ResizablePanels/index.js.map +1 -0
- 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 +2 -2
- package/components/SearchUI.js +24 -69
- package/components/SearchUI.js.map +1 -1
- package/components/SimpleForm/SimpleForm.d.ts +19 -8
- package/components/SimpleForm/SimpleForm.js +74 -70
- package/components/SimpleForm/SimpleForm.js.map +1 -1
- package/components/SimpleForm/index.d.ts +1 -1
- package/components/SimpleForm/index.js +2 -29
- package/components/SimpleForm/index.js.map +1 -1
- package/components/SimpleUI/InputField.d.ts +3 -3
- package/components/SimpleUI/InputField.js +43 -50
- package/components/SimpleUI/InputField.js.map +1 -1
- package/components/SingleImageUpload.d.ts +21 -8
- package/components/SingleImageUpload.js +41 -77
- package/components/SingleImageUpload.js.map +1 -1
- package/components/SplitView/SplitView.d.ts +11 -9
- package/components/SplitView/SplitView.js +61 -72
- package/components/SplitView/SplitView.js.map +1 -1
- package/components/SplitView/index.d.ts +1 -1
- package/components/SplitView/index.js +2 -23
- package/components/SplitView/index.js.map +1 -1
- package/components/StateInspector.d.ts +8 -0
- package/components/StateInspector.js +36 -0
- package/components/StateInspector.js.map +1 -0
- 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 +15 -0
- package/components/Wcp.js +34 -0
- package/components/Wcp.js.map +1 -0
- package/components/index.d.ts +27 -1
- package/components/index.js +28 -11
- 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 +62 -0
- package/config/AdminConfig/Menu/MenuGroup.js +14 -0
- package/config/AdminConfig/Menu/MenuGroup.js.map +1 -0
- package/config/AdminConfig/Menu/MenuItem.d.ts +43 -0
- package/config/AdminConfig/Menu/MenuItem.js +14 -0
- package/config/AdminConfig/Menu/MenuItem.js.map +1 -0
- package/config/AdminConfig/Menu/MenuLink.d.ts +43 -0
- package/config/AdminConfig/Menu/MenuLink.js +24 -0
- package/config/AdminConfig/Menu/MenuLink.js.map +1 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +43 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +13 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +24 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +13 -0
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -0
- package/config/AdminConfig/Menu/SupportMenu.d.ts +72 -0
- package/config/AdminConfig/Menu/SupportMenu.js +49 -0
- package/config/AdminConfig/Menu/SupportMenu.js.map +1 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.d.ts +40 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +7 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.d.ts +40 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +7 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.d.ts +1 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +3 -0
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +1 -0
- package/config/AdminConfig/Menu/UserMenu/types.d.ts +7 -0
- package/config/AdminConfig/Menu/UserMenu/types.js +3 -0
- package/config/AdminConfig/Menu/UserMenu/types.js.map +1 -0
- package/config/AdminConfig/Menu/UserMenu.d.ts +129 -0
- package/config/AdminConfig/Menu/UserMenu.js +61 -0
- package/config/AdminConfig/Menu/UserMenu.js.map +1 -0
- package/config/AdminConfig/Menu/types.d.ts +7 -0
- package/config/AdminConfig/Menu/types.js +3 -0
- package/config/AdminConfig/Menu/types.js.map +1 -0
- package/config/AdminConfig/Menu.d.ts +352 -0
- package/config/AdminConfig/Menu.js +85 -0
- package/config/AdminConfig/Menu.js.map +1 -0
- package/config/AdminConfig/Route.d.ts +3 -0
- package/config/AdminConfig/Route.js +8 -0
- package/config/AdminConfig/Route.js.map +1 -0
- package/config/AdminConfig/Tenant/TenantLogo.d.ts +24 -0
- package/config/AdminConfig/Tenant/TenantLogo.js +24 -0
- package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -0
- package/config/AdminConfig/Tenant/TenantName.d.ts +23 -0
- package/config/AdminConfig/Tenant/TenantName.js +19 -0
- package/config/AdminConfig/Tenant/TenantName.js.map +1 -0
- package/config/AdminConfig/Tenant.d.ts +49 -0
- package/config/AdminConfig/Tenant.js +14 -0
- package/config/AdminConfig/Tenant.js.map +1 -0
- package/config/AdminConfig/Theme/assignColor.d.ts +2 -0
- package/config/AdminConfig/Theme/assignColor.js +22 -0
- package/config/AdminConfig/Theme/assignColor.js.map +1 -0
- package/config/AdminConfig/Theme/consts.d.ts +2 -0
- package/config/AdminConfig/Theme/consts.js +4 -0
- package/config/AdminConfig/Theme/consts.js.map +1 -0
- package/config/AdminConfig/Theme/types.d.ts +3 -0
- package/config/AdminConfig/Theme/types.js +3 -0
- package/config/AdminConfig/Theme/types.js.map +1 -0
- package/config/AdminConfig/Theme.d.ts +16 -0
- package/config/AdminConfig/Theme.js +22 -0
- package/config/AdminConfig/Theme.js.map +1 -0
- 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 +479 -0
- package/config/AdminConfig.js +68 -0
- package/config/AdminConfig.js.map +1 -0
- package/config/createAdminConfig.d.ts +57 -0
- package/config/createAdminConfig.js +94 -0
- package/config/createAdminConfig.js.map +1 -0
- 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/buildParams.d.ts +1 -0
- package/exports/admin/buildParams.js +3 -0
- package/exports/admin/buildParams.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/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 +3 -0
- package/exports/admin/ui.js +5 -0
- package/exports/admin/ui.js.map +1 -0
- package/exports/admin.d.ts +3 -0
- package/exports/admin.js +5 -0
- package/exports/admin.js.map +1 -0
- package/extensions/AdminBuildParam.d.ts +11 -0
- package/extensions/AdminBuildParam.js +184 -0
- package/extensions/AdminBuildParam.js.map +1 -0
- package/extensions/AdminExtension.d.ts +11 -0
- package/extensions/AdminExtension.js +105 -0
- package/extensions/AdminExtension.js.map +1 -0
- package/extensions/index.d.ts +23 -0
- package/extensions/index.js +7 -0
- package/extensions/index.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 +3 -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 +18 -0
- package/features/wcp/ReactLicense.js +43 -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 -0
- package/hooks/index.js +13 -0
- package/hooks/index.js.map +1 -0
- package/hooks/useConfirmationDialog.d.ts +5 -3
- package/hooks/useConfirmationDialog.js +28 -34
- package/hooks/useConfirmationDialog.js.map +1 -1
- package/hooks/useDialog.d.ts +21 -2
- package/hooks/useDialog.js +18 -22
- package/hooks/useDialog.js.map +1 -1
- package/hooks/useIsMounted.d.ts +3 -0
- package/hooks/useIsMounted.js +15 -0
- package/hooks/useIsMounted.js.map +1 -0
- package/hooks/useKeyHandler.d.ts +8 -0
- package/hooks/useKeyHandler.js +64 -0
- package/hooks/useKeyHandler.js.map +1 -0
- package/hooks/useModKey.d.ts +1 -0
- package/hooks/useModKey.js +29 -0
- package/hooks/useModKey.js.map +1 -0
- package/hooks/useShiftKey.d.ts +1 -0
- package/hooks/useShiftKey.js +33 -0
- package/hooks/useShiftKey.js.map +1 -0
- package/hooks/useSnackbar.d.ts +1 -0
- package/hooks/useSnackbar.js +25 -26
- package/hooks/useSnackbar.js.map +1 -1
- package/hooks/useStateIfMounted.d.ts +1 -0
- package/hooks/useStateIfMounted.js +16 -0
- package/hooks/useStateIfMounted.js.map +1 -0
- package/hooks/useStateWithCallback.d.ts +5 -0
- package/hooks/useStateWithCallback.js +18 -0
- package/hooks/useStateWithCallback.js.map +1 -0
- package/hooks/useToggler.d.ts +7 -0
- package/hooks/useToggler.js +15 -0
- package/hooks/useToggler.js.map +1 -0
- package/index.d.ts +33 -32
- package/index.js +43 -312
- package/index.js.map +1 -1
- package/lexical.css +2 -0
- package/package.json +66 -49
- package/plugins/MenuPlugin.d.ts +1 -1
- package/plugins/MenuPlugin.js +17 -41
- package/plugins/MenuPlugin.js.map +1 -1
- package/plugins/PermissionRendererPlugin.d.ts +1 -1
- package/plugins/PermissionRendererPlugin.js +17 -41
- package/plugins/PermissionRendererPlugin.js.map +1 -1
- 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/styles.scss +7 -2
- package/types.d.ts +9 -84
- package/types.js +2 -4
- package/types.js.map +1 -1
- package/base/providers/TelemetryProvider.d.ts +0 -2
- package/base/providers/TelemetryProvider.js +0 -31
- package/base/providers/TelemetryProvider.js.map +0 -1
- package/base/providers/ViewCompositionProvider.d.ts +0 -17
- package/base/providers/ViewCompositionProvider.js +0 -57
- package/base/providers/ViewCompositionProvider.js.map +0 -1
- package/base/ui/LocaleSelector.d.ts +0 -2
- package/base/ui/LocaleSelector.js +0 -15
- package/base/ui/LocaleSelector.js.map +0 -1
- package/base/ui/Menu.d.ts +0 -31
- package/base/ui/Menu.js +0 -137
- package/base/ui/Menu.js.map +0 -1
- package/base/ui/Search.d.ts +0 -19
- package/base/ui/Search.js +0 -63
- package/base/ui/Search.js.map +0 -1
- package/components/AppInstaller/AppInstaller.d.ts +0 -7
- package/components/AppInstaller/AppInstaller.js +0 -117
- package/components/AppInstaller/AppInstaller.js.map +0 -1
- package/components/AppInstaller/Sidebar.d.ts +0 -9
- package/components/AppInstaller/Sidebar.js +0 -145
- 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 -22
- package/components/AppInstaller/index.js.map +0 -1
- package/components/AppInstaller/styled.d.ts +0 -21
- package/components/AppInstaller/styled.js +0 -87
- package/components/AppInstaller/styled.js.map +0 -1
- package/components/AppInstaller/useInstaller.d.ts +0 -25
- package/components/AppInstaller/useInstaller.js +0 -210
- package/components/AppInstaller/useInstaller.js.map +0 -1
- package/components/OverlayLayout/icons/close.svg +0 -13
- package/components/OverlayLayout/icons/navigate_before.svg +0 -16
- package/components/RichTextEditor/RichTextEditor.d.ts +0 -3
- package/components/RichTextEditor/RichTextEditor.js +0 -23
- package/components/RichTextEditor/RichTextEditor.js.map +0 -1
- package/components/RichTextEditor/index.d.ts +0 -2
- package/components/RichTextEditor/index.js +0 -19
- package/components/RichTextEditor/index.js.map +0 -1
- package/components/RichTextEditor/styles.scss +0 -96
- package/components/RichTextEditor/tools/header/index.d.ts +0 -229
- package/components/RichTextEditor/tools/header/index.js +0 -691
- 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 -124
- package/components/RichTextEditor/tools/image/index.js +0 -244
- 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 -12
- package/components/RichTextEditor/tools/image/svgs.js.map +0 -1
- package/components/RichTextEditor/tools/image/tunes.d.ts +0 -57
- package/components/RichTextEditor/tools/image/tunes.js +0 -129
- 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 +0 -5
- package/components/RichTextEditor/tools/image/types.js.map +0 -1
- package/components/RichTextEditor/tools/image/ui.d.ts +0 -122
- package/components/RichTextEditor/tools/image/ui.js +0 -278
- package/components/RichTextEditor/tools/image/ui.js.map +0 -1
- package/components/RichTextEditor/tools/paragraph/index.d.ts +0 -209
- package/components/RichTextEditor/tools/paragraph/index.js +0 -488
- 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 -64
- package/components/RichTextEditor/tools/textColor/index.js +0 -245
- 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 -31
- package/components/RichTextEditor/tools/utils.js.map +0 -1
- package/components/Routes.d.ts +0 -6
- package/components/Routes.js +0 -42
- package/components/Routes.js.map +0 -1
- package/plugins/globalSearch/SearchBar.d.ts +0 -15
- package/plugins/globalSearch/SearchBar.js +0 -225
- package/plugins/globalSearch/SearchBar.js.map +0 -1
- package/plugins/globalSearch/SearchBarDropdown.d.ts +0 -23
- package/plugins/globalSearch/SearchBarDropdown.js +0 -83
- package/plugins/globalSearch/SearchBarDropdown.js.map +0 -1
- package/plugins/globalSearch/icons/round-search-24px.svg +0 -20
- package/plugins/globalSearch/index.d.ts +0 -7
- package/plugins/globalSearch/index.js +0 -16
- package/plugins/globalSearch/index.js.map +0 -1
- package/plugins/globalSearch/styled.d.ts +0 -20
- package/plugins/globalSearch/styled.js +0 -131
- package/plugins/globalSearch/styled.js.map +0 -1
- package/plugins/uiLayoutRenderer/index.d.ts +0 -2
- package/plugins/uiLayoutRenderer/index.js +0 -61
- package/plugins/uiLayoutRenderer/index.js.map +0 -1
- package/styles/material-theme-assignments.scss +0 -350
- package/styles/material.scss +0 -43
- package/styles/theme.scss +0 -76
- package/ui/UIElement.d.ts +0 -2
- package/ui/UIElement.js +0 -18
- package/ui/UIElement.js.map +0 -1
- package/ui/UILayout.d.ts +0 -1
- package/ui/UILayout.js +0 -18
- package/ui/UILayout.js.map +0 -1
- package/ui/UIRenderer.d.ts +0 -2
- package/ui/UIRenderer.js +0 -12
- package/ui/UIRenderer.js.map +0 -1
- package/ui/UIView.d.ts +0 -2
- package/ui/UIView.js +0 -24
- package/ui/UIView.js.map +0 -1
- package/ui/elements/AccordionElement.d.ts +0 -27
- package/ui/elements/AccordionElement.js +0 -84
- package/ui/elements/AccordionElement.js.map +0 -1
- package/ui/elements/ButtonElement.d.ts +0 -24
- package/ui/elements/ButtonElement.js +0 -86
- package/ui/elements/ButtonElement.js.map +0 -1
- package/ui/elements/ButtonGroupElement.d.ts +0 -6
- package/ui/elements/ButtonGroupElement.js +0 -48
- package/ui/elements/ButtonGroupElement.js.map +0 -1
- package/ui/elements/GenericElement.d.ts +0 -1
- package/ui/elements/GenericElement.js +0 -16
- package/ui/elements/GenericElement.js.map +0 -1
- package/ui/elements/LabelElement.d.ts +0 -16
- package/ui/elements/LabelElement.js +0 -46
- package/ui/elements/LabelElement.js.map +0 -1
- package/ui/elements/NavigationMenuElement.d.ts +0 -33
- package/ui/elements/NavigationMenuElement.js +0 -144
- package/ui/elements/NavigationMenuElement.js.map +0 -1
- package/ui/elements/PanelElement.d.ts +0 -3
- package/ui/elements/PanelElement.js +0 -22
- package/ui/elements/PanelElement.js.map +0 -1
- package/ui/elements/PlaceholderElement.d.ts +0 -6
- package/ui/elements/PlaceholderElement.js +0 -33
- package/ui/elements/PlaceholderElement.js.map +0 -1
- package/ui/elements/SmallButtonElement.d.ts +0 -6
- package/ui/elements/SmallButtonElement.js +0 -45
- package/ui/elements/SmallButtonElement.js.map +0 -1
- package/ui/elements/TypographyElement.d.ts +0 -13
- package/ui/elements/TypographyElement.js +0 -48
- package/ui/elements/TypographyElement.js.map +0 -1
- package/ui/elements/ViewElement.d.ts +0 -1
- package/ui/elements/ViewElement.js +0 -16
- package/ui/elements/ViewElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +0 -6
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +0 -44
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js.map +0 -1
- package/ui/elements/form/DynamicFieldsetElement.d.ts +0 -43
- package/ui/elements/form/DynamicFieldsetElement.js +0 -135
- 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 -26
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js.map +0 -1
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +0 -7
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +0 -73
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +0 -13
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +0 -104
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js.map +0 -1
- package/ui/elements/form/FileManagerElement/styled.d.ts +0 -27
- package/ui/elements/form/FileManagerElement/styled.js +0 -115
- package/ui/elements/form/FileManagerElement/styled.js.map +0 -1
- package/ui/elements/form/FileManagerElement.d.ts +0 -24
- package/ui/elements/form/FileManagerElement.js +0 -88
- package/ui/elements/form/FileManagerElement.js.map +0 -1
- package/ui/elements/form/FormElement.d.ts +0 -21
- package/ui/elements/form/FormElement.js +0 -45
- package/ui/elements/form/FormElement.js.map +0 -1
- package/ui/elements/form/FormFieldElement.d.ts +0 -56
- package/ui/elements/form/FormFieldElement.js +0 -173
- package/ui/elements/form/FormFieldElement.js.map +0 -1
- package/ui/elements/form/HiddenElement.d.ts +0 -6
- package/ui/elements/form/HiddenElement.js +0 -47
- package/ui/elements/form/HiddenElement.js.map +0 -1
- package/ui/elements/form/InputElement.d.ts +0 -7
- package/ui/elements/form/InputElement.js +0 -54
- 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 -51
- 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 -15
- package/ui/elements/form/SelectElement.js +0 -69
- package/ui/elements/form/SelectElement.js.map +0 -1
- package/ui/elements/form/TextareaElement.d.ts +0 -15
- package/ui/elements/form/TextareaElement.js +0 -55
- 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 -54
- 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 -104
- package/ui/views/AdminView/HeaderElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +0 -6
- package/ui/views/AdminView/HeaderSectionCenterElement.js +0 -42
- package/ui/views/AdminView/HeaderSectionCenterElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +0 -6
- package/ui/views/AdminView/HeaderSectionLeftElement.js +0 -42
- package/ui/views/AdminView/HeaderSectionLeftElement.js.map +0 -1
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +0 -6
- package/ui/views/AdminView/HeaderSectionRightElement.js +0 -42
- 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 -46
- 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 -31
- package/ui/views/AdminView/components/Hamburger.js.map +0 -1
- package/ui/views/AdminView/components/Snackbar.d.ts +0 -3
- package/ui/views/AdminView/components/Snackbar.js +0 -32
- package/ui/views/AdminView/components/Snackbar.js.map +0 -1
- package/ui/views/FormView/FormContainerElement.d.ts +0 -12
- package/ui/views/FormView/FormContainerElement.js +0 -50
- package/ui/views/FormView/FormContainerElement.js.map +0 -1
- package/ui/views/FormView/FormContentElement.d.ts +0 -3
- package/ui/views/FormView/FormContentElement.js +0 -22
- package/ui/views/FormView/FormContentElement.js.map +0 -1
- package/ui/views/FormView/FormFooterElement.d.ts +0 -6
- package/ui/views/FormView/FormFooterElement.js +0 -49
- package/ui/views/FormView/FormFooterElement.js.map +0 -1
- package/ui/views/FormView/FormHeaderElement.d.ts +0 -14
- package/ui/views/FormView/FormHeaderElement.js +0 -81
- package/ui/views/FormView/FormHeaderElement.js.map +0 -1
- package/ui/views/FormView.d.ts +0 -40
- package/ui/views/FormView.js +0 -167
- package/ui/views/FormView.js.map +0 -1
- package/ui/views/OverlayView/ContentElement.d.ts +0 -6
- package/ui/views/OverlayView/ContentElement.js +0 -42
- package/ui/views/OverlayView/ContentElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderElement.d.ts +0 -24
- package/ui/views/OverlayView/HeaderElement.js +0 -112
- package/ui/views/OverlayView/HeaderElement.js.map +0 -1
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +0 -13
- package/ui/views/OverlayView/HeaderTitleElement.js +0 -51
- 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 -44
- package/ui/views/OverlayView/useOverlayView.js.map +0 -1
- package/ui/views/OverlayView.d.ts +0 -29
- package/ui/views/OverlayView.js +0 -165
- package/ui/views/OverlayView.js.map +0 -1
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +0 -11
- package/ui/views/SplitView/SplitViewPanelElement.js +0 -71
- package/ui/views/SplitView/SplitViewPanelElement.js.map +0 -1
- package/ui/views/SplitView.d.ts +0 -21
- package/ui/views/SplitView.js +0 -122
- package/ui/views/SplitView.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AdminExtension } from "./AdminExtension.js";
|
|
2
|
+
import { AdminBuildParam } from "./AdminBuildParam.js";
|
|
3
|
+
export { AdminExtension };
|
|
4
|
+
export { AdminBuildParam };
|
|
5
|
+
export declare const definitions: (import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
6
|
+
src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
|
|
7
|
+
exportName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
src: string;
|
|
10
|
+
exportName?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
src: string;
|
|
13
|
+
exportName?: string | undefined;
|
|
14
|
+
}>> | import("@webiny/project/defineExtension/index.js").ExtensionDefinitionModel<import("zod").ZodObject<{
|
|
15
|
+
paramName: import("zod").ZodString;
|
|
16
|
+
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny, "many">, import("zod").ZodNumber, import("zod").ZodBoolean]>;
|
|
17
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
18
|
+
value: string | number | boolean | any[] | Record<string, any>;
|
|
19
|
+
paramName: string;
|
|
20
|
+
}, {
|
|
21
|
+
value: string | number | boolean | any[] | Record<string, any>;
|
|
22
|
+
paramName: string;
|
|
23
|
+
}>>)[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AdminExtension } from "./AdminExtension.js";
|
|
2
|
+
import { AdminBuildParam } from "./AdminBuildParam.js";
|
|
3
|
+
export { AdminExtension };
|
|
4
|
+
export { AdminBuildParam };
|
|
5
|
+
export const definitions = [AdminExtension.def, AdminBuildParam.def];
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AdminExtension","AdminBuildParam","definitions","def"],"sources":["index.ts"],"sourcesContent":["import { AdminExtension } from \"./AdminExtension.js\";\nimport { AdminBuildParam } from \"./AdminBuildParam.js\";\n\nexport { AdminExtension };\nexport { AdminBuildParam };\n\nexport const definitions = [AdminExtension.def, AdminBuildParam.def];\n"],"mappings":"AAAA,SAASA,cAAc;AACvB,SAASC,eAAe;AAExB,SAASD,cAAc;AACvB,SAASC,eAAe;AAExB,OAAO,MAAMC,WAAW,GAAG,CAACF,cAAc,CAACG,GAAG,EAAEF,eAAe,CAACE,GAAG,CAAC","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":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GraphQLClient } from "@webiny/app/features/graphqlClient/index.js";
|
|
2
|
+
import { InternalIdTokenProvider } from "../../../features/security/AuthenticationContext/abstractions.js";
|
|
3
|
+
declare class GraphQLClientWithIdToken implements GraphQLClient.Interface {
|
|
4
|
+
private idTokenProvider;
|
|
5
|
+
private decoratee;
|
|
6
|
+
constructor(idTokenProvider: InternalIdTokenProvider.Interface, decoratee: GraphQLClient.Interface);
|
|
7
|
+
execute<TVariables = any, TResult = any>(params: GraphQLClient.Request<TVariables>): Promise<TResult>;
|
|
8
|
+
}
|
|
9
|
+
export declare const GraphQLClientDecorator: typeof GraphQLClientWithIdToken & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/app/features/graphqlClient/abstractions").IGraphQLClient>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GraphQLClient } from "@webiny/app/features/graphqlClient/index.js";
|
|
2
|
+
import { InternalIdTokenProvider } from "./abstractions.js";
|
|
3
|
+
class GraphQLClientWithIdToken {
|
|
4
|
+
constructor(idTokenProvider, decoratee) {
|
|
5
|
+
this.idTokenProvider = idTokenProvider;
|
|
6
|
+
this.decoratee = decoratee;
|
|
7
|
+
}
|
|
8
|
+
async execute(params) {
|
|
9
|
+
if (params.headers?.Authorization) {
|
|
10
|
+
return this.decoratee.execute(params);
|
|
11
|
+
}
|
|
12
|
+
const idToken = await this.idTokenProvider.getTokenProvider()();
|
|
13
|
+
const authHeaders = idToken ? {
|
|
14
|
+
Authorization: `Bearer ${idToken}`
|
|
15
|
+
} : {};
|
|
16
|
+
return this.decoratee.execute({
|
|
17
|
+
...params,
|
|
18
|
+
headers: {
|
|
19
|
+
...params.headers,
|
|
20
|
+
...authHeaders
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export const GraphQLClientDecorator = GraphQLClient.createDecorator({
|
|
26
|
+
decorator: GraphQLClientWithIdToken,
|
|
27
|
+
dependencies: [InternalIdTokenProvider]
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=GraphQLClientDecorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GraphQLClient","InternalIdTokenProvider","GraphQLClientWithIdToken","constructor","idTokenProvider","decoratee","execute","params","headers","Authorization","idToken","getTokenProvider","authHeaders","GraphQLClientDecorator","createDecorator","decorator","dependencies"],"sources":["GraphQLClientDecorator.ts"],"sourcesContent":["import { GraphQLClient } from \"@webiny/app/features/graphqlClient/index.js\";\nimport { InternalIdTokenProvider } from \"~/features/security/AuthenticationContext/abstractions.js\";\n\nclass GraphQLClientWithIdToken implements GraphQLClient.Interface {\n constructor(\n private idTokenProvider: InternalIdTokenProvider.Interface,\n private decoratee: GraphQLClient.Interface\n ) {}\n\n async execute<TVariables = any, TResult = any>(\n params: GraphQLClient.Request<TVariables>\n ): Promise<TResult> {\n if (params.headers?.Authorization) {\n return this.decoratee.execute(params);\n }\n\n const idToken = await this.idTokenProvider.getTokenProvider()();\n\n const authHeaders = idToken ? { Authorization: `Bearer ${idToken}` } : {};\n\n return this.decoratee.execute({\n ...params,\n headers: { ...params.headers, ...authHeaders }\n });\n }\n}\n\nexport const GraphQLClientDecorator = GraphQLClient.createDecorator({\n decorator: GraphQLClientWithIdToken,\n dependencies: [InternalIdTokenProvider]\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,6CAA6C;AAC3E,SAASC,uBAAuB;AAEhC,MAAMC,wBAAwB,CAAoC;EAC9DC,WAAWA,CACCC,eAAkD,EAClDC,SAAkC,EAC5C;IAAA,KAFUD,eAAkD,GAAlDA,eAAkD;IAAA,KAClDC,SAAkC,GAAlCA,SAAkC;EAC3C;EAEH,MAAMC,OAAOA,CACTC,MAAyC,EACzB;IAChB,IAAIA,MAAM,CAACC,OAAO,EAAEC,aAAa,EAAE;MAC/B,OAAO,IAAI,CAACJ,SAAS,CAACC,OAAO,CAACC,MAAM,CAAC;IACzC;IAEA,MAAMG,OAAO,GAAG,MAAM,IAAI,CAACN,eAAe,CAACO,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAE/D,MAAMC,WAAW,GAAGF,OAAO,GAAG;MAAED,aAAa,EAAE,UAAUC,OAAO;IAAG,CAAC,GAAG,CAAC,CAAC;IAEzE,OAAO,IAAI,CAACL,SAAS,CAACC,OAAO,CAAC;MAC1B,GAAGC,MAAM;MACTC,OAAO,EAAE;QAAE,GAAGD,MAAM,CAACC,OAAO;QAAE,GAAGI;MAAY;IACjD,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAMC,sBAAsB,GAAGb,aAAa,CAACc,eAAe,CAAC;EAChEC,SAAS,EAAEb,wBAAwB;EACnCc,YAAY,EAAE,CAACf,uBAAuB;AAC1C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InternalIdTokenProvider as Abstraction } from "../../../features/security/AuthenticationContext/abstractions.js";
|
|
2
|
+
declare class InternalIdTokenProviderImpl implements Abstraction.Interface {
|
|
3
|
+
private tokenProvider;
|
|
4
|
+
getTokenProvider(): Abstraction.TokenProvider;
|
|
5
|
+
setTokenProvider(idTokenProvider: Abstraction.TokenProvider): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const InternalIdTokenProvider: typeof InternalIdTokenProviderImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("~/features/security/AuthenticationContext/abstractions.js").IInternalTokenProvider>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InternalIdTokenProvider as Abstraction } from "./abstractions.js";
|
|
2
|
+
const noop = () => undefined;
|
|
3
|
+
class InternalIdTokenProviderImpl {
|
|
4
|
+
tokenProvider = noop;
|
|
5
|
+
getTokenProvider() {
|
|
6
|
+
return this.tokenProvider;
|
|
7
|
+
}
|
|
8
|
+
setTokenProvider(idTokenProvider) {
|
|
9
|
+
this.tokenProvider = idTokenProvider;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export const InternalIdTokenProvider = Abstraction.createImplementation({
|
|
13
|
+
implementation: InternalIdTokenProviderImpl,
|
|
14
|
+
dependencies: []
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=InternalIdTokenProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["InternalIdTokenProvider","Abstraction","noop","undefined","InternalIdTokenProviderImpl","tokenProvider","getTokenProvider","setTokenProvider","idTokenProvider","createImplementation","implementation","dependencies"],"sources":["InternalIdTokenProvider.ts"],"sourcesContent":["import { InternalIdTokenProvider as Abstraction } from \"~/features/security/AuthenticationContext/abstractions.js\";\n\nconst noop = () => undefined;\n\nclass InternalIdTokenProviderImpl implements Abstraction.Interface {\n private tokenProvider: Abstraction.TokenProvider = noop;\n\n getTokenProvider(): Abstraction.TokenProvider {\n return this.tokenProvider;\n }\n\n setTokenProvider(idTokenProvider: Abstraction.TokenProvider): void {\n this.tokenProvider = idTokenProvider;\n }\n}\n\nexport const InternalIdTokenProvider = Abstraction.createImplementation({\n implementation: InternalIdTokenProviderImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,uBAAuB,IAAIC,WAAW;AAE/C,MAAMC,IAAI,GAAGA,CAAA,KAAMC,SAAS;AAE5B,MAAMC,2BAA2B,CAAkC;EACvDC,aAAa,GAA8BH,IAAI;EAEvDI,gBAAgBA,CAAA,EAA8B;IAC1C,OAAO,IAAI,CAACD,aAAa;EAC7B;EAEAE,gBAAgBA,CAACC,eAA0C,EAAQ;IAC/D,IAAI,CAACH,aAAa,GAAGG,eAAe;EACxC;AACJ;AAEA,OAAO,MAAMR,uBAAuB,GAAGC,WAAW,CAACQ,oBAAoB,CAAC;EACpEC,cAAc,EAAEN,2BAA2B;EAC3CO,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type IIdToken = string;
|
|
2
|
+
type IIdTokenProvider = () => Promise<IIdToken | undefined> | IIdToken | undefined;
|
|
3
|
+
type ILogoutCallback = () => Promise<void> | void;
|
|
4
|
+
export interface IAuthenticationContext {
|
|
5
|
+
clear(): void;
|
|
6
|
+
getIdToken: IIdTokenProvider;
|
|
7
|
+
setIdTokenProvider(provider: IIdTokenProvider): void;
|
|
8
|
+
setLogoutCallback(callback: ILogoutCallback): void;
|
|
9
|
+
getLogoutCallback(): ILogoutCallback;
|
|
10
|
+
}
|
|
11
|
+
export declare const AuthenticationContext: import("@webiny/di").Abstraction<IAuthenticationContext>;
|
|
12
|
+
export declare namespace AuthenticationContext {
|
|
13
|
+
type Interface = IAuthenticationContext;
|
|
14
|
+
type IdTokenProvider = IIdTokenProvider;
|
|
15
|
+
type LogoutCallback = ILogoutCallback;
|
|
16
|
+
}
|
|
17
|
+
export interface IInternalTokenProvider {
|
|
18
|
+
setTokenProvider(idTokenProvider: IIdTokenProvider): void;
|
|
19
|
+
getTokenProvider(): IIdTokenProvider;
|
|
20
|
+
}
|
|
21
|
+
export declare const InternalIdTokenProvider: import("@webiny/di").Abstraction<IInternalTokenProvider>;
|
|
22
|
+
export declare namespace InternalIdTokenProvider {
|
|
23
|
+
type Interface = IInternalTokenProvider;
|
|
24
|
+
type TokenProvider = IIdTokenProvider;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createAbstraction","AuthenticationContext","InternalIdTokenProvider"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\ntype IIdToken = string;\n\ntype IIdTokenProvider = () => Promise<IIdToken | undefined> | IIdToken | undefined;\n\ntype ILogoutCallback = () => Promise<void> | void;\n\nexport interface IAuthenticationContext {\n clear(): void;\n getIdToken: IIdTokenProvider;\n setIdTokenProvider(provider: IIdTokenProvider): void;\n setLogoutCallback(callback: ILogoutCallback): void;\n getLogoutCallback(): ILogoutCallback;\n}\n\nexport const AuthenticationContext =\n createAbstraction<IAuthenticationContext>(\"AuthenticationContext\");\n\nexport namespace AuthenticationContext {\n export type Interface = IAuthenticationContext;\n export type IdTokenProvider = IIdTokenProvider;\n export type LogoutCallback = ILogoutCallback;\n}\n\nexport interface IInternalTokenProvider {\n setTokenProvider(idTokenProvider: IIdTokenProvider): void;\n getTokenProvider(): IIdTokenProvider;\n}\n\nexport const InternalIdTokenProvider =\n createAbstraction<IInternalTokenProvider>(\"InternalTokenProvider\");\nexport namespace InternalIdTokenProvider {\n export type Interface = IInternalTokenProvider;\n export type TokenProvider = IIdTokenProvider;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,uBAAuB;AAgBzD,OAAO,MAAMC,qBAAqB,GAC9BD,iBAAiB,CAAyB,uBAAuB,CAAC;AAatE,OAAO,MAAME,uBAAuB,GAChCF,iBAAiB,CAAyB,uBAAuB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { AuthenticationContext as AuthenticationContextAbstraction } from "./abstractions.js";
|
|
3
|
+
import { AuthenticationContext } from "./AuthenticationContext.js";
|
|
4
|
+
import { GraphQLClientDecorator } from "./GraphQLClientDecorator.js";
|
|
5
|
+
import { InternalIdTokenProvider } from "./InternalIdTokenProvider.js";
|
|
6
|
+
export const AuthenticationContextFeature = createFeature({
|
|
7
|
+
name: "AuthenticationContext",
|
|
8
|
+
register(container) {
|
|
9
|
+
container.register(InternalIdTokenProvider).inSingletonScope();
|
|
10
|
+
container.register(AuthenticationContext).inSingletonScope();
|
|
11
|
+
container.registerDecorator(GraphQLClientDecorator);
|
|
12
|
+
},
|
|
13
|
+
resolve(container) {
|
|
14
|
+
return {
|
|
15
|
+
authenticationContext: container.resolve(AuthenticationContextAbstraction)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFeature","AuthenticationContext","AuthenticationContextAbstraction","GraphQLClientDecorator","InternalIdTokenProvider","AuthenticationContextFeature","name","register","container","inSingletonScope","registerDecorator","resolve","authenticationContext"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { AuthenticationContext as AuthenticationContextAbstraction } from \"./abstractions.js\";\nimport { AuthenticationContext } from \"./AuthenticationContext.js\";\nimport { GraphQLClientDecorator } from \"./GraphQLClientDecorator.js\";\nimport { InternalIdTokenProvider } from \"./InternalIdTokenProvider.js\";\n\nexport const AuthenticationContextFeature = createFeature({\n name: \"AuthenticationContext\",\n register(container) {\n container.register(InternalIdTokenProvider).inSingletonScope();\n container.register(AuthenticationContext).inSingletonScope();\n container.registerDecorator(GraphQLClientDecorator);\n },\n resolve(container) {\n return {\n authenticationContext: container.resolve(AuthenticationContextAbstraction)\n };\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,qBAAqB,IAAIC,gCAAgC;AAClE,SAASD,qBAAqB;AAC9B,SAASE,sBAAsB;AAC/B,SAASC,uBAAuB;AAEhC,OAAO,MAAMC,4BAA4B,GAAGL,aAAa,CAAC;EACtDM,IAAI,EAAE,uBAAuB;EAC7BC,QAAQA,CAACC,SAAS,EAAE;IAChBA,SAAS,CAACD,QAAQ,CAACH,uBAAuB,CAAC,CAACK,gBAAgB,CAAC,CAAC;IAC9DD,SAAS,CAACD,QAAQ,CAACN,qBAAqB,CAAC,CAACQ,gBAAgB,CAAC,CAAC;IAC5DD,SAAS,CAACE,iBAAiB,CAACP,sBAAsB,CAAC;EACvD,CAAC;EACDQ,OAAOA,CAACH,SAAS,EAAE;IACf,OAAO;MACHI,qBAAqB,EAAEJ,SAAS,CAACG,OAAO,CAACT,gCAAgC;IAC7E,CAAC;EACL;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AuthenticationContext } from "./abstractions.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthenticationContext"],"sources":["index.ts"],"sourcesContent":["export { AuthenticationContext } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Identity } from "../../../domain/Identity.js";
|
|
2
|
+
import type { Tenant } from "../../../features/tenancy/abstractions.js";
|
|
3
|
+
export interface IdentityDTO {
|
|
4
|
+
id: string;
|
|
5
|
+
type: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
profile: Identity.Profile;
|
|
8
|
+
permissions: Identity.Permission[];
|
|
9
|
+
currentTenant: Tenant;
|
|
10
|
+
defaultTenant: Tenant;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { Identity } from \"~/domain/Identity.js\";\nimport type { Tenant } from \"~/features/tenancy/abstractions.js\";\n\nexport interface IdentityDTO {\n id: string;\n type: string;\n displayName: string;\n profile: Identity.Profile;\n permissions: Identity.Permission[];\n currentTenant: Tenant;\n defaultTenant: Tenant;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Identity } from "../../../domain/Identity.js";
|
|
2
|
+
import { IdentityContext as Abstraction } from "./abstractions.js";
|
|
3
|
+
declare class IdentityContextImpl implements Abstraction.Interface {
|
|
4
|
+
private identity;
|
|
5
|
+
constructor();
|
|
6
|
+
getIdentity(): Identity;
|
|
7
|
+
setIdentity(identity: Identity): void;
|
|
8
|
+
clear(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const IdentityContext: typeof IdentityContextImpl & {
|
|
11
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IIdentityContext>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
import { Identity } from "../../../domain/Identity.js";
|
|
3
|
+
import { IdentityContext as Abstraction } from "./abstractions.js";
|
|
4
|
+
class IdentityContextImpl {
|
|
5
|
+
identity = Identity.createAnonymous();
|
|
6
|
+
constructor() {
|
|
7
|
+
makeAutoObservable(this);
|
|
8
|
+
}
|
|
9
|
+
getIdentity() {
|
|
10
|
+
return this.identity;
|
|
11
|
+
}
|
|
12
|
+
setIdentity(identity) {
|
|
13
|
+
this.identity = identity;
|
|
14
|
+
}
|
|
15
|
+
clear() {
|
|
16
|
+
this.identity = Identity.createAnonymous();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export const IdentityContext = Abstraction.createImplementation({
|
|
20
|
+
implementation: IdentityContextImpl,
|
|
21
|
+
dependencies: []
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=IdentityContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","Identity","IdentityContext","Abstraction","IdentityContextImpl","identity","createAnonymous","constructor","getIdentity","setIdentity","clear","createImplementation","implementation","dependencies"],"sources":["IdentityContext.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport { Identity } from \"~/domain/Identity.js\";\nimport { IdentityContext as Abstraction } from \"./abstractions.js\";\n\nclass IdentityContextImpl implements Abstraction.Interface {\n private identity: Identity = Identity.createAnonymous();\n\n constructor() {\n makeAutoObservable(this);\n }\n\n getIdentity(): Identity {\n return this.identity;\n }\n\n setIdentity(identity: Identity): void {\n this.identity = identity;\n }\n\n clear() {\n this.identity = Identity.createAnonymous();\n }\n}\n\nexport const IdentityContext = Abstraction.createImplementation({\n implementation: IdentityContextImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AACzC,SAASC,QAAQ;AACjB,SAASC,eAAe,IAAIC,WAAW;AAEvC,MAAMC,mBAAmB,CAAkC;EAC/CC,QAAQ,GAAaJ,QAAQ,CAACK,eAAe,CAAC,CAAC;EAEvDC,WAAWA,CAAA,EAAG;IACVP,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAQ,WAAWA,CAAA,EAAa;IACpB,OAAO,IAAI,CAACH,QAAQ;EACxB;EAEAI,WAAWA,CAACJ,QAAkB,EAAQ;IAClC,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC5B;EAEAK,KAAKA,CAAA,EAAG;IACJ,IAAI,CAACL,QAAQ,GAAGJ,QAAQ,CAACK,eAAe,CAAC,CAAC;EAC9C;AACJ;AAEA,OAAO,MAAMJ,eAAe,GAAGC,WAAW,CAACQ,oBAAoB,CAAC;EAC5DC,cAAc,EAAER,mBAAmB;EACnCS,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Identity } from "../../../domain/Identity.js";
|
|
2
|
+
export interface IIdentityContext {
|
|
3
|
+
getIdentity(): Identity;
|
|
4
|
+
setIdentity(identity: Identity): void;
|
|
5
|
+
clear(): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const IdentityContext: import("@webiny/di").Abstraction<IIdentityContext>;
|
|
8
|
+
export declare namespace IdentityContext {
|
|
9
|
+
type Interface = IIdentityContext;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createAbstraction","IdentityContext"],"sources":["abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport { Identity } from \"~/domain/Identity.js\";\n\nexport interface IIdentityContext {\n getIdentity(): Identity;\n setIdentity(identity: Identity): void;\n clear(): void;\n}\n\nexport const IdentityContext = createAbstraction<IIdentityContext>(\"IdentityContext\");\n\nexport namespace IdentityContext {\n export type Interface = IIdentityContext;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,uBAAuB;AASzD,OAAO,MAAMC,eAAe,GAAGD,iBAAiB,CAAmB,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { IdentityContext as IdentityContextAbstraction } from "./abstractions.js";
|
|
3
|
+
import { IdentityContext } from "./IdentityContext.js";
|
|
4
|
+
export const IdentityContextFeature = createFeature({
|
|
5
|
+
name: "IdentityContext",
|
|
6
|
+
register(container) {
|
|
7
|
+
container.register(IdentityContext).inSingletonScope();
|
|
8
|
+
},
|
|
9
|
+
resolve(container) {
|
|
10
|
+
return {
|
|
11
|
+
identityContext: container.resolve(IdentityContextAbstraction)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFeature","IdentityContext","IdentityContextAbstraction","IdentityContextFeature","name","register","container","inSingletonScope","resolve","identityContext"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { IdentityContext as IdentityContextAbstraction } from \"./abstractions.js\";\nimport { IdentityContext } from \"./IdentityContext.js\";\n\nexport const IdentityContextFeature = createFeature({\n name: \"IdentityContext\",\n register(container) {\n container.register(IdentityContext).inSingletonScope();\n },\n resolve(container) {\n return {\n identityContext: container.resolve(IdentityContextAbstraction)\n };\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,eAAe,IAAIC,0BAA0B;AACtD,SAASD,eAAe;AAExB,OAAO,MAAME,sBAAsB,GAAGH,aAAa,CAAC;EAChDI,IAAI,EAAE,iBAAiB;EACvBC,QAAQA,CAACC,SAAS,EAAE;IAChBA,SAAS,CAACD,QAAQ,CAACJ,eAAe,CAAC,CAACM,gBAAgB,CAAC,CAAC;EAC1D,CAAC;EACDC,OAAOA,CAACF,SAAS,EAAE;IACf,OAAO;MACHG,eAAe,EAAEH,SAAS,CAACE,OAAO,CAACN,0BAA0B;IACjE,CAAC;EACL;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IdentityContextFeature","IdentityContext"],"sources":["index.ts"],"sourcesContent":["export { IdentityContextFeature } from \"./feature.js\";\nexport { IdentityContext } from \"./abstractions.js\";\n"],"mappings":"AAAA,SAASA,sBAAsB;AAC/B,SAASC,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IdentityMapper as Abstraction, LogInRepository } from "./abstractions.js";
|
|
2
|
+
import { Identity } from "../../../domain/Identity.js";
|
|
3
|
+
declare class IdentityMapperImpl implements Abstraction.Interface {
|
|
4
|
+
toIdentity(dto: LogInRepository.IdentityDTO): Identity;
|
|
5
|
+
}
|
|
6
|
+
export declare const IdentityMapper: typeof IdentityMapperImpl & {
|
|
7
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IIdentityMapper>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IdentityMapper as Abstraction } from "./abstractions.js";
|
|
2
|
+
import { Identity } from "../../../domain/Identity.js";
|
|
3
|
+
class IdentityMapperImpl {
|
|
4
|
+
toIdentity(dto) {
|
|
5
|
+
return Identity.createAuthenticated(dto);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export const IdentityMapper = Abstraction.createImplementation({
|
|
9
|
+
implementation: IdentityMapperImpl,
|
|
10
|
+
dependencies: []
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=IdentityMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IdentityMapper","Abstraction","Identity","IdentityMapperImpl","toIdentity","dto","createAuthenticated","createImplementation","implementation","dependencies"],"sources":["IdentityMapper.ts"],"sourcesContent":["import { IdentityMapper as Abstraction, LogInRepository } from \"./abstractions.js\";\nimport { Identity } from \"~/domain/Identity.js\";\n\nclass IdentityMapperImpl implements Abstraction.Interface {\n toIdentity(dto: LogInRepository.IdentityDTO): Identity {\n return Identity.createAuthenticated(dto);\n }\n}\n\nexport const IdentityMapper = Abstraction.createImplementation({\n implementation: IdentityMapperImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,cAAc,IAAIC,WAAW;AACtC,SAASC,QAAQ;AAEjB,MAAMC,kBAAkB,CAAkC;EACtDC,UAAUA,CAACC,GAAgC,EAAY;IACnD,OAAOH,QAAQ,CAACI,mBAAmB,CAACD,GAAG,CAAC;EAC5C;AACJ;AAEA,OAAO,MAAML,cAAc,GAAGC,WAAW,CAACM,oBAAoB,CAAC;EAC3DC,cAAc,EAAEL,kBAAkB;EAClCM,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|