@bigbinary/neeto-molecules 1.1.9 → 1.1.11
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/dist/AutoSaveInput/autosaveinput.scss +15 -0
- package/dist/AutoSaveInput/constants.js +13 -0
- package/dist/AutoSaveInput/index.js +124 -0
- package/dist/AutoSaveInput/utils.js +10 -0
- package/dist/Breadcrumbs/breadcrumbs.scss +33 -0
- package/dist/Breadcrumbs/index.js +31 -0
- package/dist/BrowserSupport/Callout.js +15 -0
- package/dist/BrowserSupport/ContactUs.js +21 -0
- package/dist/BrowserSupport/DownloadLink.js +17 -0
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +17 -0
- package/dist/BrowserSupport/UnknownBrowser.js +13 -0
- package/dist/BrowserSupport/UnsupportedBrowser.js +24 -0
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +22 -0
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +27 -0
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +30 -0
- package/dist/BrowserSupport/browsersupport.scss +71 -0
- package/dist/BrowserSupport/constants.js +63 -0
- package/dist/BrowserSupport/index.js +58 -0
- package/dist/BrowserSupport/utils.js +32 -0
- package/dist/CalendarView/CustomDatePicker.js +87 -0
- package/dist/CalendarView/Header.js +53 -0
- package/dist/CalendarView/constants.js +19 -0
- package/dist/CalendarView/index.js +83 -0
- package/dist/CalendarView/utils.js +50 -0
- package/dist/Codeblock/index.js +30 -0
- package/dist/{Columns.js → Columns/index.js} +13 -130
- package/dist/Columns/utils.js +20 -0
- package/dist/ConfirmationModal/constants.js +3 -0
- package/dist/{ConfirmationModal.js → ConfirmationModal/index.js} +7 -23
- package/dist/ConfirmationModal/utils.js +10 -0
- package/dist/Container/container.scss +21 -0
- package/dist/Container/index.js +23 -0
- package/dist/CopyToClipboardButton/constants.js +13 -0
- package/dist/CopyToClipboardButton/copyToClipboard.scss +22 -0
- package/dist/CopyToClipboardButton/index.js +59 -0
- package/dist/CustomDomain/index.js +98 -0
- package/dist/CustomDomainDashboard/DeleteAlert.js +28 -0
- package/dist/CustomDomainDashboard/Header.js +32 -0
- package/dist/CustomDomainDashboard/Manage/Record.js +42 -0
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +21 -0
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +36 -0
- package/dist/CustomDomainDashboard/Manage/constants.js +4 -0
- package/dist/CustomDomainDashboard/Manage/index.js +124 -0
- package/dist/CustomDomainDashboard/Manage/utils.js +8 -0
- package/dist/CustomDomainDashboard/api.js +35 -0
- package/dist/CustomDomainDashboard/constants.js +2 -0
- package/dist/CustomDomainDashboard/index.js +118 -0
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +71 -0
- package/dist/CustomDomainDashboard/utils.js +84 -0
- package/dist/{DateFormat.js → DateFormat/index.js} +8 -25
- package/dist/DateRangeFilter/index.js +60 -0
- package/dist/DateRangeFilter/utils.js +113 -0
- package/dist/DynamicVariables/dynamic-variables.scss +34 -0
- package/dist/DynamicVariables/index.js +59 -0
- package/dist/DynamicVariables/utils.js +37 -0
- package/dist/EmailForm/EmailForm.js +97 -0
- package/dist/EmailForm/EmailFormProvider.js +45 -0
- package/dist/EmailForm/EmailPreview.js +129 -0
- package/dist/EmailForm/ReplyToField.js +55 -0
- package/dist/EmailForm/SendToField.js +27 -0
- package/dist/EmailForm/SubjectField.js +64 -0
- package/dist/EmailForm/constants.js +33 -0
- package/dist/EmailForm/contexts/EmailForm.js +7 -0
- package/dist/EmailForm/index.js +4 -0
- package/dist/EmailForm/utils.js +10 -0
- package/dist/EmailPreview/index.js +2 -0
- package/dist/{ErrorPage.js → ErrorPage/constants.js} +36 -175
- package/dist/ErrorPage/index.js +78 -0
- package/dist/Header/Breadcrumbs.js +31 -0
- package/dist/Header/Dropdown.js +12 -0
- package/dist/Header/constants.js +6 -0
- package/dist/Header/header.scss +121 -0
- package/dist/Header/index.js +61 -0
- package/dist/IconPicker/Icon.js +34 -0
- package/dist/IconPicker/NoResults.js +12 -0
- package/dist/IconPicker/constants.js +8 -0
- package/dist/IconPicker/icon-picker.scss +1 -0
- package/dist/IconPicker/index.js +164 -0
- package/dist/ImageWithFallback/ImagePlaceholder.js +16 -0
- package/dist/ImageWithFallback/index.js +31 -0
- package/dist/IntegrationCard/Dropdown.js +45 -0
- package/dist/IntegrationCard/Status.js +25 -0
- package/dist/IntegrationCard/index.js +128 -0
- package/dist/IntegrationDisconnectAlert/index.js +36 -0
- package/dist/{IntegrationWalkthroughModal.js → IntegrationWalkthroughModal/index.js} +6 -8
- package/dist/IpRestriction/AllowedIpRanges.js +72 -0
- package/dist/IpRestriction/CurrentIp.js +26 -0
- package/dist/IpRestriction/FormRow.js +77 -0
- package/dist/IpRestriction/Row.js +86 -0
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +28 -0
- package/dist/IpRestriction/apis/current_ip.js +11 -0
- package/dist/IpRestriction/apis/ip_restriction.js +16 -0
- package/dist/IpRestriction/constants.js +11 -0
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +34 -0
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +10 -0
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +18 -0
- package/dist/IpRestriction/index.js +102 -0
- package/dist/IpRestriction/utils.js +67 -0
- package/dist/KeyboardShortcuts/Pane/HotKey.js +44 -0
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +42 -0
- package/dist/KeyboardShortcuts/Pane/constants.js +25 -0
- package/dist/KeyboardShortcuts/Pane/index.js +61 -0
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +5 -0
- package/dist/KeyboardShortcuts/Pane/utils.js +66 -0
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/KeyboardShortcuts/index.js +9 -0
- package/dist/LoginPage/Form.js +57 -0
- package/dist/LoginPage/constants.js +12 -0
- package/dist/LoginPage/index.js +103 -0
- package/dist/MenuBar/AddNew.js +25 -0
- package/dist/MenuBar/Block.js +60 -0
- package/dist/MenuBar/Item.js +32 -0
- package/dist/MenuBar/Search.js +39 -0
- package/dist/MenuBar/SubTitle.js +23 -0
- package/dist/MenuBar/index.js +46 -0
- package/dist/MenuBar/menubar.scss +154 -0
- package/dist/Metadata/Block.js +30 -0
- package/dist/Metadata/DetailsBlock.js +86 -0
- package/dist/Metadata/constants.js +9 -0
- package/dist/Metadata/index.js +29 -0
- package/dist/Metadata/metadata.scss +15 -0
- package/dist/MoreDropdown/constants.js +25 -0
- package/dist/{MoreDropdown.js → MoreDropdown/index.js} +9 -102
- package/dist/NavigationHeader/LeftBlock.js +32 -0
- package/dist/NavigationHeader/Navigation.js +24 -0
- package/dist/NavigationHeader/RightBlock.js +68 -0
- package/dist/NavigationHeader/constants.js +11 -0
- package/dist/NavigationHeader/index.js +19 -0
- package/dist/NavigationHeader/navigation-header.scss +3 -0
- package/dist/NeetoWidget/CodeBlock.js +57 -0
- package/dist/NeetoWidget/CodeSnippet.js +119 -0
- package/dist/NeetoWidget/EmbedCode.js +281 -0
- package/dist/NeetoWidget/Main.js +19 -0
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +25 -0
- package/dist/NeetoWidget/SelectionSwitches/index.js +44 -0
- package/dist/NeetoWidget/SyntaxHighlighter.js +17 -0
- package/dist/NeetoWidget/api.js +20 -0
- package/dist/NeetoWidget/constants.js +62 -0
- package/dist/NeetoWidget/hooks/useForceUpdate.js +14 -0
- package/dist/NeetoWidget/index.js +7 -0
- package/dist/NeetoWidget/mutations.js +9 -0
- package/dist/NeetoWidget/queries.js +32 -0
- package/dist/NeetoWidget/utils.js +83 -0
- package/dist/PageLoader/index.js +81 -0
- package/dist/PageLoader/page-loader.scss +95 -0
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +21 -0
- package/dist/PhoneNumber/CountryPicker/constants.js +26 -0
- package/dist/PhoneNumber/CountryPicker/index.js +59 -0
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +21 -0
- package/dist/PhoneNumber/PhoneNumber.js +30 -0
- package/dist/PhoneNumber/PhoneNumberInput.js +79 -0
- package/dist/PhoneNumber/index.js +5 -0
- package/dist/PhoneNumber/utils.js +55 -0
- package/dist/PublishBlock/AlertBlock.js +14 -0
- package/dist/PublishBlock/index.js +100 -0
- package/dist/PublishBlock/publish-block.scss +25 -0
- package/dist/Rename/DummySpan.js +21 -0
- package/dist/Rename/constants.js +1 -0
- package/dist/Rename/index.js +191 -0
- package/dist/Rename/rename.scss +69 -0
- package/dist/Rename/utils.js +10 -0
- package/dist/ResponsiveDevicePicker/constants.js +19 -0
- package/dist/ResponsiveDevicePicker/index.js +36 -0
- package/dist/Schedule/DisplayAvailability.js +58 -0
- package/dist/Schedule/Fields.js +43 -0
- package/dist/Schedule/Form/ScheduleRow.js +125 -0
- package/dist/Schedule/Form/constants.js +20 -0
- package/dist/Schedule/Form/index.js +144 -0
- package/dist/Schedule/Form/utils.js +63 -0
- package/dist/Schedule/Header.js +76 -0
- package/dist/Schedule/ScheduleContext.js +8 -0
- package/dist/Schedule/constants.js +8 -0
- package/dist/Schedule/dayjsExtended/constants.js +1 -0
- package/dist/Schedule/dayjsExtended/index.js +14 -0
- package/dist/Schedule/dayjsExtended/range.js +73 -0
- package/dist/Schedule/index.js +80 -0
- package/dist/Schedule/utils.js +152 -0
- package/dist/Scrollable/constants.js +8 -0
- package/dist/Scrollable/index.js +26 -0
- package/dist/Scrollable/scrollable.scss +32 -0
- package/dist/Security/AllowedKeywords/Add.js +38 -0
- package/dist/Security/AllowedKeywords/index.js +38 -0
- package/dist/Security/PasswordBlock.js +31 -0
- package/dist/Security/RadioBlock.js +38 -0
- package/dist/Security/api.js +12 -0
- package/dist/Security/constants.js +58 -0
- package/dist/Security/index.js +68 -0
- package/dist/Security/useSecurityApi.js +22 -0
- package/dist/Security/utils.js +31 -0
- package/dist/SendToFields/FilePicker.js +34 -0
- package/dist/SendToFields/constants.js +6 -0
- package/dist/SendToFields/index.js +102 -0
- package/dist/SendToFields/utils.js +54 -0
- package/dist/Settings/Category.js +30 -0
- package/dist/Settings/Item.js +38 -0
- package/dist/Settings/index.js +37 -0
- package/dist/Settings/utils.js +4 -0
- package/dist/ShareViaEmail/EmailBodyEditor.js +22 -0
- package/dist/ShareViaEmail/FilePicker.js +43 -0
- package/dist/ShareViaEmail/Form.js +101 -0
- package/dist/ShareViaEmail/FormikDatePicker.js +24 -0
- package/dist/ShareViaEmail/constants.js +14 -0
- package/dist/ShareViaEmail/index.js +89 -0
- package/dist/ShareViaEmail/utils.js +72 -0
- package/dist/ShareViaLink/EditURL.js +74 -0
- package/dist/ShareViaLink/Link.js +105 -0
- package/dist/ShareViaLink/QRCode.js +41 -0
- package/dist/ShareViaLink/RegenerateURL.js +47 -0
- package/dist/ShareViaLink/SocialMedia.js +52 -0
- package/dist/ShareViaLink/constants.js +25 -0
- package/dist/ShareViaLink/edit-url.scss +8 -0
- package/dist/ShareViaLink/index.js +46 -0
- package/dist/ShareViaLink/utils.js +47 -0
- package/dist/Sidebar/AppSwitcher/AppLink.js +45 -0
- package/dist/Sidebar/AppSwitcher/Backdrop.js +13 -0
- package/dist/Sidebar/AppSwitcher/Body.js +65 -0
- package/dist/Sidebar/AppSwitcher/Portal.js +27 -0
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +164 -0
- package/dist/Sidebar/AppSwitcher/index.js +47 -0
- package/dist/Sidebar/AppSwitcher/utils.js +25 -0
- package/dist/Sidebar/Chevron.js +14 -0
- package/dist/Sidebar/FeaturedTooltip.js +19 -0
- package/dist/Sidebar/Footer/AppSwitcherButton.js +48 -0
- package/dist/Sidebar/Footer/ProfileButton.js +30 -0
- package/dist/Sidebar/Footer/index.js +56 -0
- package/dist/Sidebar/Footer/utils.js +39 -0
- package/dist/Sidebar/Header.js +33 -0
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +52 -0
- package/dist/Sidebar/HelpSection/index.js +32 -0
- package/dist/Sidebar/Links.js +112 -0
- package/dist/Sidebar/NavIconWrapper.js +20 -0
- package/dist/Sidebar/ProfileSection/LinkSection.js +36 -0
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +48 -0
- package/dist/Sidebar/ProfileSection/index.js +42 -0
- package/dist/Sidebar/constants.js +40 -0
- package/dist/Sidebar/index.js +94 -0
- package/dist/Sidebar/sidebar.scss +379 -0
- package/dist/Sidebar/utils.js +18 -0
- package/dist/SubHeader/RightBlock/Columns.js +35 -0
- package/dist/SubHeader/RightBlock/Download.js +28 -0
- package/dist/SubHeader/RightBlock/Filter.js +31 -0
- package/dist/SubHeader/RightBlock/index.js +21 -0
- package/dist/SubHeader/RightBlock/utils.js +13 -0
- package/dist/SubHeader/index.js +28 -0
- package/dist/SubHeader/subheader.scss +78 -0
- package/dist/TableWrapper/index.js +18 -0
- package/dist/ThemeSidebar/Customize/Logo.js +39 -0
- package/dist/ThemeSidebar/Customize/Properties.js +170 -0
- package/dist/ThemeSidebar/Customize/index.js +66 -0
- package/dist/ThemeSidebar/Themes/ThemeCard.js +135 -0
- package/dist/ThemeSidebar/Themes/index.js +110 -0
- package/dist/ThemeSidebar/TitleBar.js +62 -0
- package/dist/ThemeSidebar/constants.js +127 -0
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +50 -0
- package/dist/ThemeSidebar/fields/Card.js +19 -0
- package/dist/ThemeSidebar/fields/ColorBlock.js +19 -0
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +35 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +67 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +22 -0
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +55 -0
- package/dist/ThemeSidebar/fields/SelectBlock.js +24 -0
- package/dist/ThemeSidebar/fields/SliderBlock.js +30 -0
- package/dist/ThemeSidebar/fields/SwitchBlock.js +17 -0
- package/dist/ThemeSidebar/fields/TextBlock.js +13 -0
- package/dist/ThemeSidebar/fields/slider.scss +199 -0
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +149 -0
- package/dist/ThemeSidebar/index.js +118 -0
- package/dist/ThemeSidebar/themeSidebar.scss +45 -0
- package/dist/ThemeSidebar/utils.js +169 -0
- package/dist/TimeFormat/index.js +3 -0
- package/dist/TimezoneMismatchModal/apis/time_zone.js +9 -0
- package/dist/TimezoneMismatchModal/index.js +83 -0
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +10 -0
- package/dist/TimezoneMismatchModal/utils.js +12 -0
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +31 -0
- package/dist/ToggleFeatureCard/constants.js +5 -0
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +11 -0
- package/dist/ToggleFeatureCard/index.js +148 -0
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +4 -0
- package/package.json +28 -35
- package/dist/AutoSaveInput.cjs.js +0 -724
- package/dist/AutoSaveInput.cjs.js.map +0 -1
- package/dist/AutoSaveInput.js +0 -718
- package/dist/AutoSaveInput.js.map +0 -1
- package/dist/Breadcrumbs.cjs.js +0 -44
- package/dist/Breadcrumbs.cjs.js.map +0 -1
- package/dist/Breadcrumbs.js +0 -38
- package/dist/Breadcrumbs.js.map +0 -1
- package/dist/BrowserSupport.cjs.js +0 -1731
- package/dist/BrowserSupport.cjs.js.map +0 -1
- package/dist/BrowserSupport.js +0 -1725
- package/dist/BrowserSupport.js.map +0 -1
- package/dist/CalendarView.cjs.js +0 -610
- package/dist/CalendarView.cjs.js.map +0 -1
- package/dist/CalendarView.js +0 -598
- package/dist/CalendarView.js.map +0 -1
- package/dist/Codeblock.cjs.js +0 -302
- package/dist/Codeblock.cjs.js.map +0 -1
- package/dist/Codeblock.js +0 -296
- package/dist/Codeblock.js.map +0 -1
- package/dist/Columns.cjs.js +0 -248
- package/dist/Columns.cjs.js.map +0 -1
- package/dist/Columns.js.map +0 -1
- package/dist/ConfirmationModal.cjs.js +0 -87
- package/dist/ConfirmationModal.cjs.js.map +0 -1
- package/dist/ConfirmationModal.js.map +0 -1
- package/dist/Container.cjs.js +0 -1277
- package/dist/Container.cjs.js.map +0 -1
- package/dist/Container.js +0 -1271
- package/dist/Container.js.map +0 -1
- package/dist/CopyToClipboardButton.cjs.js +0 -275
- package/dist/CopyToClipboardButton.cjs.js.map +0 -1
- package/dist/CopyToClipboardButton.js +0 -269
- package/dist/CopyToClipboardButton.js.map +0 -1
- package/dist/CustomDomain.cjs.js +0 -774
- package/dist/CustomDomain.cjs.js.map +0 -1
- package/dist/CustomDomain.js +0 -747
- package/dist/CustomDomain.js.map +0 -1
- package/dist/CustomDomainDashboard.cjs.js +0 -2370
- package/dist/CustomDomainDashboard.cjs.js.map +0 -1
- package/dist/CustomDomainDashboard.js +0 -2342
- package/dist/CustomDomainDashboard.js.map +0 -1
- package/dist/DateFormat.cjs.js +0 -51
- package/dist/DateFormat.cjs.js.map +0 -1
- package/dist/DateFormat.js.map +0 -1
- package/dist/DateRangeFilter.cjs.js +0 -236
- package/dist/DateRangeFilter.cjs.js.map +0 -1
- package/dist/DateRangeFilter.js +0 -229
- package/dist/DateRangeFilter.js.map +0 -1
- package/dist/DynamicVariables.cjs.js +0 -189
- package/dist/DynamicVariables.cjs.js.map +0 -1
- package/dist/DynamicVariables.js +0 -183
- package/dist/DynamicVariables.js.map +0 -1
- package/dist/EmailForm.cjs.js +0 -4295
- package/dist/EmailForm.cjs.js.map +0 -1
- package/dist/EmailForm.js +0 -4265
- package/dist/EmailForm.js.map +0 -1
- package/dist/EmailPreview.cjs.js +0 -1419
- package/dist/EmailPreview.cjs.js.map +0 -1
- package/dist/EmailPreview.js +0 -1413
- package/dist/EmailPreview.js.map +0 -1
- package/dist/ErrorPage.cjs.js +0 -226
- package/dist/ErrorPage.cjs.js.map +0 -1
- package/dist/ErrorPage.js.map +0 -1
- package/dist/Header.cjs.js +0 -188
- package/dist/Header.cjs.js.map +0 -1
- package/dist/Header.js +0 -182
- package/dist/Header.js.map +0 -1
- package/dist/IconPicker.cjs.js +0 -1308
- package/dist/IconPicker.cjs.js.map +0 -1
- package/dist/IconPicker.js +0 -1302
- package/dist/IconPicker.js.map +0 -1
- package/dist/ImageWithFallback.cjs.js +0 -247
- package/dist/ImageWithFallback.cjs.js.map +0 -1
- package/dist/ImageWithFallback.js +0 -241
- package/dist/ImageWithFallback.js.map +0 -1
- package/dist/IntegrationCard.cjs.js +0 -409
- package/dist/IntegrationCard.cjs.js.map +0 -1
- package/dist/IntegrationCard.js +0 -403
- package/dist/IntegrationCard.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.cjs.js +0 -89
- package/dist/IntegrationDisconnectAlert.cjs.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.js +0 -80
- package/dist/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.cjs.js +0 -50
- package/dist/IntegrationWalkthroughModal.cjs.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.js.map +0 -1
- package/dist/IpRestriction.cjs.js +0 -3931
- package/dist/IpRestriction.cjs.js.map +0 -1
- package/dist/IpRestriction.js +0 -3905
- package/dist/IpRestriction.js.map +0 -1
- package/dist/KeyboardShortcuts.cjs.js +0 -2244
- package/dist/KeyboardShortcuts.cjs.js.map +0 -1
- package/dist/KeyboardShortcuts.js +0 -2237
- package/dist/KeyboardShortcuts.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -618
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.js +0 -593
- package/dist/LoginPage.js.map +0 -1
- package/dist/MenuBar.cjs.js +0 -34273
- package/dist/MenuBar.cjs.js.map +0 -1
- package/dist/MenuBar.js +0 -34267
- package/dist/MenuBar.js.map +0 -1
- package/dist/Metadata.cjs.js +0 -272
- package/dist/Metadata.cjs.js.map +0 -1
- package/dist/Metadata.js +0 -266
- package/dist/Metadata.js.map +0 -1
- package/dist/MoreDropdown.cjs.js +0 -168
- package/dist/MoreDropdown.cjs.js.map +0 -1
- package/dist/MoreDropdown.js.map +0 -1
- package/dist/NavigationHeader.cjs.js +0 -756
- package/dist/NavigationHeader.cjs.js.map +0 -1
- package/dist/NavigationHeader.js +0 -750
- package/dist/NavigationHeader.js.map +0 -1
- package/dist/NeetoWidget.cjs.js +0 -3375
- package/dist/NeetoWidget.cjs.js.map +0 -1
- package/dist/NeetoWidget.js +0 -3348
- package/dist/NeetoWidget.js.map +0 -1
- package/dist/PageLoader.cjs.js +0 -158
- package/dist/PageLoader.cjs.js.map +0 -1
- package/dist/PageLoader.js +0 -134
- package/dist/PageLoader.js.map +0 -1
- package/dist/PhoneNumber.cjs.js +0 -7021
- package/dist/PhoneNumber.cjs.js.map +0 -1
- package/dist/PhoneNumber.js +0 -6989
- package/dist/PhoneNumber.js.map +0 -1
- package/dist/PublishBlock.cjs.js +0 -224
- package/dist/PublishBlock.cjs.js.map +0 -1
- package/dist/PublishBlock.js +0 -218
- package/dist/PublishBlock.js.map +0 -1
- package/dist/Rename.cjs.js +0 -516
- package/dist/Rename.cjs.js.map +0 -1
- package/dist/Rename.js +0 -510
- package/dist/Rename.js.map +0 -1
- package/dist/ResponsiveDevicePicker.cjs.js +0 -260
- package/dist/ResponsiveDevicePicker.cjs.js.map +0 -1
- package/dist/ResponsiveDevicePicker.js +0 -254
- package/dist/ResponsiveDevicePicker.js.map +0 -1
- package/dist/Schedule.cjs.js +0 -1077
- package/dist/Schedule.cjs.js.map +0 -1
- package/dist/Schedule.js +0 -1046
- package/dist/Schedule.js.map +0 -1
- package/dist/Scrollable.cjs.js +0 -188
- package/dist/Scrollable.cjs.js.map +0 -1
- package/dist/Scrollable.js +0 -182
- package/dist/Scrollable.js.map +0 -1
- package/dist/Security.cjs.js +0 -1921
- package/dist/Security.cjs.js.map +0 -1
- package/dist/Security.js +0 -1895
- package/dist/Security.js.map +0 -1
- package/dist/SendToFields.cjs.js +0 -2524
- package/dist/SendToFields.cjs.js.map +0 -1
- package/dist/SendToFields.js +0 -2517
- package/dist/SendToFields.js.map +0 -1
- package/dist/Settings.cjs.js +0 -501
- package/dist/Settings.cjs.js.map +0 -1
- package/dist/Settings.js +0 -495
- package/dist/Settings.js.map +0 -1
- package/dist/ShareViaEmail.cjs.js +0 -4272
- package/dist/ShareViaEmail.cjs.js.map +0 -1
- package/dist/ShareViaEmail.js +0 -4246
- package/dist/ShareViaEmail.js.map +0 -1
- package/dist/ShareViaLink.cjs.js +0 -1512
- package/dist/ShareViaLink.cjs.js.map +0 -1
- package/dist/ShareViaLink.js +0 -1486
- package/dist/ShareViaLink.js.map +0 -1
- package/dist/Sidebar.cjs.js +0 -34985
- package/dist/Sidebar.cjs.js.map +0 -1
- package/dist/Sidebar.js +0 -34959
- package/dist/Sidebar.js.map +0 -1
- package/dist/SubHeader.cjs.js +0 -283
- package/dist/SubHeader.cjs.js.map +0 -1
- package/dist/SubHeader.js +0 -276
- package/dist/SubHeader.js.map +0 -1
- package/dist/TableWrapper.cjs.js +0 -87
- package/dist/TableWrapper.cjs.js.map +0 -1
- package/dist/TableWrapper.js +0 -81
- package/dist/TableWrapper.js.map +0 -1
- package/dist/ThemeSidebar.cjs.js +0 -13705
- package/dist/ThemeSidebar.cjs.js.map +0 -1
- package/dist/ThemeSidebar.js +0 -13680
- package/dist/ThemeSidebar.js.map +0 -1
- package/dist/TimeFormat.cjs.js +0 -53
- package/dist/TimeFormat.cjs.js.map +0 -1
- package/dist/TimeFormat.js +0 -47
- package/dist/TimeFormat.js.map +0 -1
- package/dist/TimezoneMismatchModal.cjs.js +0 -176
- package/dist/TimezoneMismatchModal.cjs.js.map +0 -1
- package/dist/TimezoneMismatchModal.js +0 -168
- package/dist/TimezoneMismatchModal.js.map +0 -1
- package/dist/ToggleFeatureCard.cjs.js +0 -389
- package/dist/ToggleFeatureCard.cjs.js.map +0 -1
- package/dist/ToggleFeatureCard.js +0 -383
- package/dist/ToggleFeatureCard.js.map +0 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import { isNotEmpty } from "@bigbinary/neeto-commons-frontend/pure";
|
|
5
|
+
import { Down, Up } from "@bigbinary/neeto-icons";
|
|
6
|
+
import { Button, Typography } from "@bigbinary/neetoui";
|
|
7
|
+
import { useTranslation } from "react-i18next";
|
|
8
|
+
import Block from "./Block";
|
|
9
|
+
import { DEFAULT_TRUNCATE_AT, STYLES } from "./constants";
|
|
10
|
+
var DetailsBlock = function DetailsBlock(_ref) {
|
|
11
|
+
var title = _ref.title,
|
|
12
|
+
actionBlock = _ref.actionBlock,
|
|
13
|
+
_ref$details = _ref.details,
|
|
14
|
+
details = _ref$details === void 0 ? [] : _ref$details,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
_ref$style = _ref.style,
|
|
17
|
+
style = _ref$style === void 0 ? STYLES.inline : _ref$style,
|
|
18
|
+
_ref$truncate = _ref.truncate,
|
|
19
|
+
truncate = _ref$truncate === void 0 ? false : _ref$truncate,
|
|
20
|
+
_ref$truncateAt = _ref.truncateAt,
|
|
21
|
+
truncateAt = _ref$truncateAt === void 0 ? DEFAULT_TRUNCATE_AT : _ref$truncateAt;
|
|
22
|
+
var _useState = useState(false),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
showTruncated = _useState2[0],
|
|
25
|
+
setShowTruncated = _useState2[1];
|
|
26
|
+
var _useTranslation = useTranslation(),
|
|
27
|
+
t = _useTranslation.t;
|
|
28
|
+
var _ref2 = truncate ? [details.slice(0, truncateAt), details.slice(truncateAt)] : [details],
|
|
29
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
30
|
+
visibleDetails = _ref3[0],
|
|
31
|
+
truncatedDetails = _ref3[1];
|
|
32
|
+
return /*#__PURE__*/React.createElement(Block, {
|
|
33
|
+
actionBlock: actionBlock,
|
|
34
|
+
className: className,
|
|
35
|
+
title: title !== null && title !== void 0 ? title : t("neetoMolecules.metadata.detailsTitle")
|
|
36
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: "flex flex-col space-y-3",
|
|
38
|
+
"data-cy": "neeto-molecules-metadata-details-block"
|
|
39
|
+
}, visibleDetails.map(function (_ref4, index) {
|
|
40
|
+
var label = _ref4.label,
|
|
41
|
+
value = _ref4.value,
|
|
42
|
+
type = _ref4.type;
|
|
43
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
44
|
+
key: index
|
|
45
|
+
}, type === "divider" ? /*#__PURE__*/React.createElement("hr", null) : /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
"data-testid": "details-card-detail-wrapper",
|
|
47
|
+
className: classnames("flex", {
|
|
48
|
+
"space-x-4": style === STYLES.inline,
|
|
49
|
+
"flex-col": style === STYLES.multiline
|
|
50
|
+
})
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
52
|
+
className: "neeto-ui-text-gray-600",
|
|
53
|
+
style: "body2"
|
|
54
|
+
}, label), /*#__PURE__*/React.createElement(Typography, {
|
|
55
|
+
style: "body2"
|
|
56
|
+
}, value)));
|
|
57
|
+
}), showTruncated && truncatedDetails.map(function (_ref5, index) {
|
|
58
|
+
var label = _ref5.label,
|
|
59
|
+
value = _ref5.value,
|
|
60
|
+
type = _ref5.type;
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
62
|
+
key: index
|
|
63
|
+
}, type === "divider" ? /*#__PURE__*/React.createElement("hr", null) : /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: classnames("flex", {
|
|
65
|
+
"space-x-4": style === STYLES.inline,
|
|
66
|
+
"flex-col": style === STYLES.multiline
|
|
67
|
+
})
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
69
|
+
className: "neeto-ui-text-gray-600",
|
|
70
|
+
style: "body2"
|
|
71
|
+
}, label), /*#__PURE__*/React.createElement(Typography, {
|
|
72
|
+
style: "body2"
|
|
73
|
+
}, value)));
|
|
74
|
+
}), truncate && isNotEmpty(truncatedDetails) && /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
"data-testid": "expand-button",
|
|
76
|
+
icon: showTruncated ? Up : Down,
|
|
77
|
+
style: "link",
|
|
78
|
+
label: showTruncated ? t("neetoMolecules.metadata.card.viewLess") : t("neetoMolecules.metadata.card.viewMore"),
|
|
79
|
+
onClick: function onClick() {
|
|
80
|
+
return setShowTruncated(function (showTruncated) {
|
|
81
|
+
return !showTruncated;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
})));
|
|
85
|
+
};
|
|
86
|
+
export default DetailsBlock;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import Block from "./Block";
|
|
4
|
+
import { SIZES } from "./constants";
|
|
5
|
+
import DetailsBlock from "./DetailsBlock";
|
|
6
|
+
import "./metadata.scss";
|
|
7
|
+
var Metadata = function Metadata(_ref) {
|
|
8
|
+
var headerBlock = _ref.headerBlock,
|
|
9
|
+
_ref$size = _ref.size,
|
|
10
|
+
size = _ref$size === void 0 ? SIZES.medium : _ref$size,
|
|
11
|
+
children = _ref.children,
|
|
12
|
+
_ref$className = _ref.className,
|
|
13
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
"data-cy": "neeto-molecules-metadata-wrapper",
|
|
16
|
+
"data-testid": "metadata-wrapper",
|
|
17
|
+
className: classnames("neeto-ui-bg-gray-100 neeto-molecules-metadata h-screen flex-shrink-0 overflow-y-auto overflow-x-hidden p-6", {
|
|
18
|
+
"neeto-molecules-metadata--size-large": size === SIZES.medium,
|
|
19
|
+
"neeto-molecules-metadata--size-small": size === SIZES.small
|
|
20
|
+
}, className)
|
|
21
|
+
}, headerBlock && /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "neeto-molecules-metadata__header mb-5 flex w-full justify-center",
|
|
23
|
+
"data-cy": "neeto-molecules-metadata-header",
|
|
24
|
+
"data-testid": "metadata-header"
|
|
25
|
+
}, headerBlock), children);
|
|
26
|
+
};
|
|
27
|
+
Metadata.Block = Block;
|
|
28
|
+
Metadata.DetailsBlock = DetailsBlock;
|
|
29
|
+
export default Metadata;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export var BUTTON_STYLES = {
|
|
2
|
+
primary: "primary",
|
|
3
|
+
secondary: "secondary",
|
|
4
|
+
danger: "danger",
|
|
5
|
+
danger_text: "danger-text",
|
|
6
|
+
text: "text",
|
|
7
|
+
link: "link"
|
|
8
|
+
};
|
|
9
|
+
export var SIZES = {
|
|
10
|
+
small: "small",
|
|
11
|
+
medium: "medium",
|
|
12
|
+
large: "large"
|
|
13
|
+
};
|
|
14
|
+
export var STRATEGY = {
|
|
15
|
+
absolute: "absolute",
|
|
16
|
+
fixed: "fixed"
|
|
17
|
+
};
|
|
18
|
+
export var MENU_ITEM_TYPES = {
|
|
19
|
+
menuItem: "menuItem",
|
|
20
|
+
divider: "divider"
|
|
21
|
+
};
|
|
22
|
+
export var DEFAULT_TOOLTIP_PROPS = {
|
|
23
|
+
disabled: true,
|
|
24
|
+
position: "bottom"
|
|
25
|
+
};
|
|
@@ -1,105 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { mergeRight } from 'ramda';
|
|
5
|
-
|
|
6
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
7
|
-
if (source == null) return {};
|
|
8
|
-
var target = {};
|
|
9
|
-
var sourceKeys = Object.keys(source);
|
|
10
|
-
var key, i;
|
|
11
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
12
|
-
key = sourceKeys[i];
|
|
13
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
14
|
-
target[key] = source[key];
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function _objectWithoutProperties(source, excluded) {
|
|
20
|
-
if (source == null) return {};
|
|
21
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
22
|
-
var key, i;
|
|
23
|
-
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
26
|
-
key = sourceSymbolKeys[i];
|
|
27
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
28
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
29
|
-
target[key] = source[key];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return target;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function _typeof(obj) {
|
|
36
|
-
"@babel/helpers - typeof";
|
|
37
|
-
|
|
38
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
39
|
-
return typeof obj;
|
|
40
|
-
} : function (obj) {
|
|
41
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
42
|
-
}, _typeof(obj);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _toPrimitive(input, hint) {
|
|
46
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
47
|
-
var prim = input[Symbol.toPrimitive];
|
|
48
|
-
if (prim !== undefined) {
|
|
49
|
-
var res = prim.call(input, hint || "default");
|
|
50
|
-
if (_typeof(res) !== "object") return res;
|
|
51
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
52
|
-
}
|
|
53
|
-
return (hint === "string" ? String : Number)(input);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function _toPropertyKey(arg) {
|
|
57
|
-
var key = _toPrimitive(arg, "string");
|
|
58
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function _defineProperty(obj, key, value) {
|
|
62
|
-
key = _toPropertyKey(key);
|
|
63
|
-
if (key in obj) {
|
|
64
|
-
Object.defineProperty(obj, key, {
|
|
65
|
-
value: value,
|
|
66
|
-
enumerable: true,
|
|
67
|
-
configurable: true,
|
|
68
|
-
writable: true
|
|
69
|
-
});
|
|
70
|
-
} else {
|
|
71
|
-
obj[key] = value;
|
|
72
|
-
}
|
|
73
|
-
return obj;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _extends() {
|
|
77
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
78
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
79
|
-
var source = arguments[i];
|
|
80
|
-
for (var key in source) {
|
|
81
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
82
|
-
target[key] = source[key];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return target;
|
|
87
|
-
};
|
|
88
|
-
return _extends.apply(this, arguments);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
var MENU_ITEM_TYPES = {
|
|
92
|
-
menuItem: "menuItem",
|
|
93
|
-
divider: "divider"
|
|
94
|
-
};
|
|
95
|
-
var DEFAULT_TOOLTIP_PROPS = {
|
|
96
|
-
disabled: true,
|
|
97
|
-
position: "bottom"
|
|
98
|
-
};
|
|
99
|
-
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
100
4
|
var _excluded = ["key", "onClick", "label", "type", "isVisible"];
|
|
101
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
102
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { MenuHorizontal, MenuVertical } from "@bigbinary/neeto-icons";
|
|
9
|
+
import { Button, Dropdown, Tooltip } from "@bigbinary/neetoui";
|
|
10
|
+
import { mergeRight } from "ramda";
|
|
11
|
+
import { BUTTON_STYLES, DEFAULT_TOOLTIP_PROPS, MENU_ITEM_TYPES, SIZES, STRATEGY } from "./constants";
|
|
103
12
|
var Menu = Dropdown.Menu,
|
|
104
13
|
MenuItem = Dropdown.MenuItem,
|
|
105
14
|
Divider = Dropdown.Divider;
|
|
@@ -157,6 +66,4 @@ var MoreDropdown = function MoreDropdown(_ref) {
|
|
|
157
66
|
});
|
|
158
67
|
}), menuBottomChildren));
|
|
159
68
|
};
|
|
160
|
-
|
|
161
|
-
export { MoreDropdown as default };
|
|
162
|
-
//# sourceMappingURL=MoreDropdown.js.map
|
|
69
|
+
export default MoreDropdown;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { isPresent } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
+
import { Tooltip } from "@bigbinary/neetoui";
|
|
4
|
+
import { mergeDeepRight } from "ramda";
|
|
5
|
+
import { Link } from "react-router-dom";
|
|
6
|
+
import Rename from "../Rename";
|
|
7
|
+
import { DEFAULT_HOME_BUTTON_PROPS } from "./constants";
|
|
8
|
+
var LeftBlock = function LeftBlock(_ref) {
|
|
9
|
+
var customHomeButtonProps = _ref.homeButtonProps,
|
|
10
|
+
homeUrl = _ref.homeUrl,
|
|
11
|
+
renameProps = _ref.renameProps,
|
|
12
|
+
children = _ref.children;
|
|
13
|
+
var homeButtonProps = mergeDeepRight(DEFAULT_HOME_BUTTON_PROPS, customHomeButtonProps);
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "flex items-center gap-2",
|
|
16
|
+
"data-testid": "navigation-header-left-block"
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
18
|
+
content: homeButtonProps.tooltip.content,
|
|
19
|
+
position: homeButtonProps.tooltip.position
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
21
|
+
"data-cy": "home-button",
|
|
22
|
+
"data-testid": "home-button",
|
|
23
|
+
to: homeUrl
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: "neeto-ui-rounded hover:neeto-ui-bg-gray-200 p-1"
|
|
26
|
+
}, homeButtonProps.icon))), isPresent(renameProps) && /*#__PURE__*/React.createElement(Rename, {
|
|
27
|
+
dropdownItems: renameProps.dropdownItems,
|
|
28
|
+
value: renameProps.value,
|
|
29
|
+
renameProps: renameProps
|
|
30
|
+
}), children);
|
|
31
|
+
};
|
|
32
|
+
export default LeftBlock;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinHyphenCase } from "@bigbinary/neeto-commons-frontend/utils";
|
|
3
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
4
|
+
import { NavLink } from "react-router-dom";
|
|
5
|
+
var NavigationLinks = function NavigationLinks(_ref) {
|
|
6
|
+
var headerLinks = _ref.headerLinks;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: "flex w-full items-center justify-center gap-6",
|
|
9
|
+
"data-testid": "navigation-header-navigation-links"
|
|
10
|
+
}, headerLinks.map(function (headerLink) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(NavLink, {
|
|
12
|
+
activeClassName: "active",
|
|
13
|
+
className: "neeto-form-builder-header__link capitalize no-underline",
|
|
14
|
+
"data-cy": "".concat(joinHyphenCase(headerLink.key), "-tab"),
|
|
15
|
+
key: headerLink.key,
|
|
16
|
+
to: headerLink.to
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
18
|
+
lineHeight: "normal",
|
|
19
|
+
style: "h4",
|
|
20
|
+
weight: "semibold"
|
|
21
|
+
}, headerLink.label));
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
export default NavigationLinks;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import PublishBlock from "../PublishBlock";
|
|
5
|
+
import "./navigation-header.scss";
|
|
6
|
+
var RightBlock = function RightBlock(_ref) {
|
|
7
|
+
var isDraftBlockHidden = _ref.isDraftBlockHidden,
|
|
8
|
+
previewDraftUrl = _ref.previewDraftUrl,
|
|
9
|
+
isResetDraftButtonVisible = _ref.isResetDraftButtonVisible,
|
|
10
|
+
onResetClick = _ref.onResetClick,
|
|
11
|
+
isResetting = _ref.isResetting,
|
|
12
|
+
isPublishDisabled = _ref.isPublishDisabled,
|
|
13
|
+
isPublishing = _ref.isPublishing,
|
|
14
|
+
handlePublish = _ref.handlePublish,
|
|
15
|
+
isPublishPreviewDisabled = _ref.isPublishPreviewDisabled,
|
|
16
|
+
previewPublishedUrl = _ref.previewPublishedUrl,
|
|
17
|
+
isPublishButtonVisible = _ref.isPublishButtonVisible,
|
|
18
|
+
isResetAlertOpen = _ref.isResetAlertOpen,
|
|
19
|
+
setIsResetAlertOpen = _ref.setIsResetAlertOpen,
|
|
20
|
+
handleReset = _ref.handleReset,
|
|
21
|
+
publishAlertTitle = _ref.publishAlertTitle,
|
|
22
|
+
publishAlertDescription = _ref.publishAlertDescription;
|
|
23
|
+
var _useTranslation = useTranslation(),
|
|
24
|
+
t = _useTranslation.t;
|
|
25
|
+
var renderDraftButtons = function renderDraftButtons(_ref2) {
|
|
26
|
+
var ViewDraftButton = _ref2.ViewDraftButton,
|
|
27
|
+
ResetDraftButton = _ref2.ResetDraftButton;
|
|
28
|
+
return !isDraftBlockHidden && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ViewDraftButton, {
|
|
29
|
+
to: previewDraftUrl
|
|
30
|
+
}), isResetDraftButtonVisible && /*#__PURE__*/React.createElement(ResetDraftButton, {
|
|
31
|
+
loading: isResetting,
|
|
32
|
+
onClick: function onClick() {
|
|
33
|
+
return onResetClick();
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
var renderPublishButtons = function renderPublishButtons(_ref3) {
|
|
38
|
+
var PublishButton = _ref3.PublishButton,
|
|
39
|
+
PublishPreviewButton = _ref3.PublishPreviewButton;
|
|
40
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isPublishButtonVisible && /*#__PURE__*/React.createElement(PublishButton, {
|
|
41
|
+
disabled: isPublishDisabled,
|
|
42
|
+
loading: isPublishing,
|
|
43
|
+
onClick: function onClick() {
|
|
44
|
+
return handlePublish();
|
|
45
|
+
}
|
|
46
|
+
}), /*#__PURE__*/React.createElement(PublishPreviewButton, {
|
|
47
|
+
disabled: isPublishPreviewDisabled,
|
|
48
|
+
to: previewPublishedUrl,
|
|
49
|
+
className: classNames({
|
|
50
|
+
"standalone-publish-preview-button": !isPublishButtonVisible
|
|
51
|
+
})
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PublishBlock, {
|
|
55
|
+
renderDraftButtons: renderDraftButtons,
|
|
56
|
+
renderPublishButtons: renderPublishButtons
|
|
57
|
+
}), /*#__PURE__*/React.createElement(PublishBlock.Alert, {
|
|
58
|
+
isOpen: isResetAlertOpen,
|
|
59
|
+
isSubmitting: isResetting,
|
|
60
|
+
message: publishAlertDescription || t("neetoMolecules.navigationHeader.resetDescription"),
|
|
61
|
+
title: publishAlertTitle || t("neetoMolecules.navigationHeader.resetTitle"),
|
|
62
|
+
onClose: function onClose() {
|
|
63
|
+
return setIsResetAlertOpen(false);
|
|
64
|
+
},
|
|
65
|
+
onSubmit: handleReset
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
export default RightBlock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { t } from "i18next";
|
|
3
|
+
import { Home } from "@bigbinary/neeto-icons";
|
|
4
|
+
export var DEFAULT_HOME_BUTTON_PROPS = {
|
|
5
|
+
tooltip: {
|
|
6
|
+
content: t("neetoMolecules.navigationHeader.home"),
|
|
7
|
+
position: "bottom"
|
|
8
|
+
},
|
|
9
|
+
homeUrl: "/",
|
|
10
|
+
icon: /*#__PURE__*/React.createElement(Home, null)
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import LeftBlock from "./LeftBlock";
|
|
3
|
+
import NavigationLinks from "./Navigation";
|
|
4
|
+
import RightBlock from "./RightBlock";
|
|
5
|
+
var NavigationHeader = function NavigationHeader(_ref) {
|
|
6
|
+
var leftActionBlock = _ref.leftActionBlock,
|
|
7
|
+
navigationLinks = _ref.navigationLinks,
|
|
8
|
+
rightActionBlock = _ref.rightActionBlock;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "neeto-form-builder-header neeto-ui-border-gray-200 neeto-ui-bg-white flex h-16 w-full flex-shrink-0 items-center border-b px-6 py-2",
|
|
11
|
+
"data-testid": "navigation-header"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "grid w-full grid-cols-3 gap-2"
|
|
14
|
+
}, leftActionBlock, navigationLinks, rightActionBlock));
|
|
15
|
+
};
|
|
16
|
+
NavigationHeader.LeftActionBlock = LeftBlock;
|
|
17
|
+
NavigationHeader.NavigationLinks = NavigationLinks;
|
|
18
|
+
NavigationHeader.RightActionBlock = RightBlock;
|
|
19
|
+
export default NavigationHeader;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import { Button, Select, Typography } from "@bigbinary/neetoui";
|
|
4
|
+
import { useTranslation, Trans } from "react-i18next";
|
|
5
|
+
import CopyToClipboardButton from "../CopyToClipboardButton";
|
|
6
|
+
import { FRAMEWORK_SELECT_OPTIONS } from "./constants";
|
|
7
|
+
import SyntaxHighlighter from "./SyntaxHighlighter";
|
|
8
|
+
var CodeBlock = function CodeBlock(_ref) {
|
|
9
|
+
var _ref$title = _ref.title,
|
|
10
|
+
title = _ref$title === void 0 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Trans, {
|
|
11
|
+
i18nKey: "neetoMolecules.codeblock.codeSnippet"
|
|
12
|
+
})) : _ref$title,
|
|
13
|
+
codeString = _ref.codeString,
|
|
14
|
+
_ref$showCopyButton = _ref.showCopyButton,
|
|
15
|
+
showCopyButton = _ref$showCopyButton === void 0 ? true : _ref$showCopyButton,
|
|
16
|
+
_ref$className = _ref.className,
|
|
17
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
18
|
+
_ref$sendViaEmail = _ref.sendViaEmail,
|
|
19
|
+
sendViaEmail = _ref$sendViaEmail === void 0 ? undefined : _ref$sendViaEmail,
|
|
20
|
+
_ref$frameworkProps = _ref.frameworkProps,
|
|
21
|
+
frameworkProps = _ref$frameworkProps === void 0 ? {} : _ref$frameworkProps;
|
|
22
|
+
var _useTranslation = useTranslation(),
|
|
23
|
+
t = _useTranslation.t;
|
|
24
|
+
var _ref2 = frameworkProps !== null && frameworkProps !== void 0 ? frameworkProps : {},
|
|
25
|
+
selectedFramework = _ref2.selectedFramework,
|
|
26
|
+
setSelectedFramework = _ref2.setSelectedFramework;
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: classnames(["relative", className])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-lg flex w-full flex-wrap items-center justify-between gap-2 rounded-b-none p-3"
|
|
31
|
+
}, title && /*#__PURE__*/React.createElement(Typography, {
|
|
32
|
+
className: "m-0 flex-shrink-0",
|
|
33
|
+
"data-cy": "code-block-title-text",
|
|
34
|
+
style: "h4"
|
|
35
|
+
}, title), selectedFramework && /*#__PURE__*/React.createElement(Select, {
|
|
36
|
+
className: "w-40",
|
|
37
|
+
"data-testid": "framework-select",
|
|
38
|
+
options: FRAMEWORK_SELECT_OPTIONS,
|
|
39
|
+
value: selectedFramework,
|
|
40
|
+
onChange: setSelectedFramework
|
|
41
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "ml-auto flex flex-shrink-0 items-center justify-end gap-2"
|
|
43
|
+
}, sendViaEmail ? /*#__PURE__*/React.createElement(Button, {
|
|
44
|
+
style: "text",
|
|
45
|
+
label: t("neetoMolecules.widget.installation.snippet.sendViaEmail"),
|
|
46
|
+
onClick: sendViaEmail
|
|
47
|
+
}) : null, showCopyButton && /*#__PURE__*/React.createElement(CopyToClipboardButton, {
|
|
48
|
+
label: t("neetoMolecules.widget.installation.snippet.copy"),
|
|
49
|
+
style: "primary",
|
|
50
|
+
value: codeString
|
|
51
|
+
}))), /*#__PURE__*/React.createElement(SyntaxHighlighter, {
|
|
52
|
+
className: "neeto-ui-bg-gray-800 neeto-ui-rounded-lg m-0 rounded-t-none",
|
|
53
|
+
code: codeString,
|
|
54
|
+
language: "javascript"
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { Formik, Form } from "formik";
|
|
6
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
7
|
+
import { Typography, Button, Pane, Toastr } from "@bigbinary/neetoui";
|
|
8
|
+
import { Input, MultiEmailInput } from "@bigbinary/neetoui/formik";
|
|
9
|
+
import { pluck, any, assoc } from "ramda";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import CodeBlock from "./CodeBlock";
|
|
12
|
+
import { EMAIL_TYPES, FRAMEWORK_SELECT_OPTIONS } from "./constants";
|
|
13
|
+
import { useEmailEmbedCode } from "./mutations";
|
|
14
|
+
import { getEmailWidgetSnippetFormInitialValues, getEmailWidgetSnippetValidationSchema, getSampleUserIdentity } from "./utils";
|
|
15
|
+
var CodeSnippet = function CodeSnippet(_ref) {
|
|
16
|
+
var isPaneOpen = _ref.isPaneOpen,
|
|
17
|
+
onClose = _ref.onClose,
|
|
18
|
+
_ref$onSent = _ref.onSent,
|
|
19
|
+
onSent = _ref$onSent === void 0 ? noop : _ref$onSent,
|
|
20
|
+
codeString = _ref.codeString,
|
|
21
|
+
_ref$subject = _ref.subject,
|
|
22
|
+
subject = _ref$subject === void 0 ? "" : _ref$subject,
|
|
23
|
+
_ref$body = _ref.body,
|
|
24
|
+
body = _ref$body === void 0 ? "" : _ref$body,
|
|
25
|
+
_ref$emailType = _ref.emailType,
|
|
26
|
+
emailType = _ref$emailType === void 0 ? EMAIL_TYPES.embedCode : _ref$emailType,
|
|
27
|
+
_ref$enabledWidgets = _ref.enabledWidgets,
|
|
28
|
+
enabledWidgets = _ref$enabledWidgets === void 0 ? {} : _ref$enabledWidgets;
|
|
29
|
+
var _useTranslation = useTranslation(),
|
|
30
|
+
t = _useTranslation.t;
|
|
31
|
+
var _useState = useState(FRAMEWORK_SELECT_OPTIONS[0]),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
selectedFramework = _useState2[0],
|
|
34
|
+
setSelectedFramework = _useState2[1];
|
|
35
|
+
var emailMutation = useEmailEmbedCode(onSent);
|
|
36
|
+
var codeToDisplay = emailType === EMAIL_TYPES.userIdentity ? getSampleUserIdentity(enabledWidgets, selectedFramework.value) : codeString;
|
|
37
|
+
var handleSubmit = /*#__PURE__*/function () {
|
|
38
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(formData) {
|
|
39
|
+
var _body$ref$current$inn, _body$ref;
|
|
40
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
41
|
+
while (1) switch (_context.prev = _context.next) {
|
|
42
|
+
case 0:
|
|
43
|
+
if (!any(function (_ref3) {
|
|
44
|
+
var valid = _ref3.valid;
|
|
45
|
+
return !valid;
|
|
46
|
+
}, formData.emails)) {
|
|
47
|
+
_context.next = 3;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
Toastr.error(t("neetoMolecules.widget.email.fields.emails.invalidError"));
|
|
51
|
+
return _context.abrupt("return");
|
|
52
|
+
case 3:
|
|
53
|
+
emailMutation.mutate({
|
|
54
|
+
subject: formData.subject,
|
|
55
|
+
emails: pluck("value", formData.emails),
|
|
56
|
+
message: (_body$ref$current$inn = (_body$ref = body.ref) === null || _body$ref === void 0 ? void 0 : _body$ref.current.innerHTML) !== null && _body$ref$current$inn !== void 0 ? _body$ref$current$inn : body,
|
|
57
|
+
snippet: codeToDisplay
|
|
58
|
+
});
|
|
59
|
+
case 4:
|
|
60
|
+
case "end":
|
|
61
|
+
return _context.stop();
|
|
62
|
+
}
|
|
63
|
+
}, _callee);
|
|
64
|
+
}));
|
|
65
|
+
return function handleSubmit(_x) {
|
|
66
|
+
return _ref2.apply(this, arguments);
|
|
67
|
+
};
|
|
68
|
+
}();
|
|
69
|
+
var renderCodeBlockProps = function renderCodeBlockProps() {
|
|
70
|
+
var props = {
|
|
71
|
+
codeString: codeToDisplay,
|
|
72
|
+
showCopyButton: false,
|
|
73
|
+
className: "neeto-ui-bg-primary-100 neeto-ui-rounded-lg"
|
|
74
|
+
};
|
|
75
|
+
if (emailType === EMAIL_TYPES.userIdentity) {
|
|
76
|
+
props = assoc("frameworkProps", {
|
|
77
|
+
selectedFramework: selectedFramework,
|
|
78
|
+
setSelectedFramework: setSelectedFramework
|
|
79
|
+
}, props);
|
|
80
|
+
}
|
|
81
|
+
return props;
|
|
82
|
+
};
|
|
83
|
+
return /*#__PURE__*/React.createElement(Pane, {
|
|
84
|
+
isOpen: isPaneOpen,
|
|
85
|
+
onClose: onClose
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Formik, {
|
|
87
|
+
initialValues: getEmailWidgetSnippetFormInitialValues(subject),
|
|
88
|
+
validationSchema: getEmailWidgetSnippetValidationSchema(),
|
|
89
|
+
onSubmit: handleSubmit
|
|
90
|
+
}, /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(Pane.Header, null, /*#__PURE__*/React.createElement(Typography, {
|
|
91
|
+
style: "h2"
|
|
92
|
+
}, t("neetoMolecules.widget.email.title"))), /*#__PURE__*/React.createElement(Pane.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: "w-full space-y-4"
|
|
94
|
+
}, /*#__PURE__*/React.createElement(MultiEmailInput, {
|
|
95
|
+
required: true,
|
|
96
|
+
label: t("neetoMolecules.widget.email.fields.emails.label"),
|
|
97
|
+
name: "emails",
|
|
98
|
+
placeholder: t("neetoMolecules.widget.email.fields.emails.placeholder")
|
|
99
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
100
|
+
required: true,
|
|
101
|
+
label: t("neetoMolecules.widget.email.fields.subject.label"),
|
|
102
|
+
name: "subject",
|
|
103
|
+
type: "text"
|
|
104
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
105
|
+
style: "body2"
|
|
106
|
+
}, body), /*#__PURE__*/React.createElement(CodeBlock, renderCodeBlockProps()))), /*#__PURE__*/React.createElement(Pane.Footer, {
|
|
107
|
+
className: "gap-x-2"
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
109
|
+
disabled: emailMutation.isLoading,
|
|
110
|
+
label: t("neetoMolecules.widget.email.actions.send"),
|
|
111
|
+
loading: emailMutation.isLoading,
|
|
112
|
+
type: "submit"
|
|
113
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
114
|
+
label: t("neetoMolecules.widget.email.actions.cancel"),
|
|
115
|
+
style: "text",
|
|
116
|
+
onClick: onClose
|
|
117
|
+
})))));
|
|
118
|
+
};
|
|
119
|
+
export default CodeSnippet;
|