@stack-spot/portal-components 0.0.18 → 1.0.0-dev.1770393008395
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/CHANGELOG.md +670 -0
- package/dist/components/AnimatedHeight.d.ts +58 -0
- package/dist/components/AnimatedHeight.d.ts.map +1 -0
- package/dist/components/AnimatedHeight.js +105 -0
- package/dist/components/AnimatedHeight.js.map +1 -0
- package/dist/components/AsyncContent.d.ts +46 -0
- package/dist/components/AsyncContent.d.ts.map +1 -0
- package/dist/components/AsyncContent.js +34 -0
- package/dist/components/AsyncContent.js.map +1 -0
- package/dist/components/BannerWarning.d.ts +11 -2
- package/dist/components/BannerWarning.d.ts.map +1 -1
- package/dist/components/BannerWarning.js +45 -3
- package/dist/components/BannerWarning.js.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts +7 -9
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +7 -6
- package/dist/components/Breadcrumb/index.js.map +1 -1
- package/dist/components/Breadcrumb/styled.d.ts +1 -2
- package/dist/components/Breadcrumb/styled.d.ts.map +1 -1
- package/dist/components/Breadcrumb/styled.js +1 -0
- package/dist/components/Breadcrumb/styled.js.map +1 -1
- package/dist/components/ButtonLoading.d.ts +11 -0
- package/dist/components/ButtonLoading.d.ts.map +1 -0
- package/dist/components/ButtonLoading.js +5 -0
- package/dist/components/ButtonLoading.js.map +1 -0
- package/dist/components/ChatBot.d.ts +5 -0
- package/dist/components/ChatBot.d.ts.map +1 -1
- package/dist/components/ChatBot.js +11 -6
- package/dist/components/ChatBot.js.map +1 -1
- package/dist/components/ContentValidateFilter.d.ts +6 -0
- package/dist/components/ContentValidateFilter.d.ts.map +1 -0
- package/dist/components/ContentValidateFilter.js +8 -0
- package/dist/components/ContentValidateFilter.js.map +1 -0
- package/dist/components/FadingOverflow.d.ts +37 -0
- package/dist/components/FadingOverflow.d.ts.map +1 -0
- package/dist/components/FadingOverflow.js +228 -0
- package/dist/components/FadingOverflow.js.map +1 -0
- package/dist/components/FileTreeView/More.d.ts +23 -0
- package/dist/components/FileTreeView/More.d.ts.map +1 -0
- package/dist/components/FileTreeView/More.js +55 -0
- package/dist/components/FileTreeView/More.js.map +1 -0
- package/dist/components/FileTreeView/index.d.ts +32 -0
- package/dist/components/FileTreeView/index.d.ts.map +1 -0
- package/dist/components/FileTreeView/index.js +91 -0
- package/dist/components/FileTreeView/index.js.map +1 -0
- package/dist/components/InfiniteScroll.d.ts +11 -0
- package/dist/components/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/InfiniteScroll.js +14 -0
- package/dist/components/InfiniteScroll.js.map +1 -0
- package/dist/components/InfoMaintenanceBanner.d.ts +8 -0
- package/dist/components/InfoMaintenanceBanner.d.ts.map +1 -0
- package/dist/components/InfoMaintenanceBanner.js +19 -0
- package/dist/components/InfoMaintenanceBanner.js.map +1 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.d.ts +11 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.js +77 -0
- package/dist/components/LazyMarkdown/BlockquoteMd.js.map +1 -0
- package/dist/components/LazyMarkdown/CodeViewer.d.ts +24 -0
- package/dist/components/LazyMarkdown/CodeViewer.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/CodeViewer.js +122 -0
- package/dist/components/LazyMarkdown/CodeViewer.js.map +1 -0
- package/dist/components/LazyMarkdown/Markdown.d.ts +19 -0
- package/dist/components/LazyMarkdown/Markdown.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/Markdown.js +96 -0
- package/dist/components/LazyMarkdown/Markdown.js.map +1 -0
- package/dist/components/LazyMarkdown/MarkdownButton.d.ts +19 -0
- package/dist/components/LazyMarkdown/MarkdownButton.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/MarkdownButton.js +9 -0
- package/dist/components/LazyMarkdown/MarkdownButton.js.map +1 -0
- package/dist/components/LazyMarkdown/Video.d.ts +11 -0
- package/dist/components/LazyMarkdown/Video.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/Video.js +10 -0
- package/dist/components/LazyMarkdown/Video.js.map +1 -0
- package/dist/components/LazyMarkdown/index.d.ts +10 -0
- package/dist/components/LazyMarkdown/index.d.ts.map +1 -0
- package/dist/components/LazyMarkdown/index.js +8 -0
- package/dist/components/LazyMarkdown/index.js.map +1 -0
- package/dist/components/Placeholder.d.ts +28 -0
- package/dist/components/Placeholder.d.ts.map +1 -0
- package/dist/components/Placeholder.js +32 -0
- package/dist/components/Placeholder.js.map +1 -0
- package/dist/components/ScrollView.d.ts +31 -0
- package/dist/components/ScrollView.d.ts.map +1 -0
- package/dist/components/ScrollView.js +30 -0
- package/dist/components/ScrollView.js.map +1 -0
- package/dist/components/Select/BadgeItem.d.ts +4 -0
- package/dist/components/Select/BadgeItem.d.ts.map +1 -0
- package/dist/components/Select/BadgeItem.js +28 -0
- package/dist/components/Select/BadgeItem.js.map +1 -0
- package/dist/components/Select/ClearInput.d.ts +3 -0
- package/dist/components/Select/ClearInput.d.ts.map +1 -0
- package/dist/components/Select/ClearInput.js +18 -0
- package/dist/components/Select/ClearInput.js.map +1 -0
- package/dist/components/Select/CloseItem.d.ts +3 -0
- package/dist/components/Select/CloseItem.d.ts.map +1 -0
- package/dist/components/Select/CloseItem.js +26 -0
- package/dist/components/Select/CloseItem.js.map +1 -0
- package/dist/components/Select/CreatableSelect.d.ts +16 -0
- package/dist/components/Select/CreatableSelect.d.ts.map +1 -0
- package/dist/components/Select/CreatableSelect.js +114 -0
- package/dist/components/Select/CreatableSelect.js.map +1 -0
- package/dist/components/Select/CustomMenu.d.ts +8 -0
- package/dist/components/Select/CustomMenu.d.ts.map +1 -0
- package/dist/components/Select/CustomMenu.js +4 -0
- package/dist/components/Select/CustomMenu.js.map +1 -0
- package/dist/components/Select/LabelItem.d.ts +3 -0
- package/dist/components/Select/LabelItem.d.ts.map +1 -0
- package/dist/components/Select/LabelItem.js +4 -0
- package/dist/components/Select/LabelItem.js.map +1 -0
- package/dist/components/Select/MultiValue.d.ts +3 -0
- package/dist/components/Select/MultiValue.d.ts.map +1 -0
- package/dist/components/Select/MultiValue.js +27 -0
- package/dist/components/Select/MultiValue.js.map +1 -0
- package/dist/components/Select/SelectInfiniteScroll.d.ts +14 -0
- package/dist/components/Select/SelectInfiniteScroll.d.ts.map +1 -0
- package/dist/components/Select/SelectInfiniteScroll.js +31 -0
- package/dist/components/Select/SelectInfiniteScroll.js.map +1 -0
- package/dist/components/Select/SelectSearch.d.ts +11 -0
- package/dist/components/Select/SelectSearch.d.ts.map +1 -0
- package/dist/components/Select/SelectSearch.js +156 -0
- package/dist/components/Select/SelectSearch.js.map +1 -0
- package/dist/components/Select/index.d.ts +6 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Select/types.d.ts +7 -0
- package/dist/components/Select/types.d.ts.map +1 -0
- package/dist/components/Select/types.js +2 -0
- package/dist/components/Select/types.js.map +1 -0
- package/dist/components/SelectionList.d.ts +151 -0
- package/dist/components/SelectionList.d.ts.map +1 -0
- package/dist/components/SelectionList.js +180 -0
- package/dist/components/SelectionList.js.map +1 -0
- package/dist/components/StatusCircle.d.ts +24 -0
- package/dist/components/StatusCircle.d.ts.map +1 -0
- package/dist/components/StatusCircle.js +44 -0
- package/dist/components/StatusCircle.js.map +1 -0
- package/dist/components/Stepper/Navigation.d.ts +35 -0
- package/dist/components/Stepper/Navigation.d.ts.map +1 -0
- package/dist/components/Stepper/Navigation.js +41 -0
- package/dist/components/Stepper/Navigation.js.map +1 -0
- package/dist/components/Stepper/Step.d.ts +18 -0
- package/dist/components/Stepper/Step.d.ts.map +1 -0
- package/dist/components/Stepper/Step.js +13 -0
- package/dist/components/Stepper/Step.js.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +45 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.js +57 -0
- package/dist/components/Stepper/Stepper.js.map +1 -0
- package/dist/components/Stepper/headers.d.ts +19 -0
- package/dist/components/Stepper/headers.d.ts.map +1 -0
- package/dist/components/Stepper/headers.js +40 -0
- package/dist/components/Stepper/headers.js.map +1 -0
- package/dist/components/Stepper/index.d.ts +4 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Stepper/index.js +4 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/Table/HeaderItem.d.ts +18 -0
- package/dist/components/Table/HeaderItem.d.ts.map +1 -0
- package/dist/components/Table/HeaderItem.js +14 -0
- package/dist/components/Table/HeaderItem.js.map +1 -0
- package/dist/components/Table/SettingsVerticalMenu.d.ts +14 -0
- package/dist/components/Table/SettingsVerticalMenu.d.ts.map +1 -0
- package/dist/components/Table/SettingsVerticalMenu.js +14 -0
- package/dist/components/Table/SettingsVerticalMenu.js.map +1 -0
- package/dist/components/Table/StyledLinkTable.d.ts +5 -0
- package/dist/components/Table/StyledLinkTable.d.ts.map +1 -0
- package/dist/components/Table/StyledLinkTable.js +13 -0
- package/dist/components/Table/StyledLinkTable.js.map +1 -0
- package/dist/components/Table/TableData.d.ts +37 -0
- package/dist/components/Table/TableData.d.ts.map +1 -0
- package/dist/components/Table/TableData.js +84 -0
- package/dist/components/Table/TableData.js.map +1 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +3 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/TimelineSection.d.ts +24 -0
- package/dist/components/TimelineSection.d.ts.map +1 -0
- package/dist/components/TimelineSection.js +37 -0
- package/dist/components/TimelineSection.js.map +1 -0
- package/dist/components/error/ErrorFeedback.d.ts +58 -0
- package/dist/components/error/ErrorFeedback.d.ts.map +1 -0
- package/dist/components/error/ErrorFeedback.js +110 -0
- package/dist/components/error/ErrorFeedback.js.map +1 -0
- package/dist/components/error/NotFound.d.ts +4 -0
- package/dist/components/error/NotFound.d.ts.map +1 -0
- package/dist/components/error/NotFound.js +19 -0
- package/dist/components/error/NotFound.js.map +1 -0
- package/dist/components/error/UnderMaintenance.d.ts +4 -0
- package/dist/components/error/UnderMaintenance.d.ts.map +1 -0
- package/dist/components/error/UnderMaintenance.js +25 -0
- package/dist/components/error/UnderMaintenance.js.map +1 -0
- package/dist/components/error/index.d.ts +4 -0
- package/dist/components/error/index.d.ts.map +1 -0
- package/dist/components/error/index.js +4 -0
- package/dist/components/error/index.js.map +1 -0
- package/dist/components/form/Form/Form.d.ts +15 -0
- package/dist/components/form/Form/Form.d.ts.map +1 -0
- package/dist/components/form/Form/Form.js +48 -0
- package/dist/components/form/Form/Form.js.map +1 -0
- package/dist/components/form/Form/FormGroup.d.ts +37 -0
- package/dist/components/form/Form/FormGroup.d.ts.map +1 -0
- package/dist/components/form/Form/FormGroup.js +72 -0
- package/dist/components/form/Form/FormGroup.js.map +1 -0
- package/dist/components/form/Form/index.d.ts +3 -0
- package/dist/components/form/Form/index.d.ts.map +1 -0
- package/dist/components/form/Form/index.js +3 -0
- package/dist/components/form/Form/index.js.map +1 -0
- package/dist/components/form/SearchInput.d.ts +9 -0
- package/dist/components/form/SearchInput.d.ts.map +1 -0
- package/dist/components/form/SearchInput.js +27 -0
- package/dist/components/form/SearchInput.js.map +1 -0
- package/dist/components/form/Select/CustomSelect.d.ts +81 -0
- package/dist/components/form/Select/CustomSelect.d.ts.map +1 -0
- package/dist/components/form/Select/CustomSelect.js +178 -0
- package/dist/components/form/Select/CustomSelect.js.map +1 -0
- package/dist/components/form/Select/DetailedSelect.d.ts +65 -0
- package/dist/components/form/Select/DetailedSelect.d.ts.map +1 -0
- package/dist/components/form/Select/DetailedSelect.js +80 -0
- package/dist/components/form/Select/DetailedSelect.js.map +1 -0
- package/dist/components/form/Select/Select.d.ts +47 -0
- package/dist/components/form/Select/Select.d.ts.map +1 -0
- package/dist/components/form/Select/Select.js +62 -0
- package/dist/components/form/Select/Select.js.map +1 -0
- package/dist/components/form/Select/index.d.ts +5 -0
- package/dist/components/form/Select/index.d.ts.map +1 -0
- package/dist/components/form/Select/index.js +5 -0
- package/dist/components/form/Select/index.js.map +1 -0
- package/dist/components/form/Select/styled.d.ts +5 -0
- package/dist/components/form/Select/styled.d.ts.map +1 -0
- package/dist/components/form/Select/styled.js +165 -0
- package/dist/components/form/Select/styled.js.map +1 -0
- package/dist/components/form/Select/types.d.ts +103 -0
- package/dist/components/form/Select/types.d.ts.map +1 -0
- package/dist/components/form/Select/types.js +2 -0
- package/dist/components/form/Select/types.js.map +1 -0
- package/dist/components/form/Select/utils.d.ts +3 -0
- package/dist/components/form/Select/utils.d.ts.map +1 -0
- package/dist/components/form/Select/utils.js +20 -0
- package/dist/components/form/Select/utils.js.map +1 -0
- package/dist/components/notification/NotificationComponent.d.ts +31 -0
- package/dist/components/notification/NotificationComponent.d.ts.map +1 -0
- package/dist/components/notification/NotificationComponent.js +176 -0
- package/dist/components/notification/NotificationComponent.js.map +1 -0
- package/dist/components/notification/NotificationItem.d.ts +51 -0
- package/dist/components/notification/NotificationItem.d.ts.map +1 -0
- package/dist/components/notification/NotificationItem.js +165 -0
- package/dist/components/notification/NotificationItem.js.map +1 -0
- package/dist/components/notification/NotificationList.d.ts +47 -0
- package/dist/components/notification/NotificationList.d.ts.map +1 -0
- package/dist/components/notification/NotificationList.js +102 -0
- package/dist/components/notification/NotificationList.js.map +1 -0
- package/dist/components/notification/types.d.ts +60 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/notification/types.js +7 -0
- package/dist/components/notification/types.js.map +1 -0
- package/dist/containers/NotificationsPage.d.ts +2 -0
- package/dist/containers/NotificationsPage.d.ts.map +1 -0
- package/dist/containers/NotificationsPage.js +72 -0
- package/dist/containers/NotificationsPage.js.map +1 -0
- package/dist/context/anchor.d.ts +27 -0
- package/dist/context/anchor.d.ts.map +1 -0
- package/dist/context/anchor.js +23 -0
- package/dist/context/anchor.js.map +1 -0
- package/dist/context/loading.d.ts +27 -0
- package/dist/context/loading.d.ts.map +1 -0
- package/dist/context/loading.js +24 -0
- package/dist/context/loading.js.map +1 -0
- package/dist/context/notification/LazyNotificationList.d.ts +28 -0
- package/dist/context/notification/LazyNotificationList.d.ts.map +1 -0
- package/dist/context/notification/LazyNotificationList.js +136 -0
- package/dist/context/notification/LazyNotificationList.js.map +1 -0
- package/dist/context/notification/NotificationController.d.ts +25 -0
- package/dist/context/notification/NotificationController.d.ts.map +1 -0
- package/dist/context/notification/NotificationController.js +153 -0
- package/dist/context/notification/NotificationController.js.map +1 -0
- package/dist/context/notification/context.d.ts +8 -0
- package/dist/context/notification/context.d.ts.map +1 -0
- package/dist/context/notification/context.js +12 -0
- package/dist/context/notification/context.js.map +1 -0
- package/dist/context/notification/hooks.d.ts +18 -0
- package/dist/context/notification/hooks.d.ts.map +1 -0
- package/dist/context/notification/hooks.js +104 -0
- package/dist/context/notification/hooks.js.map +1 -0
- package/dist/context/notification/types.d.ts +65 -0
- package/dist/context/notification/types.d.ts.map +1 -0
- package/dist/context/notification/types.js +2 -0
- package/dist/context/notification/types.js.map +1 -0
- package/dist/hooks/date.d.ts +18 -0
- package/dist/hooks/date.d.ts.map +1 -0
- package/dist/hooks/date.js +68 -0
- package/dist/hooks/date.js.map +1 -0
- package/dist/hooks/keyboard.d.ts +64 -0
- package/dist/hooks/keyboard.d.ts.map +1 -0
- package/dist/hooks/keyboard.js +84 -0
- package/dist/hooks/keyboard.js.map +1 -0
- package/dist/hooks/manual-render.d.ts +8 -0
- package/dist/hooks/manual-render.d.ts.map +1 -0
- package/dist/hooks/manual-render.js +10 -0
- package/dist/hooks/manual-render.js.map +1 -0
- package/dist/hooks/service-now.d.ts +32 -1
- package/dist/hooks/service-now.d.ts.map +1 -1
- package/dist/hooks/service-now.js +58 -18
- package/dist/hooks/service-now.js.map +1 -1
- package/dist/hooks/text.d.ts +9 -0
- package/dist/hooks/text.d.ts.map +1 -0
- package/dist/hooks/text.js +24 -0
- package/dist/hooks/text.js.map +1 -0
- package/dist/hooks/title.d.ts +13 -0
- package/dist/hooks/title.d.ts.map +1 -1
- package/dist/hooks/title.js +13 -0
- package/dist/hooks/title.js.map +1 -1
- package/dist/hooks/use-effect-once.d.ts.map +1 -1
- package/dist/hooks/use-effect-once.js.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/notifications.d.ts +11 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +10 -0
- package/dist/notifications.js.map +1 -0
- package/dist/svg/AI.d.ts +8 -0
- package/dist/svg/AI.d.ts.map +1 -0
- package/dist/svg/AI.js +15 -0
- package/dist/svg/AI.js.map +1 -0
- package/dist/svg/CS.d.ts +8 -0
- package/dist/svg/CS.d.ts.map +1 -0
- package/dist/svg/CS.js +15 -0
- package/dist/svg/CS.js.map +1 -0
- package/dist/svg/EDP.d.ts +8 -0
- package/dist/svg/EDP.d.ts.map +1 -0
- package/dist/svg/EDP.js +15 -0
- package/dist/svg/EDP.js.map +1 -0
- package/dist/svg/Forbidden.d.ts +5 -0
- package/dist/svg/Forbidden.d.ts.map +1 -0
- package/dist/svg/Forbidden.js +4 -0
- package/dist/svg/Forbidden.js.map +1 -0
- package/dist/svg/GenericPlaceholder.d.ts +7 -0
- package/dist/svg/GenericPlaceholder.d.ts.map +1 -0
- package/dist/svg/GenericPlaceholder.js +4 -0
- package/dist/svg/GenericPlaceholder.js.map +1 -0
- package/dist/svg/GenericPlaceholderCentered.d.ts +7 -0
- package/dist/svg/GenericPlaceholderCentered.d.ts.map +1 -0
- package/dist/svg/GenericPlaceholderCentered.js +4 -0
- package/dist/svg/GenericPlaceholderCentered.js.map +1 -0
- package/dist/svg/HUB.d.ts +8 -0
- package/dist/svg/HUB.d.ts.map +1 -0
- package/dist/svg/HUB.js +15 -0
- package/dist/svg/HUB.js.map +1 -0
- package/dist/svg/Logo.d.ts +5 -0
- package/dist/svg/Logo.d.ts.map +1 -0
- package/dist/svg/Logo.js +8 -0
- package/dist/svg/Logo.js.map +1 -0
- package/dist/svg/MiniLogo.d.ts +8 -0
- package/dist/svg/MiniLogo.d.ts.map +1 -0
- package/dist/svg/MiniLogo.js +6 -0
- package/dist/svg/MiniLogo.js.map +1 -0
- package/dist/svg/NotFound.d.ts +5 -0
- package/dist/svg/NotFound.d.ts.map +1 -0
- package/dist/svg/NotFound.js +4 -0
- package/dist/svg/NotFound.js.map +1 -0
- package/dist/svg/ServerError.d.ts +5 -0
- package/dist/svg/ServerError.d.ts.map +1 -0
- package/dist/svg/ServerError.js +4 -0
- package/dist/svg/ServerError.js.map +1 -0
- package/dist/svg/Unauthenticated.d.ts +5 -0
- package/dist/svg/Unauthenticated.d.ts.map +1 -0
- package/dist/svg/Unauthenticated.js +4 -0
- package/dist/svg/Unauthenticated.js.map +1 -0
- package/dist/svg/index.d.ts +13 -0
- package/dist/svg/index.d.ts.map +1 -0
- package/dist/svg/index.js +14 -0
- package/dist/svg/index.js.map +1 -0
- package/dist/utils/accessibility.d.ts +75 -0
- package/dist/utils/accessibility.d.ts.map +1 -0
- package/dist/utils/accessibility.js +123 -0
- package/dist/utils/accessibility.js.map +1 -0
- package/dist/utils/cookie.d.ts +34 -0
- package/dist/utils/cookie.d.ts.map +1 -0
- package/dist/utils/cookie.js +69 -0
- package/dist/utils/cookie.js.map +1 -0
- package/dist/utils/promise.d.ts +2 -0
- package/dist/utils/promise.d.ts.map +1 -0
- package/dist/utils/promise.js +6 -0
- package/dist/utils/promise.js.map +1 -0
- package/dist/utils/read-file.d.ts +2 -0
- package/dist/utils/read-file.d.ts.map +1 -0
- package/dist/utils/read-file.js +14 -0
- package/dist/utils/read-file.js.map +1 -0
- package/package.dev.json +3 -0
- package/package.json +54 -14
- package/package.stg.json +3 -0
- package/readme.md +55 -13
- package/src/components/AnimatedHeight.tsx +174 -0
- package/src/components/AsyncContent.tsx +78 -0
- package/src/components/BannerWarning.tsx +89 -19
- package/src/components/Breadcrumb/index.tsx +15 -13
- package/src/components/Breadcrumb/styled.ts +2 -1
- package/src/components/ButtonLoading.tsx +29 -0
- package/src/components/ChatBot.tsx +12 -7
- package/src/components/ContentValidateFilter.tsx +15 -0
- package/src/components/FadingOverflow.tsx +265 -0
- package/src/components/FileTreeView/More.tsx +114 -0
- package/src/components/FileTreeView/index.tsx +186 -0
- package/src/components/InfiniteScroll.tsx +24 -0
- package/src/components/InfoMaintenanceBanner.tsx +25 -0
- package/src/components/LazyMarkdown/BlockquoteMd.tsx +107 -0
- package/src/components/LazyMarkdown/CodeViewer.tsx +161 -0
- package/src/components/LazyMarkdown/Markdown.tsx +122 -0
- package/src/components/LazyMarkdown/MarkdownButton.tsx +24 -0
- package/src/components/LazyMarkdown/Video.tsx +13 -0
- package/src/components/LazyMarkdown/index.tsx +21 -0
- package/src/components/Placeholder.tsx +123 -0
- package/src/components/ScrollView.tsx +57 -0
- package/src/components/Select/BadgeItem.tsx +58 -0
- package/src/components/Select/ClearInput.tsx +24 -0
- package/src/components/Select/CloseItem.tsx +38 -0
- package/src/components/Select/CreatableSelect.tsx +155 -0
- package/src/components/Select/CustomMenu.tsx +16 -0
- package/src/components/Select/LabelItem.tsx +8 -0
- package/src/components/Select/MultiValue.tsx +49 -0
- package/src/components/Select/SelectInfiniteScroll.tsx +82 -0
- package/src/components/Select/SelectSearch.tsx +195 -0
- package/src/components/Select/index.tsx +7 -0
- package/src/components/Select/types.ts +8 -0
- package/src/components/SelectionList.tsx +427 -0
- package/src/components/StatusCircle.tsx +67 -0
- package/src/components/Stepper/Navigation.tsx +97 -0
- package/src/components/Stepper/Step.tsx +30 -0
- package/src/components/Stepper/Stepper.tsx +113 -0
- package/src/components/Stepper/headers.tsx +64 -0
- package/src/components/Stepper/index.ts +3 -0
- package/src/components/Table/HeaderItem.tsx +52 -0
- package/src/components/Table/SettingsVerticalMenu.tsx +50 -0
- package/src/components/Table/StyledLinkTable.tsx +22 -0
- package/src/components/Table/TableData.tsx +251 -0
- package/src/components/Table/index.tsx +2 -0
- package/src/components/TimelineSection.tsx +66 -0
- package/src/components/error/ErrorFeedback.tsx +217 -0
- package/src/components/error/NotFound.tsx +24 -0
- package/src/components/error/UnderMaintenance.tsx +30 -0
- package/src/components/error/index.ts +4 -0
- package/src/components/form/Form/Form.tsx +101 -0
- package/src/components/form/Form/FormGroup.tsx +221 -0
- package/src/components/form/Form/index.ts +2 -0
- package/src/components/form/SearchInput.tsx +72 -0
- package/src/components/form/Select/CustomSelect.tsx +232 -0
- package/src/components/form/Select/DetailedSelect.tsx +85 -0
- package/src/components/form/Select/Select.tsx +67 -0
- package/src/components/form/Select/index.ts +4 -0
- package/src/components/form/Select/styled.ts +165 -0
- package/src/components/form/Select/types.ts +112 -0
- package/src/components/form/Select/utils.tsx +28 -0
- package/src/components/notification/NotificationComponent.tsx +340 -0
- package/src/components/notification/NotificationItem.tsx +353 -0
- package/src/components/notification/NotificationList.tsx +207 -0
- package/src/components/notification/types.ts +72 -0
- package/src/containers/NotificationsPage.tsx +121 -0
- package/src/context/anchor.tsx +37 -0
- package/src/context/loading.tsx +36 -0
- package/src/context/notification/LazyNotificationList.ts +103 -0
- package/src/context/notification/NotificationController.ts +119 -0
- package/src/context/notification/context.tsx +23 -0
- package/src/context/notification/hooks.ts +115 -0
- package/src/context/notification/types.ts +71 -0
- package/src/hooks/date.ts +68 -0
- package/src/hooks/keyboard.tsx +128 -0
- package/src/hooks/manual-render.tsx +10 -0
- package/src/hooks/service-now.tsx +64 -19
- package/src/hooks/text.tsx +30 -0
- package/src/hooks/title.tsx +13 -0
- package/src/index.ts +14 -6
- package/src/notifications.ts +11 -0
- package/src/svg/AI.tsx +41 -0
- package/src/svg/CS.tsx +48 -0
- package/src/svg/EDP.tsx +31 -0
- package/src/svg/Forbidden.tsx +22 -0
- package/src/svg/GenericPlaceholder.tsx +16 -0
- package/src/svg/GenericPlaceholderCentered.tsx +16 -0
- package/src/svg/HUB.tsx +48 -0
- package/src/svg/Logo.tsx +16 -0
- package/src/svg/MiniLogo.tsx +12 -0
- package/src/svg/NotFound.tsx +16 -0
- package/src/svg/ServerError.tsx +33 -0
- package/src/svg/Unauthenticated.tsx +16 -0
- package/src/svg/index.ts +14 -0
- package/src/utils/accessibility.ts +135 -0
- package/src/utils/cookie.ts +73 -0
- package/src/utils/promise.ts +5 -0
- package/src/utils/read-file.ts +16 -0
- package/tsconfig.json +1 -0
- package/dist/components/Login.d.ts +0 -26
- package/dist/components/Login.d.ts.map +0 -1
- package/dist/components/Login.js +0 -100
- package/dist/components/Login.js.map +0 -1
- package/dist/components/MiniLogo.d.ts +0 -6
- package/dist/components/MiniLogo.d.ts.map +0 -1
- package/dist/components/MiniLogo.js +0 -4
- package/dist/components/MiniLogo.js.map +0 -1
- package/dist/components/tour/StepContainer.d.ts +0 -13
- package/dist/components/tour/StepContainer.d.ts.map +0 -1
- package/dist/components/tour/StepContainer.js +0 -48
- package/dist/components/tour/StepContainer.js.map +0 -1
- package/dist/components/tour/StepNavigation.d.ts +0 -13
- package/dist/components/tour/StepNavigation.d.ts.map +0 -1
- package/dist/components/tour/StepNavigation.js +0 -20
- package/dist/components/tour/StepNavigation.js.map +0 -1
- package/dist/components/tour/StepTitle.d.ts +0 -7
- package/dist/components/tour/StepTitle.d.ts.map +0 -1
- package/dist/components/tour/StepTitle.js +0 -5
- package/dist/components/tour/StepTitle.js.map +0 -1
- package/dist/components/tour/context.d.ts +0 -17
- package/dist/components/tour/context.d.ts.map +0 -1
- package/dist/components/tour/context.js +0 -48
- package/dist/components/tour/context.js.map +0 -1
- package/dist/components/tour/index.d.ts +0 -9
- package/dist/components/tour/index.d.ts.map +0 -1
- package/dist/components/tour/index.js +0 -4
- package/dist/components/tour/index.js.map +0 -1
- package/dist/components/tour/utils.d.ts +0 -13
- package/dist/components/tour/utils.d.ts.map +0 -1
- package/dist/components/tour/utils.js +0 -43
- package/dist/components/tour/utils.js.map +0 -1
- package/src/components/Login.tsx +0 -157
- package/src/components/MiniLogo.tsx +0 -32
- package/src/components/tour/StepContainer.tsx +0 -67
- package/src/components/tour/StepNavigation.tsx +0 -32
- package/src/components/tour/StepTitle.tsx +0 -17
- package/src/components/tour/context.tsx +0 -56
- package/src/components/tour/index.ts +0 -7
- package/src/components/tour/utils.tsx +0 -65
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Creates listeners for controlling a Menu UI through the keyboard.
|
|
4
|
+
* - Arrow down: next element in the iterator returned by the query selectors. First element, if the current element is the last.
|
|
5
|
+
* - Arrow up: previous element in the iterator returned by the query selectors. Last element, if the current element is the first.
|
|
6
|
+
* - Tab: same as Arrow down, but has a different behavior if the element is the last (see onPressLastTab).
|
|
7
|
+
* - Esc: determined by onPressEscape.
|
|
8
|
+
* @param props {@link Options}.
|
|
9
|
+
* @returns an object with the element controlled by the keyboard (useRef); a function to attach the keyboard events and a function to
|
|
10
|
+
* detach the keyboard events.
|
|
11
|
+
*/
|
|
12
|
+
export function useKeyboardControls(
|
|
13
|
+
/**
|
|
14
|
+
* Options for the keyboard controls.
|
|
15
|
+
*/
|
|
16
|
+
{ querySelectors, onPressEscape, onPressLastTab = onPressEscape, onPressArrowLeft, onPressArrowRight, disableTabBehavior, ref, },
|
|
17
|
+
/**
|
|
18
|
+
* Calls `attachKeyboardListeners` (mount) and `detachKeyboardListeners` (unmount) whenever the deps passed as parameter changes.
|
|
19
|
+
*
|
|
20
|
+
* If deps are undefined, this component doesn't automatically add these listeners and you have to use the functions returned in the
|
|
21
|
+
* result.
|
|
22
|
+
*/
|
|
23
|
+
deps) {
|
|
24
|
+
const localRef = useRef(null);
|
|
25
|
+
const keyboardControlledElement = ref ?? localRef;
|
|
26
|
+
const listeners = useRef({});
|
|
27
|
+
listeners.current = { onPressEscape, onPressLastTab };
|
|
28
|
+
const keyboardControls = useCallback((event) => {
|
|
29
|
+
const eventKey = event.key;
|
|
30
|
+
const target = event?.target;
|
|
31
|
+
function getSelectableAnchors() {
|
|
32
|
+
return keyboardControlledElement.current?.querySelectorAll(querySelectors) ?? [];
|
|
33
|
+
}
|
|
34
|
+
function handleArrows(key = eventKey) {
|
|
35
|
+
const anchors = getSelectableAnchors();
|
|
36
|
+
let i = 0;
|
|
37
|
+
while (i < anchors.length && document.activeElement !== anchors[i])
|
|
38
|
+
i++;
|
|
39
|
+
const next = key === 'ArrowDown' ? (anchors[i + 1] ?? anchors[0]) : (anchors[i - 1] ?? anchors[anchors.length - 1]);
|
|
40
|
+
next?.focus?.();
|
|
41
|
+
}
|
|
42
|
+
const handlers = {
|
|
43
|
+
Escape: () => {
|
|
44
|
+
listeners.current.onPressEscape?.();
|
|
45
|
+
event.stopPropagation();
|
|
46
|
+
event.preventDefault();
|
|
47
|
+
},
|
|
48
|
+
Enter: () => {
|
|
49
|
+
target?.click();
|
|
50
|
+
},
|
|
51
|
+
Tab: () => {
|
|
52
|
+
if (disableTabBehavior)
|
|
53
|
+
return;
|
|
54
|
+
const anchors = getSelectableAnchors();
|
|
55
|
+
if (document.activeElement === anchors[anchors.length - 1])
|
|
56
|
+
listeners.current.onPressLastTab?.();
|
|
57
|
+
else
|
|
58
|
+
handleArrows('ArrowDown');
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
},
|
|
61
|
+
ArrowUp: handleArrows,
|
|
62
|
+
ArrowDown: handleArrows,
|
|
63
|
+
ArrowLeft: onPressArrowLeft,
|
|
64
|
+
ArrowRight: onPressArrowRight,
|
|
65
|
+
};
|
|
66
|
+
handlers[eventKey]?.();
|
|
67
|
+
}, []);
|
|
68
|
+
const attachKeyboardListeners = useCallback(() => {
|
|
69
|
+
const element = ref?.current ?? document;
|
|
70
|
+
element.addEventListener('keydown', keyboardControls);
|
|
71
|
+
}, []);
|
|
72
|
+
const detachKeyboardListeners = useCallback(() => {
|
|
73
|
+
const element = ref?.current ?? document;
|
|
74
|
+
element.removeEventListener('keydown', keyboardControls);
|
|
75
|
+
}, []);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (!deps)
|
|
78
|
+
return;
|
|
79
|
+
attachKeyboardListeners();
|
|
80
|
+
return detachKeyboardListeners;
|
|
81
|
+
}, deps);
|
|
82
|
+
return { keyboardControlledElement, attachKeyboardListeners, detachKeyboardListeners };
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=keyboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../src/hooks/keyboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAuCtD;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB;AACjC;;GAEG;AACH,EACE,cAAc,EAAE,aAAa,EAAE,cAAc,GAAG,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,GAChH;AACb;;;;;GAKG;AACH,IAAY;IAEZ,MAAM,QAAQ,GAAG,MAAM,CAAI,IAAI,CAAC,CAAA;IAChC,MAAM,yBAAyB,GAAG,GAAG,IAAI,QAAQ,CAAA;IACjD,MAAM,SAAS,GAAG,MAAM,CAAoD,EAAE,CAAC,CAAA;IAC/E,SAAS,CAAC,OAAO,GAAG,EAAE,aAAa,EAAE,cAAc,EAAE,CAAA;IAErD,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,KAAY,EAAE,EAAE;QACpD,MAAM,QAAQ,GAAI,KAAuB,CAAC,GAAG,CAAA;QAC7C,MAAM,MAAM,GAAG,KAAK,EAAE,MAA4B,CAAA;QAElD,SAAS,oBAAoB;YAC3B,OAAO,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,CAAC,cAAc,CAAC,IAAI,EAAE,CAAA;QAClF,CAAC;QAED,SAAS,YAAY,CAAC,GAAG,GAAG,QAAQ;YAClC,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAA;YACtC,I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AAE,EAAE,CAAA;IACxB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,MAAM,uBAAuB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO,IAAI,QAAQ,CAAA;QACxC,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;IACvD,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,MAAM,uBAAuB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO,IAAI,QAAQ,CAAA;QACxC,OAAO,CAAC,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;IAC1D,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,uBAAuB,EAAE,CAAA;QACzB,OAAO,uBAAuB,CAAA;IAChC,CAAC,EAAE,IAAI,CAAC,CAAA;IAER,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAA;AACxF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual-render.d.ts","sourceRoot":"","sources":["../../src/hooks/manual-render.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,eAAe;;EAG9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useCallback, useState } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Use this hook to manually trigger a re-render from React.
|
|
4
|
+
* @returns an object with a function to re-render the component.
|
|
5
|
+
*/
|
|
6
|
+
export function useManualRender() {
|
|
7
|
+
const [, setCount] = useState(0);
|
|
8
|
+
return { repaint: useCallback(() => setCount(v => v + 1), []) };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=manual-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual-render.js","sourceRoot":"","sources":["../../src/hooks/manual-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE7C;;;GAGG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;IAChC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAA;AACjE,CAAC"}
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
+
export declare const CHAT_BUTTON_ID = "service-now-button";
|
|
2
|
+
export declare const CHAT_BUTTON_WRAPPER_ID = "service-now-content";
|
|
1
3
|
interface Options {
|
|
4
|
+
/**
|
|
5
|
+
* Function to run when the chat button is hidden, i.e. when the user clicks the close button that appears when the chat button is
|
|
6
|
+
* hovered.
|
|
7
|
+
*/
|
|
2
8
|
onClose?: () => void;
|
|
3
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @returns the iframe loaded by service now, i.e. the chat window; or null if the chat window doesn't exist.
|
|
12
|
+
*/
|
|
4
13
|
export declare function getServiceNowLauncher(): HTMLElement | null;
|
|
14
|
+
/**
|
|
15
|
+
* Opens the chat window and makes the chat button visible.
|
|
16
|
+
*/
|
|
5
17
|
export declare function openServiceNowChat(): void;
|
|
6
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Shows the chat window, i.e. shows the service now iframe and switch the icon in the chat button to "close".
|
|
20
|
+
*/
|
|
21
|
+
export declare function showChatWindow(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Hides the chat window, i.e. hides the service now iframe and switch the icon in the chat button to "chat".
|
|
24
|
+
*/
|
|
25
|
+
export declare function hideChatWindow(): void;
|
|
26
|
+
/**
|
|
27
|
+
* A react hook that indicates whether the chat button is visible or not. This is updated whenever the value changes.
|
|
28
|
+
* @returns true if the chat button is visible and false otherwise.
|
|
29
|
+
*/
|
|
7
30
|
export declare function useServiceNowChatButtonVisibility(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Starts Service Now:
|
|
33
|
+
*
|
|
34
|
+
* - Creates the chat window feature by loading the required script.
|
|
35
|
+
* - Adds a "minimize" button on top of the chat button (left bottom corner). This button appears whenever the user hovers the chat button.
|
|
36
|
+
* If clicked, the chat button is hidden.
|
|
37
|
+
* @param options
|
|
38
|
+
*/
|
|
8
39
|
export declare function useServiceNowEffect(options?: Options): void;
|
|
9
40
|
export declare const dictionary: {
|
|
10
41
|
en: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-now.d.ts","sourceRoot":"","sources":["../../src/hooks/service-now.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service-now.d.ts","sourceRoot":"","sources":["../../src/hooks/service-now.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc,uBAAuB,CAAA;AAClD,eAAO,MAAM,sBAAsB,wBAAwB,CAAA;AAoC3D,UAAU,OAAO;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAuBD;;GAEG;AACH,wBAAgB,qBAAqB,uBAEpC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,SAIjC;AAuBD;;GAEG;AACH,wBAAgB,cAAc,SAE7B;AAED;;GAEG;AACH,wBAAgB,cAAc,SAE7B;AAyED;;;GAGG;AACH,wBAAgB,iCAAiC,YAIhD;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAAO,QAIpD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAaD,CAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { getLanguage, translate } from '@stack-spot/portal-translate';
|
|
1
|
+
import { getLanguage, ptEn, translate } from '@stack-spot/portal-translate';
|
|
2
2
|
import { pull } from 'lodash';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { useEffectOnce } from './use-effect-once.js';
|
|
5
|
+
const CHAT_IFRAME_ID = 'sn_va_web_client';
|
|
6
|
+
export const CHAT_BUTTON_ID = 'service-now-button';
|
|
7
|
+
export const CHAT_BUTTON_WRAPPER_ID = 'service-now-content';
|
|
5
8
|
const closeButtonStyle = `
|
|
6
9
|
position: absolute;
|
|
7
10
|
bottom: -64px;
|
|
@@ -39,8 +42,8 @@ const serviceNowReference = 'https://zup.service-now.com/sn_va_web_client_app_em
|
|
|
39
42
|
function loadScript(src) {
|
|
40
43
|
return new Promise((resolve, reject) => {
|
|
41
44
|
const iframe = document.createElement('iframe');
|
|
42
|
-
const serviceNowContent = document.getElementById(
|
|
43
|
-
iframe.setAttribute('id',
|
|
45
|
+
const serviceNowContent = document.getElementById(CHAT_BUTTON_WRAPPER_ID);
|
|
46
|
+
iframe.setAttribute('id', CHAT_IFRAME_ID);
|
|
44
47
|
iframe.setAttribute('src', src);
|
|
45
48
|
iframe.style.cssText = iframeStyle;
|
|
46
49
|
iframe.onload = () => resolve();
|
|
@@ -48,33 +51,58 @@ function loadScript(src) {
|
|
|
48
51
|
serviceNowContent && serviceNowContent.appendChild(iframe);
|
|
49
52
|
});
|
|
50
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @returns the iframe loaded by service now, i.e. the chat window; or null if the chat window doesn't exist.
|
|
56
|
+
*/
|
|
51
57
|
export function getServiceNowLauncher() {
|
|
52
|
-
return document.getElementById(
|
|
58
|
+
return document.getElementById(CHAT_IFRAME_ID);
|
|
53
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Opens the chat window and makes the chat button visible.
|
|
62
|
+
*/
|
|
54
63
|
export function openServiceNowChat() {
|
|
55
64
|
hideOrShowServiceNowContent('visible');
|
|
56
|
-
|
|
65
|
+
showChatWindow();
|
|
57
66
|
showServiceNowChatButton();
|
|
58
67
|
}
|
|
59
68
|
function getServiceNowButton() {
|
|
60
|
-
return document.getElementById(
|
|
69
|
+
return document.getElementById(CHAT_BUTTON_ID);
|
|
61
70
|
}
|
|
62
71
|
function hideOrShowServiceNowContent(action) {
|
|
63
|
-
const content = document.getElementById(
|
|
72
|
+
const content = document.getElementById(CHAT_BUTTON_WRAPPER_ID);
|
|
64
73
|
if (content) {
|
|
65
74
|
content.style.visibility = action;
|
|
66
75
|
}
|
|
67
76
|
}
|
|
68
|
-
|
|
77
|
+
function toggleChatWindow(show) {
|
|
69
78
|
const launcher = getServiceNowLauncher();
|
|
70
|
-
const
|
|
71
|
-
if (launcher)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
const content = document.getElementById(CHAT_BUTTON_WRAPPER_ID);
|
|
80
|
+
if (!launcher || !content)
|
|
81
|
+
return;
|
|
82
|
+
const [action, display] = show ? ['add', 'block'] : ['remove', 'none'];
|
|
83
|
+
launcher.classList[action]('show');
|
|
84
|
+
content.classList[action]('opened');
|
|
85
|
+
launcher.style.display = display;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Shows the chat window, i.e. shows the service now iframe and switch the icon in the chat button to "close".
|
|
89
|
+
*/
|
|
90
|
+
export function showChatWindow() {
|
|
91
|
+
toggleChatWindow(true);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Hides the chat window, i.e. hides the service now iframe and switch the icon in the chat button to "chat".
|
|
95
|
+
*/
|
|
96
|
+
export function hideChatWindow() {
|
|
97
|
+
toggleChatWindow(false);
|
|
77
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Adds a listener that is called whenever the visibility of the chat button changes.
|
|
101
|
+
*
|
|
102
|
+
* The listener is called with a single parameter which indicates if the button is visible or not.
|
|
103
|
+
* @param listener the listener to register.
|
|
104
|
+
* @returns a function that, when called, removes the listener.
|
|
105
|
+
*/
|
|
78
106
|
function addChatVisibilityListener(listener) {
|
|
79
107
|
chatVisibilityListeners.push(listener);
|
|
80
108
|
return () => pull(chatVisibilityListeners, listener);
|
|
@@ -91,7 +119,7 @@ function renderCloseButton(onClose) {
|
|
|
91
119
|
close.addEventListener('click', () => hideServiceNowChatButton(onClose));
|
|
92
120
|
anchor.appendChild(close);
|
|
93
121
|
serviceNowButton.addEventListener('mouseenter', () => {
|
|
94
|
-
const t = translate(dictionary, getLanguage());
|
|
122
|
+
const t = translate(dictionary, getLanguage(ptEn));
|
|
95
123
|
close.setAttribute('title', t.hide);
|
|
96
124
|
close.style.transform = 'scale(1)';
|
|
97
125
|
const onMouseMove = (ev) => {
|
|
@@ -110,7 +138,7 @@ function showServiceNowChatButton() {
|
|
|
110
138
|
}
|
|
111
139
|
function hideServiceNowChatButton(onClose) {
|
|
112
140
|
hideOrShowServiceNowContent('hidden');
|
|
113
|
-
|
|
141
|
+
hideChatWindow();
|
|
114
142
|
getServiceNowButton()?.classList?.remove('show');
|
|
115
143
|
localStorage.setItem(LOCAL_STORAGE_SERVICE_NOW_VALUE, 'false');
|
|
116
144
|
onClose?.();
|
|
@@ -129,16 +157,28 @@ async function initializeChat({ onClose } = {}) {
|
|
|
129
157
|
renderCloseButton(onClose);
|
|
130
158
|
}
|
|
131
159
|
catch {
|
|
132
|
-
const t = translate(dictionary, getLanguage());
|
|
160
|
+
const t = translate(dictionary, getLanguage(ptEn));
|
|
133
161
|
// eslint-disable-next-line no-console
|
|
134
162
|
console.warn(t.errorLoadScript);
|
|
135
163
|
}
|
|
136
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* A react hook that indicates whether the chat button is visible or not. This is updated whenever the value changes.
|
|
167
|
+
* @returns true if the chat button is visible and false otherwise.
|
|
168
|
+
*/
|
|
137
169
|
export function useServiceNowChatButtonVisibility() {
|
|
138
170
|
const [visible, setVisible] = useState(isServiceNowChatButtonVisible());
|
|
139
171
|
useEffectOnce(() => addChatVisibilityListener(setVisible));
|
|
140
172
|
return visible;
|
|
141
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Starts Service Now:
|
|
176
|
+
*
|
|
177
|
+
* - Creates the chat window feature by loading the required script.
|
|
178
|
+
* - Adds a "minimize" button on top of the chat button (left bottom corner). This button appears whenever the user hovers the chat button.
|
|
179
|
+
* If clicked, the chat button is hidden.
|
|
180
|
+
* @param options
|
|
181
|
+
*/
|
|
142
182
|
export function useServiceNowEffect(options) {
|
|
143
183
|
useEffectOnce(() => {
|
|
144
184
|
initializeChat(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-now.js","sourceRoot":"","sources":["../../src/hooks/service-now.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"service-now.js","sourceRoot":"","sources":["../../src/hooks/service-now.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,MAAM,cAAc,GAAG,kBAAkB,CAAA;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAA;AAClD,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAA;AAE3D,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;CAmBxB,CAAA;AAED,MAAM,WAAW,GAAG;;;;;;;;;CASnB,CAAA;AAYD,MAAM,aAAa,GAAG,GAAG,CAAA;AACzB,MAAM,+BAA+B,GAAG,6BAA6B,CAAA;AACrE,MAAM,uBAAuB,GAA6B,EAAE,CAAA;AAE5D,MAAM,mBAAmB,GAAG,qJAAqJ,CAAA;AAEjL,SAAS,UAAU,CAAC,GAAW;IAC7B,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,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AE;QACF,eAAe,EAAE,6CAA6C;QAC9D,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,+BAA+B;QAC5C,aAAa,EAAE,+FAA+F;KAC/G;IACD,EAAE,EAAE;QACF,eAAe,EAAE,uCAAuC;QACxD,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,+BAA+B;QAC5C,aAAa,EAAE,0GAA0G;KAC1H;CACmB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the text fits completely in the space available.
|
|
3
|
+
* @returns true if it fits, false otherwise.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useCheckTextOverflow(): {
|
|
6
|
+
overflow: boolean;
|
|
7
|
+
ref: import("react").RefObject<HTMLParagraphElement>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/hooks/text.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB;;;EAuBnC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the text fits completely in the space available.
|
|
4
|
+
* @returns true if it fits, false otherwise.
|
|
5
|
+
*/
|
|
6
|
+
export function useCheckTextOverflow() {
|
|
7
|
+
const [overflow, setOverflow] = useState(false);
|
|
8
|
+
const ref = useRef(null);
|
|
9
|
+
const checkOverflow = () => {
|
|
10
|
+
if (!ref.current) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const hasOverflow = ref.current.offsetWidth < ref.current.scrollWidth;
|
|
14
|
+
if (hasOverflow === overflow) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
setOverflow(hasOverflow);
|
|
18
|
+
};
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
checkOverflow();
|
|
21
|
+
}, [ref.current]);
|
|
22
|
+
return { overflow, ref };
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/hooks/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IACxD,MAAM,GAAG,GAAG,MAAM,CAAuB,IAAI,CAAC,CAAA;IAE9C,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;YACjB,OAAM;QACR,CAAC;QAED,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAA;QAErE,IAAI,WAAW,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAM;QACR,CAAC;QAED,WAAW,CAAC,WAAW,CAAC,CAAA;IAC1B,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,EAAE,CAAA;IACjB,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;IAEjB,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAA;AAC1B,CAAC"}
|
package/dist/hooks/title.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A React effect for prefixing the page title with the string passed as parameter followed by " - ".
|
|
3
|
+
*
|
|
4
|
+
* This returns a dispose function that changes the title back to its original value.
|
|
5
|
+
* @param title the prefix to add to the page title.
|
|
6
|
+
* @returns a dispose function.
|
|
7
|
+
*/
|
|
1
8
|
export declare function titleEffect(title: string | undefined | null): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Changes the page title to have the string passed as parameter as a prefix followed by " - " and the original title.
|
|
11
|
+
*
|
|
12
|
+
* Once disposed, this hook changes the title back to its original value.
|
|
13
|
+
* @param title the prefix to add to the page title.
|
|
14
|
+
*/
|
|
2
15
|
export declare function useTitleEffect(title: string | undefined | null): void;
|
|
3
16
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../src/hooks/title.tsx"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,cAM3D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,QAE9D"}
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../src/hooks/title.tsx"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,cAM3D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,QAE9D"}
|
package/dist/hooks/title.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
let originalTitle;
|
|
3
|
+
/**
|
|
4
|
+
* A React effect for prefixing the page title with the string passed as parameter followed by " - ".
|
|
5
|
+
*
|
|
6
|
+
* This returns a dispose function that changes the title back to its original value.
|
|
7
|
+
* @param title the prefix to add to the page title.
|
|
8
|
+
* @returns a dispose function.
|
|
9
|
+
*/
|
|
3
10
|
export function titleEffect(title) {
|
|
4
11
|
originalTitle ??= document.title;
|
|
5
12
|
document.title = title ? `${title} - ${originalTitle}` : originalTitle;
|
|
@@ -7,6 +14,12 @@ export function titleEffect(title) {
|
|
|
7
14
|
document.title = originalTitle ?? '';
|
|
8
15
|
};
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Changes the page title to have the string passed as parameter as a prefix followed by " - " and the original title.
|
|
19
|
+
*
|
|
20
|
+
* Once disposed, this hook changes the title back to its original value.
|
|
21
|
+
* @param title the prefix to add to the page title.
|
|
22
|
+
*/
|
|
10
23
|
export function useTitleEffect(title) {
|
|
11
24
|
useEffect(() => titleEffect(title), [title]);
|
|
12
25
|
}
|
package/dist/hooks/title.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../src/hooks/title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,IAAI,aAAiC,CAAA;AAErC,MAAM,UAAU,WAAW,CAAC,KAAgC;IAC1D,aAAa,KAAK,QAAQ,CAAC,KAAK,CAAA;IAChC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;IACtE,OAAO,GAAG,EAAE;QACV,QAAQ,CAAC,KAAK,GAAG,aAAa,IAAI,EAAE,CAAA;IACtC,CAAC,CAAA;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAgC;IAC7D,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;AAC9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../src/hooks/title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,IAAI,aAAiC,CAAA;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,KAAgC;IAC1D,aAAa,KAAK,QAAQ,CAAC,KAAK,CAAA;IAChC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;IACtE,OAAO,GAAG,EAAE;QACV,QAAQ,CAAC,KAAK,GAAG,aAAa,IAAI,EAAE,CAAA;IACtC,CAAC,CAAA;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgC;IAC7D,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;AAC9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-effect-once.d.ts","sourceRoot":"","sources":["../../src/hooks/use-effect-once.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"use-effect-once.d.ts","sourceRoot":"","sources":["../../src/hooks/use-effect-once.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,SA8B9D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-effect-once.js","sourceRoot":"","sources":["../../src/hooks/use-effect-once.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAiC,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,MAAM,CAA4B,MAAM,CAAC,CAAA;IAC1D,MAAM,SAAS,GAAG,MAAM,EAAuB,CAAA;IAC/C,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAA;IAEtC,IAAI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CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
export { AsyncContent } from './components/AsyncContent.js';
|
|
1
2
|
export { BannerWarning } from './components/BannerWarning.js';
|
|
2
|
-
export {
|
|
3
|
+
export { ButtonLoading } from './components/ButtonLoading.js';
|
|
3
4
|
export { ChatBot } from './components/ChatBot.js';
|
|
4
|
-
export {
|
|
5
|
-
export * from './components/
|
|
6
|
-
export
|
|
5
|
+
export { InfoMaintenanceBanner } from './components/InfoMaintenanceBanner.js';
|
|
6
|
+
export * from './components/Select/index.js';
|
|
7
|
+
export * from './components/Select/types.js';
|
|
8
|
+
export { useDateFormatter } from './hooks/date.js';
|
|
9
|
+
export { useKeyboardControls } from './hooks/keyboard.js';
|
|
10
|
+
export { useManualRender } from './hooks/manual-render.js';
|
|
11
|
+
export { openServiceNowChat, dictionary as serviceNowDictionary, useServiceNowChatButtonVisibility, useServiceNowEffect } from './hooks/service-now.js';
|
|
12
|
+
export { useCheckTextOverflow } from './hooks/text.js';
|
|
7
13
|
export { titleEffect, useTitleEffect } from './hooks/title.js';
|
|
8
14
|
export { useEffectOnce } from './hooks/use-effect-once.js';
|
|
15
|
+
export * from './utils/accessibility.js';
|
|
16
|
+
export * from './utils/cookie.js';
|
|
17
|
+
export { delay } from './utils/promise.js';
|
|
18
|
+
export { readFile } from './utils/read-file.js';
|
|
9
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,oBAAoB,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
export { AsyncContent } from './components/AsyncContent.js';
|
|
1
2
|
export { BannerWarning } from './components/BannerWarning.js';
|
|
2
|
-
export {
|
|
3
|
+
export { ButtonLoading } from './components/ButtonLoading.js';
|
|
3
4
|
export { ChatBot } from './components/ChatBot.js';
|
|
4
|
-
export {
|
|
5
|
-
export * from './components/
|
|
6
|
-
export
|
|
5
|
+
export { InfoMaintenanceBanner } from './components/InfoMaintenanceBanner.js';
|
|
6
|
+
export * from './components/Select/index.js';
|
|
7
|
+
export * from './components/Select/types.js';
|
|
8
|
+
export { useDateFormatter } from './hooks/date.js';
|
|
9
|
+
export { useKeyboardControls } from './hooks/keyboard.js';
|
|
10
|
+
export { useManualRender } from './hooks/manual-render.js';
|
|
11
|
+
export { openServiceNowChat, dictionary as serviceNowDictionary, useServiceNowChatButtonVisibility, useServiceNowEffect } from './hooks/service-now.js';
|
|
12
|
+
export { useCheckTextOverflow } from './hooks/text.js';
|
|
7
13
|
export { titleEffect, useTitleEffect } from './hooks/title.js';
|
|
8
14
|
export { useEffectOnce } from './hooks/use-effect-once.js';
|
|
15
|
+
export * from './utils/accessibility.js';
|
|
16
|
+
export * from './utils/cookie.js';
|
|
17
|
+
export { delay } from './utils/promise.js';
|
|
18
|
+
export { readFile } from './utils/read-file.js';
|
|
9
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAC1E,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,oBAAoB,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { NotificationComponent } from './components/notification/NotificationComponent.js';
|
|
2
|
+
export { NotificationItem } from './components/notification/NotificationItem.js';
|
|
3
|
+
export { NotificationList, NotificationListProps } from './components/notification/NotificationList.js';
|
|
4
|
+
export * from './components/notification/types.js';
|
|
5
|
+
export { NotificationsPage } from './containers/NotificationsPage.js';
|
|
6
|
+
export { NotificationProvider, useNotificationController } from './context/notification/context.js';
|
|
7
|
+
export { useNotificationList, useUnreadNotifications } from './context/notification/hooks.js';
|
|
8
|
+
export { LazyNotificationList } from './context/notification/LazyNotificationList.js';
|
|
9
|
+
export { NotificationController } from './context/notification/NotificationController.js';
|
|
10
|
+
export { LoadNotificationsFilters } from './context/notification/types.js';
|
|
11
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAA;AACpG,cAAc,iCAAiC,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAChG,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { NotificationComponent } from './components/notification/NotificationComponent.js';
|
|
2
|
+
export { NotificationItem } from './components/notification/NotificationItem.js';
|
|
3
|
+
export { NotificationList } from './components/notification/NotificationList.js';
|
|
4
|
+
export * from './components/notification/types.js';
|
|
5
|
+
export { NotificationsPage } from './containers/NotificationsPage.js';
|
|
6
|
+
export { NotificationProvider, useNotificationController } from './context/notification/context.js';
|
|
7
|
+
export { useNotificationList, useUnreadNotifications } from './context/notification/hooks.js';
|
|
8
|
+
export { LazyNotificationList } from './context/notification/LazyNotificationList.js';
|
|
9
|
+
export { NotificationController } from './context/notification/NotificationController.js';
|
|
10
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4CAA4C,CAAA;AACpG,cAAc,iCAAiC,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAChG,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA"}
|
package/dist/svg/AI.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Stackspot logo followed by the text "AI". This is the specific logo for the AI Portal.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AI: ({ className, style }: {
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=AI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AI.d.ts","sourceRoot":"","sources":["../../src/svg/AI.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,EAAE,GAAI,sBAAsB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAAE,4CAgC3F,CAAA"}
|
package/dist/svg/AI.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable max-len */
|
|
3
|
+
import { theme } from '@stack-spot/portal-theme';
|
|
4
|
+
import { useTranslate } from '@stack-spot/portal-translate';
|
|
5
|
+
/**
|
|
6
|
+
* The Stackspot logo followed by the text "AI". This is the specific logo for the AI Portal.
|
|
7
|
+
*/
|
|
8
|
+
export const AI = ({ className, style }) => {
|
|
9
|
+
const t = useTranslate({
|
|
10
|
+
en: { title: 'Logo StackSpot AI (Artificial Intelligence)', description: 'StackSpot logo on the left and right side written "StackSpot" in white and "AI" in orange.' },
|
|
11
|
+
pt: { title: 'Logo StackSpot AI (Inteligência Artificial)', description: 'Logo da StackSpot do lado esquerdo e do lado direito escrito "StackSpot" na cor branca e "AI" na cor laranja.' },
|
|
12
|
+
});
|
|
13
|
+
return (_jsxs("svg", { id: "logo-ai", "aria-labelledby": "logo-ai-title logo-ai-desc", className: className, style: style, width: "139", height: "24", viewBox: "0 0 139 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { id: "logo-ai-title", children: t.title }), _jsx("desc", { id: "logo-ai-desc", children: t.description }), _jsxs("g", { clipPath: "url(#clip0_7262_63725)", children: [_jsx("path", { d: "M73.7006 8.97522H71.2213L68.0266 13.0292C67.5949 13.5363 67.6121 14.0062 68.0266 14.5306L71.4557 18.879H74.1299L69.8941 13.6723L73.7006 8.97522Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M76.878 8.8194C76.878 7.78302 77.6774 6.99893 79.1427 6.99893C80.5218 6.99893 81.4025 7.85722 81.5456 9.09395H83.8127C83.6203 6.75158 81.8663 4.94348 79.1427 4.94348C76.4192 4.94348 74.6134 6.60812 74.6134 8.77982C74.6134 13.6525 81.7577 12.2254 81.7577 15.2578C81.7577 16.2571 80.9584 17.0585 79.3179 17.0585C77.6774 17.0585 76.7029 16.079 76.5647 14.6716H74.3C74.416 17.2366 76.2712 19.1139 79.2982 19.1139C82.3251 19.1139 84.0224 17.4295 84.0224 15.1985C84.0224 10.2664 76.878 11.7925 76.878 8.81692V8.8194Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M90.2812 8.74023C88.9663 8.74023 88.1547 9.46743 87.6785 10.1575C87.4664 10.4642 86.9878 10.3381 86.9508 9.96707L86.8472 8.97521H85.2461V22.4036H87.3924V18.4609C87.3924 18.1245 87.8068 17.9564 88.0338 18.2037C88.4655 18.6761 89.1661 19.1164 90.2837 19.1164C92.7235 19.1164 94.8328 16.9447 94.8328 13.9296C94.8328 10.9144 92.7235 8.74271 90.2837 8.74271L90.2812 8.74023ZM90.0468 17.1178C88.6209 17.1178 87.3924 15.8267 87.3924 13.9271C87.3924 12.0275 88.6234 10.7363 90.0468 10.7363C91.4703 10.7363 92.7013 12.0275 92.7013 13.9271C92.7013 15.8267 91.4728 17.1178 90.0468 17.1178Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M100.66 8.74023C97.9857 8.74023 95.7605 11.0307 95.7605 13.9271C95.7605 16.8235 97.9857 19.1139 100.66 19.1139C103.334 19.1139 105.559 16.8037 105.559 13.9271C105.559 11.0504 103.334 8.74023 100.66 8.74023ZM100.66 17.1178C99.1378 17.1178 97.887 15.8069 97.887 13.9271C97.887 12.0473 99.1353 10.7363 100.66 10.7363C102.185 10.7363 103.433 12.0473 103.433 13.9271C103.433 15.8069 102.185 17.1178 100.66 17.1178Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M109.696 6.43005H107.841V7.9166C107.841 8.6809 107.432 9.0915 106.65 9.0915H105.947V10.912H107.567V15.6684C107.567 17.8401 108.875 19.114 110.671 19.114C111.199 19.114 111.589 19.015 111.843 18.9186V16.9621C111.648 17.061 111.413 17.0981 111.159 17.0981C110.281 17.0981 109.694 16.5886 109.694 15.4928V10.912H111.84V8.97525H109.694V6.43005H109.696Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M58.6421 10.7363C60.0483 10.7363 60.8279 11.8123 61.0622 12.6161H63.2085C62.8187 10.6794 61.0992 8.74023 58.6397 8.74023C55.9655 8.74023 53.7402 11.0307 53.7402 13.9271C53.7402 16.8235 55.9655 19.1139 58.6397 19.1139C61.0992 19.1139 62.8187 17.1574 63.2085 15.238H61.0622C60.8279 16.0394 60.0458 17.1178 58.6421 17.1178C57.12 17.1178 55.8692 15.8069 55.8692 13.9271C55.8692 12.0473 57.1175 10.7363 58.6421 10.7363Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M66.7906 5.17847H64.6418V18.8814H66.7906V5.17847Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M39.8611 6.43005H38.006V7.9166C38.006 8.6809 37.5965 9.0915 36.8144 9.0915H36.1113V10.912H37.7321V15.6684C37.7321 17.8401 39.0396 19.114 40.8356 19.114C41.3635 19.114 41.7533 19.015 42.0074 18.9186V16.9621C41.8125 17.061 41.5782 17.0981 41.3241 17.0981C40.4458 17.0981 39.8611 16.5886 39.8611 15.4928V10.912H42.0074V8.97525H39.8611V6.43005Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M50.59 9.92502C50.5702 10.2342 50.173 10.3455 49.9979 10.0883C49.5489 9.42786 48.72 8.74023 47.2151 8.74023C44.7753 8.74023 42.666 10.9119 42.666 13.9271C42.666 16.9422 44.7753 19.1139 47.2151 19.1139C48.6978 19.1139 49.5366 18.3843 49.993 17.709C50.1656 17.4542 50.5653 17.5705 50.585 17.8772L50.6492 18.879H52.3144V8.97521H50.6492L50.5875 9.92502H50.59ZM47.452 17.1178C46.026 17.1178 44.7975 15.8267 44.7975 13.9271C44.7975 12.0275 46.0285 10.7363 47.452 10.7363C48.8754 10.7363 50.1064 12.0275 50.1064 13.9271C50.1064 15.8267 48.8754 17.1178 47.452 17.1178Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M28.1527 8.8194C28.1527 7.78302 28.952 6.99893 30.4174 6.99893C31.7965 6.99893 32.6772 7.85722 32.8203 9.09395H35.085C34.8925 6.75158 33.1385 4.94348 30.415 4.94348C27.6914 4.94348 25.8856 6.60812 25.8856 8.77982C25.8856 13.6525 33.03 12.2254 33.03 15.2578C33.03 16.2571 32.2307 17.0585 30.5901 17.0585C28.9496 17.0585 27.9751 16.079 27.837 14.6716H25.5723C25.6882 17.2366 27.5434 19.1139 30.5704 19.1139C33.5974 19.1139 35.2946 17.4295 35.2946 15.1985C35.2946 10.2664 28.1503 11.7925 28.1503 8.81692L28.1527 8.8194Z", fill: theme.color.light.contrastText }), _jsx("path", { d: "M133.017 6.66505V5.17603H127.616V6.66505H129.417V17.3925H127.616V18.8815H133.017V17.3925H131.216V6.66505H133.017Z", fill: "#FF6900" }), _jsx("path", { d: "M119.505 5.17603L114.349 18.8864H116.185L120.327 7.60496L124.466 18.8864H126.381L121.225 5.17603H119.505Z", fill: "#FF6900" }), _jsx("path", { d: "M120.265 16.4821C120.837 16.4821 121.301 16.017 121.301 15.4433C121.301 14.8695 120.837 14.4044 120.265 14.4044C119.693 14.4044 119.229 14.8695 119.229 15.4433C119.229 16.017 119.693 16.4821 120.265 16.4821Z", fill: "#FF6900" }), _jsx("path", { d: "M19.0521 8.60424C19.9969 8.60424 20.7617 7.83746 20.7617 6.89013C20.7617 5.94279 19.9969 5.17602 19.0521 5.17602C18.1072 5.17602 17.3425 5.94279 17.3425 6.89013C17.3425 7.83746 18.1072 8.60424 19.0521 8.60424ZM19.0521 15.4607C18.1072 15.4607 17.3425 16.2274 17.3425 17.1748C17.3425 18.1221 18.1072 18.8889 19.0521 18.8889C19.9969 18.8889 20.7617 18.1221 20.7617 17.1748C20.7617 16.2274 19.9969 15.4607 19.0521 15.4607ZM10.388 20.6055C9.44319 20.6055 8.67842 21.3722 8.67842 22.3196C8.67842 23.2669 9.44319 24.0337 10.388 24.0337C11.3329 24.0337 12.0977 23.2669 12.0977 22.3196C12.0977 21.3722 11.3329 20.6055 10.388 20.6055ZM18.4526 13.6377C19.1064 13.8826 19.8761 13.7119 20.3621 13.1381C20.9418 12.448 20.8777 11.3943 20.219 10.7784C19.733 10.3258 19.057 10.2095 18.4723 10.4222C18.0332 10.5805 17.5497 10.5434 17.1476 10.306C16.743 10.0661 16.4815 9.65051 16.4075 9.1855C16.3335 8.7378 16.0843 8.31979 15.6797 8.04523C15.2135 7.72863 14.6485 7.67421 14.1551 7.84983C13.7111 8.00566 13.2226 7.97845 12.8156 7.73852C12.4085 7.4986 12.1495 7.08058 12.073 6.6131C11.9965 6.15551 11.7375 5.73007 11.3181 5.45552C10.5731 4.97072 9.55174 5.15376 9.02133 5.86611C8.43173 6.65515 8.62662 7.76821 9.43085 8.31484C9.89711 8.63144 10.4621 8.68586 10.9555 8.51025C11.3995 8.35442 11.888 8.38163 12.295 8.62155C12.6996 8.86148 12.9611 9.27702 13.0376 9.7445C13.1116 10.1922 13.3608 10.6102 13.7653 10.8848C14.2316 11.2014 14.7965 11.2558 15.2899 11.0802C15.322 11.0678 15.8105 10.8427 16.0596 10.8427C16.7159 10.8427 17.2487 11.377 17.2487 12.0349C17.2487 12.6929 16.7159 13.2271 16.0596 13.2271C15.8105 13.2271 15.3245 12.9996 15.2924 12.9897C14.8064 12.8165 14.2513 12.866 13.7875 13.1702C13.3682 13.4448 13.1141 13.8727 13.0401 14.3328C12.9636 14.7953 12.7045 15.2109 12.2975 15.4533C11.8929 15.6932 11.4044 15.7229 10.9579 15.5646C10.4645 15.3914 9.89958 15.4458 9.43332 15.76C8.62908 16.3066 8.43419 17.4197 9.0238 18.2087C9.55667 18.921 10.5755 19.1041 11.3206 18.6193C11.7424 18.3447 12.0015 17.9193 12.0755 17.4617C12.1519 16.9942 12.411 16.5787 12.818 16.3363C13.2226 16.0964 13.827 16.1409 14.1527 16.22C14.6535 16.3412 15.1937 16.3437 15.6575 16.0395C16.0769 15.7649 16.3335 15.337 16.4075 14.8769C16.4815 14.4144 16.743 14.0013 17.1476 13.7614C17.5423 13.5264 18.0234 13.4745 18.4526 13.6377ZM9.79103 13.6377C10.4448 13.8826 11.2145 13.7119 11.7005 13.1381C12.2802 12.448 12.2161 11.3943 11.5574 10.7784C11.0714 10.3258 10.3954 10.2095 9.81077 10.4222C9.37165 10.5805 8.88812 10.5434 8.486 10.306C8.08142 10.0661 7.81991 9.65051 7.7459 9.1855C7.74344 9.16324 7.4474 7.75337 6.05849 7.75337C5.11363 7.75337 4.34887 8.52014 4.34887 9.46747C4.34887 10.4148 5.11363 11.1816 6.05849 11.1816C6.33972 11.1816 6.60369 11.1123 6.83805 10.9911C7.01074 10.9243 7.24511 10.8427 7.39559 10.8427C8.05181 10.8427 8.58468 11.377 8.58468 12.0349C8.58468 12.6929 8.05181 13.2271 7.39559 13.2271C7.23031 13.2271 6.96387 13.1282 6.79118 13.0589C6.73444 13.0367 6.35206 12.8907 6.05602 12.8907C5.11117 12.8907 4.3464 13.6575 4.3464 14.6049C4.3464 15.5522 5.11117 16.319 6.05602 16.319C6.89973 16.319 7.60035 15.7055 7.7385 14.8967C7.7385 14.8893 7.74344 14.8819 7.7459 14.8745C7.81991 14.4119 8.08142 13.9989 8.486 13.7589C8.88072 13.524 9.36178 13.472 9.79103 13.6353V13.6377ZM14.7201 18.0331C13.7752 18.0331 13.0104 18.7998 13.0104 19.7472C13.0104 20.6945 13.7752 21.4613 14.7201 21.4613C15.6649 21.4613 16.4297 20.6945 16.4297 19.7472C16.4297 18.7998 15.6649 18.0331 14.7201 18.0331ZM10.388 3.46191C11.3329 3.46191 12.0977 2.69514 12.0977 1.7478C12.0977 0.800465 11.3329 0.0336914 10.388 0.0336914C9.44319 0.0336914 8.67842 0.800465 8.67842 1.7478C8.67842 2.69514 9.44319 3.46191 10.388 3.46191ZM6.05849 18.0331C5.11363 18.0331 4.34887 18.7998 4.34887 19.7472C4.34887 20.6945 5.11363 21.4613 6.05849 21.4613C7.00334 21.4613 7.76811 20.6945 7.76811 19.7472C7.76811 18.7998 7.00334 18.0331 6.05849 18.0331ZM14.7201 6.03431C15.6649 6.03431 16.4297 5.26754 16.4297 4.3202C16.4297 3.37286 15.6649 2.60609 14.7201 2.60609C13.7752 2.60609 13.0104 3.37286 13.0104 4.3202C13.0104 5.26754 13.7752 6.03431 14.7201 6.03431ZM6.05849 6.03431C7.00334 6.03431 7.76811 5.26754 7.76811 4.3202C7.76811 3.37286 7.00334 2.60609 6.05849 2.60609C5.11363 2.60609 4.34887 3.37286 4.34887 4.3202C4.34887 5.26754 5.11363 6.03431 6.05849 6.03431ZM1.72647 5.17602C0.78161 5.17602 0.0168457 5.94279 0.0168457 6.89013C0.0168457 7.83746 0.78161 8.60424 1.72647 8.60424C2.67132 8.60424 3.43608 7.83746 3.43608 6.89013C3.43608 5.94279 2.67132 5.17602 1.72647 5.17602ZM1.72647 15.4607C0.78161 15.4607 0.0168457 16.2274 0.0168457 17.1748C0.0168457 18.1221 0.78161 18.8889 1.72647 18.8889C2.67132 18.8889 3.43608 18.1221 3.43608 17.1748C3.43608 16.2274 2.67132 15.4607 1.72647 15.4607ZM1.72647 10.3183C0.78161 10.3183 0.0168457 11.0851 0.0168457 12.0325C0.0168457 12.9798 0.78161 13.7466 1.72647 13.7466C2.67132 13.7466 3.43608 12.9798 3.43608 12.0325C3.43608 11.0851 2.67132 10.3183 1.72647 10.3183Z", fill: "#FF6900" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_7262_63725", children: _jsx("rect", { width: "133", height: "24", fill: "white", transform: "translate(0.0168457 0.0336914)" }) }) })] }));
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=AI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AI.js","sourceRoot":"","sources":["../../src/svg/AI.tsx"],"names":[],"mappings":";AAAA,4BAA4B;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAuD,EAAE,EAAE;IAC9F,MAAM,CAAC,GAAG,YAAY,CAAC;QACrB,EAAE,EAAE,EAAE,KAAK,EAAE,6CAA6C,EAAE,WAAW,EAAE,4FAA4F,EAAE;QACvK,EAAE,EAAE,EAAE,KAAK,EAAE,6CAA6C,EAAE,WAAW,EAAE,+GAA+G,EAAE;KAC3L,CAAC,CAAA;IACF,OAAO,CACL,eAAK,EAAE,EAAC,SAAS,qBAAiB,4BAA4B,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5L,gBAAO,EAAE,EAAC,eAAe,YAAE,CAAC,CAAC,KAAK,GAAS,EAC3C,eAAM,EAAE,EAAC,cAAc,YAAE,CAAC,CAAC,WAAW,G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