@bbl-digital/snorre 2.2.75 → 2.2.78
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/.husky/_/husky.sh +30 -30
- package/.prettierrc +6 -6
- package/.vscode/settings.json +3 -3
- package/README.md +3 -3
- package/dist/bundle.js +886 -749
- package/esm/app-shell/index.js +1 -1
- package/esm/core/Alert/styles.js +6 -6
- package/esm/core/AppLoader/styles.js +1 -1
- package/esm/core/Banner/styles.js +4 -4
- package/esm/core/BarAndLineComposedChart/styles.js +1 -1
- package/esm/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/esm/core/Box/styles.js +7 -7
- package/esm/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/esm/core/BoxedTable/RowCell/index.js +1 -1
- package/esm/core/BoxedTable/RowCell/styles.js +9 -9
- package/esm/core/BoxedTable/TableHeader/styles.js +1 -1
- package/esm/core/BoxedTable/TableRow/styles.js +8 -8
- package/esm/core/BoxedTable/styles.js +8 -8
- package/esm/core/Button/styles.js +18 -18
- package/esm/core/Calendar/CalendarEvent/styles.js +5 -5
- package/esm/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/esm/core/Calendar/styles.js +6 -6
- package/esm/core/Card/styles.js +11 -11
- package/esm/core/Checkbox/styles.js +5 -5
- package/esm/core/CollapseList/styles.js +2 -2
- package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/esm/core/CommentsTimeline/styles.js +1 -1
- package/esm/core/CustomText/styles.js +2 -2
- package/esm/core/Datepicker/styles.js +8 -8
- package/esm/core/Divider/styles.js +5 -5
- package/esm/core/Dropdown/styles.js +3 -3
- package/esm/core/DropdownMenu/styles.js +3 -3
- package/esm/core/Editor/config.js +8 -69
- package/esm/core/Editor/index.js +65 -118
- package/esm/core/Editor/styles.js +16 -36
- package/esm/core/EditorOld/config.js +69 -0
- package/esm/core/EditorOld/index.js +147 -0
- package/esm/core/EditorOld/styles.js +65 -0
- package/esm/core/Header/styles.js +7 -7
- package/esm/core/HighlightText/styles.js +1 -1
- package/esm/core/Html/styles.js +6 -6
- package/esm/core/Image/styles.js +3 -3
- package/esm/core/InfoButton/styles.js +9 -9
- package/esm/core/Input/styles.js +14 -14
- package/esm/core/Link/styles.js +9 -9
- package/esm/core/List/Item.js +1 -1
- package/esm/core/List/styles.js +11 -11
- package/esm/core/ListPager/styles.js +3 -3
- package/esm/core/Modal/styles.js +8 -8
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/esm/core/NoticeCard/styles.js +4 -4
- package/esm/core/NotificationsMenu/NotificationBell/styles.js +2 -2
- package/esm/core/NotificationsMenu/NotificationRow/styles.js +1 -1
- package/esm/core/NotificationsMenu/styles.js +2 -2
- package/esm/core/PieChart/styles.js +2 -2
- package/esm/core/PreemptionCard/index.js +1 -1
- package/esm/core/PreemptionCard/styles.js +3 -3
- package/esm/core/PreemptionCardLoading/styles.js +3 -3
- package/esm/core/Radio/styles.js +3 -3
- package/esm/core/Select/index.js +1 -1
- package/esm/core/Select/styles.js +15 -15
- package/esm/core/SimpleBarChart/CustomLegend/index.js +27 -0
- package/esm/core/SimpleBarChart/CustomLegend/styles.js +25 -0
- package/esm/core/SimpleBarChart/CustomTooltip/index.js +45 -0
- package/esm/core/SimpleBarChart/CustomTooltip/styles.js +39 -0
- package/esm/core/SimpleBarChart/SimpleBarChart.data.js +49 -0
- package/esm/core/SimpleBarChart/styles.js +1 -1
- package/esm/core/SimpleLineChart/styles.js +1 -1
- package/esm/core/Skeleton/styles.js +4 -4
- package/esm/core/TabBar/TabItem/styles.js +1 -1
- package/esm/core/TabBar/styles.js +1 -1
- package/esm/core/TabNav/TabNavItem/styles.js +2 -2
- package/esm/core/TabNav/styles.js +6 -6
- package/esm/core/Table/styles.js +16 -16
- package/esm/core/Tag/styles.js +9 -9
- package/esm/core/Text/index.js +3 -2
- package/esm/core/Text/styles.js +14 -13
- package/esm/core/Textarea/styles.js +6 -6
- package/esm/core/Timeline/TimelineStep/styles.js +6 -6
- package/esm/core/Timeline/styles.js +1 -1
- package/esm/core/Timepicker/styles.js +6 -6
- package/esm/core/UnitIllustration/index.js +9 -9
- package/esm/core/UserMenu/styles.js +7 -7
- package/esm/core/YearWheel/styles.js +3 -3
- package/esm/globals/validation/regularExpressions.js +2 -1
- package/esm/illustrations/styles.js +2 -2
- package/esm/index.js +3 -2
- package/esm/layout/Footer/FooterButton/styles.js +1 -1
- package/esm/layout/Footer/FooterCol/styles.js +1 -1
- package/esm/layout/Footer/FooterGroup/styles.js +1 -1
- package/esm/layout/Footer/FooterLabel/styles.js +1 -1
- package/esm/layout/Footer/FooterLink/styles.js +1 -1
- package/esm/layout/Footer/styles.js +2 -2
- package/esm/layout/Layout/styles.js +1 -1
- package/esm/layout/LayoutShell/styles.js +10 -10
- package/esm/layout/Menu/AppPicker/styles.js +3 -3
- package/esm/layout/Menu/MainMenu/styles.js +1 -1
- package/esm/layout/Menu/MenuItem/styles.js +2 -2
- package/esm/layout/Menu/MenuSpacer/styles.js +1 -1
- package/esm/layout/Menu/MenuTop/styles.js +3 -3
- package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/esm/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/esm/layout/Menu/styles.js +1 -1
- package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/esm/layout/Submenu/styles.js +10 -10
- package/esm/layout/Topbar/styles.js +1 -1
- package/esm/shared/recharts/CustomLegend/styles.js +2 -2
- package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
- package/esm/utils/format.js +6 -6
- package/esm/utils/time.js +14 -14
- package/infrastructure/azure-pipelines.yml +29 -29
- package/jest.config.js +33 -33
- package/lib/app-shell/index.d.ts +8 -8
- package/lib/app-shell/index.js +1 -1
- package/lib/app-shell/theme.d.ts +122 -122
- package/lib/core/Alert/index.d.ts +21 -21
- package/lib/core/Alert/styles.d.ts +11 -11
- package/lib/core/Alert/styles.js +6 -6
- package/lib/core/AppLoader/index.d.ts +8 -8
- package/lib/core/AppLoader/styles.d.ts +6 -6
- package/lib/core/AppLoader/styles.js +1 -1
- package/lib/core/Banner/index.d.ts +18 -18
- package/lib/core/Banner/styles.d.ts +17 -17
- package/lib/core/Banner/styles.js +4 -4
- package/lib/core/BarAndLineComposedChart/index.d.ts +56 -56
- package/lib/core/BarAndLineComposedChart/styles.d.ts +8 -8
- package/lib/core/BarAndLineComposedChart/styles.js +1 -1
- package/lib/core/BarChartWithCustomizedEvent/index.d.ts +55 -55
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts +9 -9
- package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/lib/core/Box/index.d.ts +25 -25
- package/lib/core/Box/styles.d.ts +39 -39
- package/lib/core/Box/styles.js +7 -7
- package/lib/core/BoxedTable/HeaderCell/index.d.ts +22 -22
- package/lib/core/BoxedTable/HeaderCell/styles.d.ts +3 -3
- package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/lib/core/BoxedTable/RowCell/index.d.ts +24 -24
- package/lib/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/core/BoxedTable/RowCell/styles.d.ts +12 -12
- package/lib/core/BoxedTable/RowCell/styles.js +9 -9
- package/lib/core/BoxedTable/TableHeader/index.d.ts +5 -5
- package/lib/core/BoxedTable/TableHeader/styles.d.ts +5 -5
- package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
- package/lib/core/BoxedTable/TableRow/index.d.ts +17 -17
- package/lib/core/BoxedTable/TableRow/styles.d.ts +55 -55
- package/lib/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/core/BoxedTable/index.d.ts +11 -11
- package/lib/core/BoxedTable/styles.d.ts +2 -2
- package/lib/core/BoxedTable/styles.js +8 -8
- package/lib/core/Button/index.d.ts +34 -34
- package/lib/core/Button/styles.d.ts +24 -24
- package/lib/core/Button/styles.js +18 -18
- package/lib/core/Calendar/CalendarEvent/index.d.ts +9 -9
- package/lib/core/Calendar/CalendarEvent/styles.d.ts +18 -18
- package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
- package/lib/core/Calendar/CalendarSmallEvent/index.d.ts +9 -9
- package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts +18 -18
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/lib/core/Calendar/index.d.ts +14 -14
- package/lib/core/Calendar/styles.d.ts +12 -12
- package/lib/core/Calendar/styles.js +6 -6
- package/lib/core/Calendar/util.d.ts +2 -2
- package/lib/core/Card/index.d.ts +29 -29
- package/lib/core/Card/styles.d.ts +16 -16
- package/lib/core/Card/styles.js +11 -11
- package/lib/core/Checkbox/index.d.ts +30 -30
- package/lib/core/Checkbox/styles.d.ts +10 -10
- package/lib/core/Checkbox/styles.js +5 -5
- package/lib/core/CollapseList/Item.d.ts +11 -11
- package/lib/core/CollapseList/index.d.ts +4 -4
- package/lib/core/CollapseList/styles.d.ts +24 -24
- package/lib/core/CollapseList/styles.js +2 -2
- package/lib/core/CommentsTimeline/CommentLine/index.d.ts +23 -23
- package/lib/core/CommentsTimeline/CommentLine/styles.d.ts +14 -14
- package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/lib/core/CommentsTimeline/index.d.ts +5 -5
- package/lib/core/CommentsTimeline/styles.d.ts +5 -5
- package/lib/core/CommentsTimeline/styles.js +1 -1
- package/lib/core/CustomText/index.d.ts +24 -24
- package/lib/core/CustomText/styles.d.ts +6 -6
- package/lib/core/CustomText/styles.js +2 -2
- package/lib/core/Datepicker/index.d.ts +28 -28
- package/lib/core/Datepicker/styles.d.ts +27 -27
- package/lib/core/Datepicker/styles.js +8 -8
- package/lib/core/Datepicker/yearMonthForm.d.ts +9 -9
- package/lib/core/Divider/index.d.ts +21 -21
- package/lib/core/Divider/styles.d.ts +10 -10
- package/lib/core/Divider/styles.js +5 -5
- package/lib/core/Dropdown/index.d.ts +25 -25
- package/lib/core/Dropdown/styles.d.ts +8 -8
- package/lib/core/Dropdown/styles.js +3 -3
- package/lib/core/DropdownMenu/DropdownMenuOption.d.ts +10 -10
- package/lib/core/DropdownMenu/index.d.ts +9 -9
- package/lib/core/DropdownMenu/styles.d.ts +11 -11
- package/lib/core/DropdownMenu/styles.js +3 -3
- package/lib/core/Editor/config.d.ts +6 -55
- package/lib/core/Editor/config.d.ts.map +1 -1
- package/lib/core/Editor/config.js +8 -69
- package/lib/core/Editor/index.d.ts +34 -33
- package/lib/core/Editor/index.d.ts.map +1 -1
- package/lib/core/Editor/index.js +65 -118
- package/lib/core/Editor/styles.d.ts +14 -22
- package/lib/core/Editor/styles.d.ts.map +1 -1
- package/lib/core/Editor/styles.js +16 -36
- package/lib/core/EditorOld/config.d.ts +56 -0
- package/lib/core/EditorOld/config.d.ts.map +1 -0
- package/lib/core/EditorOld/config.js +69 -0
- package/lib/core/EditorOld/index.d.ts +39 -0
- package/lib/core/EditorOld/index.d.ts.map +1 -0
- package/lib/core/EditorOld/index.js +147 -0
- package/lib/core/EditorOld/styles.d.ts +23 -0
- package/lib/core/EditorOld/styles.d.ts.map +1 -0
- package/lib/core/EditorOld/styles.js +65 -0
- package/lib/core/FileInput/index.d.ts +27 -27
- package/lib/core/FileInput/styles.d.ts +66 -66
- package/lib/core/Header/index.d.ts +16 -16
- package/lib/core/Header/styles.d.ts +12 -12
- package/lib/core/Header/styles.js +7 -7
- package/lib/core/HighlightText/index.d.ts +11 -11
- package/lib/core/HighlightText/styles.d.ts +5 -5
- package/lib/core/HighlightText/styles.js +1 -1
- package/lib/core/Html/index.d.ts +20 -20
- package/lib/core/Html/styles.d.ts +11 -11
- package/lib/core/Html/styles.js +6 -6
- package/lib/core/Image/index.d.ts +20 -20
- package/lib/core/Image/styles.d.ts +7 -7
- package/lib/core/Image/styles.js +3 -3
- package/lib/core/InfoButton/index.d.ts +18 -18
- package/lib/core/InfoButton/styles.d.ts +36 -36
- package/lib/core/InfoButton/styles.js +9 -9
- package/lib/core/Input/index.d.ts +53 -53
- package/lib/core/Input/styles.d.ts +19 -19
- package/lib/core/Input/styles.js +14 -14
- package/lib/core/Link/index.d.ts +25 -25
- package/lib/core/Link/styles.d.ts +14 -14
- package/lib/core/Link/styles.js +9 -9
- package/lib/core/List/Item.d.ts +3 -3
- package/lib/core/List/Item.js +1 -1
- package/lib/core/List/index.d.ts +32 -32
- package/lib/core/List/styles.d.ts +34 -34
- package/lib/core/List/styles.js +11 -11
- package/lib/core/ListPager/index.d.ts +15 -15
- package/lib/core/ListPager/styles.d.ts +10 -10
- package/lib/core/ListPager/styles.js +3 -3
- package/lib/core/Modal/index.d.ts +29 -29
- package/lib/core/Modal/styles.d.ts +31 -31
- package/lib/core/Modal/styles.js +8 -8
- package/lib/core/NoticeCard/index.d.ts +22 -22
- package/lib/core/NoticeCard/models.d.ts +29 -29
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.d.ts +9 -9
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts +18 -18
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/index.d.ts +8 -8
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts +5 -5
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +10 -10
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts +13 -13
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/lib/core/NoticeCard/styles.d.ts +19 -19
- package/lib/core/NoticeCard/styles.js +4 -4
- package/lib/core/NoticeCard/utils.d.ts +3 -3
- package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +7 -7
- package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +6 -6
- package/lib/core/NotificationsMenu/NotificationBell/styles.js +2 -2
- package/lib/core/NotificationsMenu/NotificationRow/index.d.ts +15 -15
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +2 -2
- package/lib/core/NotificationsMenu/NotificationRow/styles.js +1 -1
- package/lib/core/NotificationsMenu/index.d.ts +11 -11
- package/lib/core/NotificationsMenu/styles.d.ts +9 -9
- package/lib/core/NotificationsMenu/styles.js +2 -2
- package/lib/core/PieChart/ActiveShape/index.d.ts +4 -4
- package/lib/core/PieChart/index.d.ts +30 -30
- package/lib/core/PieChart/renderTextContent/index.d.ts +4 -4
- package/lib/core/PieChart/styles.d.ts +14 -14
- package/lib/core/PieChart/styles.js +2 -2
- package/lib/core/PreemptionCard/index.d.ts +9 -9
- package/lib/core/PreemptionCard/index.js +1 -1
- package/lib/core/PreemptionCard/models.d.ts +115 -115
- package/lib/core/PreemptionCard/styles.d.ts +10 -10
- package/lib/core/PreemptionCard/styles.js +3 -3
- package/lib/core/PreemptionCardLoading/index.d.ts +5 -5
- package/lib/core/PreemptionCardLoading/styles.d.ts +13 -13
- package/lib/core/PreemptionCardLoading/styles.js +3 -3
- package/lib/core/Radio/index.d.ts +14 -14
- package/lib/core/Radio/styles.d.ts +8 -8
- package/lib/core/Radio/styles.js +3 -3
- package/lib/core/Select/Option.d.ts +16 -16
- package/lib/core/Select/index.d.ts +45 -45
- package/lib/core/Select/index.js +1 -1
- package/lib/core/Select/styles.d.ts +29 -29
- package/lib/core/Select/styles.js +15 -15
- package/lib/core/SimpleBarChart/CustomLegend/index.d.ts +4 -0
- package/lib/core/SimpleBarChart/CustomLegend/index.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomLegend/index.js +27 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.d.ts +13 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.js +25 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.d.ts +5 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.js +45 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.d.ts +16 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.js +39 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.d.ts +6 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.js +49 -0
- package/lib/core/SimpleBarChart/index.d.ts +45 -45
- package/lib/core/SimpleBarChart/styles.d.ts +8 -8
- package/lib/core/SimpleBarChart/styles.js +1 -1
- package/lib/core/SimpleLineChart/index.d.ts +61 -61
- package/lib/core/SimpleLineChart/styles.d.ts +8 -8
- package/lib/core/SimpleLineChart/styles.js +1 -1
- package/lib/core/Skeleton/index.d.ts +10 -10
- package/lib/core/Skeleton/styles.d.ts +26 -26
- package/lib/core/Skeleton/styles.js +4 -4
- package/lib/core/TabBar/TabItem/index.d.ts +13 -13
- package/lib/core/TabBar/TabItem/styles.d.ts +5 -5
- package/lib/core/TabBar/TabItem/styles.js +1 -1
- package/lib/core/TabBar/index.d.ts +5 -5
- package/lib/core/TabBar/styles.d.ts +5 -5
- package/lib/core/TabBar/styles.js +1 -1
- package/lib/core/TabNav/TabContext.d.ts +12 -12
- package/lib/core/TabNav/TabNavItem/index.d.ts +14 -14
- package/lib/core/TabNav/TabNavItem/styles.d.ts +9 -9
- package/lib/core/TabNav/TabNavItem/styles.js +2 -2
- package/lib/core/TabNav/index.d.ts +24 -24
- package/lib/core/TabNav/styles.d.ts +16 -16
- package/lib/core/TabNav/styles.js +6 -6
- package/lib/core/Table/Cell.d.ts +22 -22
- package/lib/core/Table/Row.d.ts +21 -21
- package/lib/core/Table/index.d.ts +10 -10
- package/lib/core/Table/styles.d.ts +26 -26
- package/lib/core/Table/styles.js +16 -16
- package/lib/core/Tag/index.d.ts +28 -28
- package/lib/core/Tag/styles.d.ts +14 -14
- package/lib/core/Tag/styles.js +9 -9
- package/lib/core/Text/index.d.ts +44 -42
- package/lib/core/Text/index.d.ts.map +1 -1
- package/lib/core/Text/index.js +3 -2
- package/lib/core/Text/styles.d.ts +19 -18
- package/lib/core/Text/styles.d.ts.map +1 -1
- package/lib/core/Text/styles.js +14 -13
- package/lib/core/Textarea/index.d.ts +28 -28
- package/lib/core/Textarea/styles.d.ts +16 -16
- package/lib/core/Textarea/styles.js +6 -6
- package/lib/core/Timeline/TimelineStep/index.d.ts +14 -14
- package/lib/core/Timeline/TimelineStep/styles.d.ts +16 -16
- package/lib/core/Timeline/TimelineStep/styles.js +6 -6
- package/lib/core/Timeline/index.d.ts +3 -3
- package/lib/core/Timeline/styles.d.ts +5 -5
- package/lib/core/Timeline/styles.js +1 -1
- package/lib/core/Timepicker/index.d.ts +34 -34
- package/lib/core/Timepicker/styles.d.ts +18 -18
- package/lib/core/Timepicker/styles.js +6 -6
- package/lib/core/UnitIllustration/index.d.ts +6 -6
- package/lib/core/UnitIllustration/index.js +9 -9
- package/lib/core/UserMenu/UserMenuOption.d.ts +7 -7
- package/lib/core/UserMenu/index.d.ts +17 -17
- package/lib/core/UserMenu/styles.d.ts +27 -27
- package/lib/core/UserMenu/styles.js +7 -7
- package/lib/core/YearWheel/index.d.ts +10 -10
- package/lib/core/YearWheel/styles.d.ts +8 -8
- package/lib/core/YearWheel/styles.js +3 -3
- package/lib/core/private/ButtonOrLink.d.ts +39 -39
- package/lib/core/private/preemption.d.ts +5 -5
- package/lib/core/utils/debounce.d.ts +2 -2
- package/lib/globals/styles/breakpoints.d.ts +9 -9
- package/lib/globals/styles/paddings.d.ts +8 -8
- package/lib/globals/validation/regularExpressions.d.ts +9 -8
- package/lib/globals/validation/regularExpressions.d.ts.map +1 -1
- package/lib/globals/validation/regularExpressions.js +2 -1
- package/lib/hooks/useIsMobile.d.ts +1 -1
- package/lib/hooks/useScreenOrientation.d.ts +2 -2
- package/lib/icons/General/IconApartment.d.ts +3 -3
- package/lib/icons/General/IconArchives.d.ts +3 -3
- package/lib/icons/General/IconArea.d.ts +3 -3
- package/lib/icons/General/IconArrowDown.d.ts +3 -3
- package/lib/icons/General/IconArrowLeft.d.ts +3 -3
- package/lib/icons/General/IconArrowRight.d.ts +3 -3
- package/lib/icons/General/IconArrowUp.d.ts +3 -3
- package/lib/icons/General/IconAttachment.d.ts +3 -3
- package/lib/icons/General/IconBack.d.ts +3 -3
- package/lib/icons/General/IconBath.d.ts +3 -3
- package/lib/icons/General/IconBblFlame.d.ts +3 -3
- package/lib/icons/General/IconBblShield.d.ts +3 -3
- package/lib/icons/General/IconBblWater.d.ts +3 -3
- package/lib/icons/General/IconBellOutline.d.ts +3 -3
- package/lib/icons/General/IconBlock.d.ts +3 -3
- package/lib/icons/General/IconBoard.d.ts +3 -3
- package/lib/icons/General/IconBookmarkFilled.d.ts +3 -3
- package/lib/icons/General/IconBookmarkOutline.d.ts +3 -3
- package/lib/icons/General/IconBus.d.ts +3 -3
- package/lib/icons/General/IconCalendar.d.ts +3 -3
- package/lib/icons/General/IconCar.d.ts +3 -3
- package/lib/icons/General/IconCaretDown.d.ts +3 -3
- package/lib/icons/General/IconCaretLeft.d.ts +3 -3
- package/lib/icons/General/IconCaretRight.d.ts +3 -3
- package/lib/icons/General/IconCaretUp.d.ts +3 -3
- package/lib/icons/General/IconCheck.d.ts +3 -3
- package/lib/icons/General/IconCheckedFilled.d.ts +3 -3
- package/lib/icons/General/IconCheckedOutline.d.ts +3 -3
- package/lib/icons/General/IconChevronDown.d.ts +3 -3
- package/lib/icons/General/IconChevronLeft.d.ts +3 -3
- package/lib/icons/General/IconChevronRight.d.ts +3 -3
- package/lib/icons/General/IconChoice.d.ts +3 -3
- package/lib/icons/General/IconClose.d.ts +3 -3
- package/lib/icons/General/IconCloseAlt.d.ts +3 -3
- package/lib/icons/General/IconComment.d.ts +3 -3
- package/lib/icons/General/IconCommunication.d.ts +3 -3
- package/lib/icons/General/IconCommunicationFilled.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuilding.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuildingFilled.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuildingOutline.d.ts +3 -3
- package/lib/icons/General/IconDashboard.d.ts +3 -3
- package/lib/icons/General/IconDashboardFilled.d.ts +3 -3
- package/lib/icons/General/IconDelete.d.ts +3 -3
- package/lib/icons/General/IconDocument.d.ts +3 -3
- package/lib/icons/General/IconDocumentFilled.d.ts +3 -3
- package/lib/icons/General/IconDoor.d.ts +3 -3
- package/lib/icons/General/IconDotFilled.d.ts +3 -3
- package/lib/icons/General/IconDotOutline.d.ts +3 -3
- package/lib/icons/General/IconDownload.d.ts +3 -3
- package/lib/icons/General/IconDraft.d.ts +3 -3
- package/lib/icons/General/IconEarth.d.ts +3 -3
- package/lib/icons/General/IconEconomy.d.ts +3 -3
- package/lib/icons/General/IconEconomyFilled.d.ts +3 -3
- package/lib/icons/General/IconEdit.d.ts +3 -3
- package/lib/icons/General/IconElevator.d.ts +3 -3
- package/lib/icons/General/IconErrorFilled.d.ts +3 -3
- package/lib/icons/General/IconErrorOutline.d.ts +3 -3
- package/lib/icons/General/IconExternalLink.d.ts +3 -3
- package/lib/icons/General/IconEye.d.ts +3 -3
- package/lib/icons/General/IconEyeDeny.d.ts +3 -3
- package/lib/icons/General/IconFamily.d.ts +3 -3
- package/lib/icons/General/IconFerry.d.ts +3 -3
- package/lib/icons/General/IconFile.d.ts +3 -3
- package/lib/icons/General/IconFileAdd.d.ts +3 -3
- package/lib/icons/General/IconFileCopy.d.ts +3 -3
- package/lib/icons/General/IconFileEdit.d.ts +3 -3
- package/lib/icons/General/IconFileExcel.d.ts +3 -3
- package/lib/icons/General/IconFilePDF.d.ts +3 -3
- package/lib/icons/General/IconFileWord.d.ts +3 -3
- package/lib/icons/General/IconFillOut.d.ts +3 -3
- package/lib/icons/General/IconFilterList.d.ts +3 -3
- package/lib/icons/General/IconFloor.d.ts +3 -3
- package/lib/icons/General/IconForward.d.ts +3 -3
- package/lib/icons/General/IconGarage.d.ts +3 -3
- package/lib/icons/General/IconGrid.d.ts +3 -3
- package/lib/icons/General/IconGym.d.ts +3 -3
- package/lib/icons/General/IconHearth.d.ts +3 -3
- package/lib/icons/General/IconHearthOutline.d.ts +3 -3
- package/lib/icons/General/IconHelp.d.ts +3 -3
- package/lib/icons/General/IconHistory.d.ts +3 -3
- package/lib/icons/General/IconHouse.d.ts +3 -3
- package/lib/icons/General/IconHouseOutline.d.ts +3 -3
- package/lib/icons/General/IconHumans.d.ts +3 -3
- package/lib/icons/General/IconImportantComment.d.ts +3 -3
- package/lib/icons/General/IconInbox.d.ts +3 -3
- package/lib/icons/General/IconInfoFilled.d.ts +3 -3
- package/lib/icons/General/IconInfoOutline.d.ts +3 -3
- package/lib/icons/General/IconJointcost.d.ts +3 -3
- package/lib/icons/General/IconJointcost2.d.ts +3 -3
- package/lib/icons/General/IconKey.d.ts +3 -3
- package/lib/icons/General/IconKitchen.d.ts +3 -3
- package/lib/icons/General/IconLabel.d.ts +3 -3
- package/lib/icons/General/IconLeisureTime.d.ts +3 -3
- package/lib/icons/General/IconLock.d.ts +3 -3
- package/lib/icons/General/IconLockLocked.d.ts +3 -3
- package/lib/icons/General/IconLockOpen.d.ts +3 -3
- package/lib/icons/General/IconLookup.d.ts +3 -3
- package/lib/icons/General/IconLookupFilled.d.ts +3 -3
- package/lib/icons/General/IconMail.d.ts +3 -3
- package/lib/icons/General/IconMap.d.ts +3 -3
- package/lib/icons/General/IconMembership.d.ts +3 -3
- package/lib/icons/General/IconMembershipFilled.d.ts +3 -3
- package/lib/icons/General/IconMenu.d.ts +3 -3
- package/lib/icons/General/IconMinus.d.ts +3 -3
- package/lib/icons/General/IconMinusAlt.d.ts +3 -3
- package/lib/icons/General/IconMinusAltFilled.d.ts +3 -3
- package/lib/icons/General/IconMoney.d.ts +3 -3
- package/lib/icons/General/IconParking.d.ts +3 -3
- package/lib/icons/General/IconPaymentCard.d.ts +3 -3
- package/lib/icons/General/IconPhone.d.ts +3 -3
- package/lib/icons/General/IconPlus.d.ts +3 -3
- package/lib/icons/General/IconPlusAlt.d.ts +3 -3
- package/lib/icons/General/IconPortalUser.d.ts +3 -3
- package/lib/icons/General/IconPrint.d.ts +3 -3
- package/lib/icons/General/IconProfile.d.ts +3 -3
- package/lib/icons/General/IconProfileFilled.d.ts +3 -3
- package/lib/icons/General/IconReciept.d.ts +3 -3
- package/lib/icons/General/IconRedo.d.ts +3 -3
- package/lib/icons/General/IconRefresh.d.ts +3 -3
- package/lib/icons/General/IconReply.d.ts +3 -3
- package/lib/icons/General/IconReplyAll.d.ts +3 -3
- package/lib/icons/General/IconRoom.d.ts +3 -3
- package/lib/icons/General/IconSave.d.ts +3 -3
- package/lib/icons/General/IconSearch.d.ts +3 -3
- package/lib/icons/General/IconSend.d.ts +3 -3
- package/lib/icons/General/IconSettings.d.ts +3 -3
- package/lib/icons/General/IconShopping.d.ts +3 -3
- package/lib/icons/General/IconSign.d.ts +3 -3
- package/lib/icons/General/IconSort.d.ts +3 -3
- package/lib/icons/General/IconStarFilled.d.ts +3 -3
- package/lib/icons/General/IconStarHalf.d.ts +3 -3
- package/lib/icons/General/IconStarOutline.d.ts +3 -3
- package/lib/icons/General/IconStore.d.ts +3 -3
- package/lib/icons/General/IconSubway.d.ts +3 -3
- package/lib/icons/General/IconSwitch.d.ts +3 -3
- package/lib/icons/General/IconTrain.d.ts +3 -3
- package/lib/icons/General/IconTram.d.ts +3 -3
- package/lib/icons/General/IconTransport.d.ts +3 -3
- package/lib/icons/General/IconTypeOfBuilding.d.ts +3 -3
- package/lib/icons/General/IconTypeOfBuildingOutline.d.ts +3 -3
- package/lib/icons/General/IconUndo.d.ts +3 -3
- package/lib/icons/General/IconUpload.d.ts +3 -3
- package/lib/icons/General/IconUser.d.ts +3 -3
- package/lib/icons/General/IconUserThin.d.ts +3 -3
- package/lib/icons/General/IconVote.d.ts +3 -3
- package/lib/icons/General/IconWalk.d.ts +3 -3
- package/lib/icons/General/IconWarning.d.ts +3 -3
- package/lib/icons/General/IconWarningBell.d.ts +3 -3
- package/lib/icons/General/IconWork.d.ts +3 -3
- package/lib/icons/General/IconWorkFilled.d.ts +3 -3
- package/lib/icons/General/IconZip.d.ts +3 -3
- package/lib/icons/Logos/IconAmericanExpress.d.ts +3 -3
- package/lib/icons/Logos/IconBankAxept.d.ts +3 -3
- package/lib/icons/Logos/IconMasterCard.d.ts +3 -3
- package/lib/icons/Logos/IconVisa.d.ts +3 -3
- package/lib/icons/withIcon.d.ts +27 -27
- package/lib/illustrations/Backgrounds/IllustrationHousesBackground.d.ts +3 -3
- package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationError.d.ts +3 -3
- package/lib/illustrations/General/IllustrationErrorGeneric.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHighHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHighHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouseMissing.d.ts +3 -3
- package/lib/illustrations/General/IllustrationLowHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationLowHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationPaperCompleted.d.ts +3 -3
- package/lib/illustrations/General/IllustrationPaperMissing.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSemiDetachedHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSmallHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSmallHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTerraceBlock.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTerraceBlockComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTownHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTownHouseComposition.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteBuilding.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteComputer.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteGift.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySitePapers.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySitePiggyBank.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteTransfer.d.ts +3 -3
- package/lib/illustrations/styles.d.ts +3 -3
- package/lib/illustrations/styles.js +2 -2
- package/lib/illustrations/withIllustration.d.ts +24 -24
- package/lib/index.d.ts +280 -279
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/layout/Footer/FooterButton/index.d.ts +15 -15
- package/lib/layout/Footer/FooterButton/styles.d.ts +16 -16
- package/lib/layout/Footer/FooterButton/styles.js +1 -1
- package/lib/layout/Footer/FooterCol/index.d.ts +5 -5
- package/lib/layout/Footer/FooterCol/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterCol/styles.js +1 -1
- package/lib/layout/Footer/FooterGroup/index.d.ts +5 -5
- package/lib/layout/Footer/FooterGroup/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterGroup/styles.js +1 -1
- package/lib/layout/Footer/FooterLabel/index.d.ts +5 -5
- package/lib/layout/Footer/FooterLabel/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterLabel/styles.js +1 -1
- package/lib/layout/Footer/FooterLink/index.d.ts +19 -19
- package/lib/layout/Footer/FooterLink/styles.d.ts +16 -16
- package/lib/layout/Footer/FooterLink/styles.js +1 -1
- package/lib/layout/Footer/index.d.ts +6 -6
- package/lib/layout/Footer/styles.d.ts +7 -7
- package/lib/layout/Footer/styles.js +2 -2
- package/lib/layout/Layout/index.d.ts +6 -6
- package/lib/layout/Layout/styles.d.ts +5 -5
- package/lib/layout/Layout/styles.js +1 -1
- package/lib/layout/LayoutShell/index.d.ts +15 -15
- package/lib/layout/LayoutShell/styles.d.ts +21 -21
- package/lib/layout/LayoutShell/styles.js +10 -10
- package/lib/layout/Menu/AppPicker/index.d.ts +19 -19
- package/lib/layout/Menu/AppPicker/styles.d.ts +7 -7
- package/lib/layout/Menu/AppPicker/styles.js +3 -3
- package/lib/layout/Menu/MainMenu/index.d.ts +7 -7
- package/lib/layout/Menu/MainMenu/styles.d.ts +2 -2
- package/lib/layout/Menu/MainMenu/styles.js +1 -1
- package/lib/layout/Menu/MenuItem/index.d.ts +17 -17
- package/lib/layout/Menu/MenuItem/styles.d.ts +3 -3
- package/lib/layout/Menu/MenuItem/styles.js +2 -2
- package/lib/layout/Menu/MenuSpacer/index.d.ts +3 -3
- package/lib/layout/Menu/MenuSpacer/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
- package/lib/layout/Menu/MenuTop/index.d.ts +11 -11
- package/lib/layout/Menu/MenuTop/styles.d.ts +21 -21
- package/lib/layout/Menu/MenuTop/styles.js +3 -3
- package/lib/layout/Menu/SecondaryMenu/index.d.ts +13 -13
- package/lib/layout/Menu/SecondaryMenu/styles.d.ts +11 -11
- package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/lib/layout/Menu/SecondaryMenuItem/index.d.ts +15 -15
- package/lib/layout/Menu/SecondaryMenuItem/styles.d.ts +1 -1
- package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/lib/layout/Menu/index.d.ts +9 -9
- package/lib/layout/Menu/styles.d.ts +2 -2
- package/lib/layout/Menu/styles.js +1 -1
- package/lib/layout/Submenu/SubmenuItem/index.d.ts +18 -18
- package/lib/layout/Submenu/SubmenuItem/styles.d.ts +4 -4
- package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/lib/layout/Submenu/SubmenuLightThemeBg/index.d.ts +7 -7
- package/lib/layout/Submenu/index.d.ts +16 -16
- package/lib/layout/Submenu/styles.d.ts +29 -29
- package/lib/layout/Submenu/styles.js +10 -10
- package/lib/layout/Topbar/index.d.ts +7 -7
- package/lib/layout/Topbar/styles.d.ts +2 -2
- package/lib/layout/Topbar/styles.js +1 -1
- package/lib/shared/recharts/CustomLegend/index.d.ts +3 -3
- package/lib/shared/recharts/CustomLegend/styles.d.ts +13 -13
- package/lib/shared/recharts/CustomLegend/styles.js +2 -2
- package/lib/shared/recharts/CustomTooltip/index.d.ts +8 -8
- package/lib/shared/recharts/CustomTooltip/styles.d.ts +15 -15
- package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
- package/lib/utils/accountNumber.d.ts +3 -3
- package/lib/utils/alpha.d.ts +2 -2
- package/lib/utils/array.d.ts +2 -2
- package/lib/utils/dates.d.ts +14 -14
- package/lib/utils/file.d.ts +2 -2
- package/lib/utils/format.d.ts +20 -20
- package/lib/utils/format.js +6 -6
- package/lib/utils/formatGraphPrice.d.ts +2 -2
- package/lib/utils/image.d.ts +2 -2
- package/lib/utils/pagination.d.ts +6 -6
- package/lib/utils/phone.d.ts +2 -2
- package/lib/utils/removeFocusOnMouseUp.d.ts +2 -2
- package/lib/utils/time.d.ts +25 -25
- package/lib/utils/time.js +14 -14
- package/lib/utils/url.d.ts +3 -3
- package/package.json +2 -1
- package/rollup.config.js +13 -13
- package/theme-generator.js +599 -599
@@ -1,69 +1,8 @@
|
|
1
|
-
export const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
export const richToolbar =
|
8
|
-
|
9
|
-
inline: {
|
10
|
-
options: ['bold', 'italic', 'underline']
|
11
|
-
},
|
12
|
-
textAlign: {
|
13
|
-
options: ['left', 'center', 'right', 'justify']
|
14
|
-
},
|
15
|
-
blockType: {
|
16
|
-
inDropdown: true,
|
17
|
-
options: ['Normal', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']
|
18
|
-
},
|
19
|
-
link: {
|
20
|
-
showOpenOptionOnHover: true,
|
21
|
-
defaultTargetOption: '_blank',
|
22
|
-
options: ['link', 'unlink']
|
23
|
-
}
|
24
|
-
};
|
25
|
-
export const htmlToEntity = (nodeName, node, createEntity) => {
|
26
|
-
if (nodeName === 'a') {
|
27
|
-
return createEntity('LINK', 'MUTABLE', {
|
28
|
-
url: node.href
|
29
|
-
});
|
30
|
-
}
|
31
|
-
};
|
32
|
-
export const getStrippedHtml = html => {
|
33
|
-
return html.replace(/<img[^>]*>/g, '');
|
34
|
-
};
|
35
|
-
export const editorLabels = {
|
36
|
-
// Generic
|
37
|
-
'generic.add': 'Legg til',
|
38
|
-
'generic.cancel': 'Avbryt',
|
39
|
-
// Inline
|
40
|
-
'components.controls.inline.bold': 'Fet',
|
41
|
-
'components.controls.inline.italic': 'Kursiv',
|
42
|
-
'components.controls.inline.underline': 'Understrek',
|
43
|
-
// List
|
44
|
-
'components.controls.list.unordered': 'Punktliste',
|
45
|
-
'components.controls.list.ordered': 'Nummerliste',
|
46
|
-
'components.controls.list.indent': 'Innrykk',
|
47
|
-
'components.controls.list.outdent': 'Utrykk',
|
48
|
-
// Text align
|
49
|
-
'components.controls.textAlign.left': 'Venstrejuster',
|
50
|
-
'components.controls.textAlign.center': 'Midtstill',
|
51
|
-
'components.controls.textAlign.right': 'Høyrejuster',
|
52
|
-
'components.controls.textAlign.justify': 'Blokkjuster',
|
53
|
-
// Block type
|
54
|
-
'components.controls.blocktype.normal': 'Avsnitt',
|
55
|
-
'components.controls.blocktype.h1': 'Overskrift 1',
|
56
|
-
'components.controls.blocktype.h2': 'Overskrift 2',
|
57
|
-
'components.controls.blocktype.h3': 'Overskrift 3',
|
58
|
-
'components.controls.blocktype.h4': 'Overskrift 4',
|
59
|
-
'components.controls.blocktype.h5': 'Overskrift 5',
|
60
|
-
'components.controls.blocktype.h6': 'Overskrift 6',
|
61
|
-
// Link
|
62
|
-
'components.controls.link.linkTitle': 'Tittel',
|
63
|
-
'components.controls.link.linkTarget': 'URL',
|
64
|
-
'components.controls.link.linkTargetOption': 'Åpne i ny fane',
|
65
|
-
'components.controls.link.link': 'Legg til lenke',
|
66
|
-
'components.controls.link.unlink': 'Fjern lenke',
|
67
|
-
// Remove
|
68
|
-
'components.controls.remove.remove': 'Fjern'
|
69
|
-
};
|
1
|
+
export const TINYMCE_API_KEY = 'v1hbb9qthd0z2fr0keceoglnwbzhyjqwsj4q7n193ovikt8s';
|
2
|
+
export const editorContentCss = `
|
3
|
+
body { font-family:Helvetica,Arial,sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}
|
4
|
+
`;
|
5
|
+
export const editorBlockFormats = 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;';
|
6
|
+
export const plugins = 'autolink lists link image code print preview media paste';
|
7
|
+
export const richToolbar = 'formatselect | ' + ' | bold italic underline' + ' | bullist numlist indent outdent' + ' | alignleft aligncenter alignright alignjustify' + ' | link unlink';
|
8
|
+
export const basicToolbar = 'bold italic underline | bullist numlist indent outdent';
|
package/esm/core/Editor/index.js
CHANGED
@@ -1,140 +1,87 @@
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
2
|
-
import
|
3
|
-
import { Editor as
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import '
|
7
|
-
import { CounterWrapper, ErrorWrapper, Label, RelativeDiv, styles } from './styles';
|
8
|
-
import { basicToolbar, editorLabels, getStrippedHtml, htmlToEntity, richToolbar } from './config';
|
9
|
-
import { convertToHTML, convertFromHTML } from 'draft-convert';
|
2
|
+
import { useState } from 'react';
|
3
|
+
import { Editor as TinyEditor } from '@tinymce/tinymce-react';
|
4
|
+
import { ErrorWrapper, Label, styles } from './styles';
|
5
|
+
import { basicToolbar, editorBlockFormats, editorContentCss, plugins, richToolbar, TINYMCE_API_KEY } from './config';
|
6
|
+
import Skeleton from '../Skeleton';
|
10
7
|
import Text from '../Text';
|
11
|
-
import { useTheme } from '@emotion/react';
|
12
8
|
import IconErrorOutline from '../../icons/General/IconErrorOutline';
|
13
|
-
import
|
14
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
9
|
+
import { useTheme } from '@emotion/react';
|
15
10
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
11
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
16
12
|
|
17
13
|
const Editor = ({
|
18
14
|
initialValue,
|
19
|
-
|
20
|
-
maxHeight,
|
21
|
-
maxlength,
|
22
|
-
maxlengthType = 'plaintext',
|
23
|
-
maxlengthText,
|
24
|
-
withCounter,
|
25
|
-
invalidMessage,
|
15
|
+
type = 'basic',
|
26
16
|
label,
|
17
|
+
height = 500,
|
18
|
+
maxHeight,
|
27
19
|
customToolbar,
|
28
|
-
|
20
|
+
invalidMessage,
|
21
|
+
allowImage,
|
29
22
|
onChange,
|
30
23
|
onBlur
|
31
24
|
}) => {
|
32
|
-
const
|
33
|
-
const [
|
34
|
-
const
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
setEditorState(state);
|
42
|
-
const plainText = state.getCurrentContent().getPlainText();
|
43
|
-
const html = draftToHtml(convertToRaw(state.getCurrentContent()));
|
44
|
-
onChange(plainText.length > 0 ? html : ''); // return empty if no content
|
45
|
-
|
46
|
-
if (withCounter && maxlength) {
|
47
|
-
setCharCount(maxlengthType === 'html' ? html.length : plainText.length);
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
|
-
const handleValidity = state => {
|
52
|
-
if (!maxlength) {
|
53
|
-
setMaxlengthError(null);
|
54
|
-
return;
|
55
|
-
}
|
56
|
-
|
57
|
-
const plaintext = state.getCurrentContent().getPlainText();
|
58
|
-
const html = convertToHTML(state.getCurrentContent());
|
59
|
-
|
60
|
-
if (maxlengthType === 'html' && html.length > maxlength) {
|
61
|
-
setMaxlengthError(maxlengthText ? maxlengthText : 'Text is too long');
|
62
|
-
return;
|
63
|
-
}
|
64
|
-
|
65
|
-
if (maxlengthType === 'plaintext' && plaintext.length > maxlength) {
|
66
|
-
setMaxlengthError(maxlengthText ? maxlengthText : 'Text is too long');
|
67
|
-
return;
|
68
|
-
}
|
69
|
-
|
70
|
-
setMaxlengthError(null);
|
71
|
-
};
|
72
|
-
|
73
|
-
const Counter = _jsx(CounterWrapper, {
|
74
|
-
children: _jsxs(Text, {
|
75
|
-
children: [charCount, "/", maxlength]
|
76
|
-
})
|
77
|
-
});
|
78
|
-
|
79
|
-
const handlePaste = (text, html, editorState, onChange) => {
|
80
|
-
if (!html) return false;
|
81
|
-
const strippedHtml = getStrippedHtml(html);
|
82
|
-
const blockMap = stateFromHTML(strippedHtml).blockMap;
|
83
|
-
const newState = Modifier.replaceWithFragment(editorState.getCurrentContent(), editorState.getSelection(), blockMap);
|
84
|
-
onChange(EditorState.push(editorState, newState, 'insert-fragment'));
|
85
|
-
return true;
|
86
|
-
};
|
87
|
-
|
88
|
-
const getToolbar = () => {
|
89
|
-
switch (type) {
|
90
|
-
case 'basic':
|
91
|
-
return basicToolbar;
|
92
|
-
|
93
|
-
case 'rich':
|
94
|
-
return richToolbar;
|
95
|
-
|
96
|
-
case 'custom':
|
97
|
-
return customToolbar;
|
98
|
-
|
99
|
-
default:
|
100
|
-
return undefined;
|
101
|
-
}
|
25
|
+
const [loaded, setLoaded] = useState(false);
|
26
|
+
const [value, setValue] = useState(initialValue || '');
|
27
|
+
const {
|
28
|
+
alert
|
29
|
+
} = useTheme();
|
30
|
+
|
31
|
+
const handleChange = html => {
|
32
|
+
setValue(html);
|
33
|
+
onChange(html, html.length);
|
102
34
|
};
|
103
35
|
|
36
|
+
const toolbar = type === 'basic' ? basicToolbar : type === 'rich' ? richToolbar : customToolbar;
|
104
37
|
return _jsxs("div", {
|
105
|
-
css: theme => [styles.default(theme
|
38
|
+
css: theme => [styles.default(theme), !loaded && styles.hideEditor],
|
106
39
|
children: [label && _jsx(Label, {
|
107
40
|
children: label
|
108
|
-
}),
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
41
|
+
}), _jsx("div", {
|
42
|
+
className: "editor-wrapper",
|
43
|
+
children: _jsx(TinyEditor, {
|
44
|
+
onBlur: onBlur,
|
45
|
+
onInit: () => setLoaded(true),
|
46
|
+
initialValue: initialValue,
|
47
|
+
apiKey: TINYMCE_API_KEY,
|
48
|
+
value: value,
|
49
|
+
onEditorChange: handleChange,
|
50
|
+
init: {
|
51
|
+
height,
|
52
|
+
min_height: 100,
|
53
|
+
max_height: maxHeight,
|
54
|
+
menubar: false,
|
55
|
+
branding: false,
|
56
|
+
elementpath: false,
|
57
|
+
plugins,
|
58
|
+
toolbar,
|
59
|
+
content_style: editorContentCss,
|
60
|
+
language: 'nb_NO',
|
61
|
+
block_formats: editorBlockFormats,
|
62
|
+
paste_data_images: allowImage,
|
63
|
+
paste_as_text: type === 'basic',
|
64
|
+
contextmenu: false,
|
65
|
+
invalid_elements: !allowImage ? 'img' : undefined,
|
66
|
+
default_link_target: '_blank',
|
67
|
+
link_assume_external_targets: 'https',
|
68
|
+
link_title: false,
|
69
|
+
target_list: false
|
70
|
+
}
|
71
|
+
})
|
72
|
+
}), !loaded && _jsx(Skeleton, {
|
73
|
+
height: `${height}px`,
|
74
|
+
width: "100%",
|
75
|
+
borderRadius: "3px",
|
76
|
+
rectangle: true
|
77
|
+
}), invalidMessage && _jsx(ErrorWrapper, {
|
78
|
+
children: invalidMessage && _jsxs(Text, {
|
79
|
+
color: alert,
|
133
80
|
children: [_jsx(IconErrorOutline, {
|
134
81
|
size: "16px",
|
135
|
-
color:
|
136
|
-
}),
|
137
|
-
})
|
82
|
+
color: alert
|
83
|
+
}), " ", invalidMessage]
|
84
|
+
})
|
138
85
|
})]
|
139
86
|
});
|
140
87
|
};
|
@@ -4,27 +4,21 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
4
4
|
|
5
5
|
import { css } from '@emotion/react';
|
6
6
|
export const styles = {
|
7
|
-
default:
|
8
|
-
|
7
|
+
default: theme => /*#__PURE__*/css("display:grid;grid-row-gap:4px;.tox-tinymce{border:1px solid ", theme.border, ";border-radius:3px;}.tox-toolbar__group{border-color:", theme.border, "!important;}.tox-toolbar__primary{background:none!important;border-bottom:1px solid ", theme.border, ";}.tox-statusbar{border-top:none!important;}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS29DIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXHJcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcclxuXHJcbmV4cG9ydCBjb25zdCBzdHlsZXMgPSB7XHJcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUpID0+IGNzc2BcclxuICAgIGRpc3BsYXk6IGdyaWQ7XHJcbiAgICBncmlkLXJvdy1nYXA6IDRweDtcclxuXHJcbiAgICAudG94LXRpbnlt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env.NODE_ENV === "production" ? {
|
9
|
+
name: "l41m35",
|
10
|
+
styles: ".editor-wrapper{display:none;}"
|
11
|
+
} : {
|
12
|
+
name: "c0y57c-hideEditor",
|
13
|
+
styles: ".editor-wrapper{display:none;};label:hideEditor;",
|
14
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0JpQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9FZGl0b3Ivc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xyXG5pbXBvcnQgeyBJQXBwVGhlbWUgfSBmcm9tICcuLi8uLi9hcHAtc2hlbGwvdGhlbWUnXHJcblxyXG5leHBvcnQgY29uc3Qgc3R5bGVzID0ge1xyXG4gIGRlZmF1bHQ6ICh0aGVtZTogSUFwcFRoZW1lKSA9PiBjc3NgXHJcbiAgICBkaXNwbGF5OiBncmlkO1xyXG4gICAgZ3JpZC1yb3ctZ2FwOiA0cHg7XHJcblxyXG4gICAgLnRveC10aW55bWNlIHtcclxuICAgICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5ib3JkZXJ9O1xyXG4gICAgICBib3JkZXItcmFkaXVzOiAzcHg7XHJcbiAgICB9XHJcbiAgICAudG94LXRvb2xiYXJfX2dyb3VwIHtcclxuICAgICAgYm9yZGVyLWNvbG9yOiAke3RoZW1lLmJvcmRlcn0gIWltcG9ydGFudDtcclxuICAgIH1cclxuICAgIC50b3gtdG9vbGJhcl9fcHJpbWFyeSB7XHJcbiAgICAgIGJhY2tncm91bmQ6IG5vbmUgIWltcG9ydGFudDtcclxuICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICR7dGhlbWUuYm9yZGVyfTtcclxuICAgIH1cclxuICAgIC50b3gtc3RhdHVzYmFyIHtcclxuICAgICAgYm9yZGVyLXRvcDogbm9uZSAhaW1wb3J0YW50O1xyXG4gICAgfVxyXG4gIGAsXHJcbiAgaGlkZUVkaXRvcjogY3NzYFxyXG4gICAgLmVkaXRvci13cmFwcGVyIHtcclxuICAgICAgZGlzcGxheTogbm9uZTtcclxuICAgIH1cclxuICBgLFxyXG59XHJcblxyXG5leHBvcnQgY29uc3QgTGFiZWwgPSBzdHlsZWQuc3BhbmBcclxuICBsaW5lLWhlaWdodDogMjJweDtcclxuICBmb250LXNpemU6IDFlbTtcclxuICBmb250LXdlaWdodDogNjAwO1xyXG4gIG1hcmdpbi1ib3R0b206IDRweDtcclxuYFxyXG5cclxuZXhwb3J0IGNvbnN0IEVycm9yV3JhcHBlciA9IHN0eWxlZC5kaXZgXHJcbiAgZGlzcGxheTogZ3JpZDtcclxuXHJcbiAgJiA+IHNwYW4ge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBnYXA6IDZweDtcclxuICAgIG1hcmdpbi1sZWZ0OiAycHg7XHJcbiAgfVxyXG5gXHJcbiJdfQ== */",
|
15
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
16
|
+
}
|
9
17
|
};
|
10
|
-
export const RelativeDiv = _styled("div", process.env.NODE_ENV === "production" ? {
|
11
|
-
target: "e1b0idrw3"
|
12
|
-
} : {
|
13
|
-
target: "e1b0idrw3",
|
14
|
-
label: "RelativeDiv"
|
15
|
-
})(process.env.NODE_ENV === "production" ? {
|
16
|
-
name: "bjn8wh",
|
17
|
-
styles: "position:relative"
|
18
|
-
} : {
|
19
|
-
name: "bjn8wh",
|
20
|
-
styles: "position:relative",
|
21
|
-
map: "/*# sour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4gICAgLnRvb2xiYXItd3JhcHBlciB7XG4gICAgICAvLyBUaGUgdG9vbGJhclxuICAgICAgcGFkZGluZzogMDtcbiAgICAgIG1hcmdpbjogMDtcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkICR7dGhlbWUuYm9yZGVyfTtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDNweCAzcHggMCAwO1xuICAgICAgYm9yZGVyLWJvdHRvbTogdW5zZXQ7XG5cbiAgICAgIC8vIFRvb2xiYXIgc2VjdGlvbnNcbiAgICAgICYgPiBkaXYge1xuICAgICAgICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCAke3RoZW1lLmJvcmRlcn07XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgcGFkZGluZzogMC4xZW07XG4gICAgICB9XG5cbiAgICAgIC8vIE92ZXJza3JpZnQgdmVsZ2VyXG4gICAgICAucmR3LWJsb2NrLWRyb3Bkb3duIHtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcblxuICAgICAgICAmOmFjdGl2ZSxcbiAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmdyYXkyMH07XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLy8gVG9vbGJhciBvcHRpb25zXG4gICAgICAucmR3LW9wdGlvbi13cmFwcGVyIHtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4O1xuICAgICAgICBtYXJnaW46IDA7XG5cbiAgICAgICAgJjphY3RpdmUsXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJveC1zaGFkb3c6IG5vbmU7XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5ncmF5MjB9O1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5yZHctb3B0aW9uLWFjdGl2ZSB7XG4gICAgICAgIGJveC1zaGFkb3c6IHVuc2V0O1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmdyYXkxMH07XG5cbiAgICAgICAgJjphY3RpdmUsXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuZ3JheTEwfTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAvLyBMaW5rIG1vZGFsXG4gICAgICAucmR3LWxpbmstbW9kYWwge1xuICAgICAgICBoZWlnaHQ6IHVuc2V0O1xuXG4gICAgICAgIGlucHV0IHtcbiAgICAgICAgICBib3JkZXItY29sb3I6ICR7dGhlbWUuYm9yZGVyfTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBSZW1vdmUgb3BlbiBuZXcgdGFiIG9wdGlvblxuICAgICAgICAucmR3LWxpbmstbW9kYWwtdGFyZ2V0LW9wdGlvbiB7XG4gICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFN0eWxlIGFkZCBidXR0b25cbiAgICAgICAgLnJkdy1saW5rLW1vZGFsLWJ0biB7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMTZweDtcbiAgICAgICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuYnRuRGVmYXVsdH07XG4gICAgICAgICAgY29sb3I6ICR7dGhlbWUuYnRuRGVmYXVsdEZvbnRDb2xvcn07XG5cbiAgICAgICAgICAmOmRpc2FibGVkIHtcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuZGlzYWJsZWR9O1xuICAgICAgICAgICAgY29sb3I6IGJsYWNrO1xuICAgICAgICAgIH1cblxuICAgICAgICAgICY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pemU6IDFlbTtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgbWFyZ2luLWJvdHRvbTogNHB4O1xuYFxuXG5leHBvcnQgY29uc3QgRXJyb3JXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgZGlzcGxheTogZ3JpZDtcblxuICAmID4gc3BhbiB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGdhcDogNnB4O1xuICAgIG1hcmdpbi1sZWZ0OiAycHg7XG4gIH1cbmBcblxuZXhwb3J0IGNvbnN0IENvdW50ZXJXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICByaWdodDogMXB4O1xuICBib3R0b206IC0yMHB4O1xuYFxuIl19 */",
|
22
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
23
|
-
});
|
24
18
|
export const Label = _styled("span", process.env.NODE_ENV === "production" ? {
|
25
|
-
target: "
|
19
|
+
target: "e1b0idrw1"
|
26
20
|
} : {
|
27
|
-
target: "
|
21
|
+
target: "e1b0idrw1",
|
28
22
|
label: "Label"
|
29
23
|
})(process.env.NODE_ENV === "production" ? {
|
30
24
|
name: "1ge8ozm",
|
@@ -32,13 +26,13 @@ export const Label = _styled("span", process.env.NODE_ENV === "production" ? {
|
|
32
26
|
} : {
|
33
27
|
name: "1ge8ozm",
|
34
28
|
styles: "line-height:22px;font-size:1em;font-weight:600;margin-bottom:4px",
|
35
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
29
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0JnQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9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bmBcclxuICBsaW5lLWhlaWdodDogMjJweDtcclxuICBmb250LXNpemU6IDFlbTtcclxuICBmb250LXdlaWdodDogNjAwO1xyXG4gIG1hcmdpbi1ib3R0b206IDRweDtcclxuYFxyXG5cclxuZXhwb3J0IGNvbnN0IEVycm9yV3JhcHBlciA9IHN0eWxlZC5kaXZgXHJcbiAgZGlzcGxheTogZ3JpZDtcclxuXHJcbiAgJiA+IHNwYW4ge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBnYXA6IDZweDtcclxuICAgIG1hcmdpbi1sZWZ0OiAycHg7XHJcbiAgfVxyXG5gXHJcbiJdfQ== */",
|
36
30
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
37
31
|
});
|
38
32
|
export const ErrorWrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
39
|
-
target: "
|
33
|
+
target: "e1b0idrw0"
|
40
34
|
} : {
|
41
|
-
target: "
|
35
|
+
target: "e1b0idrw0",
|
42
36
|
label: "ErrorWrapper"
|
43
37
|
})(process.env.NODE_ENV === "production" ? {
|
44
38
|
name: "p12i1l",
|
@@ -46,20 +40,6 @@ export const ErrorWrapper = _styled("div", process.env.NODE_ENV === "production"
|
|
46
40
|
} : {
|
47
41
|
name: "p12i1l",
|
48
42
|
styles: "display:grid;&>span{display:flex;align-items:center;gap:6px;margin-left:2px;}",
|
49
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
50
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
51
|
-
});
|
52
|
-
export const CounterWrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
53
|
-
target: "e1b0idrw0"
|
54
|
-
} : {
|
55
|
-
target: "e1b0idrw0",
|
56
|
-
label: "CounterWrapper"
|
57
|
-
})(process.env.NODE_ENV === "production" ? {
|
58
|
-
name: "13qbf77",
|
59
|
-
styles: "position:absolute;right:1px;bottom:-20px"
|
60
|
-
} : {
|
61
|
-
name: "13qbf77",
|
62
|
-
styles: "position:absolute;right:1px;bottom:-20px",
|
63
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0t3QyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9FZGl0b3Ivc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcblxuZXhwb3J0IGNvbnN0IHN0eWxlcyA9IHtcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUsIGhlaWdodDogbnVtYmVyKSA9PiBjc3NgXG4gICAgZGlzcGxheTogZ3JpZDtcbiAgICBncmlkLXJvdy1nYXA6IDRweDtcblxuICAgIC5jb250ZW50LXdyYXBwZXIge1xuICAgICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5ib3JkZXJ9O1xuICAgICAgYm9yZGVyLXJhZGl1czogMCAwIDNweCAzcHg7XG4gICAgICBwYWRkaW5nOiAxZW07XG4gICAgICBwYWRkaW5nLWJvdHRvbTogMDtcbiAgICAgIGN1cnNvcjogdGV4dDtcbiAgICAgIHJlc2l6ZTogdmVydGljYWw7XG4gICAgICBvdmVyZmxvdzogYXV0bztcbiAgICAgIGhlaWdodDogJHtoZWlnaHR9cHg7XG5cbiAgICAgID4gZGl2IHtcbiAgICAgICAgaGVpZ2h0OiA5MCU7XG4gICAgICB9XG5cbiAgICAgIC5wdWJsaWMtRHJhZnRTdHlsZURlZmF1bHQtYmxvY2sge1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgICB9XG4gICAgfVxuXG4gICAgLnRvb2xiYXItd3JhcHBlciB7XG4gICAgICAvLyBUaGUgdG9vbGJhclxuICAgICAgcGFkZGluZzogMDtcbiAgICAgIG1hcmdpbjogMDtcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkICR7dGhlbWUuYm9yZGVyfTtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDNweCAzcHggMCAwO1xuICAgICAgYm9yZGVyLWJvdHRvbTogdW5zZXQ7XG5cbiAgICAgIC8vIFRvb2xiYXIgc2VjdGlvbnNcbiAgICAgICYgPiBkaXYge1xuICAgICAgICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCAke3RoZW1lLmJvcmRlcn07XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgcGFkZGluZzogMC4xZW07XG4gICAgICB9XG5cbiAgICAgIC8vIE92ZXJza3JpZnQgdmVsZ2VyXG4gICAgICAucmR3LWJsb2NrLWRyb3Bkb3duIHtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcblxuICAgICAgICAmOmFjdGl2ZSxcbiAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgYm94LXNoYWRvdzogbm9uZTtcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmdyYXkyMH07XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLy8gVG9vbGJhciBvcHRpb25zXG4gICAgICAucmR3LW9wdGlvbi13cmFwcGVyIHtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4O1xuICAgICAgICBtYXJnaW46IDA7XG5cbiAgICAgICAgJjphY3RpdmUsXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJveC1zaGFkb3c6IG5vbmU7XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5ncmF5MjB9O1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC5yZHctb3B0aW9uLWFjdGl2ZSB7XG4gICAgICAgIGJveC1zaGFkb3c6IHVuc2V0O1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmdyYXkxMH07XG5cbiAgICAgICAgJjphY3RpdmUsXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuZ3JheTEwfTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAvLyBMaW5rIG1vZGFsXG4gICAgICAucmR3LWxpbmstbW9kYWwge1xuICAgICAgICBoZWlnaHQ6IHVuc2V0O1xuXG4gICAgICAgIGlucHV0IHtcbiAgICAgICAgICBib3JkZXItY29sb3I6ICR7dGhlbWUuYm9yZGVyfTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBSZW1vdmUgb3BlbiBuZXcgdGFiIG9wdGlvblxuICAgICAgICAucmR3LWxpbmstbW9kYWwtdGFyZ2V0LW9wdGlvbiB7XG4gICAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFN0eWxlIGFkZCBidXR0b25cbiAgICAgICAgLnJkdy1saW5rLW1vZGFsLWJ0biB7XG4gICAgICAgICAgYm9yZGVyLXJhZGl1czogMTZweDtcbiAgICAgICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuYnRuRGVmYXVsdH07XG4gICAgICAgICAgY29sb3I6ICR7dGhlbWUuYnRuRGVmYXVsdEZvbnRDb2xvcn07XG5cbiAgICAgICAgICAmOmRpc2FibGVkIHtcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuZGlzYWJsZWR9O1xuICAgICAgICAgICAgY29sb3I6IGJsYWNrO1xuICAgICAgICAgIH1cblxuICAgICAgICAgICY6YWN0aXZlLFxuICAgICAgICAgICY6aG92ZXIsXG4gICAgICAgICAgJjpmb2N1cyB7XG4gICAgICAgICAgICBib3gtc2hhZG93OiBub25lO1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5idG5EZWZhdWx0RGFya2VyfTtcbiAgICAgICAgICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5idG5EZWZhdWx0RGFya2VyfTtcbiAgICAgICAgICAgIGNvbG9yOiAke3RoZW1lLmJ0bkhvdmVyVGV4dENvbG9yfTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAvLyBSZW1vdmUgY2FuY2VsIGJ1dHRvblxuICAgICAgICAgICY6bGFzdC1vZi10eXBlIHtcbiAgICAgICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgLkRyYWZ0RWRpdG9yLWVkaXRvckNvbnRhaW5lciB7XG4gICAgICBwIHtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgfVxuXG4gICAgICBoMSxcbiAgICAgIGgyLFxuICAgICAgaDMsXG4gICAgICBoNCxcbiAgICAgIGg1IHtcbiAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgICAgIH1cbiAgICB9XG4gIGAsXG4gIG1heEhlaWdodDogKGhlaWdodDogbnVtYmVyKSA9PiBjc3NgXG4gICAgLmNvbnRlbnQtd3JhcHBlciB7XG4gICAgICBtYXgtaGVpZ2h0OiAke2hlaWdodH1weDtcbiAgICB9XG4gIGAsXG59XG5cbmV4cG9ydCBjb25zdCBSZWxhdGl2ZURpdiA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbmBcblxuZXhwb3J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mdpbi1sZWZ0OiAycHg7XHJcbiAgfVxyXG5gXHJcbiJdfQ== */",
|
64
44
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
65
45
|
});
|
@@ -0,0 +1,69 @@
|
|
1
|
+
export const basicToolbar = {
|
2
|
+
options: ['inline', 'list'],
|
3
|
+
inline: {
|
4
|
+
options: ['bold', 'italic', 'underline']
|
5
|
+
}
|
6
|
+
};
|
7
|
+
export const richToolbar = {
|
8
|
+
options: ['blockType', 'inline', 'list', 'textAlign', 'link'],
|
9
|
+
inline: {
|
10
|
+
options: ['bold', 'italic', 'underline']
|
11
|
+
},
|
12
|
+
textAlign: {
|
13
|
+
options: ['left', 'center', 'right', 'justify']
|
14
|
+
},
|
15
|
+
blockType: {
|
16
|
+
inDropdown: true,
|
17
|
+
options: ['Normal', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']
|
18
|
+
},
|
19
|
+
link: {
|
20
|
+
showOpenOptionOnHover: true,
|
21
|
+
defaultTargetOption: '_blank',
|
22
|
+
options: ['link', 'unlink']
|
23
|
+
}
|
24
|
+
};
|
25
|
+
export const htmlToEntity = (nodeName, node, createEntity) => {
|
26
|
+
if (nodeName === 'a') {
|
27
|
+
return createEntity('LINK', 'MUTABLE', {
|
28
|
+
url: node.href
|
29
|
+
});
|
30
|
+
}
|
31
|
+
};
|
32
|
+
export const getStrippedHtml = html => {
|
33
|
+
return html.replace(/<img[^>]*>/g, '');
|
34
|
+
};
|
35
|
+
export const editorLabels = {
|
36
|
+
// Generic
|
37
|
+
'generic.add': 'Legg til',
|
38
|
+
'generic.cancel': 'Avbryt',
|
39
|
+
// Inline
|
40
|
+
'components.controls.inline.bold': 'Fet',
|
41
|
+
'components.controls.inline.italic': 'Kursiv',
|
42
|
+
'components.controls.inline.underline': 'Understrek',
|
43
|
+
// List
|
44
|
+
'components.controls.list.unordered': 'Punktliste',
|
45
|
+
'components.controls.list.ordered': 'Nummerliste',
|
46
|
+
'components.controls.list.indent': 'Innrykk',
|
47
|
+
'components.controls.list.outdent': 'Utrykk',
|
48
|
+
// Text align
|
49
|
+
'components.controls.textAlign.left': 'Venstrejuster',
|
50
|
+
'components.controls.textAlign.center': 'Midtstill',
|
51
|
+
'components.controls.textAlign.right': 'Høyrejuster',
|
52
|
+
'components.controls.textAlign.justify': 'Blokkjuster',
|
53
|
+
// Block type
|
54
|
+
'components.controls.blocktype.normal': 'Avsnitt',
|
55
|
+
'components.controls.blocktype.h1': 'Overskrift 1',
|
56
|
+
'components.controls.blocktype.h2': 'Overskrift 2',
|
57
|
+
'components.controls.blocktype.h3': 'Overskrift 3',
|
58
|
+
'components.controls.blocktype.h4': 'Overskrift 4',
|
59
|
+
'components.controls.blocktype.h5': 'Overskrift 5',
|
60
|
+
'components.controls.blocktype.h6': 'Overskrift 6',
|
61
|
+
// Link
|
62
|
+
'components.controls.link.linkTitle': 'Tittel',
|
63
|
+
'components.controls.link.linkTarget': 'URL',
|
64
|
+
'components.controls.link.linkTargetOption': 'Åpne i ny fane',
|
65
|
+
'components.controls.link.link': 'Legg til lenke',
|
66
|
+
'components.controls.link.unlink': 'Fjern lenke',
|
67
|
+
// Remove
|
68
|
+
'components.controls.remove.remove': 'Fjern'
|
69
|
+
};
|