@webiny/app-admin 6.3.0 → 6.4.0-beta.0
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/assets/icons/add-18px.js +20 -0
- package/assets/icons/add-18px.js.map +1 -0
- package/assets/icons/arrow_drop_down-24px.js +20 -0
- package/assets/icons/arrow_drop_down-24px.js.map +1 -0
- package/assets/icons/attach_file_black_24dp.js +20 -0
- package/assets/icons/attach_file_black_24dp.js.map +1 -0
- package/assets/icons/baseline-menu-24px.js +20 -0
- package/assets/icons/baseline-menu-24px.js.map +1 -0
- package/assets/icons/baseline-notification_important-24px.js +19 -0
- package/assets/icons/baseline-notification_important-24px.js.map +1 -0
- package/assets/icons/baseline-security-24px.js +19 -0
- package/assets/icons/baseline-security-24px.js.map +1 -0
- package/assets/icons/file_download.js +19 -0
- package/assets/icons/file_download.js.map +1 -0
- package/assets/icons/file_upload.js +19 -0
- package/assets/icons/file_upload.js.map +1 -0
- package/assets/icons/filter-24px.js +23 -0
- package/assets/icons/filter-24px.js.map +1 -0
- package/assets/icons/github-brands.js +19 -0
- package/assets/icons/github-brands.js.map +1 -0
- package/assets/icons/highlight-24px.js +19 -0
- package/assets/icons/highlight-24px.js.map +1 -0
- package/assets/icons/icon-community.js +18 -0
- package/assets/icons/icon-community.js.map +1 -0
- package/assets/icons/icon-documentation.js +18 -0
- package/assets/icons/icon-documentation.js.map +1 -0
- package/assets/icons/info.js +19 -0
- package/assets/icons/info.js.map +1 -0
- package/assets/icons/insert_drive_file-24px.js +19 -0
- package/assets/icons/insert_drive_file-24px.js.map +1 -0
- package/assets/icons/insert_photo-24px.js +19 -0
- package/assets/icons/insert_photo-24px.js.map +1 -0
- package/assets/icons/label-24px.js +19 -0
- package/assets/icons/label-24px.js.map +1 -0
- package/assets/icons/round-account_circle-24px.js +19 -0
- package/assets/icons/round-account_circle-24px.js.map +1 -0
- package/assets/icons/round-add-24px.js +20 -0
- package/assets/icons/round-add-24px.js.map +1 -0
- package/assets/icons/round-arrow_drop_down-24px.js +19 -0
- package/assets/icons/round-arrow_drop_down-24px.js.map +1 -0
- package/assets/icons/round-chevron_right-24px.js +20 -0
- package/assets/icons/round-chevron_right-24px.js.map +1 -0
- package/assets/icons/round-feedback-24px.js +20 -0
- package/assets/icons/round-feedback-24px.js.map +1 -0
- package/assets/icons/round-help-24px.js +19 -0
- package/assets/icons/round-help-24px.js.map +1 -0
- package/assets/icons/round-invert_colors-24px.js +20 -0
- package/assets/icons/round-invert_colors-24px.js.map +1 -0
- package/assets/icons/round-keyboard_arrow_down-24px.js +17 -0
- package/assets/icons/round-keyboard_arrow_down-24px.js.map +1 -0
- package/assets/icons/round-keyboard_arrow_up-24px.js +17 -0
- package/assets/icons/round-keyboard_arrow_up-24px.js.map +1 -0
- package/assets/icons/round-lock_open-24px.js +22 -0
- package/assets/icons/round-lock_open-24px.js.map +1 -0
- package/assets/icons/round-more_vert-24px.js +20 -0
- package/assets/icons/round-more_vert-24px.js.map +1 -0
- package/assets/icons/round-open_in_new-24px.js +20 -0
- package/assets/icons/round-open_in_new-24px.js.map +1 -0
- package/assets/icons/round-settings-24px.js +20 -0
- package/assets/icons/round-settings-24px.js.map +1 -0
- package/assets/icons/search-24px.js +21 -0
- package/assets/icons/search-24px.js.map +1 -0
- package/assets/icons/slack-logo.js +14 -0
- package/assets/icons/slack-logo.js.map +1 -0
- package/assets/icons/today-24px.js +19 -0
- package/assets/icons/today-24px.js.map +1 -0
- package/assets/icons/touch_app.js +20 -0
- package/assets/icons/touch_app.js.map +1 -0
- package/assets/images/webiny-logo.js +34 -0
- package/assets/images/webiny-logo.js.map +1 -0
- package/assets/images/webiny-orange-logo.js +34 -0
- package/assets/images/webiny-orange-logo.js.map +1 -0
- package/base/Admin.js +37 -28
- package/base/Admin.js.map +1 -1
- package/base/Base/DefaultFieldRenderers.js +73 -70
- package/base/Base/DefaultFieldRenderers.js.map +1 -1
- package/base/Base/DefaultLayoutRenderers.js +9 -10
- package/base/Base/DefaultLayoutRenderers.js.map +1 -1
- package/base/Base/FieldRenderers/CheckboxesRenderer.js +22 -23
- package/base/Base/FieldRenderers/CheckboxesRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/CodeEditorRenderer.js +10 -13
- package/base/Base/FieldRenderers/CodeEditorRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/DateTimeInputsRenderer.js +60 -60
- package/base/Base/FieldRenderers/DateTimeInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/DateTimeRenderer.js +38 -39
- package/base/Base/FieldRenderers/DateTimeRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/FilePickerRenderer.d.ts +2 -1
- package/base/Base/FieldRenderers/FilePickerRenderer.js +37 -40
- package/base/Base/FieldRenderers/FilePickerRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/FileUrlPickerRenderer.js +15 -20
- package/base/Base/FieldRenderers/FileUrlPickerRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/HiddenRenderer.js +3 -3
- package/base/Base/FieldRenderers/HiddenRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/HorizontalTabsRenderer.js +20 -21
- package/base/Base/FieldRenderers/HorizontalTabsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/InputRenderer.js +16 -20
- package/base/Base/FieldRenderers/InputRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/MultiFilePickerRenderer.d.ts +13 -0
- package/base/Base/FieldRenderers/MultiFilePickerRenderer.js +70 -0
- package/base/Base/FieldRenderers/MultiFilePickerRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/NumberInputRenderer.js +16 -19
- package/base/Base/FieldRenderers/NumberInputRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/NumberInputsRenderer.js +45 -44
- package/base/Base/FieldRenderers/NumberInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/DynamicZoneRenderer.js +10 -13
- package/base/Base/FieldRenderers/ObjectRenderer/DynamicZoneRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js +50 -56
- package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js +87 -99
- package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js +41 -48
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.d.ts +1 -2
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js +62 -78
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js +12 -15
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js +48 -54
- package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/TemplatePicker.js +62 -79
- package/base/Base/FieldRenderers/ObjectRenderer/TemplatePicker.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js +14 -17
- package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js.map +1 -1
- package/base/Base/FieldRenderers/PassthroughRenderer.js +8 -11
- package/base/Base/FieldRenderers/PassthroughRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/RadioButtonsRenderer.js +21 -22
- package/base/Base/FieldRenderers/RadioButtonsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/SelectRenderer.js +23 -24
- package/base/Base/FieldRenderers/SelectRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/SwitchRenderer.js +12 -15
- package/base/Base/FieldRenderers/SwitchRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TagsRenderer.js +15 -16
- package/base/Base/FieldRenderers/TagsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextInputsRenderer.js +44 -43
- package/base/Base/FieldRenderers/TextInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextareaRenderer.js +17 -21
- package/base/Base/FieldRenderers/TextareaRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextareasRenderer.js +47 -46
- package/base/Base/FieldRenderers/TextareasRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/VerticalTabsRenderer.js +35 -36
- package/base/Base/FieldRenderers/VerticalTabsRenderer.js.map +1 -1
- package/base/Base/LexicalPreset.js +56 -60
- package/base/Base/LexicalPreset.js.map +1 -1
- package/base/Base/Menus/SupportMenuItems.js +9 -13
- package/base/Base/Menus/SupportMenuItems.js.map +1 -1
- package/base/Base/Menus/WebinyVersion.js +19 -20
- package/base/Base/Menus/WebinyVersion.js.map +1 -1
- package/base/Base/Menus.js +52 -66
- package/base/Base/Menus.js.map +1 -1
- package/base/Base/RoutesConfig.js +21 -29
- package/base/Base/RoutesConfig.js.map +1 -1
- package/base/Base/Tenant/wby-horizontal.js +33 -0
- package/base/Base/Tenant/wby-horizontal.js.map +1 -0
- package/base/Base/Tenant/wby-square.js +20 -0
- package/base/Base/Tenant/wby-square.js.map +1 -0
- package/base/Base/Tenant.js +17 -19
- package/base/Base/Tenant.js.map +1 -1
- package/base/Base/UserMenu/ExitTenant.js +18 -29
- package/base/Base/UserMenu/ExitTenant.js.map +1 -1
- package/base/Base/UserMenu/SignOut.js +13 -14
- package/base/Base/UserMenu/SignOut.js.map +1 -1
- package/base/Base/UserMenu/UserInfo.js +23 -36
- package/base/Base/UserMenu/UserInfo.js.map +1 -1
- package/base/Base/UserMenu.js +12 -13
- package/base/Base/UserMenu.js.map +1 -1
- package/base/Base.js +4 -5
- package/base/Base.js.map +1 -1
- package/base/TelemetryAdminAppStart.js +9 -12
- package/base/TelemetryAdminAppStart.js.map +1 -1
- package/base/WebinyVersion.js +19 -20
- package/base/WebinyVersion.js.map +1 -1
- package/base/createRootContainer.js +42 -40
- package/base/createRootContainer.js.map +1 -1
- package/base/plugins/AddGraphQLQuerySelection.js +12 -11
- package/base/plugins/AddGraphQLQuerySelection.js.map +1 -1
- package/base/providers/AdminUiStateProvider.js +5 -10
- package/base/providers/AdminUiStateProvider.js.map +1 -1
- package/base/providers/ApolloProvider.js +8 -11
- package/base/providers/ApolloProvider.js.map +1 -1
- package/base/providers/UiProviders.js +18 -27
- package/base/providers/UiProviders.js.map +1 -1
- package/base/providers/UiStateProvider.js +5 -10
- package/base/providers/UiStateProvider.js.map +1 -1
- package/base/ui/Brand.js +4 -5
- package/base/ui/Brand.js.map +1 -1
- package/base/ui/CenteredView.d.ts +1 -1
- package/base/ui/CenteredView.js +9 -13
- package/base/ui/CenteredView.js.map +1 -1
- package/base/ui/Dashboard.js +4 -5
- package/base/ui/Dashboard.js.map +1 -1
- package/base/ui/FileManager.js +38 -60
- package/base/ui/FileManager.js.map +1 -1
- package/base/ui/Layout.js +4 -8
- package/base/ui/Layout.js.map +1 -1
- package/base/ui/LoginScreen.js +16 -21
- package/base/ui/LoginScreen.js.map +1 -1
- package/base/ui/Logo.js +4 -5
- package/base/ui/Logo.js.map +1 -1
- package/base/ui/Navigation.js +11 -14
- package/base/ui/Navigation.js.map +1 -1
- package/base/ui/NotFound.js +4 -5
- package/base/ui/NotFound.js.map +1 -1
- package/base/ui/Tags.js +12 -16
- package/base/ui/Tags.js.map +1 -1
- package/base/ui/TenantSelector.js +4 -5
- package/base/ui/TenantSelector.js.map +1 -1
- package/base/ui/UserMenu/UserMenu.js +4 -5
- package/base/ui/UserMenu/UserMenu.js.map +1 -1
- package/base/ui/UserMenu/UserMenuHandle.js +4 -5
- package/base/ui/UserMenu/UserMenuHandle.js.map +1 -1
- package/base/ui/UserMenu/UserMenuItem.d.ts +4 -4
- package/base/ui/UserMenu/UserMenuItem.js +5 -15
- package/base/ui/UserMenu/UserMenuItem.js.map +1 -1
- package/base/ui/UserMenu/UserMenuLink.d.ts +4 -4
- package/base/ui/UserMenu/UserMenuLink.js +5 -15
- package/base/ui/UserMenu/UserMenuLink.js.map +1 -1
- package/base/ui/UserMenu/UserMenuSeparator.d.ts +2 -2
- package/base/ui/UserMenu/UserMenuSeparator.js +3 -5
- package/base/ui/UserMenu/UserMenuSeparator.js.map +1 -1
- package/base/ui/UserMenu.js +6 -13
- package/base/ui/UserMenu.js.map +1 -1
- package/components/AdminLayout.js +6 -10
- package/components/AdminLayout.js.map +1 -1
- package/components/BulkActions/Worker.js +57 -120
- package/components/BulkActions/Worker.js.map +1 -1
- package/components/BulkActions/index.js +0 -2
- package/components/BulkActions/useDialogWithReport/DialogMessage.js +17 -21
- package/components/BulkActions/useDialogWithReport/DialogMessage.js.map +1 -1
- package/components/BulkActions/useDialogWithReport/index.js +0 -2
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js +33 -44
- package/components/BulkActions/useDialogWithReport/useDialogWithReport.js.map +1 -1
- package/components/Buttons/Buttons.js +44 -71
- package/components/Buttons/Buttons.js.map +1 -1
- package/components/Buttons/Buttons.styles.js +9 -15
- package/components/Buttons/Buttons.styles.js.map +1 -1
- package/components/Buttons/index.js +1 -3
- package/components/Buttons/useButtons.js +15 -20
- package/components/Buttons/useButtons.js.map +1 -1
- package/components/DeveloperMode/DeveloperMode.js +5 -14
- package/components/DeveloperMode/DeveloperMode.js.map +1 -1
- package/components/DeveloperMode/index.js +0 -2
- package/components/Dialogs/Dialog.d.ts +2 -2
- package/components/Dialogs/Dialog.js +46 -59
- package/components/Dialogs/Dialog.js.map +1 -1
- package/components/Dialogs/DialogParamsContext.js +6 -7
- package/components/Dialogs/DialogParamsContext.js.map +1 -1
- package/components/Dialogs/DialogsContext.d.ts +2 -2
- package/components/Dialogs/DialogsContext.js +129 -149
- package/components/Dialogs/DialogsContext.js.map +1 -1
- package/components/Dialogs/useDialogs.js +5 -6
- package/components/Dialogs/useDialogs.js.map +1 -1
- package/components/EmptyView.js +26 -31
- package/components/EmptyView.js.map +1 -1
- package/components/Filters/Filters.js +15 -16
- package/components/Filters/Filters.js.map +1 -1
- package/components/Filters/FiltersToggle.js +18 -23
- package/components/Filters/FiltersToggle.js.map +1 -1
- package/components/Filters/index.js +0 -2
- package/components/FloatingActionButton.js +13 -15
- package/components/FloatingActionButton.js.map +1 -1
- package/components/IconPicker/IconPicker.js +24 -26
- package/components/IconPicker/IconPicker.js.map +1 -1
- package/components/IconPicker/IconPickerComponent.js +56 -72
- package/components/IconPicker/IconPickerComponent.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.js +64 -70
- package/components/IconPicker/IconPickerPresenter.js.map +1 -1
- package/components/IconPicker/IconPickerPresenter.test.js +79 -105
- package/components/IconPicker/IconPickerPresenter.test.js.map +1 -1
- package/components/IconPicker/IconPickerPresenterProvider.js +10 -16
- package/components/IconPicker/IconPickerPresenterProvider.js.map +1 -1
- package/components/IconPicker/IconPickerTab.js +97 -140
- package/components/IconPicker/IconPickerTab.js.map +1 -1
- package/components/IconPicker/IconRenderer.js +15 -23
- package/components/IconPicker/IconRenderer.js.map +1 -1
- package/components/IconPicker/IconRepository.js +41 -40
- package/components/IconPicker/IconRepository.js.map +1 -1
- package/components/IconPicker/IconRepository.test.js +56 -63
- package/components/IconPicker/IconRepository.test.js.map +1 -1
- package/components/IconPicker/IconRepositoryFactory.js +15 -11
- package/components/IconPicker/IconRepositoryFactory.js.map +1 -1
- package/components/IconPicker/Loading.js +47 -46
- package/components/IconPicker/Loading.js.map +1 -1
- package/components/IconPicker/components/IconPickerCell.js +18 -20
- package/components/IconPicker/components/IconPickerCell.js.map +1 -1
- package/components/IconPicker/components/IconPickerContent.js +27 -35
- package/components/IconPicker/components/IconPickerContent.js.map +1 -1
- package/components/IconPicker/components/IconPickerRow.js +5 -10
- package/components/IconPicker/components/IconPickerRow.js.map +1 -1
- package/components/IconPicker/components/IconPickerTrigger.js +42 -44
- package/components/IconPicker/components/IconPickerTrigger.js.map +1 -1
- package/components/IconPicker/components/index.js +0 -2
- package/components/IconPicker/config/Emojis.js +19 -21
- package/components/IconPicker/config/Emojis.js.map +1 -1
- package/components/IconPicker/config/FontAwesomeIcons.js +54 -58
- package/components/IconPicker/config/FontAwesomeIcons.js.map +1 -1
- package/components/IconPicker/config/IconPackProvider.js +17 -19
- package/components/IconPicker/config/IconPackProvider.js.map +1 -1
- package/components/IconPicker/config/IconType.js +48 -80
- package/components/IconPicker/config/IconType.js.map +1 -1
- package/components/IconPicker/config/index.js +28 -31
- package/components/IconPicker/config/index.js.map +1 -1
- package/components/IconPicker/defaultIcon.js +6 -5
- package/components/IconPicker/defaultIcon.js.map +1 -1
- package/components/IconPicker/index.js +0 -2
- package/components/IconPicker/plugins/customPlugin.js +87 -110
- package/components/IconPicker/plugins/customPlugin.js.map +1 -1
- package/components/IconPicker/plugins/emojisPlugin.js +90 -115
- package/components/IconPicker/plugins/emojisPlugin.js.map +1 -1
- package/components/IconPicker/plugins/graphql.js +3 -8
- package/components/IconPicker/plugins/graphql.js.map +1 -1
- package/components/IconPicker/plugins/iconsPlugin.js +73 -104
- package/components/IconPicker/plugins/iconsPlugin.js.map +1 -1
- package/components/IconPicker/types.js +4 -7
- package/components/IconPicker/types.js.map +1 -1
- package/components/LexicalEditor/LexicalEditor.js +40 -38
- package/components/LexicalEditor/LexicalEditor.js.map +1 -1
- package/components/LexicalEditor/LexicalLinkForm.js +80 -86
- package/components/LexicalEditor/LexicalLinkForm.js.map +1 -1
- package/components/LexicalEditor/index.js +0 -2
- package/components/LexicalEditor/lexicalValueFromHtml.js +21 -28
- package/components/LexicalEditor/lexicalValueFromHtml.js.map +1 -1
- package/components/LexicalEditor/lexicalValueWithHtml.js +24 -30
- package/components/LexicalEditor/lexicalValueWithHtml.js.map +1 -1
- package/components/MultiImageUpload.js +4 -13
- package/components/MultiImageUpload.js.map +1 -1
- package/components/NotAuthorizedError/NotAuthorizedError.js +16 -17
- package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -1
- package/components/NotAuthorizedError/SecureRouteError.js +297 -0
- package/components/NotAuthorizedError/SecureRouteError.js.map +1 -0
- package/components/NotAuthorizedError/index.js +0 -2
- package/components/OptionsMenu/OptionsMenu.js +20 -19
- package/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/components/OptionsMenu/OptionsMenuItem.js +15 -14
- package/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
- package/components/OptionsMenu/OptionsMenuLink.js +13 -14
- package/components/OptionsMenu/OptionsMenuLink.js.map +1 -1
- package/components/OptionsMenu/index.js +0 -2
- package/components/OptionsMenu/useOptionsMenuItem.js +13 -18
- package/components/OptionsMenu/useOptionsMenuItem.js.map +1 -1
- package/components/OverlayLayout/OverlayLayout.js +35 -38
- package/components/OverlayLayout/OverlayLayout.js.map +1 -1
- package/components/OverlayLayout/components/OverlayBackdrop.js +6 -11
- package/components/OverlayLayout/components/OverlayBackdrop.js.map +1 -1
- package/components/OverlayLayout/components/OverlayContent.js +18 -17
- package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
- package/components/OverlayLayout/components/OverlayHeader.js +30 -37
- package/components/OverlayLayout/components/OverlayHeader.js.map +1 -1
- package/components/OverlayLayout/components/OverlayRoot.js +13 -17
- package/components/OverlayLayout/components/OverlayRoot.js.map +1 -1
- package/components/OverlayLayout/components/index.js +0 -2
- package/components/OverlayLayout/index.js +0 -2
- package/components/Permissions/CannotUseAaclAlert.js +10 -11
- package/components/Permissions/CannotUseAaclAlert.js.map +1 -1
- package/components/Permissions/Permissions.js +32 -41
- package/components/Permissions/Permissions.js.map +1 -1
- package/components/Permissions/PermissionsGroup.js +9 -15
- package/components/Permissions/PermissionsGroup.js.map +1 -1
- package/components/Permissions/StyledComponents.js +9 -16
- package/components/Permissions/StyledComponents.js.map +1 -1
- package/components/Permissions/index.js +1 -3
- package/components/RegisterFeature.js +14 -21
- package/components/RegisterFeature.js.map +1 -1
- package/components/ResizablePanels/index.js +0 -2
- package/components/RoleAutocomplete/graphql.js +3 -2
- package/components/RoleAutocomplete/graphql.js.map +1 -1
- package/components/RoleAutocomplete/index.d.ts +5 -3
- package/components/RoleAutocomplete/index.js +21 -13
- package/components/RoleAutocomplete/index.js.map +1 -1
- package/components/RolesMultiAutocomplete/graphql.js +3 -2
- package/components/RolesMultiAutocomplete/graphql.js.map +1 -1
- package/components/RolesMultiAutocomplete/index.d.ts +5 -3
- package/components/RolesMultiAutocomplete/index.js +21 -14
- package/components/RolesMultiAutocomplete/index.js.map +1 -1
- package/components/SearchUI.js +18 -25
- package/components/SearchUI.js.map +1 -1
- package/components/SimpleForm/SimpleForm.d.ts +1 -1
- package/components/SimpleForm/SimpleForm.js +54 -73
- package/components/SimpleForm/SimpleForm.js.map +1 -1
- package/components/SimpleForm/index.js +1 -3
- package/components/SimpleUI/InputField.js +71 -64
- package/components/SimpleUI/InputField.js.map +1 -1
- package/components/SingleImageUpload.d.ts +2 -2
- package/components/SingleImageUpload.js +37 -58
- package/components/SingleImageUpload.js.map +1 -1
- package/components/SplitView/SplitView.js +47 -57
- package/components/SplitView/SplitView.js.map +1 -1
- package/components/SplitView/index.js +1 -3
- package/components/TeamAutocomplete/graphql.js +3 -2
- package/components/TeamAutocomplete/graphql.js.map +1 -1
- package/components/TeamAutocomplete/index.d.ts +5 -3
- package/components/TeamAutocomplete/index.js +21 -13
- package/components/TeamAutocomplete/index.js.map +1 -1
- package/components/TeamsMultiAutocomplete/graphql.js +3 -2
- package/components/TeamsMultiAutocomplete/graphql.js.map +1 -1
- package/components/TeamsMultiAutocomplete/index.d.ts +5 -3
- package/components/TeamsMultiAutocomplete/index.js +21 -14
- package/components/TeamsMultiAutocomplete/index.js.map +1 -1
- package/components/Wcp.js +27 -38
- package/components/Wcp.js.map +1 -1
- package/components/index.js +10 -13
- package/config/AdminConfig/Dashboard.js +3 -2
- package/config/AdminConfig/Dashboard.js.map +1 -1
- package/config/AdminConfig/Dialog.js +15 -17
- package/config/AdminConfig/Dialog.js.map +1 -1
- package/config/AdminConfig/FieldRenderer.js +15 -17
- package/config/AdminConfig/FieldRenderer.js.map +1 -1
- package/config/AdminConfig/Form.js +4 -3
- package/config/AdminConfig/Form.js.map +1 -1
- package/config/AdminConfig/LayoutRenderer.js +15 -17
- package/config/AdminConfig/LayoutRenderer.js.map +1 -1
- package/config/AdminConfig/LexicalTheme/Color.js +34 -41
- package/config/AdminConfig/LexicalTheme/Color.js.map +1 -1
- package/config/AdminConfig/LexicalTheme/Typography.js +61 -74
- package/config/AdminConfig/LexicalTheme/Typography.js.map +1 -1
- package/config/AdminConfig/LexicalTheme.js +4 -3
- package/config/AdminConfig/LexicalTheme.js.map +1 -1
- package/config/AdminConfig/Logo.d.ts +1 -1
- package/config/AdminConfig/Logo.js +15 -17
- package/config/AdminConfig/Logo.js.map +1 -1
- package/config/AdminConfig/Menu/MenuGroup.d.ts +3 -3
- package/config/AdminConfig/Menu/MenuGroup.js +7 -9
- package/config/AdminConfig/Menu/MenuGroup.js.map +1 -1
- package/config/AdminConfig/Menu/MenuItem.d.ts +2 -2
- package/config/AdminConfig/Menu/MenuItem.js +5 -7
- package/config/AdminConfig/Menu/MenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/MenuLink.d.ts +2 -2
- package/config/AdminConfig/Menu/MenuLink.js +12 -15
- package/config/AdminConfig/Menu/MenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +2 -2
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js +6 -8
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +1 -1
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js +4 -6
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/SupportMenu.d.ts +3 -3
- package/config/AdminConfig/Menu/SupportMenu.js +30 -41
- package/config/AdminConfig/Menu/SupportMenu.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js +4 -4
- package/config/AdminConfig/Menu/UserMenu/UserMenuItem.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js +4 -4
- package/config/AdminConfig/Menu/UserMenu/UserMenuLink.js.map +1 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js +0 -2
- package/config/AdminConfig/Menu/UserMenu/types.js +0 -3
- package/config/AdminConfig/Menu/UserMenu.d.ts +31 -31
- package/config/AdminConfig/Menu/UserMenu.js +39 -52
- package/config/AdminConfig/Menu/UserMenu.js.map +1 -1
- package/config/AdminConfig/Menu/types.js +0 -3
- package/config/AdminConfig/Menu.d.ts +42 -42
- package/config/AdminConfig/Menu.js +57 -73
- package/config/AdminConfig/Menu.js.map +1 -1
- package/config/AdminConfig/Route.js +4 -5
- package/config/AdminConfig/Route.js.map +1 -1
- package/config/AdminConfig/Security.js +3 -2
- package/config/AdminConfig/Security.js.map +1 -1
- package/config/AdminConfig/SecurityPermissions.js +20 -27
- package/config/AdminConfig/SecurityPermissions.js.map +1 -1
- package/config/AdminConfig/Tenant/TenantLogo.d.ts +1 -1
- package/config/AdminConfig/Tenant/TenantLogo.js +18 -20
- package/config/AdminConfig/Tenant/TenantLogo.js.map +1 -1
- package/config/AdminConfig/Tenant/TenantName.d.ts +1 -1
- package/config/AdminConfig/Tenant/TenantName.js +14 -15
- package/config/AdminConfig/Tenant/TenantName.js.map +1 -1
- package/config/AdminConfig/Tenant.js +6 -9
- package/config/AdminConfig/Tenant.js.map +1 -1
- package/config/AdminConfig/Theme/assignColor.js +51 -18
- package/config/AdminConfig/Theme/assignColor.js.map +1 -1
- package/config/AdminConfig/Theme/consts.js +20 -2
- package/config/AdminConfig/Theme/consts.js.map +1 -1
- package/config/AdminConfig/Theme/types.js +0 -3
- package/config/AdminConfig/Theme.js +8 -15
- package/config/AdminConfig/Theme.js.map +1 -1
- package/config/AdminConfig/Title.d.ts +1 -1
- package/config/AdminConfig/Title.js +11 -12
- package/config/AdminConfig/Title.js.map +1 -1
- package/config/AdminConfig/Widget.js +24 -31
- package/config/AdminConfig/Widget.js.map +1 -1
- package/config/AdminConfig.js +47 -59
- package/config/AdminConfig.js.map +1 -1
- package/config/createAdminConfig.js +55 -86
- package/config/createAdminConfig.js.map +1 -1
- package/domain/Identity.js +78 -88
- package/domain/Identity.js.map +1 -1
- package/errors/ErrorOverlayNetworkErrorHandler.js +37 -52
- package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -1
- package/errors/TenantIsDisabled.js +19 -20
- package/errors/TenantIsDisabled.js.map +1 -1
- package/exports/admin/build-params.js +0 -5
- package/exports/admin/configs.js +0 -2
- package/exports/admin/form.js +3 -18
- package/exports/admin/security.js +1 -7
- package/exports/admin/tenancy.js +0 -2
- package/exports/admin/ui.js +1 -4
- package/exports/admin.js +1 -4
- package/features/apolloClient/abstraction.js +2 -1
- package/features/apolloClient/abstraction.js.map +1 -1
- package/features/apolloClient/feature.js +22 -30
- package/features/apolloClient/feature.js.map +1 -1
- package/features/buildParams/BuildParams.js +20 -14
- package/features/buildParams/BuildParams.js.map +1 -1
- package/features/buildParams/abstractions.js +3 -2
- package/features/buildParams/abstractions.js.map +1 -1
- package/features/buildParams/feature.js +11 -10
- package/features/buildParams/feature.js.map +1 -1
- package/features/buildParams/index.js +0 -2
- package/features/formModel/ConditionRuleEvaluator.js +39 -46
- package/features/formModel/ConditionRuleEvaluator.js.map +1 -1
- package/features/formModel/Field.d.ts +1 -0
- package/features/formModel/Field.js +334 -411
- package/features/formModel/Field.js.map +1 -1
- package/features/formModel/FieldBuilder.d.ts +2 -1
- package/features/formModel/FieldBuilder.js +148 -171
- package/features/formModel/FieldBuilder.js.map +1 -1
- package/features/formModel/FieldBuilder.test.js +217 -201
- package/features/formModel/FieldBuilder.test.js.map +1 -1
- package/features/formModel/FieldBuilderRegistry.js +23 -25
- package/features/formModel/FieldBuilderRegistry.js.map +1 -1
- package/features/formModel/FocusManager.js +69 -95
- package/features/formModel/FocusManager.js.map +1 -1
- package/features/formModel/FormErrors.d.ts +9 -0
- package/features/formModel/FormErrors.js +35 -0
- package/features/formModel/FormErrors.js.map +1 -0
- package/features/formModel/FormModel.d.ts +2 -0
- package/features/formModel/FormModel.js +391 -396
- package/features/formModel/FormModel.js.map +1 -1
- package/features/formModel/FormModel.test.js +3791 -3354
- package/features/formModel/FormModel.test.js.map +1 -1
- package/features/formModel/FormModelFactory.js +27 -17
- package/features/formModel/FormModelFactory.js.map +1 -1
- package/features/formModel/FormView.d.ts +2 -1
- package/features/formModel/FormView.js +168 -156
- package/features/formModel/FormView.js.map +1 -1
- package/features/formModel/LayoutBuilderFactory.js +300 -370
- package/features/formModel/LayoutBuilderFactory.js.map +1 -1
- package/features/formModel/LayoutMutator.js +118 -125
- package/features/formModel/LayoutMutator.js.map +1 -1
- package/features/formModel/LayoutResolver.js +174 -214
- package/features/formModel/LayoutResolver.js.map +1 -1
- package/features/formModel/ObjectField.js +524 -724
- package/features/formModel/ObjectField.js.map +1 -1
- package/features/formModel/PresenterErrors.d.ts +9 -0
- package/features/formModel/PresenterErrors.js +32 -0
- package/features/formModel/PresenterErrors.js.map +1 -0
- package/features/formModel/Rules.test.js +311 -276
- package/features/formModel/Rules.test.js.map +1 -1
- package/features/formModel/abstractions.d.ts +10 -0
- package/features/formModel/abstractions.js +5 -114
- package/features/formModel/abstractions.js.map +1 -1
- package/features/formModel/createFieldRenderer.js +33 -10
- package/features/formModel/createFieldRenderer.js.map +1 -1
- package/features/formModel/demo/FieldRenderersDemoPresenter.js +289 -220
- package/features/formModel/demo/FieldRenderersDemoPresenter.js.map +1 -1
- package/features/formModel/demo/FormModelDemo.js +191 -215
- package/features/formModel/demo/FormModelDemo.js.map +1 -1
- package/features/formModel/demo/FormModelDemoPresenter.js +132 -113
- package/features/formModel/demo/FormModelDemoPresenter.js.map +1 -1
- package/features/formModel/demo/FormModelPhase11Presenter.js +101 -98
- package/features/formModel/demo/FormModelPhase11Presenter.js.map +1 -1
- package/features/formModel/demo/FormModelPhase8c1Presenter.js +64 -57
- package/features/formModel/demo/FormModelPhase8c1Presenter.js.map +1 -1
- package/features/formModel/feature.js +23 -22
- package/features/formModel/feature.js.map +1 -1
- package/features/formModel/fieldTypes/BooleanFieldType.js +18 -15
- package/features/formModel/fieldTypes/BooleanFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/DateTimeFieldType.js +218 -341
- package/features/formModel/fieldTypes/DateTimeFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/FileFieldType.d.ts +12 -1
- package/features/formModel/fieldTypes/FileFieldType.js +48 -12
- package/features/formModel/fieldTypes/FileFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/FileUrlFieldType.js +15 -12
- package/features/formModel/fieldTypes/FileUrlFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/NumberFieldType.js +19 -18
- package/features/formModel/fieldTypes/NumberFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/ObjectFieldType.js +80 -94
- package/features/formModel/fieldTypes/ObjectFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/TextFieldType.js +15 -12
- package/features/formModel/fieldTypes/TextFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/index.js +7 -9
- package/features/formModel/index.d.ts +2 -0
- package/features/formModel/index.js +11 -29
- package/features/formModel/renderers.js +0 -4
- package/features/formModel/useFieldRenderers.js +10 -14
- package/features/formModel/useFieldRenderers.js.map +1 -1
- package/features/formModel/useLayoutRenderers.js +10 -14
- package/features/formModel/useLayoutRenderers.js.map +1 -1
- package/features/listCache/ListCache.d.ts +28 -0
- package/features/listCache/ListCache.js +48 -0
- package/features/listCache/ListCache.js.map +1 -0
- package/features/listCache/index.d.ts +2 -0
- package/features/listCache/index.js +1 -0
- package/features/security/AuthenticationContext/AuthenticationContext.js +27 -26
- package/features/security/AuthenticationContext/AuthenticationContext.js.map +1 -1
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js +23 -22
- package/features/security/AuthenticationContext/GraphQLClientDecorator.js.map +1 -1
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js +15 -12
- package/features/security/AuthenticationContext/InternalIdTokenProvider.js.map +1 -1
- package/features/security/AuthenticationContext/abstractions.js +3 -2
- package/features/security/AuthenticationContext/abstractions.js.map +1 -1
- package/features/security/AuthenticationContext/feature.js +15 -14
- package/features/security/AuthenticationContext/feature.js.map +1 -1
- package/features/security/AuthenticationContext/index.js +0 -2
- package/features/security/AuthenticationContext/types.js +0 -3
- package/features/security/IdentityContext/IdentityContext.js +18 -17
- package/features/security/IdentityContext/IdentityContext.js.map +1 -1
- package/features/security/IdentityContext/abstractions.js +2 -1
- package/features/security/IdentityContext/abstractions.js.map +1 -1
- package/features/security/IdentityContext/feature.js +13 -12
- package/features/security/IdentityContext/feature.js.map +1 -1
- package/features/security/IdentityContext/index.js +0 -2
- package/features/security/LogIn/IdentityMapper.js +8 -7
- package/features/security/LogIn/IdentityMapper.js.map +1 -1
- package/features/security/LogIn/LogInGateway.js +17 -19
- package/features/security/LogIn/LogInGateway.js.map +1 -1
- package/features/security/LogIn/LogInRepository.js +16 -14
- package/features/security/LogIn/LogInRepository.js.map +1 -1
- package/features/security/LogIn/LogInUseCase.js +23 -31
- package/features/security/LogIn/LogInUseCase.js.map +1 -1
- package/features/security/LogIn/abstractions.js +5 -16
- package/features/security/LogIn/abstractions.js.map +1 -1
- package/features/security/LogIn/createLoginMutation.js +2 -3
- package/features/security/LogIn/createLoginMutation.js.map +1 -1
- package/features/security/LogIn/feature.js +16 -15
- package/features/security/LogIn/feature.js.map +1 -1
- package/features/security/LogIn/index.js +0 -2
- package/features/security/LogOut/LogOutUseCase.js +18 -16
- package/features/security/LogOut/LogOutUseCase.js.map +1 -1
- package/features/security/LogOut/abstractions.js +2 -1
- package/features/security/LogOut/abstractions.js.map +1 -1
- package/features/security/LogOut/feature.js +12 -11
- package/features/security/LogOut/feature.js.map +1 -1
- package/features/security/LogOut/index.js +0 -2
- package/features/security/SecurityFeature.js +9 -8
- package/features/security/SecurityFeature.js.map +1 -1
- package/features/telemetry/TelemetryService.js +11 -12
- package/features/telemetry/TelemetryService.js.map +1 -1
- package/features/telemetry/abstractions.js +2 -1
- package/features/telemetry/abstractions.js.map +1 -1
- package/features/telemetry/feature.js +13 -12
- package/features/telemetry/feature.js.map +1 -1
- package/features/telemetry/index.js +0 -2
- package/features/tenancy/GraphQLClientDecorator.js +23 -20
- package/features/tenancy/GraphQLClientDecorator.js.map +1 -1
- package/features/tenancy/TenantContext.js +46 -50
- package/features/tenancy/TenantContext.js.map +1 -1
- package/features/tenancy/abstractions.js +2 -1
- package/features/tenancy/abstractions.js.map +1 -1
- package/features/tenancy/feature.js +25 -35
- package/features/tenancy/feature.js.map +1 -1
- package/features/tenancy/types.js +0 -3
- package/features/tools/LexicalContext/LexicalContext.js +20 -17
- package/features/tools/LexicalContext/LexicalContext.js.map +1 -1
- package/features/tools/LexicalContext/abstractions.js +2 -1
- package/features/tools/LexicalContext/abstractions.js.map +1 -1
- package/features/tools/LexicalContext/index.js +0 -2
- package/features/tools/ToolPipelineRunner.js +26 -24
- package/features/tools/ToolPipelineRunner.js.map +1 -1
- package/features/tools/ToolRegistry.js +32 -23
- package/features/tools/ToolRegistry.js.map +1 -1
- package/features/tools/abstractions.js +4 -3
- package/features/tools/abstractions.js.map +1 -1
- package/features/tools/feature.js +17 -16
- package/features/tools/feature.js.map +1 -1
- package/features/tools/index.js +1 -3
- package/features/wcp/ReactLicense.js +53 -52
- package/features/wcp/ReactLicense.js.map +1 -1
- package/features/wcp/WcpGateway.js +21 -20
- package/features/wcp/WcpGateway.js.map +1 -1
- package/features/wcp/WcpService.js +57 -67
- package/features/wcp/WcpService.js.map +1 -1
- package/features/wcp/abstractions.js +3 -2
- package/features/wcp/abstractions.js.map +1 -1
- package/features/wcp/feature.js +14 -13
- package/features/wcp/feature.js.map +1 -1
- package/features/wcp/types.js +0 -3
- package/features/webinySdk/WebinySdk.js +19 -18
- package/features/webinySdk/WebinySdk.js.map +1 -1
- package/features/webinySdk/abstractions.js +2 -5
- package/features/webinySdk/abstractions.js.map +1 -1
- package/features/webinySdk/feature.js +13 -12
- package/features/webinySdk/feature.js.map +1 -1
- package/features/webinySdk/index.js +0 -2
- package/hooks/index.js +0 -2
- package/hooks/useConfirmationDialog.d.ts +1 -1
- package/hooks/useConfirmationDialog.js +31 -38
- package/hooks/useConfirmationDialog.js.map +1 -1
- package/hooks/useDialog.js +14 -15
- package/hooks/useDialog.js.map +1 -1
- package/hooks/useHotkeys.js +52 -85
- package/hooks/useHotkeys.js.map +1 -1
- package/hooks/useIsMounted.js +12 -11
- package/hooks/useIsMounted.js.map +1 -1
- package/hooks/useKeyHandler.js +45 -53
- package/hooks/useKeyHandler.js.map +1 -1
- package/hooks/useModKey.js +20 -25
- package/hooks/useModKey.js.map +1 -1
- package/hooks/useOpenDialog.js +13 -13
- package/hooks/useOpenDialog.js.map +1 -1
- package/hooks/useShiftKey.d.ts +5 -1
- package/hooks/useShiftKey.js +38 -29
- package/hooks/useShiftKey.js.map +1 -1
- package/hooks/useSnackbar.d.ts +3 -0
- package/hooks/useSnackbar.js +26 -28
- package/hooks/useSnackbar.js.map +1 -1
- package/hooks/useStateIfMounted.js +14 -12
- package/hooks/useStateIfMounted.js.map +1 -1
- package/hooks/useStateWithCallback.js +18 -14
- package/hooks/useStateWithCallback.js.map +1 -1
- package/hooks/useToggler.js +12 -11
- package/hooks/useToggler.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +15 -31
- package/package.json +26 -28
- package/permissions/PermissionRenderer.js +179 -193
- package/permissions/PermissionRenderer.js.map +1 -1
- package/permissions/PermissionValueContext.js +13 -20
- package/permissions/PermissionValueContext.js.map +1 -1
- package/permissions/createHasPermission.js +32 -40
- package/permissions/createHasPermission.js.map +1 -1
- package/permissions/createPermissionSchema.js +6 -5
- package/permissions/createPermissionSchema.js.map +1 -1
- package/permissions/createPermissions.js +125 -185
- package/permissions/createPermissions.js.map +1 -1
- package/permissions/createPermissions.test.js +190 -158
- package/permissions/createPermissions.test.js.map +1 -1
- package/permissions/index.js +2 -4
- package/permissions/types.js +0 -3
- package/permissions/usePermissionForm.js +133 -232
- package/permissions/usePermissionForm.js.map +1 -1
- package/permissions/usePermissions.js +6 -5
- package/permissions/usePermissions.js.map +1 -1
- package/plugins/MenuPlugin.js +15 -14
- package/plugins/MenuPlugin.js.map +1 -1
- package/presentation/buildParams/useBuildParams.js +2 -3
- package/presentation/buildParams/useBuildParams.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js +46 -53
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js +9 -14
- package/presentation/installation/components/SystemInstaller/SystemInstallerProvider.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/index.js +0 -2
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +14 -29
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js +11 -10
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/usePasswordValidator.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +60 -60
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js +75 -85
- package/presentation/installation/components/SystemInstaller/steps/BasicInfoStep.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/Center.js +5 -8
- package/presentation/installation/components/SystemInstaller/steps/Center.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/Container.js +18 -24
- package/presentation/installation/components/SystemInstaller/steps/Container.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +48 -53
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js +13 -16
- package/presentation/installation/components/SystemInstaller/steps/IntroductionStep.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/introduction.js +723 -0
- package/presentation/installation/components/SystemInstaller/steps/introduction.js.map +1 -0
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js +14 -1
- package/presentation/installation/components/SystemInstaller/steps/referralSources.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js +27 -28
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +117 -124
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js +23 -21
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/abstractions.js +4 -3
- package/presentation/installation/presenters/SystemInstaller/abstractions.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/feature.js +15 -14
- package/presentation/installation/presenters/SystemInstaller/feature.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/index.js +0 -2
- package/presentation/lexicalContext/useLexicalContext.js +11 -8
- package/presentation/lexicalContext/useLexicalContext.js.map +1 -1
- package/presentation/listPresenter/ListPresenter.d.ts +30 -0
- package/presentation/listPresenter/ListPresenter.js +216 -0
- package/presentation/listPresenter/ListPresenter.js.map +1 -0
- package/presentation/listPresenter/ListPresenter.test.d.ts +1 -0
- package/presentation/listPresenter/ListPresenter.test.js +816 -0
- package/presentation/listPresenter/ListPresenter.test.js.map +1 -0
- package/presentation/listPresenter/SelectionController.d.ts +21 -0
- package/presentation/listPresenter/SelectionController.js +74 -0
- package/presentation/listPresenter/SelectionController.js.map +1 -0
- package/presentation/listPresenter/abstractions.d.ts +107 -0
- package/presentation/listPresenter/abstractions.js +5 -0
- package/presentation/listPresenter/abstractions.js.map +1 -0
- package/presentation/listPresenter/feature.d.ts +3 -0
- package/presentation/listPresenter/feature.js +17 -0
- package/presentation/listPresenter/feature.js.map +1 -0
- package/presentation/listPresenter/index.d.ts +3 -0
- package/presentation/listPresenter/index.js +2 -0
- package/presentation/security/components/HasPermission.js +15 -25
- package/presentation/security/components/HasPermission.js.map +1 -1
- package/presentation/security/components/SecureRoute.js +6 -12
- package/presentation/security/components/SecureRoute.js.map +1 -1
- package/presentation/security/hooks/useAuthentication.js +11 -17
- package/presentation/security/hooks/useAuthentication.js.map +1 -1
- package/presentation/security/hooks/useIdentity.js +19 -18
- package/presentation/security/hooks/useIdentity.js.map +1 -1
- package/presentation/security/hooks/useSecurity.js +14 -24
- package/presentation/security/hooks/useSecurity.js.map +1 -1
- package/presentation/tenancy/TenancyProvider.js +23 -36
- package/presentation/tenancy/TenancyProvider.js.map +1 -1
- package/presentation/tenancy/createTenancyProvider.js +6 -11
- package/presentation/tenancy/createTenancyProvider.js.map +1 -1
- package/presentation/tenancy/useTenantContext.js +17 -18
- package/presentation/tenancy/useTenantContext.js.map +1 -1
- package/presentation/textToLexicalTool/TextToLexicalTool.js +20 -18
- package/presentation/textToLexicalTool/TextToLexicalTool.js.map +1 -1
- package/presentation/textToLexicalTool/feature.js +6 -5
- package/presentation/textToLexicalTool/feature.js.map +1 -1
- package/presentation/textToLexicalTool/textToLexicalState.js +28 -28
- package/presentation/textToLexicalTool/textToLexicalState.js.map +1 -1
- package/presentation/wcp/WcpProvider.js +16 -26
- package/presentation/wcp/WcpProvider.js.map +1 -1
- package/presentation/wcp/useWcp.js +11 -12
- package/presentation/wcp/useWcp.js.map +1 -1
- package/routes.d.ts +0 -1
- package/routes.js +14 -17
- package/routes.js.map +1 -1
- package/static/svg/SecureRouteError.e8b15981.svg +1 -0
- package/static/svg/add-18px.b3062af6.svg +3 -0
- package/static/svg/arrow_drop_down-24px.da74d713.svg +4 -0
- package/static/svg/attach_file_black_24dp.7fb13a7e.svg +1 -0
- package/static/svg/baseline-menu-24px.071b179d.svg +4 -0
- package/static/svg/baseline-notification_important-24px.29277e73.svg +4 -0
- package/static/svg/baseline-security-24px.12e519cc.svg +4 -0
- package/static/svg/file_download.afe3fbec.svg +1 -0
- package/static/svg/file_upload.6865d820.svg +1 -0
- package/static/svg/filter-24px.886d9ff0.svg +8 -0
- package/static/svg/github-brands.6311f0fa.svg +1 -0
- package/static/svg/highlight-24px.959a97f7.svg +1 -0
- package/static/svg/icon-community.cd087355.svg +16 -0
- package/static/svg/icon-documentation.a189d24c.svg +16 -0
- package/static/svg/info.fe810b72.svg +1 -0
- package/static/svg/insert_drive_file-24px.39d490eb.svg +1 -0
- package/static/svg/insert_photo-24px.81a5f945.svg +1 -0
- package/static/svg/introduction.108720aa.svg +154 -0
- package/static/svg/label-24px.9deafa4f.svg +1 -0
- package/static/svg/round-account_circle-24px.f0b48cb7.svg +1 -0
- package/static/svg/round-add-24px.4a5219b4.svg +16 -0
- package/static/svg/round-arrow_drop_down-24px.5fdf92d1.svg +1 -0
- package/static/svg/round-chevron_right-24px.34936511.svg +12 -0
- package/static/svg/round-feedback-24px.4dae7231.svg +54 -0
- package/static/svg/round-help-24px.a61b1d66.svg +1 -0
- package/static/svg/round-invert_colors-24px.a229a1dd.svg +52 -0
- package/static/svg/round-keyboard_arrow_down-24px.6febe804.svg +16 -0
- package/static/svg/round-keyboard_arrow_up-24px.b1f7db34.svg +16 -0
- package/static/svg/round-lock_open-24px.d527f6a5.svg +60 -0
- package/static/svg/round-more_vert-24px.68d41b07.svg +12 -0
- package/static/svg/round-open_in_new-24px.be5b4ddd.svg +44 -0
- package/static/svg/round-settings-24px.c0b3056f.svg +4 -0
- package/static/svg/search-24px.3c0f88dd.svg +20 -0
- package/static/svg/slack-logo.7ee35e7f.svg +1 -0
- package/static/svg/today-24px.df206362.svg +1 -0
- package/static/svg/touch_app.debf3744.svg +1 -0
- package/static/svg/wby-horizontal.03327bf6.svg +23 -0
- package/static/svg/wby-square.ff8f47c3.svg +3 -0
- package/static/svg/webiny-logo.ef56725c.svg +20 -0
- package/static/svg/webiny-orange-logo.4eccf0f2.svg +20 -0
- package/types.js +0 -3
- package/components/BulkActions/index.js.map +0 -1
- package/components/BulkActions/useDialogWithReport/index.js.map +0 -1
- package/components/Buttons/index.js.map +0 -1
- package/components/DeveloperMode/index.js.map +0 -1
- package/components/Filters/index.js.map +0 -1
- package/components/IconPicker/components/index.js.map +0 -1
- package/components/IconPicker/index.js.map +0 -1
- package/components/LexicalEditor/index.js.map +0 -1
- package/components/NotAuthorizedError/index.js.map +0 -1
- package/components/OptionsMenu/index.js.map +0 -1
- package/components/OverlayLayout/components/index.js.map +0 -1
- package/components/OverlayLayout/index.js.map +0 -1
- package/components/Permissions/index.js.map +0 -1
- package/components/ResizablePanels/index.js.map +0 -1
- package/components/SimpleForm/index.js.map +0 -1
- package/components/SplitView/index.js.map +0 -1
- package/components/index.js.map +0 -1
- package/config/AdminConfig/Menu/UserMenu/UserMenuSeparator.js.map +0 -1
- package/config/AdminConfig/Menu/UserMenu/types.js.map +0 -1
- package/config/AdminConfig/Menu/types.js.map +0 -1
- package/config/AdminConfig/Theme/types.js.map +0 -1
- package/exports/admin/build-params.js.map +0 -1
- package/exports/admin/configs.js.map +0 -1
- package/exports/admin/form.js.map +0 -1
- package/exports/admin/security.js.map +0 -1
- package/exports/admin/tenancy.js.map +0 -1
- package/exports/admin/ui.js.map +0 -1
- package/exports/admin.js.map +0 -1
- package/features/buildParams/index.js.map +0 -1
- package/features/formModel/fieldTypes/index.js.map +0 -1
- package/features/formModel/index.js.map +0 -1
- package/features/formModel/renderers.js.map +0 -1
- package/features/security/AuthenticationContext/index.js.map +0 -1
- package/features/security/AuthenticationContext/types.js.map +0 -1
- package/features/security/IdentityContext/index.js.map +0 -1
- package/features/security/LogIn/index.js.map +0 -1
- package/features/security/LogOut/index.js.map +0 -1
- package/features/telemetry/index.js.map +0 -1
- package/features/tenancy/types.js.map +0 -1
- package/features/tools/LexicalContext/index.js.map +0 -1
- package/features/tools/index.js.map +0 -1
- package/features/wcp/types.js.map +0 -1
- package/features/webinySdk/index.js.map +0 -1
- package/hooks/index.js.map +0 -1
- package/index.js.map +0 -1
- package/permissions/index.js.map +0 -1
- package/permissions/types.js.map +0 -1
- package/presentation/installation/components/SystemInstaller/index.js.map +0 -1
- package/presentation/installation/presenters/SystemInstaller/index.js.map +0 -1
- package/types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/installation/components/SystemInstaller/steps/introduction.js","sources":["../../../../../../src/presentation/installation/components/SystemInstaller/steps/introduction.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgIntroduction = props => <svg xmlns=\"http://www.w3.org/2000/svg\" width={288} height={259} fill=\"none\" viewBox=\"0 0 288 259\" {...props}><path fill=\"#FA5723\" d=\"M141.816 107.487a5.13 5.13 0 0 1 5.068 0l16.573 9.44a4.99 4.99 0 0 1 2.535 4.331v18.88a4.99 4.99 0 0 1-2.535 4.331l-16.573 9.441a5.13 5.13 0 0 1-5.068 0l-16.573-9.441a4.99 4.99 0 0 1-2.536-4.331v-18.88a4.99 4.99 0 0 1 2.536-4.331zm-2.997 25.686h-.364l-3.763-10.421h-4.648l6.668 18.834h3.836l3.798-10.533h.384c1.268 3.532 2.533 7.068 3.776 10.524h3.845c2.213-6.25 4.417-12.478 6.668-18.842h-4.652c-1.243 3.46-2.495 6.928-3.747 10.4h-.397c-1.247-3.48-2.499-6.957-3.746-10.429h-3.892c-1.264 3.51-2.515 6.987-3.766 10.467\" /><path stroke=\"#E3E5EB\" strokeDasharray=\"2.84 2.84\" strokeWidth={1.419} d=\"m210.243 181.991-60.844 34.633a18.85 18.85 0 0 1-18.611 0l-60.845-34.633c-5.758-3.278-9.305-9.334-9.305-15.889V96.836c0-6.555 3.547-12.612 9.306-15.889l60.844-34.633a18.84 18.84 0 0 1 18.611 0l60.844 34.633c5.758 3.277 9.305 9.334 9.305 15.89v69.265c0 6.555-3.547 12.611-9.305 15.889\" /><g filter=\"url(#introduction_svg__a)\"><rect width={80.174} height={63.504} x={3.176} y={59.463} fill=\"#fff\" rx={3.618} /></g><circle cx={10.196} cy={66.063} r={1.588} fill=\"#FA5723\" /><circle cx={15.356} cy={66.063} r={1.588} fill=\"#FA5723\" /><circle cx={20.913} cy={66.063} r={1.588} fill=\"#FA5723\" /><rect width={16.387} height={47.161} x={8.609} y={71.65} fill=\"#F0F1F3\" rx={0.709} /><rect width={22.305} height={21.012} x={29.093} y={71.65} fill=\"#F0F1F3\" rx={0.709} /><rect width={22.305} height={22.413} x={29.093} y={96.398} fill=\"#F0F1F3\" rx={0.709} /><rect width={22.305} height={21.012} x={55.495} y={71.65} fill=\"#F0F1F3\" rx={0.709} /><rect width={22.305} height={22.413} x={55.495} y={96.398} fill=\"#F0F1F3\" rx={0.709} /><g filter=\"url(#introduction_svg__b)\"><rect width={80.174} height={63.504} x={103.913} y={2} fill=\"#fff\" rx={3.618} /></g><circle cx={110.934} cy={8.6} r={1.588} fill=\"#FA5723\" /><circle cx={116.093} cy={8.6} r={1.588} fill=\"#FA5723\" /><circle cx={121.65} cy={8.6} r={1.588} fill=\"#FA5723\" /><rect width={16.317} height={12.77} x={109.588} y={14.06} fill=\"#F0F1F3\" rx={0.709} /><rect width={16.317} height={12.77} x={109.588} y={30.377} fill=\"#F0F1F3\" rx={0.709} /><rect width={16.317} height={12.77} x={109.588} y={46.693} fill=\"#F0F1F3\" rx={0.709} /><rect width={23.411} height={2.838} x={130.161} y={14.06} fill=\"#F0F1F3\" rx={0.709} /><rect width={23.411} height={2.838} x={130.161} y={30.377} fill=\"#F0F1F3\" rx={0.709} /><rect width={23.411} height={2.838} x={130.161} y={46.693} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={19.026} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={35.343} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={51.659} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={23.992} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={40.309} fill=\"#F0F1F3\" rx={0.709} /><rect width={46.822} height={2.838} x={130.161} y={56.625} fill=\"#F0F1F3\" rx={0.709} /><g filter=\"url(#introduction_svg__c)\"><rect width={84.761} height={67.137} x={103.913} y={187.158} fill=\"#fff\" rx={3.825} /></g><circle cx={110.934} cy={193.758} r={1.588} fill=\"#FA5723\" /><circle cx={116.093} cy={193.758} r={1.588} fill=\"#FA5723\" /><circle cx={121.65} cy={193.758} r={1.588} fill=\"#FA5723\" /><rect width={34.761} height={26.958} x={109.588} y={199.218} fill=\"#F0F1F3\" rx={0.709} /><rect width={10.641} height={8.513} x={109.588} y={227.595} fill=\"#F0F1F3\" rx={0.709} /><rect width={10.641} height={8.513} x={121.648} y={227.595} fill=\"#F0F1F3\" rx={0.709} /><rect width={10.641} height={8.513} x={133.708} y={227.595} fill=\"#F0F1F3\" rx={0.709} /><rect width={13.479} height={2.838} x={148.606} y={199.928} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={204.894} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={227.595} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={236.108} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={230.433} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={207.731} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={233.27} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={238.946} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={210.569} fill=\"#F0F1F3\" rx={0.709} /><rect width={26.958} height={1.419} x={148.606} y={241.783} fill=\"#F0F1F3\" rx={0.709} /><rect width={17.735} height={4.966} x={148.606} y={214.116} fill=\"#BEBEBE\" rx={0.709} /><g filter=\"url(#introduction_svg__d)\"><rect width={80.174} height={63.504} x={3.176} y={148.85} fill=\"#fff\" rx={3.618} /></g><circle cx={10.196} cy={155.45} r={1.588} fill=\"#FA5723\" /><circle cx={15.356} cy={155.45} r={1.588} fill=\"#FA5723\" /><circle cx={20.913} cy={155.45} r={1.588} fill=\"#FA5723\" /><rect width={17.735} height={9.222} x={8.851} y={168.713} fill=\"#F0F1F3\" rx={0.709} /><rect width={17.735} height={9.222} x={33.681} y={168.713} fill=\"#F0F1F3\" rx={0.709} /><rect width={17.735} height={9.222} x={33.681} y={187.158} fill=\"#F0F1F3\" rx={0.709} /><rect width={17.735} height={9.222} x={58.51} y={187.158} fill=\"#F0F1F3\" rx={0.709} /><path fill=\"#BEBEBE\" d=\"m31.907 174.034-3.547-2.048v4.096zM42.37 184.498l2.049-3.547h-4.096zM56.737 191.415l-3.547-2.048v4.096z\" /><rect width={17.735} height={4.966} x={58.51} y={199.928} fill=\"#BEBEBE\" rx={0.709} /><g filter=\"url(#introduction_svg__e)\"><rect width={80.174} height={63.504} x={204.65} y={63.01} fill=\"#fff\" rx={3.618} /></g><circle cx={211.671} cy={69.61} r={1.588} fill=\"#FA5723\" /><circle cx={216.831} cy={69.61} r={1.588} fill=\"#FA5723\" /><circle cx={222.387} cy={69.61} r={1.588} fill=\"#FA5723\" /><rect width={37.318} height={4.606} x={225.369} y={81.616} fill=\"#F0F1F3\" rx={0.709} /><rect width={37.318} height={4.606} x={225.369} y={95.612} fill=\"#F0F1F3\" rx={0.709} /><rect width={37.318} height={4.914} x={225.369} y={88.46} fill=\"#F0F1F3\" rx={0.709} /><rect width={37.318} height={4.914} x={225.369} y={102.456} fill=\"#F0F1F3\" rx={0.709} /><rect width={11.75} height={4.914} x={250.937} y={109.607} fill=\"#BEBEBE\" rx={0.709} /><g filter=\"url(#introduction_svg__f)\"><rect width={80.174} height={63.504} x={204.65} y={148.85} fill=\"#fff\" rx={3.618} /></g><circle cx={211.671} cy={155.45} r={1.588} fill=\"#FA5723\" /><circle cx={216.831} cy={155.45} r={1.588} fill=\"#FA5723\" /><circle cx={222.387} cy={155.45} r={1.588} fill=\"#FA5723\" /><rect width={46.822} height={11.351} x={233.737} y={163.038} fill=\"#F0F1F3\" rx={1.419} /><rect width={46.822} height={11.351} x={233.737} y={177.226} fill=\"#F0F1F3\" rx={1.419} /><rect width={15.607} height={4.257} x={210.326} y={163.038} fill=\"#F0F1F3\" rx={0.709} /><rect width={15.607} height={4.257} x={210.326} y={169.423} fill=\"#F0F1F3\" rx={0.709} /><rect width={15.607} height={4.257} x={210.326} y={175.807} fill=\"#F0F1F3\" rx={0.709} /><rect width={15.607} height={4.257} x={210.326} y={182.192} fill=\"#F0F1F3\" rx={0.709} /><rect width={15.607} height={4.257} x={210.326} y={188.577} fill=\"#F0F1F3\" rx={0.709} /><rect width={21.992} height={11.351} x={233.737} y={191.415} fill=\"#F0F1F3\" rx={0.709} /><rect width={21.992} height={11.351} x={258.566} y={191.415} fill=\"#F0F1F3\" rx={1.419} /><rect width={14.898} height={4.966} x={262.113} y={194.962} fill=\"#BEBEBE\" rx={0.709} /><rect width={14.898} height={4.966} x={237.284} y={194.962} fill=\"#BEBEBE\" rx={0.709} /><rect width={39.727} height={5.675} x={237.284} y={180.064} fill=\"#BEBEBE\" rx={0.709} /><rect width={39.727} height={5.675} x={237.284} y={165.876} fill=\"#BEBEBE\" rx={0.709} /><defs><filter id=\"introduction_svg__a\" width={85.85} height={69.18} x={0.338} y={58.044} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.419} /><feGaussianBlur stdDeviation={1.419} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter><filter id=\"introduction_svg__b\" width={85.85} height={69.18} x={101.075} y={0.581} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.419} /><feGaussianBlur stdDeviation={1.419} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter><filter id=\"introduction_svg__c\" width={90.761} height={73.137} x={100.913} y={185.658} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.5} /><feGaussianBlur stdDeviation={1.5} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter><filter id=\"introduction_svg__d\" width={85.85} height={69.18} x={0.338} y={147.431} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.419} /><feGaussianBlur stdDeviation={1.419} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter><filter id=\"introduction_svg__e\" width={85.85} height={69.18} x={201.813} y={61.591} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.419} /><feGaussianBlur stdDeviation={1.419} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter><filter id=\"introduction_svg__f\" width={85.85} height={69.18} x={201.813} y={147.431} colorInterpolationFilters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood floodOpacity={0} result=\"BackgroundImageFix\" /><feColorMatrix in=\"SourceAlpha\" result=\"hardAlpha\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" /><feOffset dy={1.419} /><feGaussianBlur stdDeviation={1.419} /><feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.234839 0\" /><feBlend in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_1_1467\" /><feBlend in=\"SourceGraphic\" in2=\"effect1_dropShadow_1_1467\" result=\"shape\" /></filter></defs></svg>;\nexport { SvgIntroduction as ReactComponent };\nexport default \"__RSLIB_SVGR_AUTO_PUBL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,IAAG;QAAgB,KAAI;QAA4B,QAAO;uBAAmB,sCAAC;QAAO,IAAG;QAAsB,OAAO;QAAO,QAAQ;QAAO,GAAG;QAAS,GAAG;QAAQ,2BAA0B;QAAO,aAAY;qBAAiB,sCAAC;QAAQ,cAAc;QAAG,QAAO;sBAAuB,sCAAC;QAAc,IAAG;QAAc,QAAO;QAAY,QAAO;sBAA8C,sCAAC;QAAS,IAAI;sBAAS,sCAAC;QAAe,cAAc;sBAAS,sCAAC;QAAc,QAAO;sBAAmD,sCAAC;QAAQ,KAAI;QAAqB,QAAO;sBAA8B,sCAAC;QAAQ,IAAG;QAAgB,KAAI;QAA4B,QAAO;uBAAmB,sCAAC;QAAO,IAAG;QAAsB,OAAO;QAAO,QAAQ;QAAO,GAAG;QAAS,GAAG;QAAS,2BAA0B;QAAO,aAAY;qBAAiB,sCAAC;QAAQ,cAAc;QAAG,QAAO;sBAAuB,sCAAC;QAAc,IAAG;QAAc,QAAO;QAAY,QAAO;sBAA8C,sCAAC;QAAS,IAAI;sBAAS,sCAAC;QAAe,cAAc;sBAAS,sCAAC;QAAc,QAAO;sBAAmD,sCAAC;QAAQ,KAAI;QAAqB,QAAO;sBAA8B,sCAAC;QAAQ,IAAG;QAAgB,KAAI;QAA4B,QAAO;;AAEnnW"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
const referralSources = [
|
|
2
|
+
"Search engine (i.e. Google, DuckDuck)",
|
|
3
|
+
"Chat GPT or similar",
|
|
4
|
+
"Friend or colleague referral",
|
|
5
|
+
"GitHub",
|
|
6
|
+
"Social (Reddit, Facebook, X, HN, LinkedIn)",
|
|
7
|
+
"Blog",
|
|
8
|
+
"YouTube",
|
|
9
|
+
"Comparison site (G2, Capterra, etc.)",
|
|
10
|
+
"Newsletter",
|
|
11
|
+
"Event, webinar, conference or a meetup",
|
|
12
|
+
"Other"
|
|
13
|
+
];
|
|
14
|
+
export { referralSources };
|
|
2
15
|
|
|
3
16
|
//# sourceMappingURL=referralSources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"presentation/installation/components/SystemInstaller/steps/referralSources.js","sources":["../../../../../../src/presentation/installation/components/SystemInstaller/steps/referralSources.ts"],"sourcesContent":["export const referralSources = [\n \"Search engine (i.e. Google, DuckDuck)\",\n \"Chat GPT or similar\",\n \"Friend or colleague referral\",\n \"GitHub\",\n \"Social (Reddit, Facebook, X, HN, LinkedIn)\",\n \"Blog\",\n \"YouTube\",\n \"Comparison site (G2, Capterra, etc.)\",\n \"Newsletter\",\n \"Event, webinar, conference or a meetup\",\n \"Other\"\n];\n"],"names":["referralSources"],"mappings":"AAAO,MAAMA,kBAAkB;IAC3B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createImplementation } from "@webiny/di";
|
|
2
2
|
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
3
|
-
import { SystemInstallerGateway
|
|
4
|
-
const IS_SYSTEM_INSTALLED =
|
|
3
|
+
import { SystemInstallerGateway } from "./abstractions.js";
|
|
4
|
+
const IS_SYSTEM_INSTALLED = `
|
|
5
5
|
query IsSystemInstalled {
|
|
6
6
|
system {
|
|
7
7
|
isSystemInstalled {
|
|
@@ -15,7 +15,7 @@ const IS_SYSTEM_INSTALLED = /* GraphQL */`
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
|
-
const INSTALL_SYSTEM =
|
|
18
|
+
const INSTALL_SYSTEM = `
|
|
19
19
|
mutation InstallSystem($installationInput: JSON!) {
|
|
20
20
|
system {
|
|
21
21
|
installSystem(installationInput: $installationInput) {
|
|
@@ -30,34 +30,33 @@ const INSTALL_SYSTEM = /* GraphQL */`
|
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
32
|
class SystemInstallerGraphQLGateway {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
async isSystemInstalled() {
|
|
37
|
-
const response = await this.client.execute({
|
|
38
|
-
query: IS_SYSTEM_INSTALLED
|
|
39
|
-
});
|
|
40
|
-
if (response.system.isSystemInstalled.error) {
|
|
41
|
-
throw new Error(response.system.isSystemInstalled.error.message);
|
|
33
|
+
constructor(client){
|
|
34
|
+
this.client = client;
|
|
42
35
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
async isSystemInstalled() {
|
|
37
|
+
const response = await this.client.execute({
|
|
38
|
+
query: IS_SYSTEM_INSTALLED
|
|
39
|
+
});
|
|
40
|
+
if (response.system.isSystemInstalled.error) throw new Error(response.system.isSystemInstalled.error.message);
|
|
41
|
+
return response.system.isSystemInstalled.data;
|
|
42
|
+
}
|
|
43
|
+
async installSystem(data) {
|
|
44
|
+
const response = await this.client.execute({
|
|
45
|
+
query: INSTALL_SYSTEM,
|
|
46
|
+
variables: {
|
|
47
|
+
installationInput: data
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
if (response.system.installSystem.error) throw response.system.installSystem.error;
|
|
54
51
|
}
|
|
55
|
-
}
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
const SystemInstallerGateway_SystemInstallerGateway = createImplementation({
|
|
54
|
+
abstraction: SystemInstallerGateway,
|
|
55
|
+
implementation: SystemInstallerGraphQLGateway,
|
|
56
|
+
dependencies: [
|
|
57
|
+
MainGraphQLClient
|
|
58
|
+
]
|
|
61
59
|
});
|
|
60
|
+
export { SystemInstallerGateway_SystemInstallerGateway as SystemInstallerGateway };
|
|
62
61
|
|
|
63
62
|
//# sourceMappingURL=SystemInstallerGateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.js","sources":["../../../../../src/presentation/installation/presenters/SystemInstaller/SystemInstallerGateway.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport { type InstallationInput, SystemInstallerGateway as Abstraction } from \"./abstractions.js\";\n\nconst IS_SYSTEM_INSTALLED = /* GraphQL */ `\n query IsSystemInstalled {\n system {\n isSystemInstalled {\n data\n error {\n message\n code\n data\n }\n }\n }\n }\n`;\n\nconst INSTALL_SYSTEM = /* GraphQL */ `\n mutation InstallSystem($installationInput: JSON!) {\n system {\n installSystem(installationInput: $installationInput) {\n data\n error {\n message\n code\n data\n }\n }\n }\n }\n`;\n\ninterface IsSystemInstalledResponse {\n system: {\n isSystemInstalled: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n data: any;\n };\n };\n };\n}\n\ninterface InstallSystemResponse {\n system: {\n installSystem: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n data: any;\n };\n };\n };\n}\n\nclass SystemInstallerGraphQLGateway implements Abstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async isSystemInstalled(): Promise<boolean> {\n const response = await this.client.execute<IsSystemInstalledResponse>({\n query: IS_SYSTEM_INSTALLED\n });\n\n if (response.system.isSystemInstalled.error) {\n throw new Error(response.system.isSystemInstalled.error.message);\n }\n\n return response.system.isSystemInstalled.data;\n }\n\n async installSystem(data: InstallationInput): Promise<void> {\n const response = await this.client.execute<InstallSystemResponse>({\n query: INSTALL_SYSTEM,\n variables: {\n installationInput: data\n }\n });\n\n if (response.system.installSystem.error) {\n throw response.system.installSystem.error;\n }\n }\n}\n\nexport const SystemInstallerGateway = createImplementation({\n abstraction: Abstraction,\n implementation: SystemInstallerGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["IS_SYSTEM_INSTALLED","INSTALL_SYSTEM","SystemInstallerGraphQLGateway","client","response","Error","data","SystemInstallerGateway","createImplementation","Abstraction","MainGraphQLClient"],"mappings":";;;AAIA,MAAMA,sBAAoC,CAAC;;;;;;;;;;;;;AAa3C,CAAC;AAED,MAAMC,iBAA+B,CAAC;;;;;;;;;;;;;AAatC,CAAC;AA4BD,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,oBAAsC;QACxC,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA4B;YAClE,OAAOJ;QACX;QAEA,IAAII,SAAS,MAAM,CAAC,iBAAiB,CAAC,KAAK,EACvC,MAAM,IAAIC,MAAMD,SAAS,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAO;QAGnE,OAAOA,SAAS,MAAM,CAAC,iBAAiB,CAAC,IAAI;IACjD;IAEA,MAAM,cAAcE,IAAuB,EAAiB;QACxD,MAAMF,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwB;YAC9D,OAAOH;YACP,WAAW;gBACP,mBAAmBK;YACvB;QACJ;QAEA,IAAIF,SAAS,MAAM,CAAC,aAAa,CAAC,KAAK,EACnC,MAAMA,SAAS,MAAM,CAAC,aAAa,CAAC,KAAK;IAEjD;AACJ;AAEO,MAAMG,gDAAyBC,qBAAqB;IACvD,aAAaC;IACb,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
|
|
@@ -1,138 +1,131 @@
|
|
|
1
1
|
import { makeAutoObservable, runInAction, toJS } from "mobx";
|
|
2
2
|
import { createImplementation } from "@webiny/di";
|
|
3
|
-
import { SystemInstallerPresenter
|
|
3
|
+
import { SystemInstallerPresenter, SystemInstallerRepository } from "./abstractions.js";
|
|
4
4
|
import { TelemetryService } from "../../../../features/telemetry/index.js";
|
|
5
5
|
class SystemInstallerPresenterImpl {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
name: "basic-info",
|
|
22
|
-
label: "Basic info"
|
|
23
|
-
}, process.env.REACT_APP_IDP_TYPE === "cognito" ? {
|
|
24
|
-
name: "admin-account",
|
|
25
|
-
label: "Admin account"
|
|
26
|
-
} : undefined, {
|
|
27
|
-
name: "finish",
|
|
28
|
-
label: "Finish setup"
|
|
29
|
-
}].filter(Boolean);
|
|
30
|
-
makeAutoObservable(this, {}, {
|
|
31
|
-
autoBind: true
|
|
32
|
-
});
|
|
33
|
-
this.initialize();
|
|
34
|
-
}
|
|
35
|
-
async initialize() {
|
|
36
|
-
runInAction(() => {
|
|
37
|
-
this.loading = true;
|
|
38
|
-
});
|
|
39
|
-
try {
|
|
40
|
-
const isInstalled = await this.repository.isSystemInstalled();
|
|
41
|
-
runInAction(() => {
|
|
42
|
-
this.isInstalled = isInstalled;
|
|
43
|
-
this.startUsing = isInstalled;
|
|
44
|
-
this.loading = false;
|
|
45
|
-
});
|
|
46
|
-
if (!isInstalled) {
|
|
47
|
-
await this.telemetry.sendEvent("install-wizard-start");
|
|
48
|
-
}
|
|
49
|
-
} catch {
|
|
50
|
-
runInAction(() => {
|
|
51
|
-
this.loading = false;
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
get vm() {
|
|
56
|
-
return {
|
|
57
|
-
error: this.error,
|
|
58
|
-
loading: this.loading,
|
|
59
|
-
isInstalled: this.isInstalled,
|
|
60
|
-
startUsing: this.startUsing,
|
|
61
|
-
currentStep: this.wizardSteps[this.currentStep].name,
|
|
62
|
-
steps: this.wizardSteps.map((step, index) => {
|
|
63
|
-
let state = "idle";
|
|
64
|
-
if (index === this.currentStep) {
|
|
65
|
-
state = "current";
|
|
66
|
-
}
|
|
67
|
-
if (index < this.currentStep) {
|
|
68
|
-
state = "completed";
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
...step,
|
|
72
|
-
state
|
|
6
|
+
constructor(telemetry, repository){
|
|
7
|
+
this.telemetry = telemetry;
|
|
8
|
+
this.repository = repository;
|
|
9
|
+
this.loading = true;
|
|
10
|
+
this.isInstalled = false;
|
|
11
|
+
this.currentStep = 0;
|
|
12
|
+
this.error = void 0;
|
|
13
|
+
this.installing = false;
|
|
14
|
+
this.startUsing = false;
|
|
15
|
+
this.installerData = {};
|
|
16
|
+
this.nextStep = (data = {})=>{
|
|
17
|
+
if (this.currentStep < this.wizardSteps.length - 1) {
|
|
18
|
+
Object.assign(this.installerData, data ?? {});
|
|
19
|
+
this.currentStep++;
|
|
20
|
+
}
|
|
73
21
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
22
|
+
this.previousStep = ()=>{
|
|
23
|
+
if (this.currentStep > 0) this.currentStep--;
|
|
24
|
+
};
|
|
25
|
+
this.goToStep = (name)=>{
|
|
26
|
+
const stepIndex = this.wizardSteps.findIndex((step)=>step.name === name);
|
|
27
|
+
if (stepIndex > -1) this.currentStep = stepIndex;
|
|
28
|
+
};
|
|
29
|
+
this.installSystem = async ()=>{
|
|
30
|
+
runInAction(()=>{
|
|
31
|
+
this.installing = true;
|
|
32
|
+
});
|
|
33
|
+
try {
|
|
34
|
+
const { basicInfo, ...installerData } = toJS(this.installerData);
|
|
35
|
+
const installationInput = Object.keys(installerData).map((key)=>({
|
|
36
|
+
app: key,
|
|
37
|
+
data: installerData[key]
|
|
38
|
+
}));
|
|
39
|
+
await this.repository.installSystem(installationInput);
|
|
40
|
+
await this.telemetry.sendEvent("install-wizard-end", {
|
|
41
|
+
project: basicInfo.projectName,
|
|
42
|
+
organization: basicInfo.organizationName,
|
|
43
|
+
referralSource: basicInfo.referralSource
|
|
44
|
+
});
|
|
45
|
+
runInAction(()=>{
|
|
46
|
+
this.isInstalled = true;
|
|
47
|
+
this.installing = false;
|
|
48
|
+
});
|
|
49
|
+
} catch (error) {
|
|
50
|
+
runInAction(()=>{
|
|
51
|
+
this.error = error;
|
|
52
|
+
this.installing = false;
|
|
53
|
+
console.log("error", error);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
this.finishInstallation = ()=>{
|
|
58
|
+
this.startUsing = true;
|
|
59
|
+
};
|
|
60
|
+
this.wizardSteps = [
|
|
61
|
+
{
|
|
62
|
+
name: "introduction",
|
|
63
|
+
label: "Introduction"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "basic-info",
|
|
67
|
+
label: "Basic info"
|
|
68
|
+
},
|
|
69
|
+
"cognito" === process.env.REACT_APP_IDP_TYPE ? {
|
|
70
|
+
name: "admin-account",
|
|
71
|
+
label: "Admin account"
|
|
72
|
+
} : void 0,
|
|
73
|
+
{
|
|
74
|
+
name: "finish",
|
|
75
|
+
label: "Finish setup"
|
|
76
|
+
}
|
|
77
|
+
].filter(Boolean);
|
|
78
|
+
makeAutoObservable(this, {}, {
|
|
79
|
+
autoBind: true
|
|
80
|
+
});
|
|
81
|
+
this.initialize();
|
|
87
82
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
async initialize() {
|
|
84
|
+
runInAction(()=>{
|
|
85
|
+
this.loading = true;
|
|
86
|
+
});
|
|
87
|
+
try {
|
|
88
|
+
const isInstalled = await this.repository.isSystemInstalled();
|
|
89
|
+
runInAction(()=>{
|
|
90
|
+
this.isInstalled = isInstalled;
|
|
91
|
+
this.startUsing = isInstalled;
|
|
92
|
+
this.loading = false;
|
|
93
|
+
});
|
|
94
|
+
if (!isInstalled) await this.telemetry.sendEvent("install-wizard-start");
|
|
95
|
+
} catch {
|
|
96
|
+
runInAction(()=>{
|
|
97
|
+
this.loading = false;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
93
100
|
}
|
|
94
|
-
|
|
95
|
-
installSystem = async () => {
|
|
96
|
-
runInAction(() => {
|
|
97
|
-
this.installing = true;
|
|
98
|
-
});
|
|
99
|
-
try {
|
|
100
|
-
const {
|
|
101
|
-
basicInfo,
|
|
102
|
-
...installerData
|
|
103
|
-
} = toJS(this.installerData);
|
|
104
|
-
const installationInput = Object.keys(installerData).map(key => {
|
|
101
|
+
get vm() {
|
|
105
102
|
return {
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
error: this.error,
|
|
104
|
+
loading: this.loading,
|
|
105
|
+
isInstalled: this.isInstalled,
|
|
106
|
+
startUsing: this.startUsing,
|
|
107
|
+
currentStep: this.wizardSteps[this.currentStep].name,
|
|
108
|
+
steps: this.wizardSteps.map((step, index)=>{
|
|
109
|
+
let state = "idle";
|
|
110
|
+
if (index === this.currentStep) state = "current";
|
|
111
|
+
if (index < this.currentStep) state = "completed";
|
|
112
|
+
return {
|
|
113
|
+
...step,
|
|
114
|
+
state
|
|
115
|
+
};
|
|
116
|
+
}),
|
|
117
|
+
installing: this.installing
|
|
108
118
|
};
|
|
109
|
-
});
|
|
110
|
-
await this.repository.installSystem(installationInput);
|
|
111
|
-
await this.telemetry.sendEvent("install-wizard-end", {
|
|
112
|
-
project: basicInfo.projectName,
|
|
113
|
-
organization: basicInfo.organizationName,
|
|
114
|
-
referralSource: basicInfo.referralSource
|
|
115
|
-
});
|
|
116
|
-
runInAction(() => {
|
|
117
|
-
this.isInstalled = true;
|
|
118
|
-
this.installing = false;
|
|
119
|
-
});
|
|
120
|
-
} catch (error) {
|
|
121
|
-
runInAction(() => {
|
|
122
|
-
this.error = error;
|
|
123
|
-
this.installing = false;
|
|
124
|
-
console.log("error", error);
|
|
125
|
-
});
|
|
126
119
|
}
|
|
127
|
-
};
|
|
128
|
-
finishInstallation = () => {
|
|
129
|
-
this.startUsing = true;
|
|
130
|
-
};
|
|
131
120
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
const SystemInstallerPresenter_SystemInstallerPresenter = createImplementation({
|
|
122
|
+
abstraction: SystemInstallerPresenter,
|
|
123
|
+
implementation: SystemInstallerPresenterImpl,
|
|
124
|
+
dependencies: [
|
|
125
|
+
TelemetryService,
|
|
126
|
+
SystemInstallerRepository
|
|
127
|
+
]
|
|
136
128
|
});
|
|
129
|
+
export { SystemInstallerPresenter_SystemInstallerPresenter as SystemInstallerPresenter };
|
|
137
130
|
|
|
138
131
|
//# sourceMappingURL=SystemInstallerPresenter.js.map
|
package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js","sources":["../../../../../src/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.ts"],"sourcesContent":["import { makeAutoObservable, runInAction, toJS } from \"mobx\";\nimport { createImplementation } from \"@webiny/di\";\nimport {\n SystemInstallerPresenter as Abstraction,\n InstallationInput,\n SystemInstallerRepository,\n type SystemInstallerViewModel,\n type WizardStep,\n type WizardStepState,\n type ErrorObject\n} from \"./abstractions.js\";\nimport { TelemetryService } from \"~/features/telemetry/index.js\";\n\nclass SystemInstallerPresenterImpl implements Abstraction.Interface {\n private loading = true;\n private isInstalled = false;\n private currentStep = 0;\n private error: ErrorObject | undefined = undefined;\n private installing = false;\n private startUsing = false;\n private installerData: Record<string, any> = {};\n private wizardSteps: WizardStep[];\n\n constructor(\n private telemetry: TelemetryService.Interface,\n private repository: SystemInstallerRepository.Interface\n ) {\n // TODO: Wizard steps need to be implemented via plugins, but this will do for now.\n this.wizardSteps = [\n { name: \"introduction\", label: \"Introduction\" },\n { name: \"basic-info\", label: \"Basic info\" },\n process.env.REACT_APP_IDP_TYPE === \"cognito\"\n ? { name: \"admin-account\", label: \"Admin account\" }\n : undefined,\n { name: \"finish\", label: \"Finish setup\" }\n ].filter(Boolean) as WizardStep[];\n\n makeAutoObservable(this, {}, { autoBind: true });\n this.initialize();\n }\n\n private async initialize(): Promise<void> {\n runInAction(() => {\n this.loading = true;\n });\n\n try {\n const isInstalled = await this.repository.isSystemInstalled();\n runInAction(() => {\n this.isInstalled = isInstalled;\n this.startUsing = isInstalled;\n this.loading = false;\n });\n\n if (!isInstalled) {\n await this.telemetry.sendEvent(\"install-wizard-start\");\n }\n } catch {\n runInAction(() => {\n this.loading = false;\n });\n }\n }\n\n get vm(): SystemInstallerViewModel {\n return {\n error: this.error,\n loading: this.loading,\n isInstalled: this.isInstalled,\n startUsing: this.startUsing,\n currentStep: this.wizardSteps[this.currentStep].name,\n steps: this.wizardSteps.map((step, index) => {\n let state: WizardStepState = \"idle\";\n if (index === this.currentStep) {\n state = \"current\";\n }\n\n if (index < this.currentStep) {\n state = \"completed\";\n }\n\n return {\n ...step,\n state\n };\n }),\n installing: this.installing\n };\n }\n\n nextStep = (data: Record<string, any> = {}): void => {\n if (this.currentStep < this.wizardSteps.length - 1) {\n Object.assign(this.installerData, data ?? {});\n this.currentStep++;\n }\n };\n\n previousStep = (): void => {\n if (this.currentStep > 0) {\n this.currentStep--;\n }\n };\n\n goToStep = (name: WizardStep[\"name\"]): void => {\n const stepIndex = this.wizardSteps.findIndex(step => step.name === name);\n\n if (stepIndex > -1) {\n this.currentStep = stepIndex;\n }\n };\n\n installSystem = async (): Promise<void> => {\n runInAction(() => {\n this.installing = true;\n });\n try {\n const { basicInfo, ...installerData } = toJS(this.installerData);\n const installationInput: InstallationInput = Object.keys(installerData).map(key => {\n return {\n app: key,\n data: installerData[key]\n };\n });\n await this.repository.installSystem(installationInput);\n\n await this.telemetry.sendEvent(\"install-wizard-end\", {\n project: basicInfo.projectName,\n organization: basicInfo.organizationName,\n referralSource: basicInfo.referralSource\n });\n\n runInAction(() => {\n this.isInstalled = true;\n this.installing = false;\n });\n } catch (error) {\n runInAction(() => {\n this.error = error;\n this.installing = false;\n console.log(\"error\", error);\n });\n }\n };\n\n finishInstallation = () => {\n this.startUsing = true;\n };\n}\n\nexport const SystemInstallerPresenter = createImplementation({\n abstraction: Abstraction,\n implementation: SystemInstallerPresenterImpl,\n dependencies: [TelemetryService, SystemInstallerRepository]\n});\n"],"names":["SystemInstallerPresenterImpl","telemetry","repository","undefined","data","Object","name","stepIndex","step","runInAction","basicInfo","installerData","toJS","installationInput","key","error","console","process","Boolean","makeAutoObservable","isInstalled","index","state","SystemInstallerPresenter","createImplementation","Abstraction","TelemetryService","SystemInstallerRepository"],"mappings":";;;;AAaA,MAAMA;IAUF,YACYC,SAAqC,EACrCC,UAA+C,CACzD;aAFUD,SAAS,GAATA;aACAC,UAAU,GAAVA;aAXJ,OAAO,GAAG;aACV,WAAW,GAAG;aACd,WAAW,GAAG;aACd,KAAK,GAA4BC;aACjC,UAAU,GAAG;aACb,UAAU,GAAG;aACb,aAAa,GAAwB,CAAC;aAsE9C,QAAQ,GAAG,CAACC,OAA4B,CAAC,CAAC;YACtC,IAAI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,GAAG;gBAChDC,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,EAAED,QAAQ,CAAC;gBAC3C,IAAI,CAAC,WAAW;YACpB;QACJ;aAEA,YAAY,GAAG;YACX,IAAI,IAAI,CAAC,WAAW,GAAG,GACnB,IAAI,CAAC,WAAW;QAExB;aAEA,QAAQ,GAAG,CAACE;YACR,MAAMC,YAAY,IAAI,CAAC,WAAW,CAAC,SAAS,CAACC,CAAAA,OAAQA,KAAK,IAAI,KAAKF;YAEnE,IAAIC,YAAY,IACZ,IAAI,CAAC,WAAW,GAAGA;QAE3B;aAEA,aAAa,GAAG;YACZE,YAAY;gBACR,IAAI,CAAC,UAAU,GAAG;YACtB;YACA,IAAI;gBACA,MAAM,EAAEC,SAAS,EAAE,GAAGC,eAAe,GAAGC,KAAK,IAAI,CAAC,aAAa;gBAC/D,M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ACD,MAAM,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QAEvC,EAAE,OAAM;YACJX,YAAY;gBACR,IAAI,CAAC,OAAO,GAAG;YACnB;QACJ;IACJ;IAEA,IAAI,KAA+B;QAC/B,OAAO;YACH,OAAO,IAAI,CAAC,KAAK;YACjB,SAAS,IAAI,CAAC,OAAO;YACrB,aAAa,IAAI,CAAC,WAAW;YAC7B,YAAY,IAAI,CAAC,UAAU;YAC3B,aAAa,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI;YACpD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAACD,MAAMa;gBAC/B,IAAIC,QAAyB;gBAC7B,IAAID,UAAU,IAAI,CAAC,WAAW,EAC1BC,QAAQ;gBAGZ,IAAID,QAAQ,IAAI,CAAC,WAAW,EACxBC,QAAQ;gBAGZ,OAAO;oBACH,GAAGd,IAAI;oBACPc;gBACJ;YACJ;YACA,YAAY,IAAI,CAAC,UAAU;QAC/B;IACJ;AA2DJ;AAEO,MAAMC,oDAA2BC,qBAAqB;IACzD,aAAaC;IACb,gBAAgBzB;IAChB,cAAc;QAAC0B;QAAkBC;KAA0B;AAC/D"}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { createImplementation } from "@webiny/di";
|
|
2
2
|
import { LocalStorage } from "@webiny/app/features/localStorage";
|
|
3
|
-
import {
|
|
3
|
+
import { SystemInstallerGateway, SystemInstallerRepository } from "./abstractions.js";
|
|
4
4
|
const LOCAL_STORAGE_KEY = "system/installed";
|
|
5
5
|
class SystemInstallerRepositoryImpl {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
constructor(localStorage, gateway){
|
|
7
|
+
this.localStorage = localStorage;
|
|
8
|
+
this.gateway = gateway;
|
|
9
|
+
}
|
|
10
|
+
async isSystemInstalled() {
|
|
11
|
+
const cachedValue = this.localStorage.get(LOCAL_STORAGE_KEY);
|
|
12
|
+
if (true === cachedValue) return true;
|
|
13
|
+
const isInstalled = await this.gateway.isSystemInstalled();
|
|
14
|
+
this.localStorage.set(LOCAL_STORAGE_KEY, isInstalled);
|
|
15
|
+
return isInstalled;
|
|
16
|
+
}
|
|
17
|
+
async installSystem(data) {
|
|
18
|
+
await this.gateway.installSystem(data);
|
|
19
|
+
this.localStorage.set(LOCAL_STORAGE_KEY, true);
|
|
14
20
|
}
|
|
15
|
-
const isInstalled = await this.gateway.isSystemInstalled();
|
|
16
|
-
this.localStorage.set(LOCAL_STORAGE_KEY, isInstalled);
|
|
17
|
-
return isInstalled;
|
|
18
|
-
}
|
|
19
|
-
async installSystem(data) {
|
|
20
|
-
await this.gateway.installSystem(data);
|
|
21
|
-
this.localStorage.set(LOCAL_STORAGE_KEY, true);
|
|
22
|
-
}
|
|
23
21
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
const SystemInstallerRepository_SystemInstallerRepository = createImplementation({
|
|
23
|
+
abstraction: SystemInstallerRepository,
|
|
24
|
+
implementation: SystemInstallerRepositoryImpl,
|
|
25
|
+
dependencies: [
|
|
26
|
+
LocalStorage,
|
|
27
|
+
SystemInstallerGateway
|
|
28
|
+
]
|
|
28
29
|
});
|
|
30
|
+
export { SystemInstallerRepository_SystemInstallerRepository as SystemInstallerRepository };
|
|
29
31
|
|
|
30
32
|
//# sourceMappingURL=SystemInstallerRepository.js.map
|
package/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.js","sources":["../../../../../src/presentation/installation/presenters/SystemInstaller/SystemInstallerRepository.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { LocalStorage } from \"@webiny/app/features/localStorage\";\nimport {\n SystemInstallerRepository as Abstraction,\n SystemInstallerGateway,\n type InstallationInput\n} from \"./abstractions.js\";\n\nconst LOCAL_STORAGE_KEY = \"system/installed\";\n\nclass SystemInstallerRepositoryImpl implements Abstraction.Interface {\n constructor(\n private localStorage: LocalStorage.Interface,\n private gateway: SystemInstallerGateway.Interface\n ) {}\n\n async isSystemInstalled(): Promise<boolean> {\n const cachedValue = this.localStorage.get<boolean>(LOCAL_STORAGE_KEY);\n if (cachedValue === true) {\n return true;\n }\n\n const isInstalled = await this.gateway.isSystemInstalled();\n this.localStorage.set(LOCAL_STORAGE_KEY, isInstalled);\n return isInstalled;\n }\n\n async installSystem(data: InstallationInput): Promise<void> {\n await this.gateway.installSystem(data);\n this.localStorage.set(LOCAL_STORAGE_KEY, true);\n }\n}\n\nexport const SystemInstallerRepository = createImplementation({\n abstraction: Abstraction,\n implementation: SystemInstallerRepositoryImpl,\n dependencies: [LocalStorage, SystemInstallerGateway]\n});\n"],"names":["LOCAL_STORAGE_KEY","SystemInstallerRepositoryImpl","localStorage","gateway","cachedValue","isInstalled","data","SystemInstallerRepository","createImplementation","Abstraction","LocalStorage","SystemInstallerGateway"],"mappings":";;;AAQA,MAAMA,oBAAoB;AAE1B,MAAMC;IACF,YACYC,YAAoC,EACpCC,OAAyC,CACnD;aAFUD,YAAY,GAAZA;aACAC,OAAO,GAAPA;IACT;IAEH,MAAM,oBAAsC;QACxC,MAAMC,cAAc,IAAI,CAAC,YAAY,CAAC,GAAG,CAAUJ;QACnD,IAAII,AAAgB,SAAhBA,aACA,OAAO;QAGX,MAAMC,cAAc,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB;QACxD,IAAI,CAAC,YAAY,CAAC,GAAG,CAACL,mBAAmBK;QACzC,OAAOA;IACX;IAEA,MAAM,cAAcC,IAAuB,EAAiB;QACxD,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAACA;QACjC,IAAI,CAAC,YAAY,CAAC,GAAG,CAACN,mBAAmB;IAC7C;AACJ;AAEO,MAAMO,sDAA4BC,qBAAqB;IAC1D,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAcC;KAAuB;AACxD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Abstraction } from "@webiny/di";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const SystemInstallerGateway = new Abstraction("SystemInstallerGateway");
|
|
3
|
+
const SystemInstallerRepository = new Abstraction("SystemInstallerRepository");
|
|
4
|
+
const SystemInstallerPresenter = new Abstraction("SystemInstallerPresenter");
|
|
5
|
+
export { SystemInstallerGateway, SystemInstallerPresenter, SystemInstallerRepository };
|
|
5
6
|
|
|
6
7
|
//# sourceMappingURL=abstractions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"presentation/installation/presenters/SystemInstaller/abstractions.js","sources":["../../../../../src/presentation/installation/presenters/SystemInstaller/abstractions.ts"],"sourcesContent":["import { Abstraction } from \"@webiny/di\";\n\nexport type InstallationInput = Array<{ app: string; data: Record<string, any> }>;\n\nexport interface ISystemInstallerGateway {\n isSystemInstalled(): Promise<boolean>;\n installSystem(data: InstallationInput): Promise<void>;\n}\n\nexport const SystemInstallerGateway = new Abstraction<ISystemInstallerGateway>(\n \"SystemInstallerGateway\"\n);\n\nexport namespace SystemInstallerGateway {\n export type Interface = ISystemInstallerGateway;\n}\n\nexport interface ISystemInstallerRepository {\n isSystemInstalled(): Promise<boolean>;\n installSystem(data: InstallationInput): Promise<void>;\n}\n\nexport const SystemInstallerRepository = new Abstraction<ISystemInstallerRepository>(\n \"SystemInstallerRepository\"\n);\n\nexport namespace SystemInstallerRepository {\n export type Interface = ISystemInstallerRepository;\n}\n\nexport type WizardStep = {\n name: \"introduction\" | \"basic-info\" | \"admin-account\" | \"finish\";\n label: string;\n};\n\nexport type WizardStepState = \"current\" | \"idle\" | \"completed\";\n\nexport type ErrorObject = {\n message: string;\n code: string;\n data: {\n reason: string;\n failedApp: string;\n cause: Record<string, any>;\n };\n};\n\nexport interface SystemInstallerViewModel {\n error: ErrorObject | undefined;\n loading: boolean;\n isInstalled: boolean;\n startUsing: boolean;\n currentStep: WizardStep[\"name\"];\n steps: Array<WizardStep & { state: WizardStepState }>;\n installing: boolean;\n}\n\nexport interface ISystemInstallerPresenter {\n vm: SystemInstallerViewModel;\n nextStep(data?: Record<string, any>): void;\n previousStep(): void;\n goToStep(step: WizardStep[\"name\"]): void;\n installSystem(): Promise<void>;\n finishInstallation(): void;\n}\n\nexport const SystemInstallerPresenter = new Abstraction<ISystemInstallerPresenter>(\n \"SystemInstallerPresenter\"\n);\n\nexport namespace SystemInstallerPresenter {\n export type Interface = ISystemInstallerPresenter;\n export type ViewModel = SystemInstallerViewModel;\n}\n"],"names":["SystemInstallerGateway","Abstraction","SystemInstallerRepository","SystemInstallerPresenter"],"mappings":";AASO,MAAMA,yBAAyB,IAAIC,YACtC;AAYG,MAAMC,4BAA4B,IAAID,YACzC;AA2CG,MAAME,2BAA2B,IAAIF,YACxC"}
|