@antscorp/antsomi-ui 1.3.7-beta.7 → 1.3.7-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/es/components/atoms/Input/Input.js +3 -1
- package/es/components/atoms/InputDynamic/InputDynamic.js +3 -3
- package/es/components/atoms/Tag/Tag.js +1 -1
- package/es/components/icons/LazyIcon/LazyIcon.d.ts +2 -0
- package/es/components/icons/LazyIcon/LazyIcon.js +2 -0
- package/es/components/icons/QRCodeManagementIcon.d.ts +3 -0
- package/es/components/icons/QRCodeManagementIcon.js +7 -0
- package/es/components/icons/QRSetDashboardIcon.d.ts +3 -0
- package/es/components/icons/QRSetDashboardIcon.js +7 -0
- package/es/components/icons/index.d.ts +2 -0
- package/es/components/icons/index.js +2 -0
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +28 -2
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +1 -0
- package/es/components/molecules/AddDynamicContent/constants.d.ts +2 -0
- package/es/components/molecules/AddDynamicContent/constants.js +2 -0
- package/es/components/molecules/ColorPicker/index.d.ts +2 -0
- package/es/components/molecules/ColorPicker/index.js +8 -3
- package/es/components/molecules/EmojiPopover/EmojiPopover.d.ts +1 -0
- package/es/components/molecules/EmojiPopover/EmojiPopover.js +2 -2
- package/es/components/molecules/EmojiPopover/styled.d.ts +2 -2
- package/es/components/molecules/EmojiPopover/styled.js +1 -1
- package/es/components/molecules/EmptyData/EmptyData.d.ts +1 -1
- package/es/components/molecules/EmptyData/EmptyData.js +4 -2
- package/es/components/molecules/HeaderV2/HeaderV2.d.ts +1 -1
- package/es/components/molecules/InputSearch/index.d.ts +1 -1
- package/es/components/molecules/InputSearch/index.js +2 -1
- package/es/components/molecules/Modal/Modal.js +7 -1
- package/es/components/molecules/ModalV2/ModalV2.js +2 -1
- package/es/components/molecules/SearchPopover/SearchPopover.js +2 -2
- package/es/components/molecules/SearchPopover/styled.d.ts +12 -1
- package/es/components/molecules/SearchPopover/styled.js +1 -2
- package/es/components/molecules/SearchPopover/types.d.ts +4 -3
- package/es/components/molecules/Select/Select.js +3 -3
- package/es/components/molecules/Select/styled.d.ts +3 -1
- package/es/components/molecules/Select/styled.js +50 -6
- package/es/components/molecules/ShareAccess/ShareAccess.d.ts +2 -1
- package/es/components/molecules/ShareAccess/ShareAccess.js +12 -9
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.js +5 -5
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.js +2 -2
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.d.ts +2 -1
- package/es/components/molecules/ShareAccess/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/reducer.d.ts +1 -1
- package/es/components/molecules/ShareAccess/reducer.js +7 -4
- package/es/components/molecules/ShareAccess/types.d.ts +22 -0
- package/es/components/molecules/ShareAccess/utils.d.ts +3 -1
- package/es/components/molecules/ShareAccess/utils.js +35 -2
- package/es/components/molecules/TagifyInput/TagifyInput.js +48 -27
- package/es/components/molecules/TagifyInput/types.d.ts +14 -8
- package/es/components/molecules/TagifyInput/utils.d.ts +6 -1
- package/es/components/molecules/TagifyInput/utils.js +19 -0
- package/es/components/molecules/VirtualizedMenu/VirtualizedMenu.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/components/Item/Item.js +3 -7
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.d.ts +10 -10
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.js +46 -327
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/index.d.ts +9 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/index.js +5 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useFocusManagement.d.ts +23 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useFocusManagement.js +81 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useItemInteraction.d.ts +24 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useItemInteraction.js +32 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useKeyboardNavigation.d.ts +26 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useKeyboardNavigation.js +93 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useTreeState.d.ts +24 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useTreeState.js +94 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useVisibleItems.d.ts +7 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useVisibleItems.js +132 -0
- package/es/components/molecules/VirtualizedMenu/styled.js +14 -3
- package/es/components/molecules/VirtualizedMenu/types.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/utils.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/utils.js +1 -0
- package/es/components/molecules/index.d.ts +1 -0
- package/es/components/organism/AccountSharing/AccountSharing.d.ts +1 -0
- package/es/components/organism/AccountSharing/AccountSharing.js +17 -33
- package/es/components/organism/AccountSharing/styled.js +1 -1
- package/es/components/organism/ActivityTimeline/ActivityTimeline.js +3 -3
- package/es/components/organism/ActivityTimeline/constants.d.ts +9 -9
- package/es/components/organism/ActivityTimeline/constants.js +3 -3
- package/es/components/organism/ActivityTimeline/index.d.ts +530 -1
- package/es/components/organism/ActivityTimeline/index.js +9 -1
- package/es/components/organism/ActivityTimeline/utils.js +186 -15
- package/es/components/organism/LeftMenu/LeftMenu.js +6 -6
- package/es/components/organism/LeftMenu/hooks/usePermission.js +1 -1
- package/es/components/organism/LeftMenu/styled.js +2 -0
- package/es/components/organism/LeftMenu/types/index.d.ts +7 -0
- package/es/components/organism/LeftMenu/utils/index.js +1 -1
- package/es/components/organism/Login/Login.js +19 -36
- package/es/components/organism/Login/components/IconInfo/IconInfo.js +1 -1
- package/es/components/organism/Login/components/LoginSelectPortal/LoginSelectPortal.js +1 -1
- package/es/components/organism/Login/components/SignIn/SignIn.js +2 -2
- package/es/components/organism/Login/types/index.d.ts +2 -0
- package/es/components/organism/LoginV2/LoginV2.d.ts +3 -0
- package/es/components/organism/LoginV2/LoginV2.js +957 -0
- package/es/components/organism/LoginV2/components/Avatar/Avatar.d.ts +8 -0
- package/es/components/organism/LoginV2/components/Avatar/Avatar.js +11 -0
- package/es/components/organism/LoginV2/components/Avatar/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/Avatar/index.js +1 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/ChooseMethod.d.ts +9 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/ChooseMethod.js +54 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/Method.d.ts +10 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/Method.js +13 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/index.js +1 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/styled.d.ts +10 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/styled.js +24 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/utils.d.ts +1 -0
- package/es/components/organism/LoginV2/components/ChooseMethod/utils.js +1 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/ForgotPassword.d.ts +14 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/ForgotPassword.js +195 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/index.d.ts +2 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/index.js +2 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/styled.d.ts +1 -0
- package/es/components/organism/LoginV2/components/ForgotPassword/styled.js +10 -0
- package/es/components/organism/LoginV2/components/IconInfo/IconInfo.d.ts +7 -0
- package/es/components/organism/LoginV2/components/IconInfo/IconInfo.js +18 -0
- package/es/components/organism/LoginV2/components/IconInfo/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/IconInfo/index.js +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/Item.d.ts +10 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/Item.js +12 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/index.js +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/styled.d.ts +2 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/Item/styled.js +34 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/LoginSelectPortal.d.ts +19 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/LoginSelectPortal.js +194 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/index.js +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/styled.d.ts +1 -0
- package/es/components/organism/LoginV2/components/LoginSelectPortal/styled.js +5 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/LoginWithEmail.d.ts +15 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/LoginWithEmail.js +211 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/index.js +1 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/styled.d.ts +3 -0
- package/es/components/organism/LoginV2/components/LoginWithEmail/styled.js +5 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/LoginWithGG.d.ts +14 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/LoginWithGG.js +116 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/index.js +1 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/styled.d.ts +3 -0
- package/es/components/organism/LoginV2/components/LoginWithGG/styled.js +5 -0
- package/es/components/organism/LoginV2/components/Logo/Logo.d.ts +6 -0
- package/es/components/organism/LoginV2/components/Logo/Logo.js +9 -0
- package/es/components/organism/LoginV2/components/Logo/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/Logo/index.js +1 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryAuthLayout.d.ts +9 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryAuthLayout.js +4 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryConsent.d.ts +17 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryConsent.js +204 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryThemeProvider.d.ts +8 -0
- package/es/components/organism/LoginV2/components/OryConsent/OryThemeProvider.js +10 -0
- package/es/components/organism/LoginV2/components/OryConsent/PortalSelect.d.ts +15 -0
- package/es/components/organism/LoginV2/components/OryConsent/PortalSelect.js +30 -0
- package/es/components/organism/LoginV2/components/OryConsent/ScopeConsent.d.ts +20 -0
- package/es/components/organism/LoginV2/components/OryConsent/ScopeConsent.js +29 -0
- package/es/components/organism/LoginV2/components/OryConsent/index.d.ts +2 -0
- package/es/components/organism/LoginV2/components/OryConsent/index.js +2 -0
- package/es/components/organism/LoginV2/components/OryConsent/styled.d.ts +31 -0
- package/es/components/organism/LoginV2/components/OryConsent/styled.js +292 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryFormShell.d.ts +9 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryFormShell.js +36 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryMfa.d.ts +11 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryMfa.js +144 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryRecovery.d.ts +9 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryRecovery.js +128 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryStatus.d.ts +17 -0
- package/es/components/organism/LoginV2/components/OrySignIn/OryStatus.js +33 -0
- package/es/components/organism/LoginV2/components/OrySignIn/index.d.ts +3 -0
- package/es/components/organism/LoginV2/components/OrySignIn/index.js +3 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/SetupGGAuthenticator.d.ts +14 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/SetupGGAuthenticator.js +100 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/index.d.ts +2 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/index.js +2 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/styled.d.ts +4 -0
- package/es/components/organism/LoginV2/components/SetupGGAuthenticator/styled.js +10 -0
- package/es/components/organism/LoginV2/components/SignIn/SignIn.d.ts +22 -0
- package/es/components/organism/LoginV2/components/SignIn/SignIn.js +107 -0
- package/es/components/organism/LoginV2/components/SignIn/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/SignIn/index.js +1 -0
- package/es/components/organism/LoginV2/components/SignIn/styled.d.ts +3 -0
- package/es/components/organism/LoginV2/components/SignIn/styled.js +10 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/VerifyAccount.d.ts +25 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/VerifyAccount.js +42 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/index.js +1 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/styled.d.ts +22 -0
- package/es/components/organism/LoginV2/components/VerifyAccount/styled.js +17 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/WidgetLayout.d.ts +13 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/WidgetLayout.js +18 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/index.d.ts +1 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/index.js +1 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/styled.d.ts +5 -0
- package/es/components/organism/LoginV2/components/WidgetLayout/styled.js +22 -0
- package/es/components/organism/LoginV2/components/index.d.ts +11 -0
- package/es/components/organism/LoginV2/components/index.js +11 -0
- package/es/components/organism/LoginV2/constants/index.d.ts +48 -0
- package/es/components/organism/LoginV2/constants/index.js +48 -0
- package/es/components/organism/LoginV2/hooks/index.d.ts +1 -0
- package/es/components/organism/LoginV2/hooks/index.js +1 -0
- package/es/components/organism/LoginV2/hooks/useResize.d.ts +7 -0
- package/es/components/organism/LoginV2/hooks/useResize.js +21 -0
- package/es/components/organism/LoginV2/index.d.ts +6 -0
- package/es/components/organism/LoginV2/index.js +4 -0
- package/es/components/organism/LoginV2/styled.d.ts +51 -0
- package/es/components/organism/LoginV2/styled.js +129 -0
- package/es/components/organism/LoginV2/types/index.d.ts +79 -0
- package/es/components/organism/LoginV2/types/index.js +1 -0
- package/es/components/organism/LoginV2/types/ory.d.ts +52 -0
- package/es/components/organism/LoginV2/types/ory.js +1 -0
- package/es/components/organism/LoginV2/utils/index.d.ts +14 -0
- package/es/components/organism/LoginV2/utils/index.js +49 -0
- package/es/components/organism/LoginV2/utils/ory.d.ts +138 -0
- package/es/components/organism/LoginV2/utils/ory.js +408 -0
- package/es/components/organism/LoginV2/utils/oryConsent.d.ts +52 -0
- package/es/components/organism/LoginV2/utils/oryConsent.js +174 -0
- package/es/components/organism/LoginV2/utils/oryFlows.d.ts +100 -0
- package/es/components/organism/LoginV2/utils/oryFlows.js +319 -0
- package/es/components/organism/TextEditor/TextEditor.d.ts +9 -2
- package/es/components/organism/TextEditor/TextEditor.js +203 -42
- package/es/components/organism/TextEditor/constants.d.ts +9 -0
- package/es/components/organism/TextEditor/constants.js +66 -0
- package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu-plugin.d.ts +6 -128
- package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu-plugin.js +7 -292
- package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu.d.ts +1 -1
- package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu.js +4 -0
- package/es/components/organism/TextEditor/extensions/Link.js +33 -14
- package/es/components/organism/TextEditor/extensions/ListItem.d.ts +10 -0
- package/es/components/organism/TextEditor/extensions/ListItem.js +93 -0
- package/es/components/organism/TextEditor/extensions/SmartTag.d.ts +5 -6
- package/es/components/organism/TextEditor/extensions/SmartTag.js +96 -4
- package/es/components/organism/TextEditor/hooks/useColorSet.js +7 -0
- package/es/components/organism/TextEditor/hooks/useMarkTracking.js +2 -1
- package/es/components/organism/TextEditor/index.d.ts +7 -5
- package/es/components/organism/TextEditor/index.scss +4 -7
- package/es/components/organism/TextEditor/provider.d.ts +1 -0
- package/es/components/organism/TextEditor/provider.js +6 -3
- package/es/components/organism/TextEditor/store.d.ts +11 -4
- package/es/components/organism/TextEditor/store.js +22 -2
- package/es/components/organism/TextEditor/stories/WithOldDynAndLink/froala-legacy-format.settings.json +95 -0
- package/es/components/organism/TextEditor/stories/WithOldDynAndLink/shared.d.ts +111 -0
- package/es/components/organism/TextEditor/stories/WithOldDynAndLink/shared.js +82 -0
- package/es/components/organism/TextEditor/stories/shared.d.ts +64 -0
- package/es/components/organism/TextEditor/stories/shared.js +57 -0
- package/es/components/organism/TextEditor/styled.d.ts +1 -1
- package/es/components/organism/TextEditor/styled.js +1 -0
- package/es/components/organism/TextEditor/types.d.ts +161 -11
- package/es/components/organism/TextEditor/types.js +1 -0
- package/es/components/organism/TextEditor/ui/BubbleMenu/BubbleMenu.d.ts +2 -1
- package/es/components/organism/TextEditor/ui/BubbleMenu/BubbleMenu.js +80 -51
- package/es/components/organism/TextEditor/ui/Emoji/EmojiList.js +1 -1
- package/es/components/organism/TextEditor/ui/Emoji/suggestion.d.ts +1 -1
- package/es/components/organism/TextEditor/ui/Emoji/suggestion.js +2 -2
- package/es/components/organism/TextEditor/ui/FontPopover/FontPopover.js +12 -2
- package/es/components/organism/TextEditor/ui/LinkInsertForm/LinkInsertForm.d.ts +16 -0
- package/es/components/organism/TextEditor/ui/LinkInsertForm/LinkInsertForm.js +61 -0
- package/es/components/organism/TextEditor/ui/LinkInsertForm/index.d.ts +2 -0
- package/es/components/organism/TextEditor/ui/LinkInsertForm/index.js +1 -0
- package/es/components/organism/TextEditor/ui/LinkPopover/LinkPopover.d.ts +9 -0
- package/es/components/organism/TextEditor/ui/LinkPopover/LinkPopover.js +126 -0
- package/es/components/organism/TextEditor/ui/LinkPopover/index.d.ts +2 -0
- package/es/components/organism/TextEditor/ui/LinkPopover/index.js +1 -0
- package/es/components/organism/TextEditor/ui/Popover/Popover.js +1 -1
- package/es/components/organism/TextEditor/ui/TextAlignSelect/TextAlignSelect.js +1 -3
- package/es/components/organism/TextEditor/ui/Toolbar/{Toolbar.d.ts → FormattingToolbar.d.ts} +3 -4
- package/es/components/organism/TextEditor/ui/Toolbar/FormattingToolbar.js +90 -0
- package/es/components/organism/TextEditor/ui/Toolbar/LinkPreviewToolbar.d.ts +10 -0
- package/es/components/organism/TextEditor/ui/Toolbar/LinkPreviewToolbar.js +39 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/EmojiAction.js +4 -3
- package/es/components/organism/TextEditor/ui/Toolbar/actions/FontFamilyAction.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/FontFamilyAction.js +2 -2
- package/es/components/organism/TextEditor/ui/Toolbar/actions/FontSizeAction.js +6 -1
- package/es/components/organism/TextEditor/ui/Toolbar/index.d.ts +2 -1
- package/es/components/organism/TextEditor/ui/Toolbar/index.js +2 -1
- package/es/components/organism/TextEditor/utils/documentState.d.ts +14 -0
- package/es/components/organism/TextEditor/utils/documentState.js +25 -0
- package/es/components/organism/TextEditor/utils/htmlProcessing.js +60 -0
- package/es/components/organism/TextEditor/utils/link.d.ts +10 -1
- package/es/components/organism/TextEditor/utils/link.js +161 -7
- package/es/components/organism/TextEditor/utils/menu.js +2 -1
- package/es/components/organism/TextEditor/utils/selection.js +3 -2
- package/es/components/organism/TextEditor/utils/smartTag.js +2 -1
- package/es/components/organism/index.d.ts +3 -1
- package/es/components/organism/index.js +1 -0
- package/es/components/template/TemplateListing/Loadable.d.ts +1 -0
- package/es/hooks/index.d.ts +1 -1
- package/es/hooks/index.js +1 -1
- package/es/providers/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/es/providers/ConfigProvider/ConfigProvider.js +2 -3
- package/es/providers/ConfigProvider/GlobalStyle.d.ts +2 -2
- package/es/providers/ConfigProvider/GlobalStyle.js +67 -64
- package/es/services/MediaTemplateDesign/UploadFile/index.js +4 -4
- package/es/utils/common.d.ts +1 -1
- package/es/utils/common.js +3 -3
- package/es/utils/cookie.js +2 -1
- package/es/utils/crossSubdomainCookieOptions.d.ts +14 -0
- package/es/utils/crossSubdomainCookieOptions.js +12 -0
- package/package.json +26 -30
- package/es/components/organism/TextEditor/ui/BubbleToolbar/BubbleToolbar.d.ts +0 -1
- package/es/components/organism/TextEditor/ui/BubbleToolbar/BubbleToolbar.js +0 -1
- package/es/components/organism/TextEditor/ui/BubbleToolbar/index.d.ts +0 -0
- package/es/components/organism/TextEditor/ui/BubbleToolbar/index.js +0 -1
- package/es/components/organism/TextEditor/ui/Toolbar/Toolbar.js +0 -39
package/README.md
CHANGED
|
@@ -76,3 +76,73 @@ const App = () => (
|
|
|
76
76
|
### TypeScript
|
|
77
77
|
|
|
78
78
|
`@antscorp/antsomi-ui` is written in TypeScript with complete definitions.
|
|
79
|
+
|
|
80
|
+
### Ory OAuth browser login
|
|
81
|
+
|
|
82
|
+
`Login` retains the released legacy flow. Use the independent `LoginV2` with `useOry`;
|
|
83
|
+
the existing SignIn form, logo and banner remain visible. Its password submit
|
|
84
|
+
uses Kratos JSON browser-flow APIs and CSRF, then starts Hydra authorization:
|
|
85
|
+
|
|
86
|
+
```jsx
|
|
87
|
+
<LoginV2
|
|
88
|
+
loginDomain={window.location.origin}
|
|
89
|
+
useOry
|
|
90
|
+
oauthAuthorizeUrl="/api/account/oauth-authenticate"
|
|
91
|
+
oauthTokenUrl="/oauth2/token"
|
|
92
|
+
oauthClientId="your-public-client-id"
|
|
93
|
+
oauthRedirectUri="https://app.example.test/oauth/callback"
|
|
94
|
+
oauthScope="openid profile email offline_access"
|
|
95
|
+
oauthLoginUrl="/oauth2/login"
|
|
96
|
+
kratosLoginUrl="/self-service/login/browser"
|
|
97
|
+
sessionUrl="/api/session"
|
|
98
|
+
onOAuthSuccess={handleOAuthSuccess}
|
|
99
|
+
/>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The component generates an S256 PKCE verifier and state in session storage,
|
|
103
|
+
starts authorization through the configured IAM entrypoint, verifies the
|
|
104
|
+
callback state, and exchanges the one-time code at the public token endpoint.
|
|
105
|
+
The token response is delivered in memory to `onOAuthSuccess`; it is never
|
|
106
|
+
written to cookies or local storage. Passwords are submitted only to the Kratos
|
|
107
|
+
flow and are not persisted. A login challenge uses the verified session when
|
|
108
|
+
available; otherwise it shows the same SignIn form. A consent challenge renders the package's portal and scope screens and calls
|
|
109
|
+
the IAM consent API with CSRF protection.
|
|
110
|
+
|
|
111
|
+
`oauthAutoStart` defaults to `false`. Set it to `true` only for a consumer that
|
|
112
|
+
wants to start authorization immediately. Configure Hydra login and consent
|
|
113
|
+
URLs to this component's page and proxy Kratos `/self-service` plus IAM
|
|
114
|
+
`/oauth2` APIs on the frontend origin. Business scopes still require portal
|
|
115
|
+
selection and current IAM permissions; basic login does not grant those rights.
|
|
116
|
+
LoginV2 supports inline Ory MFA and browser recovery with validated provider
|
|
117
|
+
flows, CSRF and session checks. Helpers, types and components live under
|
|
118
|
+
`es/components/organism/LoginV2`; legacy Login is not their implementation.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Exact LoginV2 release and manual publication
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
import { Login, LoginV2, OryConsent, OryThemeProvider } from '@antscorp/antsomi-ui';
|
|
125
|
+
import type { LoginV2Props } from '@antscorp/antsomi-ui';
|
|
126
|
+
import '@antscorp/antsomi-ui/dist/main.css';
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The reviewed release is `1.3.7-beta.71`, published only with the `login-v2` tag.
|
|
130
|
+
After publication and registry integrity verification, install the exact
|
|
131
|
+
version with `npm install --save-exact @antscorp/antsomi-ui@1.3.7-beta.71`.
|
|
132
|
+
React/ReactDOM/router and Antsomi constants/locales remain consumer peers;
|
|
133
|
+
use one React instance. A bundler consuming precompiled `dist/main.css` may
|
|
134
|
+
skip this package's SCSS imports. Required CSS font/image files ship in dist.
|
|
135
|
+
|
|
136
|
+
Publish the reviewed immutable tarball, never this dirty source directory:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
npm publish /path/to/reviewed/antscorp-antsomi-ui-1.3.7-beta.71.tgz \
|
|
140
|
+
--ignore-scripts --tag login-v2 --registry=https://registry.npmjs.org
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The source `prepublishOnly` runs yarn/build:es and deletes dist. The release
|
|
144
|
+
stage disables source lifecycle scripts; `--ignore-scripts` is required for
|
|
145
|
+
manual publication. Keep latest/beta/staging and other existing tags unchanged.
|
|
146
|
+
The release stage preserves published beta.70 ES/types/assets and adds only
|
|
147
|
+
V2, named exports, audited CSS/resources and necessary runtime metadata.
|
|
148
|
+
Local tarball install/build validation is not a registry install or deployment.
|
|
@@ -6,7 +6,9 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
6
6
|
// Types
|
|
7
7
|
import { Input as AntdInput } from 'antd';
|
|
8
8
|
// Components
|
|
9
|
-
import { Icon
|
|
9
|
+
import { Icon } from '../Icon';
|
|
10
|
+
import { RequiredLabel } from '../RequiredLabel';
|
|
11
|
+
import { Text } from '../Text';
|
|
10
12
|
// Utils
|
|
11
13
|
import { handleError } from '@antscorp/antsomi-ui/es/utils/handleError';
|
|
12
14
|
import { getPreventKeyboardAction } from '@antscorp/antsomi-ui/es/utils/web';
|
|
@@ -30,9 +30,9 @@ const defaultProps = {
|
|
|
30
30
|
apiConfig: {
|
|
31
31
|
domain: 'https://sandbox-media-template.antsomi.com/cdp',
|
|
32
32
|
slug: '/api/v1',
|
|
33
|
-
token: '
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
token: '5474r2x214z284d4w2b4y4o5l4u5n4x5s2x2h4g45416',
|
|
34
|
+
userId: '1600083836',
|
|
35
|
+
accountId: '1600083836',
|
|
36
36
|
},
|
|
37
37
|
disabled: false,
|
|
38
38
|
showIndex: true,
|
|
@@ -15,7 +15,7 @@ import { SearchPopover } from '../../molecules/SearchPopover/SearchPopover';
|
|
|
15
15
|
import { globalToken } from '@antscorp/antsomi-ui/es/constants';
|
|
16
16
|
import { translate, translations } from '@antscorp/antsomi-ui/es/locales';
|
|
17
17
|
// Utils
|
|
18
|
-
import { searchStringQuery } from '@antscorp/antsomi-ui/es/utils';
|
|
18
|
+
import { searchStringQuery } from '@antscorp/antsomi-ui/es/utils/common';
|
|
19
19
|
import { Scrollbars } from '../Scrollbars';
|
|
20
20
|
const { Text } = Typography;
|
|
21
21
|
const CloseBtn = styled.div `
|
|
@@ -408,4 +408,6 @@ export declare const LazyIcon: {
|
|
|
408
408
|
WebPersonalizationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
409
409
|
WidgetIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
410
410
|
WritingAIAssitantIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
411
|
+
QRCodeManagementIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
412
|
+
QRSetDashboardIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
411
413
|
};
|
|
@@ -411,4 +411,6 @@ export const LazyIcon = {
|
|
|
411
411
|
WebPersonalizationIcon: lazy(() => import('../WebPersonalizationIcon').then(m => ({ default: m.WebPersonalizationIcon }))),
|
|
412
412
|
WidgetIcon: lazy(() => import('../WidgetIcon').then(m => ({ default: m.WidgetIcon }))),
|
|
413
413
|
WritingAIAssitantIcon: lazy(() => import('../WritingAIAssitantIcon').then(m => ({ default: m.WritingAIAssitantIcon }))),
|
|
414
|
+
QRCodeManagementIcon: lazy(() => import('../QRCodeManagementIcon').then(m => ({ default: m.QRCodeManagementIcon }))),
|
|
415
|
+
QRSetDashboardIcon: lazy(() => import('../QRSetDashboardIcon').then(m => ({ default: m.QRSetDashboardIcon }))),
|
|
414
416
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useIcon } from './hooks/useIcon';
|
|
4
|
+
export const QRCodeManagementIcon = forwardRef((props, ref) => {
|
|
5
|
+
const { width, height } = useIcon(props);
|
|
6
|
+
return (_jsx("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, ref: ref, width: width, height: height, children: _jsx("g", { children: _jsx("path", { d: "M2.604 7.3118V2.60425H7.31156V4.16675H4.1665V7.3118H2.604ZM2.604 22.3959V17.6884H4.1665V20.8334H7.31156V22.3959H2.604ZM17.6881 22.3959V20.8334H20.8332V17.6884H22.3957V22.3959H17.6881ZM20.8332 7.3118V4.16675H17.6881V2.60425H22.3957V7.3118H20.8332ZM17.9386 17.9389H19.3509V19.3511H17.9386V17.9389ZM17.9386 15.1141H19.3509V16.5264H17.9386V15.1141ZM16.5261 16.5264H17.9386V17.9389H16.5261V16.5264ZM15.1139 17.9389H16.5261V19.3511H15.1139V17.9389ZM13.7017 16.5264H15.1139V17.9389H13.7017V16.5264ZM16.5261 13.7019H17.9386V15.1141H16.5261V13.7019ZM15.1139 15.1141H16.5261V16.5264H15.1139V15.1141ZM13.7017 13.7019H15.1139V15.1141H13.7017V13.7019ZM19.3509 5.64904V11.2983H13.7017V5.64904H19.3509ZM11.298 13.7019V19.3511H5.6488V13.7019H11.298ZM11.298 5.64904V11.2983H5.6488V5.64904H11.298ZM10.0558 18.1089V14.9441H6.89098V18.1089H10.0558ZM10.0558 10.0561V6.89123H6.89098V10.0561H10.0558ZM18.1087 10.0561V6.89123H14.9438V10.0561H18.1087Z", fill: "currentColor" }) }) }));
|
|
7
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useIcon } from './hooks/useIcon';
|
|
4
|
+
export const QRSetDashboardIcon = forwardRef((props, ref) => {
|
|
5
|
+
const { width, height } = useIcon(props);
|
|
6
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 18 18", width: width, height: height, ref: ref, ...props, children: _jsx("path", { fill: "currentColor", d: "M10 18v-2h2v2zm-2-2v-5h2v5zm8-3V9h2v4zm-2-4V7h2v2zM2 11V9h2v2zM0 9V7h2v2zm9-7V0h2v2zM1.5 4.5h3v-3h-3zM0 6V0h6v6zm1.5 10.5h3v-3h-3zM0 18v-6h6v6zM13.5 4.5h3v-3h-3zM12 6V0h6v6zm2 12v-3h-2v-2h4v3h2v2zm-4-7V9h4v2zm-4 0V9H4V7h6v2H8v2zm1-5V2h2v2h2v2zM2.25 3.75v-1.5h1.5v1.5zm0 12v-1.5h1.5v1.5zm12-12v-1.5h1.5v1.5z" }) }));
|
|
7
|
+
});
|
|
@@ -401,3 +401,5 @@ export { WebIcon } from './WebIcon';
|
|
|
401
401
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
402
402
|
export { WidgetIcon } from './WidgetIcon';
|
|
403
403
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
404
|
+
export { QRSetDashboardIcon } from './QRSetDashboardIcon';
|
|
405
|
+
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
@@ -401,3 +401,5 @@ export { WebIcon } from './WebIcon';
|
|
|
401
401
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
402
402
|
export { WidgetIcon } from './WidgetIcon';
|
|
403
403
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
404
|
+
export { QRSetDashboardIcon } from './QRSetDashboardIcon';
|
|
405
|
+
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
@@ -15,6 +15,7 @@ import { Text } from '@antscorp/antsomi-ui/es/components/atoms/Text';
|
|
|
15
15
|
import { Form, Select, TreeSelect } from 'antd';
|
|
16
16
|
import { TreeNode } from 'rc-tree-select';
|
|
17
17
|
// Locales
|
|
18
|
+
import { translate, translations as translationLib } from '@antscorp/antsomi-locales';
|
|
18
19
|
import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
19
20
|
import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
20
21
|
// Query
|
|
@@ -33,6 +34,7 @@ import { buildMappingFields, buildOptionAttrArchive, checkStatusAttr, CUSTOM_TYP
|
|
|
33
34
|
// Style
|
|
34
35
|
import { EditorScript } from '../EditorScript';
|
|
35
36
|
import { InputSuggestion, ModalCustom } from './styled';
|
|
37
|
+
import { Input, Radio } from '../../atoms';
|
|
36
38
|
const getMembers = (member) => {
|
|
37
39
|
if (!member.children || !member.children.length) {
|
|
38
40
|
return member;
|
|
@@ -303,6 +305,12 @@ export const AddDynamicContent = props => {
|
|
|
303
305
|
}
|
|
304
306
|
return false;
|
|
305
307
|
}, [selectedAttr, selectedDynamicContentType, eventTrackingAttributes?.mainObjects]);
|
|
308
|
+
const eventBOAttributeLabel = useMemo(() => {
|
|
309
|
+
if (!selectedAttr?.itemTypeId || !listEventAttributes)
|
|
310
|
+
return '';
|
|
311
|
+
const boAttr = listEventAttributes.find(row => row.itemTypeId === selectedAttr?.itemTypeId);
|
|
312
|
+
return boAttr?.label;
|
|
313
|
+
}, [listEventAttributes, selectedAttr]);
|
|
306
314
|
const itemTypeName = useMemo(() => {
|
|
307
315
|
let draftItemTypeName = '';
|
|
308
316
|
if (itemTypeId) {
|
|
@@ -416,6 +424,8 @@ export const AddDynamicContent = props => {
|
|
|
416
424
|
[DYNAMIC_CONTENT_SETTING_KEY.DISPLAY_FORMAT_TYPE]: undefined,
|
|
417
425
|
[DYNAMIC_CONTENT_SETTING_KEY.FUNCTION]: undefined,
|
|
418
426
|
[DYNAMIC_CONTENT_SETTING_KEY.DATA_TYPE]: optionDataType[0].value,
|
|
427
|
+
[DYNAMIC_CONTENT_SETTING_KEY.DEFAULT_VALUE]: '',
|
|
428
|
+
[DYNAMIC_CONTENT_SETTING_KEY.DATA_SOURCE]: 'event',
|
|
419
429
|
});
|
|
420
430
|
}, [form]);
|
|
421
431
|
useEffect(() => {
|
|
@@ -1119,7 +1129,7 @@ export const AddDynamicContent = props => {
|
|
|
1119
1129
|
__html: `${t(translations.dynamicContent.modal.label.displayFormat)}: <bdo dir='ltr'>${formatedAttr}</bdo>`,
|
|
1120
1130
|
} })) : null, !showDetailEditDF && (_jsx(Button, { disabled: isActionArchive &&
|
|
1121
1131
|
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, type: "text", style: { display: 'inline-block' }, onClick: () => setShowDetailEditDF(prevShow => !prevShow), children: t(translations.edit.title) }))] }), children: _jsx(Select, { disabled: isActionArchive &&
|
|
1122
|
-
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, style: { height: 28 }, options: attrDFOptions }) })] }));
|
|
1132
|
+
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, style: { height: 28 }, options: attrDFOptions }) }), renderDefaultValue()] }));
|
|
1123
1133
|
};
|
|
1124
1134
|
const renderCustomerAttrFields = () => {
|
|
1125
1135
|
if (hasError[DYNAMIC_CONTENT_SETTING_KEY.ATTRIBUTE]) {
|
|
@@ -1205,6 +1215,22 @@ export const AddDynamicContent = props => {
|
|
|
1205
1215
|
gap: '8px',
|
|
1206
1216
|
}, children: _jsx(DisplayFormat, { infos: infos, url: url, displayFormatType: selectedDFType, formatSettings: attrDFSettings, onSettingsChange: (values) => setAttrDFSettings(values), dynamicContentType: form.getFieldValue(DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE) }) }));
|
|
1207
1217
|
};
|
|
1218
|
+
const renderGetFromData = () => (_jsx(Form.Item, { className: "ants-items-center", label: translate(translationLib._TITL_PERSONALIZATION_LOOKUP_YES, 'Get data from'), name: DYNAMIC_CONTENT_SETTING_KEY.DATA_SOURCE, required: true, children: _jsx(Radio.Group, { defaultValue: "event", options: [
|
|
1219
|
+
{
|
|
1220
|
+
value: 'event',
|
|
1221
|
+
label: 'Event data',
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
value: 'object',
|
|
1225
|
+
label: (_jsxs(Text, { children: [translate(translationLib._TITL_PERSONALIZATION_LOOKUP_YES, 'Data object'), ' ', _jsx("b", { children: eventBOAttributeLabel })] })),
|
|
1226
|
+
disabled: !selectedAttr?.itemTypeId,
|
|
1227
|
+
},
|
|
1228
|
+
], style: {
|
|
1229
|
+
display: 'flex',
|
|
1230
|
+
flexDirection: 'column',
|
|
1231
|
+
gap: 8,
|
|
1232
|
+
} }) }));
|
|
1233
|
+
const renderDefaultValue = () => (_jsx(Form.Item, { className: "ants-items-center", label: translate(translations._TITL_DEFAULT_VALUE, 'Default value'), name: DYNAMIC_CONTENT_SETTING_KEY.DEFAULT_VALUE, children: _jsx(Input, { placeholder: "Enter fallback text when data is unavailable" }) }));
|
|
1208
1234
|
return (_jsx(ModalCustom, { closable: false, destroyOnClose: true, forceRender: true, mask: true, okButtonProps: { disabled: formSubmitDisabled }, title: modalTitle || t(translations.dynamicContent.modal.title.addDynamicContent), visible: visible, onCancel: handleOnCancelModal, onOk: handleOnOkModal, children: _jsxs(Spin, { spinning: isFetchingSourceBO ||
|
|
1209
1235
|
isFetchingListBoAttr ||
|
|
1210
1236
|
isFetchingEventAttr ||
|
|
@@ -1212,7 +1238,7 @@ export const AddDynamicContent = props => {
|
|
|
1212
1238
|
isFetchingPromotionCodeAttr ||
|
|
1213
1239
|
isFetchingDynamicContentAttr, children: [_jsxs(Form, { style: { width: '100%' }, form: form, labelAlign: "left", labelCol: { span: 9 }, wrapperCol: { span: 15 }, onValuesChange: handleFormValuesChanges, initialValues: {
|
|
1214
1240
|
[DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE]: listDynamicContentTypes[0].value,
|
|
1215
|
-
}, children: [_jsx(Form.Item, { style: { alignItems: 'center' }, label: t(translations.dynamicContent.modal.label.contentSource), name: DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE, required: true, children: _jsx(Select, { style: { height: 28 }, options: listDynamicContentTypes }) }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.VISITOR_ATTRIBUTE.value && (
|
|
1241
|
+
}, children: [_jsx(Form.Item, { style: { alignItems: 'center' }, label: t(translations.dynamicContent.modal.label.contentSource), name: DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE, required: true, children: _jsx(Select, { style: { height: 28 }, options: listDynamicContentTypes }) }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.VISITOR_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderVisitorAttrFields(), renderDefaultValue()] })), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.CUSTOMER_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderCustomerAttrFields(), renderDefaultValue()] })), selectedDynamicContentType === CUSTOM_TYPE.value && _jsx(_Fragment, { children: renderCustomFunctionFields() }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderEventFields(), renderSourceFields(), renderEventAttrFields(), renderGetFromData(), renderDefaultValue(), isShowEventIndexField
|
|
1216
1242
|
? renderIndexFields({ disabled: false, loading: false })
|
|
1217
1243
|
: null] })), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.PROMOTION_CODE.value && (_jsxs(_Fragment, { children: [renderPromotionPoolFields(), renderPromotionCodeAttr()] })), selectedDynamicContentType && regexCSType.test(selectedDynamicContentType) && (_jsxs(_Fragment, { children: [renderBoAttrFields(), renderIndexFields({ disabled: isActionArchive, loading: isFetchingListBoAttr })] })), showDisplayFormat && renderDisplayFormat()] }), showDisplayFormat && renderDisplayFormat() !== null && renderDetailDFSettings(), isShowCustomFunction && selectedDynamicContentType === CUSTOM_TYPE.value && (_jsx("div", { style: {
|
|
1218
1244
|
display: 'flex',
|
|
@@ -12,6 +12,8 @@ export declare const DYNAMIC_CONTENT_SETTING_KEY: {
|
|
|
12
12
|
PERNAME: string;
|
|
13
13
|
SAVE_AS_TEMPLATE: string;
|
|
14
14
|
DATA_TYPE: string;
|
|
15
|
+
DATA_SOURCE: string;
|
|
16
|
+
DEFAULT_VALUE: string;
|
|
15
17
|
};
|
|
16
18
|
export declare const DYNAMIC_CONTENT_TYPE_KEY: {
|
|
17
19
|
readonly BO_SETTINGS: "bo-settings";
|
|
@@ -12,6 +12,8 @@ export const DYNAMIC_CONTENT_SETTING_KEY = {
|
|
|
12
12
|
PERNAME: 'templateName',
|
|
13
13
|
SAVE_AS_TEMPLATE: 'saveAsTemplate',
|
|
14
14
|
DATA_TYPE: 'dataType',
|
|
15
|
+
DATA_SOURCE: 'dataSource',
|
|
16
|
+
DEFAULT_VALUE: 'defaultValue',
|
|
15
17
|
};
|
|
16
18
|
export const DYNAMIC_CONTENT_TYPE_KEY = {
|
|
17
19
|
BO_SETTINGS: 'bo-settings',
|
|
@@ -7,8 +7,10 @@ export interface ColorPickerProps {
|
|
|
7
7
|
defaultColor?: string;
|
|
8
8
|
icon?: React.ReactNode | string;
|
|
9
9
|
onChange?: (color: string) => void;
|
|
10
|
+
onAfterClosePicker?: (color: string) => void;
|
|
10
11
|
showInput?: boolean;
|
|
11
12
|
positionInput?: 'right' | 'left';
|
|
12
13
|
style?: React.CSSProperties;
|
|
14
|
+
inputProps?: any;
|
|
13
15
|
}
|
|
14
16
|
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
@@ -22,8 +22,8 @@ const styleBtnColor = {
|
|
|
22
22
|
};
|
|
23
23
|
export const ColorPicker = props => {
|
|
24
24
|
// Props
|
|
25
|
-
const { className = '', defaultColor = '#000000', presetColors, positionInput = 'left', icon, showInput = true, style = {}, isHideAlpha, } = props;
|
|
26
|
-
const { onChange = () => { } } = props;
|
|
25
|
+
const { className = '', defaultColor = '#000000', presetColors, positionInput = 'left', icon, showInput = true, style = {}, isHideAlpha, inputProps = {}, } = props;
|
|
26
|
+
const { onChange = () => { }, onAfterClosePicker = () => { } } = props;
|
|
27
27
|
// States
|
|
28
28
|
const [color, setColor] = useState(defaultColor);
|
|
29
29
|
const [popoverVisible, setPopoverVisible] = useState(false);
|
|
@@ -71,7 +71,12 @@ export const ColorPicker = props => {
|
|
|
71
71
|
const onPopoverVisibleChange = visible => {
|
|
72
72
|
setPopoverVisible(visible);
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
const handleAfterOpenChange = (visible) => {
|
|
75
|
+
if (!visible && typeof onAfterClosePicker === 'function') {
|
|
76
|
+
onAfterClosePicker(color);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return (_jsxs(ColorPickerWrapper, { className: `antsomi-color-picker ${className || ''}`, style: style, children: [showInput && positionInput === 'left' && (_jsx(Input, { style: { textTransform: 'uppercase' }, value: color, onChange: onChangeColorInput, ...inputProps })), _jsx(Popover, { arrow: true, content: _jsx(CustomPicker, { color: color, presetColors: presetColors, isHideAlpha: isHideAlpha, onChange: onChangeColorPicker, onChangeComplete: onChangeComplete }), trigger: "click", open: popoverVisible, getPopupContainer: triggerNode => triggerNode, onOpenChange: onPopoverVisibleChange, afterOpenChange: handleAfterOpenChange, children: _jsx("div", { className: "antsomi-popover-button", style: styleBtnColor, children: iconNode || (_jsx("span", { style: {
|
|
75
80
|
backgroundColor: color,
|
|
76
81
|
display: 'block',
|
|
77
82
|
width: 20,
|
|
@@ -9,6 +9,7 @@ interface EmojiPopoverProps {
|
|
|
9
9
|
collections?: CollectionItemProps[];
|
|
10
10
|
isForceHide?: boolean;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
|
+
destroyTooltipOnHide?: boolean;
|
|
12
13
|
onEmojiClick?: (emoji: string | TagDataCustomize) => void;
|
|
13
14
|
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
14
15
|
}
|
|
@@ -11,7 +11,7 @@ import { EMOJI_COLLECTIONS, } from '@antscorp/antsomi-ui/es/components/molecules
|
|
|
11
11
|
import { EmojiTabs, EmojiPopoverStyled } from './styled';
|
|
12
12
|
// Utils
|
|
13
13
|
import { handleGetTextToReplace } from './utils';
|
|
14
|
-
const EmojiPopover = ({ disabled, collections, isForceHide, children, onEmojiClick, getPopupContainer, }) => {
|
|
14
|
+
const EmojiPopover = ({ disabled, collections, isForceHide, children, destroyTooltipOnHide, onEmojiClick, getPopupContainer, }) => {
|
|
15
15
|
const [state, setState] = useImmer({
|
|
16
16
|
isOpen: false,
|
|
17
17
|
collectionActive: collections ? collections[0]?.key : EMOJI_COLLECTIONS.COMMON,
|
|
@@ -70,7 +70,7 @@ const EmojiPopover = ({ disabled, collections, isForceHide, children, onEmojiCli
|
|
|
70
70
|
if (emojiCollections.length <= 1) {
|
|
71
71
|
content = emojiCollections.at(0)?.children;
|
|
72
72
|
}
|
|
73
|
-
return (_jsx(EmojiPopoverStyled, { content: content, placement: "topLeft", trigger: "click", fresh: false, style: { padding: 15 }, arrow: false, rootClassName: "antsomi-emoji-popover", open: state.isOpen, onOpenChange: handleOpenChange, getPopupContainer: getPopupContainer, children: children || (_jsx(Button, { type: "link", icon: _jsx(EmojiSmileIcon, {}), disabled: disabled, onClick: () => handleOpenChange(true) })) }));
|
|
73
|
+
return (_jsx(EmojiPopoverStyled, { content: content, placement: "topLeft", destroyTooltipOnHide: destroyTooltipOnHide, trigger: "click", fresh: false, style: { padding: 15 }, arrow: false, rootClassName: "antsomi-emoji-popover", open: state.isOpen, onOpenChange: handleOpenChange, getPopupContainer: getPopupContainer, children: children || (_jsx(Button, { type: "link", icon: _jsx(EmojiSmileIcon, {}), disabled: disabled, onClick: () => handleOpenChange(true) })) }));
|
|
74
74
|
};
|
|
75
75
|
EmojiPopover.defaultProps = {
|
|
76
76
|
disabled: false,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const EmojiTabs: import("styled-components").StyledComponent<import("react").FC<import("antd").TabsProps> & {
|
|
2
|
+
export declare const EmojiTabs: import("styled-components").StyledComponent<import("react").FC<import("antd/es/tabs").TabsProps> & {
|
|
3
3
|
TabPane: import("react").FC<import("antd").TabPaneProps>;
|
|
4
4
|
}, any, {
|
|
5
5
|
shadow?: boolean | undefined;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const EmojiPopoverStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
7
|
+
export declare const EmojiPopoverStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/popover").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
8
8
|
_InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/popover/PurePanel").PurePanelProps>;
|
|
9
9
|
}, any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Libraries
|
|
2
|
-
import { Popover } from 'antd';
|
|
3
2
|
import styled from 'styled-components';
|
|
4
3
|
// Components
|
|
5
4
|
import { Tabs as TabsUI } from '@antscorp/antsomi-ui/es/components/molecules';
|
|
5
|
+
import { Popover } from '../../atoms/Popover';
|
|
6
6
|
export const EmojiTabs = styled(TabsUI) `
|
|
7
7
|
.antsomi-tabs-tab {
|
|
8
8
|
padding: 5.5px 20px !important;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlexProps } from '
|
|
2
|
+
import type { FlexProps } from '../../atoms/Flex';
|
|
3
3
|
export interface EmptyDataProps extends Omit<FlexProps, 'children' | 'title'> {
|
|
4
4
|
showIcon?: boolean;
|
|
5
5
|
size?: TUISize;
|
|
@@ -4,8 +4,10 @@ import React from 'react';
|
|
|
4
4
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
5
5
|
import { isString } from 'lodash';
|
|
6
6
|
// Components
|
|
7
|
-
import { Flex
|
|
8
|
-
import { Icon } from '
|
|
7
|
+
import { Flex } from '../../atoms/Flex';
|
|
8
|
+
import { Icon } from '../../atoms/Icon';
|
|
9
|
+
import { Spin } from '../../atoms/Spin';
|
|
10
|
+
import { Typography } from '../../atoms/Typography';
|
|
9
11
|
// Styled
|
|
10
12
|
import { EmptyIcon, EmptyWrapper, ImageWrapper } from './styled';
|
|
11
13
|
// Constants
|
|
@@ -26,7 +26,7 @@ export interface HeaderV2Props {
|
|
|
26
26
|
notificationConfig?: {
|
|
27
27
|
show?: boolean;
|
|
28
28
|
};
|
|
29
|
-
accountSharingConfig: Pick<AccountSharingProps, 'isShowSharing' | 'isShareAccountAccess' | 'u_ogs' | 'appCode' | 'callbackLogout' | 'callbackGetInfoAccount'> & {
|
|
29
|
+
accountSharingConfig: Pick<AccountSharingProps, 'isShowSharing' | 'isShareAccountAccess' | 'u_ogs' | 'appCode' | 'callbackLogout' | 'callbackGetInfoAccount' | 'portalRedirectUrl'> & {
|
|
30
30
|
show?: boolean;
|
|
31
31
|
};
|
|
32
32
|
useURLParam?: boolean;
|
|
@@ -2,7 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// Libraries
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
// Components
|
|
5
|
-
import { Icon
|
|
5
|
+
import { Icon } from '../../atoms/Icon';
|
|
6
|
+
import { Input } from '../../atoms/Input';
|
|
6
7
|
// Styled
|
|
7
8
|
import { Wrapper } from './styled';
|
|
8
9
|
export const InputSearch = memo(props => {
|
|
@@ -16,7 +16,10 @@ export const OriginalModal = memo(props => {
|
|
|
16
16
|
});
|
|
17
17
|
OriginalModal.displayName = 'OriginalModal';
|
|
18
18
|
export const Modal = Object.assign(OriginalModal, {
|
|
19
|
-
confirm: (props) => StyledModal.confirm({
|
|
19
|
+
confirm: (props) => StyledModal.confirm({
|
|
20
|
+
cancelText: 'Cancel',
|
|
21
|
+
...props,
|
|
22
|
+
}),
|
|
20
23
|
useModal: StyledModal.useModal,
|
|
21
24
|
success: StyledModal.success,
|
|
22
25
|
info: StyledModal.info,
|
|
@@ -24,3 +27,6 @@ export const Modal = Object.assign(OriginalModal, {
|
|
|
24
27
|
warning: StyledModal.warning,
|
|
25
28
|
destroyAll: StyledModal.destroyAll,
|
|
26
29
|
});
|
|
30
|
+
Modal.defaultProps = {
|
|
31
|
+
loading: false,
|
|
32
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { StyledModal } from './styled';
|
|
3
3
|
// Components
|
|
4
|
-
import { Button
|
|
4
|
+
import { Button } from '../../atoms/Button';
|
|
5
|
+
import { Flex } from '../../atoms/Flex';
|
|
5
6
|
export const ModalV2 = props => {
|
|
6
7
|
const { okButtonProps, cancelButtonProps, okText, cancelText, onCancel, onOk } = props;
|
|
7
8
|
const { ...restOfProps } = props;
|
|
@@ -5,7 +5,7 @@ import { StyledInput } from './styled';
|
|
|
5
5
|
import { translate, translations } from '@antscorp/antsomi-ui/es/locales';
|
|
6
6
|
import { SearchIcon } from '../../icons';
|
|
7
7
|
export const SearchPopover = props => {
|
|
8
|
-
const { inputSearchProps = {}, ...popoverProps } = props;
|
|
8
|
+
const { inputSearchProps = {}, inputSearchRef, ...popoverProps } = props;
|
|
9
9
|
const { overlayClassName, arrow = false, children, content, trigger = ['click'], ...restPopoverProps } = popoverProps;
|
|
10
|
-
return (_jsx(Popover, { trigger: trigger, arrow: arrow, destroyTooltipOnHide: true, ...restPopoverProps, overlayClassName: clsx('no-padding-content', overlayClassName), overlay: true, content: _jsxs(_Fragment, { children: [_jsx(StyledInput, { placeholder: inputSearchProps?.placeholder || `${translate(translations.global.search)}`, bordered: false, ...inputSearchProps, addonAfter: _jsx(SearchIcon, {}), withWrapper: false }), content] }), children: children }));
|
|
10
|
+
return (_jsx(Popover, { trigger: trigger, arrow: arrow, destroyTooltipOnHide: true, ...restPopoverProps, overlayClassName: clsx('no-padding-content', overlayClassName), overlay: true, content: _jsxs(_Fragment, { children: [_jsx(StyledInput, { ref: inputSearchRef, placeholder: inputSearchProps?.placeholder || `${translate(translations.global.search)}`, bordered: false, ...inputSearchProps, addonAfter: _jsx(SearchIcon, {}), withWrapper: false }), content] }), children: children }));
|
|
11
11
|
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../atoms/Input").InputProps & import("react").RefAttributes<import("rc-input").InputRef>> & {
|
|
3
|
+
readonly DefaultInput: import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("rc-input").InputRef>> & {
|
|
4
|
+
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
5
|
+
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("rc-input").InputRef>>;
|
|
6
|
+
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
7
|
+
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("rc-input").InputRef>>;
|
|
8
|
+
};
|
|
9
|
+
readonly CustomSearch: import("react").ForwardRefExoticComponent<import("../../atoms/Input").InputProps & import("react").RefAttributes<import("rc-input").InputRef>>;
|
|
10
|
+
readonly TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
11
|
+
readonly Password: import("react").ForwardRefExoticComponent<import("../../atoms/Input").InputProps & import("react").RefAttributes<import("rc-input").InputRef>>;
|
|
12
|
+
}, any, {}, never>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import styled from 'styled-components';
|
|
3
2
|
import { Input } from '../../atoms/Input';
|
|
4
3
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
5
|
-
export const StyledInput = styled(
|
|
4
|
+
export const StyledInput = styled(Input) `
|
|
6
5
|
&.antsomi-input-group-wrapper {
|
|
7
6
|
padding: 8px 10px;
|
|
8
7
|
border-bottom: 1px solid var(--divider-1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PopoverProps } from 'antd';
|
|
2
|
-
import { InputProps } from '../../atoms/Input';
|
|
1
|
+
import type { InputRef, PopoverProps } from 'antd';
|
|
2
|
+
import type { InputProps } from '../../atoms/Input';
|
|
3
3
|
import React, { PropsWithChildren } from 'react';
|
|
4
|
-
import { MenuInlineProps } from '../VirtualizedMenu/types';
|
|
4
|
+
import type { MenuInlineProps } from '../VirtualizedMenu/types';
|
|
5
5
|
export type SearchConfig = {
|
|
6
6
|
searchWithKey?: boolean;
|
|
7
7
|
};
|
|
@@ -9,6 +9,7 @@ export type SearchPopoverProps = PropsWithChildren<{
|
|
|
9
9
|
inputSearchProps?: InputProps & {
|
|
10
10
|
searchConfig?: SearchConfig;
|
|
11
11
|
};
|
|
12
|
+
inputSearchRef?: React.RefObject<InputRef>;
|
|
12
13
|
isAllowEmpty?: boolean;
|
|
13
14
|
noItemContent?: React.ReactNode;
|
|
14
15
|
} & PopoverProps>;
|
|
@@ -2,14 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// Libraries
|
|
3
3
|
import { Select as AntdSelect } from 'antd';
|
|
4
4
|
// Components
|
|
5
|
-
import { Flex } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
6
5
|
import { Text } from '../../atoms/Text';
|
|
6
|
+
import { Flex } from '../../atoms/Flex';
|
|
7
7
|
// Icons
|
|
8
8
|
import Icon from '@antscorp/icons';
|
|
9
9
|
// Constants
|
|
10
10
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
11
11
|
// Styled
|
|
12
|
-
import { StyledTag, TagCloseBtn } from './styled';
|
|
12
|
+
import { StyledSelect, StyledTag, TagCloseBtn } from './styled';
|
|
13
13
|
const tagRender = (props) => {
|
|
14
14
|
const { label, closable, onClose } = props;
|
|
15
15
|
const onPreventMouseDown = (event) => {
|
|
@@ -22,7 +22,7 @@ const tagRender = (props) => {
|
|
|
22
22
|
};
|
|
23
23
|
const CustomSelect = props => {
|
|
24
24
|
const { label, labelProps, ...rest } = props;
|
|
25
|
-
return (_jsxs(Flex, { vertical: true, gap: 4, children: [typeof label === 'string' ? _jsx(Text, { ...labelProps, children: label }) : label, _jsx(
|
|
25
|
+
return (_jsxs(Flex, { vertical: true, gap: 4, children: [typeof label === 'string' ? _jsx(Text, { ...labelProps, children: label }) : label, _jsx(StyledSelect, { ...rest })] }));
|
|
26
26
|
};
|
|
27
27
|
const Select = CustomSelect;
|
|
28
28
|
Select.OptGroup = AntdSelect.OptGroup;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import { type SelectProps as AntdSelectProps } from 'antd';
|
|
3
|
+
export declare const StyledSelect: import("styled-components").StyledComponent<ComponentType<AntdSelectProps<any, import("rc-select/lib/Select").DefaultOptionType>>, any, {}, never>;
|
|
2
4
|
export declare const StyledTag: import("styled-components").StyledComponent<import("antd/lib").TagType & {
|
|
3
5
|
List: import("react").FC<import("../../atoms/Tag/Tag").TagListProps>;
|
|
4
6
|
}, any, {}, never>;
|